<< Click to Display Table of Contents >> Use Text Parameter |
The parameter component is an input object whose role is to assign values to parameters. Parameter components include Text Parameter, ComboBox, and ListBox.
The parameter component's name attribute is more critical and represents a parameter name. For example, give a parameter component a name and BeiJing. It is equivalent to defining a parameter of a=BeiJing. Parameter a can be used when adding filters to output components (eg charts, tables, pivot, texts, and gauges). For example, adding a filter condition of “city=?{a}” to the city field indicates that the data city=BeiJing is filtered out. As the user enters different values, different results are filtered out.
The Text Parameter component is a control that can input text. This component can only enter values and cannot bind data options. Acceptable input text is determined by the defined data type. If it is a date type, you can also have a calendar control to select the date. After the input is completed, you can use Enter to submit the result. At the same time, the input text will be verified according to the data type.
This chapter mainly introduces how to create Text Parameter, how to define attributes, how to bind data, and various interactive functions.