Customizing Applets for Homepage Views in Redwood Theme

To convert the homepage applet, you can modify the web template that the applet references.

To modify the web template to convert homepage applets with record count

  1. In Siebel Web Tools, navigate to Siebel Object > Applet and query for the applet name.

  2. Go to Applet > Control and then create two new controls with the following attributes.

    Clone AppletTitle and change the attributes as mentioned below:

    Field Value

    Name

    AppletTitleAsLabel

    Caption - String Reference

    <Provide the appropriate Symbolic String>

    HTML Type

    Label

    Field Value

    Name

    ViewAllLink

    Caption - String Reference

    SBL_APP_HOMEPAGE_VIEWALL

    HTML Type

    Link

    Method Invoked

    GotoView

  3. For the ViewAllLink control, expand the Control object, select the User Props

    1. Create a new record

    2. Enter the name as View

    3. Enter value as <Enter the Destination View name where it should navigate to when the link is clicked>

  4. Go to Applet Web Template.

  5. Clone the Tile Web Template.

    Modify the Name, Sequence, Type, and name of the newly cloned Applet Web Template as follows:

    Field Value

    Name

    Redwood

    Sequence

    1001

    Type

    Base

    Web Template

    CCAppletListHomePageTile(Redwood Theme)

    Note: If there is no sequence number for the Tile Web Template, you must assign a Sequence Number. For example:Sequence: 1
  6. Go to the Applet Web Template Item and map the following to the web template:

    • Add the two new controls created in Step 2 and provide the appropriate Item Identifier.

      Also, add the record count control and provide the appropriate Item Identifier.

    • Add any three List Columns that you wish to see in the applet and provide the appropriate Item Identifier.

    1. Control mapping to the Redwood Web Template.

      Field Value

      Name

      AppletTitle

      Control

      AppletTitleAsLabel

      Item Identifier

      185

      Field Value

      Name

      ViewAll

      Control

      ViewAllLink

      Item Identifier

      184

    2. List columns mapping to the Redwood web template (Data Rendering).

    Field Value

    Name

    <Data Field>

    Control

    <Choose the appropriate list column>

    Item Identifier

    510

    Field Value

    Name

    <Link Field>

    Control

    <Choose the appropriate list column that has drill down>

    Item Identifier

    511

    Field Value

    Name

    <Data Field>

    Control

    <Choose the appropriate list column>

    Item Identifier

    512

    Note: Item Identifier = 511 is reserved as a drill-down field, so it is advisable to have a list column where drill-down is configured.
  7. After making the Redwood Web Template changes in the Web Tools and deliver it, create a new manifest entry for the applet to conditionally select the new Web Template only when the Redwood theme is applied.

Manifest Administration

  1. Navigate to Manifest Administration View.

  2. In the UI Objects list, specify the following applet.

    Field Value

    Type

    Applet

    Usage Type

    Physical Renderer

    Name

    <Applet Name>

  3. In the Object Expression list, add the following expression.

    Field Value

    Expression

    Redwood Theme

    Level

    1

  4. In the Files list, add the following file:

    siebel/TileLayoutPR.js
  5. In the Object Expression list, add expressions until this list resembles the configuration shown in the following table and image.

    Inactive Flag Group Name Expression Level Operator Web Template Name

    N

    Redwood

    <empty>

    1

    AND

    Redwood

    N

    <empty>

    Base

    1

    <empty>

    <empty>

    N

    <empty>

    Redwood Theme

    2

    <empty>

    <empty>

    N

    Base

    <empty>

    1

    <empty>

    Tile

    N

    <empty>

    Base

    1

    <empty>

    <empty>

    Object Expression list: This image is described in the surrounding text.

To modify the web template to convert homepage list applets

  1. Identify the web template that the applet is using. Let us consider that the applet web template is of type Base/Edit List

  2. Navigate to Siebel Object > Applet and query for the Applet name.
  3. Go to Applet > Control and create two new controls with the following attributes.

    Clone AppletTitle and change the attributes as mentioned below:

    Field Value

    Name

    AppletTitleAsLabel

    Caption - String Reference

    <Provide the appropriate Symbolic String>

    HTML Type

    Label

    Field Value

    Name

    ViewAll

    Caption - String Reference

    SBL_APP_HOMEPAGE_VIEWALL

    HTML Type

    Link

    Method Invoked

    GotoView

  4. For the ViewAllLink control, expand the Control.
    1. Create a new record

    2. Enter the name as View

    3. Enter value as <Enter the Destination View name where it should navigate to when the link is clicked>

  5. Navigate to Applet Web Template

    • Create a new record by cloning the Edit List Web Template.

      Field Value

      Name

      Redwood

      Sequence

      1001

      Type

      Edit List

      Note: If there is no sequence number for the Tile Web Template, you must assign a Sequence Number. For example:Sequence: 1
  6. Go to Applet Web Template Item and map the following to the Web Template.

    • Map two new controls to the web template.

  7. Control mapping to the Redwood web template

    Field Value

    Name

    AppletTitle

    Control

    AppletTitleAsLabel

    Item Identifier

    184

    Field Value

    Name

    ViewAll

    Control

    ViewAllLink

    Item Identifier

    90

  8. After making the Redwood Web Template changes in the Web Tools and deliver it, create a new manifest entry for the applet to conditionally select the new web template only when the Redwood theme is applied.

Note: In the Applet Web Template, if all the available templates have the same Type , it is observed that the template is not selected dynamically, and the existing template is always chosen. For example, if there are three existing web templates and all are of Type=Base, and you add a new web template Redwood, it will not select the web template based on the expression provided in the Manifest Administration.
Important: The workaround here is to create a dummy Web Template just to include a second Type. For example, if all web templates are of Type=Base, one dummy web template should be of Type=Query/EditList.

Manifest Administration

  1. Navigate to Manifest Administration View.

  2. In the UI Objects list, specify the following applet.

    Field Value

    Type

    Applet

    Usage Type

    Web Template

    Name

    <Applet Name>

  3. In the Object Expression list, add expressions until this list resembles the configuration shown in the following table and image.

    Inactive Flag Group Name Expression Level Operator Web Template Name

    N

    Redwood

    <empty>

    1

    AND

    Redwood

    N

    <empty>

    Redwood Theme

    1

    <empty>

    <empty>

    N

    <empty>

    EditList

    2

    <empty>

    <empty>

    N

    You can enter the name of the group that you are going to associate a Web Template Name

    <empty>

    1

    <empty>

    Use the value as either Base or Edit List based on the Applet Web Template that you are going to display in the application.

    N

    <empty>

    Use the value as either Base or EditList based on the Applet Web Template that you are going to display in the application.

    1

    <empty>

    <empty>

    Object Expression list: This image is described in the surrounding text.