Show TOC Start of Content Area

Background documentation containerWithTrayDesign  Locate the document in its SAP Library structure

Creates a container and enables you to create a custom tray for all iViews displayed in the container.

Note

If you want the same tray for all iViews in all containers in the layout, place the code that defines the tray (that is, the body of the containerWithTrayDesign tag) in an include file, and then include the file in all your containers.

Attributes

Name

Mandatory

Description

id

Yes

The ID of the container.

In the portalapp.xml for the PAR that includes the layout, this ID must be specified in a profile property called com.sap.portal.reserved.layout.Cont<X>. For more information, see How to Create a Custom Layout.

Coordinating Tags

The tag must be nested in the following tag:

·        template

Example

The following creates a container with a custom tray that displays the title of the iView at the top, and then a set of links for invoking built-in tray functions. The iView’s content is displayed after the links.

<lyt:containerWithTrayDesign id="column1">

    <TABLE border=1 cellspacing=10 cellpadding=10 style='WIDTH=100%;
    font-size:8.5pt;font-family:Tahoma;border-collapse:collapse;
    border:none;'>

    <TR>

        <TD>

        <b><lyt:IViewTitle/></b><br>

        <lyt:IViewExpand>Open in New Window</lyt:IViewExpand>&nbsp;|&nbsp;

        <lyt:IViewRefresh>Refresh</lyt:IViewRefresh>&nbsp;|&nbsp;

        <lyt:IViewToggleOpen>Open</lyt:IViewToggleOpen> 

        <lyt:IViewToggleClose>Close</lyt:IViewToggleClose>&nbsp;|&nbsp;

        <lyt:IViewAbout>About</lyt:IViewAbout>&nbsp;|&nbsp;

        <lyt:IViewHelp>Help</lyt:IViewHelp>&nbsp;|&nbsp;

        <lyt:IViewRemove>Remove</lyt:IViewRemove>&nbsp;|&nbsp;

        <lyt:IViewPersonalize>Personalize</lyt:IViewPersonalize>

        <br>

        <lyt:IViewContent/>

         </TD>

    </TR>

    </TABLE>

</lyt:containerWithTrayDesign>

See Also

·        container

 

 

 

End of Content Area