Point specifiers
In this case, the ItemDetail Region is already visible on the page. Because of the size and current location of the ItemDetail region, there are nine points that can be referenced:
- TopLeft, TopCenter, TopRight
- LeftMiddle, CenterMiddle, RightMiddle
- BottomLeft, BottomCenter, BottomRight
It can be used by the scripting like this:
context.GetRegion("New Region").Place (LeftMiddle, "ItemDetail",
RightMiddle)
A default location can be associated with the floating region using the Layout Editor. When the Place() API call is made and if a default is available in the layout, it will be used. If no placement location was given in the layout, this is used:
Place(CenterMiddle, "Main", CenterMiddle)
Because the floating regions are rendered even when not visible, it is important to avoid excessive database accesses resulting from complex UI in regions that may never be displayed. Avoid this problem by setting the Rendered? flag to false, which prevents the UI from rendering (and thus prevents the database accesses).
Placement is synchronous, unlike content rendering (style and data changes) and communication (alerts and events), which are asynchronous. In other words, the region is made visible and placed before the Place() API completes. After placement, transitions are left to run (if possible) asynchronously, while rendering and communication continues.