hasContent property: Tile class

Description

Use the hasContent property to set or return a Boolean value indicating whether the tile has content defined. This property provides you with an opportunity to perform alternate processing when an error condition has occurred.

When you set hasContent to False, you should define the following tile properties:

  • An image in lieu of content (optional).

  • PreferencesUrl (optional).

  • PreferencesUrlLabel (required).

This property is read/write.

Example

If no_error_condition Then
   /* Normal processing of tile content */
Else
   %This.hasContent = False;
   %This.setTileImageRef("IMG_MISSING_DATA");
   %This.PreferencesUrlLabel = "No Data Available";
   %This.PreferencesUrl = "http://myserver.example.com/psc/my_site/EMPLOYEE/MY_NODE/c/MY_MENU.MY_COMPONENT.GBL";
End-If;