Show TOC Start of Content Area

Background documentation IViewTrayColor  Locate the document in its SAP Library structure

Displays the color value for the iView’s Family attribute.

The color values are generally defined in the portal core iView on which all iViews are based (Portal Content Content Supplied by SAP Core Objects Core iView, or by object ID portal_content com.sap.pct default_objects com.sap.portal.default_iView).

This core iView defines the attribute Family (com.sap.portal.iView.family).

For the Family attribute, the following meta-attributes are defined:

      validvalues: A list of values for this attribute (Group_0, Group_1, and so forth).

      validvalueTitle<n>: The display title for each valid value. One validvalueTitle meta-attribute is defined for each valid value in the validvalues meta-attribute (validvalueTitle0, validvalueTitle1, and so forth). The meta-attribute is of type text, so it can be localized.

      Color<n>: The color for each valid value. One Color meta-attribute is defined for each valid value in the validvalues meta-attribute (Color0, Color1, and so forth).

To set the display name of each iView family name, set the validvalueTitle meta-attribute for each family name.

To set the color for each iView family name, set the Color meta-attribute for each family name.

Setting Color for iView Family

For example, to create a group for human resources iViews, and to display these iViews with a red iView tray, set the following meta-attributes for the Family attribute of the core iView:

      validvalues: Designate one of the valid values, such as Group_4, for human resources iViews.

By default, values Group_0 to Group_9 are defined. If you need, add additional values, such as Group_10, Group_11 and so forth.

The meta-attribute is written in a format where, for each value, you specify the length of the valid value. For example, if you add Group_10, add the string 8/Group_10 to the value.

      validvalueTitle4: Set to Human Resources.

      Color4: Set to #FF0000.

Use the PCD Inspector tool to set the values. For more information on the PCD Inspector, see PCD Inspector.

Coordinating Tags

The tag must be nested in the following tag:

      containerWithTrayDesign

Example

<lyt:template>

    <lyt:containerWithTrayDesign id="column1">

        <div style="HeaderBox">

            <table><tr><td bgcolor="<lyt:IViewTrayColor/>">

                <lyt:IViewToggleOpen><lyt:IViewFamily/> -

                <lyt:IViewTitle/></lyt:IViewToggleOpen>

                <lyt:IViewToggleClose><lyt:IViewFamily/>

                </lyt:IViewToggleClose>&nbsp;&nbsp;<lyt:IViewExpand>

                <img src="<%=expand%>"></lyt:IViewExpand>

            </td></tr></table>

        </div>

        <lyt:IViewContent/>

    </lyt:containerWithTrayDesign>

</lyt:template>

See Also

·         IViewFamily

 

 

End of Content Area