11.3 Matching Dynamic Values to Property Values

When you link an input control with a component property, you should ensure that the input control evaluates to a permissible value for the particular property. There are three main cases.

Property Requires a Numerical Value: If a property requires a numerical value, the input control should provide an appropriate numerical value. For example, the 'Ranking' property in the Chart data binding requires an integer value. An appropriate control for this property would therefore be a Spinner with 'Increment' property set to an integer value.

Property Requires a Boolean Value: If a property has a 'True' or 'False' setting, the input control should provide a Boolean value. For example, the 'Enabled' property expects a Boolean value 'true' or 'false'. An appropriate control for this property would therefore be a RadioButton with embedded list values {true, false}, and with 'Data Type' set to 'Boolean'.

Property Requires a String Value: If a property requires one of a fixed set of strings, the input control should provide a string from the set. For example, the 'Visible' property requires one of the strings 'Show', 'Hide', or 'Hide on Print and Export'. The input control must therefore return one of these strings. An appropriate control for this property would therefore be a RadioButton with embedded list values {'Show', 'Hide', 'Hide on Print and Export'}, and with 'Data Type' set to 'String'.

 

 

<< 11.2 Parameterizing a Condition using an Input Control © 1996-2013 InetSoft Technology Corporation (v11.4) Dashboard Scripting >>