Show TOC Start of Content Area

Background documentation IfShowTray, IfNotShowTray  Locate the document in its SAP Library structure

Includes its body if the current iView’s Show Tray property is set to true. This property is set by a content administrator.

Note

If you use these tags, make sure to include both an IfShowTray and IfNotShowTray tag. In addition, make sure to include the iViewContent tag in both the IfShowTray and IfNotShowTray tag, or outside either tag; otherwise, the iView’s content may not be displayed in all cases.

Coordinating Tags

The tag must be nested in the following tag:

·        containerWithTrayDesign

Example

The following displays a custom iView tray if the current iView is set to be displayed in a tray.

Note that the IViewContent tag is outside both the IfShowTray and IfNotShowTray tags.

<lyt:containerWithTrayDesign id="column1">

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

        <TR>

            <TD>

                <lyt:IfShowTray>

                    <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>

                </lyt:IfShowTray>

           

                <lyt:IfNotShowTray>

 

                    ...

 

                </lyt:IfNotShowTray>                                

                    

                <BR>

                <lyt:IViewContent/>

            </TD>

        </TR>

    </TABLE>

</lyt:containerWithTrayDesign>

 

 

End of Content Area