Creating an input control from the Design view prompts you to create a bound parameter on the Parameters tab. Binding a control to a parameter will populate the parameter.
Note:
How to: Reference: |
A text box enables you to enter a value in a text entry field.
A text box only provides a single-select value.
or
The cursor changes to a crosshair.
A text box is created in the layout and assigned the name edit(n), where n is a number.
Binding a parameter to a text box creates an incoming parameter. An incoming parameter is a parameter that is bound to a control. The parameter value will populate the text box with values.
The Properties and settings dialog box opens.
Close this dialog since you are populating the text box with a parameter value.
If binding a text box to a parameter, the value can only be single select. Binding the text box to a parameter will populate the parameter with the single value.
The Properties and settings dialog box opens.
When entering a value in a text box at run time, you may set the mask text property so that the text is not displayed as text, but masked by default characters. This is recommended when using passwords or other sensitive information.
You may also select the text box properties from the drop-down list of the Properties window. The properties for the text box appears as edit(n) <INPUT>.
The value being entered appears as masked text, as shown in the following image.
How to: Reference: |
A text area is a single-select control that enables you to enter multiple lines of text that can be assigned to a single variable. The behavior is similar to a text box, but you are not restricted to entering just one line of text. For example, if you want to assign a paragraph (multiple lines of text) to a variable that can be referenced by a procedure, you can add the paragraph to a text area from the Properties and settings dialog box on the Parameters tab.
Note: When the Multiple property is set for a text area control, you can enter data values separated by semicolons, commas, or carriage returns.
The following image shows the text area component in HTML Composer.
button
from the Components toolbar.
or
From the Insert menu, select Controls, then click Text Area.
The cursor changes to a crosshair.
A text area is created in the layout and assigned the name textarea(n), where n is a number.
Binding a parameter to a text area creates an incoming parameter. An incoming parameter is a parameter that is bound to a control. The parameter value will populate the text area with values.
The Properties and settings dialog box opens.
Close this dialog since you are populating the text area with a parameter value.
If binding a text area to a parameter, the value can only be single select. You can create one or more lines of text for the single value. Binding the text area to a parameter will populate the parameter with the single value.
The Properties and settings dialog box opens.
Note: If you are creating a Static Data type for the text area, you may enter one or more lines of text by typing or pasting text into the Selected Value input field.
When a text area is selected, the Properties tab in the Properties window contains options that control the properties of your text area.
Click a property to display a description of the selected property at the bottom of the Properties window.
How to: Reference: |
A drop-down list enables you to select a single value from a list of supplied values. You can use a dynamic or static list of values for the drop-down list.
or
The cursor changes to a crosshair.
A drop-down list is created in the layout and assigned the name combobox(n), where n is a number.
The Properties and settings dialog box opens.
Close this dialog since you are populating the drop-down list with a parameter value.
Binding the drop-down list to a parameter will populate the parameter with a list of values.
The Properties and settings dialog box opens.
When using a drop-down list input control to supply parameter values, the Multiple property value indicates whether multiple values can be selected from a list of supplied values at run time.
Note: A multiselect list enables you to select multiple values by using the Ctrl key while selecting values. In order to select multiple values in the drop-down list, the procedure must be set up to accept multiple values. Ensure that the Variable Type for the parameter value is Multiselect OR or Multiselect AND in the procedure.
For example, create a report with Multiselect OR as the variable type for the parameter, accepting a dynamic list of values from ggsales, with REGION as the value for returned and displayed fields.
A drop-down list is created in the layout and assigned the name combobox(n), where n is a number.
This indicates that multiple items can be selected from the drop-down list.
Select multiple values by using the Ctrl key while selecting values from the drop-down list, as shown in the following image.
The drop-down list shows the selected multiple values. Click the Run button to run the report with the selected value parameters.
When a drop-down list is selected, the Properties tab in the Properties window contains options that control the properties of your drop-down list.
Click a property to display a description of the selected property at the bottom of the Properties window.
How to: Reference: |
A list box enables you to select single or multiple values at one time:
List box values can be dynamic or static.
or
The cursor changes to a crosshair.
A list box is created in the layout and assigned the name listbox(n), where n is a number.
The Properties and settings dialog box opens.
Close this dialog since you are populating the list box with a parameter value.
Binding the drop-down list to a parameter will populate the parameter with a list of values.
The Properties and settings dialog box opens.
When a list box is selected, the Properties tab in the Properties window contains options that control the properties of the selected list box.
Click a property to display a description of the selected property at the bottom of the Properties window.
When using a list box, you may reorder the selected values in the report.
An up and down arrow is added next to the list box control.
In the following example, CA is the first value in the By State list box. Select the down arrow to reorder the location of CA in the list box and rerun the report again.
How to: Reference: |
You may add a double list control for displaying multiselect values. This enables you to view a list of the available values and add or remove them from one list to another. At run time, a report is generated based on the values that are added.
Note: When creating a static list of values for a double list control, the add everything value option is not available.
or
The cursor changes to a crosshair.
A double list control is created in the layout and assigned the name customselect(n)_selectfrom and customselect(n)_selectto, where n is a number.
Binding a parameter to a double list control creates an incoming parameter. An incoming parameter is a parameter that is bound to a control. The parameter value will populate the double list control with values. If binding a parameter to a double list control, the value can be single or multiselect.
The Properties and settings dialog box opens.
Close this dialog since you are populating the double list control with a parameter value.
Binding the double list control to a parameter will populate the parameter with a list of values.
The Properties and settings dialog box opens.
Note: You can change the default double list control to other types of controls by right-clicking the control object on the Parameters tab or the Design tab and selecting Set Control Type.
The options are Calendar, Check box, Drop down list, Hidden, List box, Radio button, Text area, Text box, Single source Tree control, and Multi source Tree control.
The selected values appear in the second column. The output is generated based on the selected values in the second column. In the following example, Action and Comedy are the selected values for the report.
The up and down arrows reorder the selected values that appear in the second column of the double list control.
Click the up arrow to move the selected value up in the second column of the double list control, or click the down arrow to move the selected value down in the double list control.
When a double list box is selected, the Properties tab in the Properties window contains properties of double list controls.
Keep Selected Value. When Yes is selected, this option will accumulate values you search for in the right-side box. When you search for another value, the previously searched values will not be deleted. No is selected by default.
Click a property to display a description of the selected property at the bottom of the Properties window.
How to: |
You may add a paging control to a List Box, Drop Down List, and the first control of a Double List Control, which enables you to page through a large list of values before selecting a value. The Add 'Paging' control option is available through the right-click context menu