Hi,
I would like to Select a Variable from a drop down menu that was previously pre-filtered to just specific output based on the name for example(IRD).
In my case I have a shape that has the following properties:
I have learned that I can generate a list of filtered items by creating a shape with properties:
It would be nice to combine these two.
NOT sure if I can specify one more shape data field option on SetVarOption: |Filter= ?!
I have tried something like this:
or
Also I believe a possible solution could be using two list box controls but I don't have an example to adapt it to my case, meaning FKColumn must be different than SetColumn or DisplayColumn ? and on the filter side how do I reference to "OtherList" box."
Is there a way to sort this out ?
Thank you.
Regards,
Daniel.
"Linking two list box controls
It is possible to link two list boxes. That way, when you select an item in the first list box, you will filter the values displayed in the second list box.
In the second list box, use the SetVarOption "FKColumn" to define a foreign key relationship between the two datasets. In that option, specify the column in the second list box that contains the foreign keys that link to the first list box.
Example:
<em><code class="lang-txt">FKColumn=fkcolpid|Filter=[var:OtherList] </code></em>
- In the "FKColumn" option, specify the parameter ID of the column that contains the foreign keys.
- In the "Filter" option, you can indicate that the list has to be filtered. In the example above, the list will be filtered by foreign key value, based on the value of the session variable that was set in the "OtherList" box."
Hi Daniel,
This can be achieved by configuring a subscription filter. Not using a said filter will just retrieve all rows from your table:
Configuring a filter will limit your entries:
Note that you can filter on any column of the table to achieve this.
Hi Michiel,
Can you provide an example of how to use the Linking two list box controls ?
In the help guide I couldn't find any examples .
Thank you.
Hi Daniel,
For the first control you can configure something like:
Setvar FilterVariable[Param:dmaid/elementid,1000]
SetvarOptions control=listbox|displaycolumn=1002
for the second control the configuration looks like this:
SetVar MyVarName[Param:dmaid/elementid,2000]
SetVarOptions control=listbox|displaycolumn=2003|FKColumn=2004|Filter=[var:FilterVariable]
In this case the connector must be configured in such way that tables with id’s 1000 and 2000 are linked and column 2004 contains foreign keys referencing the primary key in table 1000.
Thanks Michiel,
Is there a way to manipulate the described behavior to only refer to one table instead of two connected tables ? Just for the 1000 table ID ?
Daniel.
Hi Daniel,
Text-based filtering the list in the combobox is currently not possible. Feel free to create a feature suggestion or a collaboration task to request this feature.
Hi Michiel,
Thank you for your response.
So this means that the only filtering is done based on what criteria ?
Thank you.
Regards,
Daniel.
Hi Daniel, the filteredcombobox will display a search box which the user can use to filter, while the regular combobox will not.
Great !!
It is exactly what I wanted !
Thank you Sebastiaan !