How to: |
You can parameterize properties in the Properties panel for all objects in an HTML page. This enables you to add values to amper variables and pass these variables to the corresponding property settings in App Studio so the HTML page behaves a specific way.
You can pass values using the !IBI.AMP.VarName variable or a URL call.
The following procedure shows how to parameterize properties in the Properties panel, using the !IBI.AMP.VarName variable and a procedure call to the HTML page.
The Properties panel with Color and Background-color values are shown in the following image.
The Properties panel with the Direction of text value is shown in the following image.
-DEFAULT &DIRECTION='rtl'; -DEFAULT &MYCOLOR='RED'; -DEFAULT &BCOLOR='BLUE';
The following screen displays with the specified default values.
Notice that the background color is blue, the button text is red, and the movie titles are right-justified.
Note: You can also parameterize properties in the Properties panel using a URL in a browser. For example:
http://host:port/app_directory/htmfilename.htm?bcolor=red
In this example:
WebFOCUS | |
Feedback |