Entity and Occurrence Properties in Dynamic Server Pages

In Dynamic Server Page components, you can manipulate the widget properties of entities and occurrences in the runtime component using ProcScript or JavaScript. It is not possible to set these properties declaratively.

Setting Properties in ProcScript

You can modify properties in ProcScript using:

  • $entityproperties to set one or more properties for all occurrences of the current (outer) entity. The property values can only be applied in the generated web page if this command preceded the webdefinitions command.
  • $CurEntProperties to set a property for a specific (inner) entity.
  • $occproperties to set the properties of an occurrence.

For more information, see Setting Properties in Script.

Example

In the following example, setProperty is used to set the style:display property a field's parent entity to none. The immediate parent of the field is the occurrence, and its parent is the entity.

webtrigger detail ; for field HIDE
 scope
 endscope
 javascript
   this.getParent().getParent().setProperty("style:display", "none");
 endjavascript
end

Widget Properties

Entities and occurrences support the widget properties available to the genericHTML widget. For more information, see genericHTML.

Related Topics