In this section: |
You may chain controls to one another on the Parameters tab and apply conditions to links in the chain. Chaining will populate controls based on the selected value from the prior control in the chain. You can chain static and dynamic controls, link or unlink parts of a chain, and create conditions on links in a chain. Chains are represented by lines connecting control objects on the Design or Parameters tab. Note that chaining is applicable only for controls, not parameters.
By clicking the arrow head in a link of a chain, the Settings panel enables you to modify and set the properties and conditions of the chain.
How to: |
The auto chain option enables you to automatically chain selected controls from the New Parameters dialog box. Chaining populates controls based on the selected value from the prior control in the chain. The auto chain option is useful since it creates the chain, or links of a chain, automatically.
Note: Automatic chaining creates a basic chain with default functionality that does not include any conditions. You may create conditions for a chain through the Parameters tab.
When importing or referencing a report with parameters to an HTML page, the controls are not chained by default. You may choose to include or exclude individual controls in a chain with the Chain control column from the New Parameters dialog box.
Additionally, when the auto chain option is selected, a separator is added to the parameters list on the New Parameters dialog box. A separator is used to separate controls into multiple chains and can be moved up or down in the chain sequence.
The auto chain option creates the chain, or links of a chain, automatically. When the auto chain option is selected, a separator is added to the parameters list. A separator is used to separate controls into multiple chains and can be moved up or down in the chain sequence.
The New Parameters dialog box opens.
Tip: You may use the up or down arrows to change the order of the selected control before selecting this option.
The Chain control option is selected for all controls and a separator is added as the last object to the list of parameters.
Note: If the default separator is moved up, another separator is added to the end of the list.
On the Design tab, when creating multiple chains from the New Parameters dialog box, each set of chained parameters appears on a new line, regardless of the grouping option selected from the New Parameters dialog box. This behavior is set through the Start each chain on a new line option, located on the Form Settings dialog box in the HTML Page tab of the App Studio Options dialog box. This enables you to see the relationship of the chains within the form. Start each chain on a new line is selected by default.
On the Parameters tab, chains are represented by lines connecting control objects.
The Chain control column enables you to include or exclude individual controls in a chain, from the New Parameters dialog box.
The New Parameters dialog box opens.
The controls are chained in the order that they appear on the New Parameters dialog box. You may use the up or down arrows to change the order of the selected control before chaining controls.
Note: If a control is excluded from a chain, the chain automatically links only the selected controls.
On the Design tab, when creating multiple chains from the New Parameters dialog box, each set of chained parameters appears on a new line, regardless of the grouping option selected from the New Parameters dialog box. This behavior is set through the Start each chain on a new line option, located on the Form Settings dialog box in the HTML Page tab of the App Studio Options dialog box. This enables you to see the relationship of the chains within the form. Start each chain on a new line is selected by default.
On the Parameters tab, chains are represented by lines connecting control objects.
How to: |
For a DOCUMENT object, you can use pop-up controls to:
To create pop-up controls, you can:
The Create popup controls property on the Properties panel is shown in the following image. Possible values are Yes and No. No is the default value.
The Popup style right-click shortcut option for a drop-down control is shown in the following image. (Disabled for Edit Box, Text Area, Calendar, and Slider).
The New Parameters dialog box is shown in the following image. The Popup option is available in the drop-down menu in the Create control column.
The following image shows an example of a pop-up control.
You can add a title bar and specify a customized title for pop-up controls in an HTML page.
To add a title bar, in the Properties panel, set Display Title Bar to Yes. When Display Title Bar is set to Yes, the Title Text property becomes available. Type a value in this field to display in the pop-up control title bar at run time.
Any controls added to the page are created as pop-up controls.
If you leave the Title Text field blank, the unique identifier of the control or the label assigned to the control, if there is one, is used as the title text.
The text specified by the Title Text property appears on the control title bar, as shown in the following image.
How to: |
The chain separator and line separator options allow for chains and parameters to be grouped or split depending on which settings are turned on. When used, the two separators do the following:
Chain separator. When Start each chain on a new line is on, this separator creates new chain groups on new lines. When Start each chain on a new line is off, this separator starts a new chain wherever it is placed in the New Parameters dialog box. The controls are positioned in one row and wrap at the end of the form.
Note: Start each chain on a new line is turned on, by default. This option can be found in the Form Settings dialog box, in the HTML Page section of the App Studio Options dialog box, as shown in the following image.
Line separator. This separator creates a line break wherever it is placed.
The New Parameters dialog box opens, as shown in the following image.
A copy of the line separator is moved up while the original stays in the starting position. This is so you can add multiple line separators.
A copy of the chain separator is moved up while the original stays in the starting position. This is so you can add multiple chain separators.
The New Parameters dialog box will look like the following image.
The report is added to the HTML page. REGION and CATEGORY are on the first line and make up one chain. PRODUCT is on the second line, while BUDDOLLARS is on a separate, third line.
The parameters are shown in the following image.
How to: |
Chaining enables you to associate two or more related values. When you chain controls together, chained values are filtered as selections are made to each parameter control. For example, if you chain the PLANT parameter to the STATE parameter, only PLANT values for the currently selected STATE value will be available instead of all the plants in the data source. Each time a selection is made, all chained controls that come after will be dynamically updated. Chaining also enables you to add, remove, and reverse the order of controls in the chain.
Values are processed with a caching mechanism that gathers all of the necessary values prior to loading the page. This method automatically combines all of the necessary requests into a single HTTP request and maps the result sets to the appropriate controls, greatly reducing the load time involved with sending multiple requests for data.
If a parameter has two or more incoming bindings, the value selected last will be displayed as the parameter.
Note: When a parameter is populated by two or more controls, the value of the last control used will be assigned to the parameter.
Repeat this step for each link in the chain.
If using static controls, you must apply conditions for each link in the chain. Conditions need to be created for each value of the control chained from, and those values must be mapped to the correct value(s) that will be displayed in the control that it is being changed to.
Notice the direction of the arrow between the control objects. You may reverse the direction of the link in the chain or reverse the order of the chain by changing the direction of each link.
Tip: In some scenarios, when reversing the order of chained values, you may want to move the controls from the default location on the Parameters tab so that you can better see the direction of the chain. Moving objects on the Parameters tab will not affect the Design view of your layout.
You can choose the arrangement of controls in the New Parameters dialog box, without any additional steps, after the parameter controls are generated. This gives you the flexibility to design your HTML page, without the need for moving the controls after creation.
The Controls arrangement option, as shown in the following image, indicates the placement of controls.
The following are possible values for the Controls arrangement option:
How to: |
Reference: |
A chain contains conditions for each link in the chain. The conditions are linked to the values being selected in the control object. You may apply multiple conditions to one link. The settings for the condition describe how the link should behave. The following options are available:
If using static controls, you must apply conditions for each link in the chain. Conditions need to be created for each value of the control chained from, and those values must be mapped to the correct values that will be displayed in the control that it is being changed to.
The Settings panel appears when creating a condition for a chain link on the Parameters tab. A chain contains conditions for each link in the chain.
The conditions are linked to the values being selected in the control object. The settings for the condition inherit the values of the prior bound control and provide additional condition settings. This section describes the additional condition settings.
The Settings panel contains the following fields and options when creating a condition:
The conditions list enables you to create multiple conditions for the link. Default is the only initial condition.
Select an action for the chain link to control. The options offer variations to populate, show, hide, execute, and select the values. The list of available options are:
Values compare operator provides chaining logic scenarios to include such options as Equal, Not Equal, Greater Than, Less Than, and so on. This option sets the condition for how to populate the control being linked to.
Equal is the default Values compare operator.
Selected values enable you to provide the values used in the condition. When creating a new condition, the Selected values section is activated. You may type selected values in the input box or click the ellipsis button to select values from the list.
The list of values that appears is based on the values of the prior bound control in the chain.
When selected values are entered, the Multiselect operator field is activated.
The Multiselect operator options are activated when selected values are entered for the condition. Options are One of or All of. One of is based on one of the values shown in the Selected values, being selected in the prior control, in the chain. All of is based on the value of all of the Selected values, being selected in the prior control, in the chain.
One of is the default multiselect operator.
From. The From field specifies where to get the value used in the To field, if the control being chained from is a map or activeX control.
To. The To field is used to dynamically generate the selection list used to populate the control being chained to. This field displays the parameter whose value will drive the condition evaluation. The parameter name linked to the prior control in the chain is displayed by default. The ellipsis button provides a pop-up dialog of the other parameter values (from the report) to be resolved.
The compare operator provides parameter chaining logic scenarios to include such options as Equal, Not Equal, Greater Than, Less Than, and so on. This sets the compare operator to populate the control.
Equal is the default Compare operator.
Chains are represented by lines connecting control objects on the Parameters tab.
Chaining controls will populate parameters with values at run time, based on values selected in prior controls on the chain.
The Settings panel shows the bound control values and the Default condition settings for the link in the chain.
Condition(n) is created, where (n) is the number, and added to the Conditions drop-down list, and the Selected values section is activated. You may type in a unique condition name.
Note: Default, the initial condition, cannot be deleted.
Chains are represented by lines connecting control objects on the Parameters tab.
Chaining controls will populate parameters with values at run time, based on values selected in prior controls on the chain.
Populate, show is the default option.
When running the HTML page, the action for the chained control is applied.
Chains are represented by lines connecting control objects on the Parameters tab.
Chaining controls will populate parameters with values at run time, based on values selected in prior controls on the chain.
Equal is the default option.
The compare operator is applied to the value selected.
Chains are represented by lines connecting control objects on the Parameters tab.
Chaining controls will populate parameters with values at run time, based on values selected in prior controls of the chain.
Condition(n) is created, where (n) is the number, and added to the Conditions drop-down list, and the Selected values section is activated. You may type in a unique condition name.
The list of values that appears is based on the values of the prior bound control in the chain.
Tip: You may also use the pop-up icons to select a field and close the pop-up dialog box. The green icon is OK, the red icon is Cancel, double-clicking a value will select the value and close the dialog box without using any button, and pressing the Esc key will cancel the dialog box without using any button.
When selected values are entered, the Multiselect operator field is activated.
The selected values and multiselect operator are applied to the condition.
It is recommended that you populate the controls first, before chaining. When you populate first, certain information is obtained that allows the determination of the best choice for Resolves parameter. If you chain first and then populate, the information cannot be obtained because the chaining is already established. If you chain first, you must manually set Resolves parameter.
Chains are represented by lines connecting control objects on the Parameters tab.
Chaining controls will populate parameters with values at run time, based on values selected in prior controls on the chain.
The value in the Resolves parameter field should be either:
In most cases, this value will be populated by default and will not need to be changed.
Tip: You may also use the pop-up icons to select a field and close the pop-up dialog box. The green icon is OK, the red icon is Cancel, double-clicking a value will select the value and close the dialog box without using any button, and pressing the Esc key will cancel the dialog box without using any button.
The parameter value is resolved in the chain if no filter is specified.
An example of when to apply chaining logic is when a form offers two lists of dates so that you can select a FROM/TO date range. By chaining these parameters together and applying the Greater than parameter compare operator, this ensures that when a date is selected for the FROM parameter, only dates that follow the FROM date display in the TO date control, eliminating the possibility of selecting an invalid date range.
Chains are represented by lines connecting control objects on the Parameters tab.
Chaining controls will populate parameters with values at run time, based on values selected in prior controls on the chain.
Equal is the default option.
The compare operator is applied to the parameter selected.
You may enable cache processing for chained values in two ways:
A chain contains conditions for each link in the chain. The conditions are linked to the values being bound to the control object. If you change the options for the condition, it will also be applied to the control, and vice versa.
Caching options are turned off by default.
A chain contains conditions for each link in the chain. The conditions are linked to the values being chained to the control object. If you change the options for the condition, it will also be applied to the control, and vice versa.
For a dynamic control:
The Settings panel opens, showing the dynamic control options.
Note: This setting overrides the Default caching option from the HTML Page tab, in the App Studio Options dialog box.
When binding controls, the conditions inherit the values set in the dynamic control settings.
For a dynamic condition:
This setting overrides the Default caching option from the HTML Page tab, in the App Studio Options dialog box.
When running the HTML page, data for the chained value is cached to improve performance.