Changing object properties at runtime
By applying the Property web action to any object in the data component in a library component, you can make the properties of an object in the library component changed at runtime. To do this:
- Do one of the following to display the Change Property - Web Action Builder dialog. See the dialog.
- Right-click an object in the table or crosstab of a library component, select Display Type from the shortcut menu to display the Display Type dialog, choose the event on which the web action will be triggered from the Events column and click in the Actions column of the Web Behaviors box to display the Web Action List dialog, then select *Property and click OK.
- In the Behaviors tab of some chart formatting dialogs, select a trigger event from the drop-down list in the Events column and click in the Actions column, then select *Property and click OK in the displayed Web Action List dialog.
- Right-click a geographic map and select Geographic Map Wizard from the shortcut menu, in the Marker screen of the Geographic Map Wizard, select a trigger event from the drop-down list in the Events column and click in the Actions column of the Web Behaviors box to display the Web Action List dialog, then select *Property and click OK.
- From the Apply Action To drop-down list, select the object the properties of which you want to change.
- In the Properties column, specify the property you want to change. All the properties of the object you select from the Apply Action To drop-down list are listed here.
- In the Value column, input the value of the property.
- If necessary, click to add a new line to change a property.
To delete a property line, click . To adjust the order of the properties, click or .
- Click OK to accept the settings.
Then at runtime, when the specified event occurs on the object, the properties values will be applied.
Besides the way above, you can also define to change the properties of an object in a library component at runtime by using the configuration panel. For details see Defining web behaviors in the panel - Change Property.