https://learninghub.kx.com/forums/topic/multi-select-highlight-rule
Hello,
Below are the steps to create a highlight rule from a multiselect dropdown list.
-
Have the viewstate for the dropdown list be of type list
-
Create a virtual datasource with the following code to change the selected viewstate to a different format
function (list, callback) { var toReturn = { columns: [“Syntax”, “Search”], meta: { Syntax: 11, Search: 11 }, rows: [ { Syntax: “Syntax”, Search: list.join(" OR ") }] } callback(toReturn); }
-
In this virtual datasource, set the list as the “selected” viewstate, and the value of the output to a new viewstate of type symbol
-
Now create your highlight rule on the data grid with condition operator “search” and using the “correctSelected” as condition value
Now you should be able to highlight multi rows in a data grid from a drop down list
Feel free to suggest improvements below.
Many Thanks
Luke