
The client-side Layout API enables you to control page layout.
Gets the current layout by triggering the passCurrentLayout EPCM event with a callback function that stores the returned value. Before calling this method, subscribe to the event.
EPCM.subscribeEventReliable("urn:com.sap.portal.ajaxpagebuilder", "passCurrentLayout", storeLayoutCallback);
function storeLayoutCallback ()
{
//Store the layout
}Sets the page layout.
Parameters
XML: an XML representation of the layout, such as <table width='100%'><tr><td width='50%' colspan='1'/><td width='50%' colspan='1'/></tr></table>
ID: the ID of the layout, such as layout_2column