Loading dynamic drop-down values in Guided Rule Editor based on the selected values from a previous drop-down in BRMS 6

Solution Verified - Updated -

Issue

  • The requirement is to load huge number of drop-down values in the Guided Rule Editor of Business Central by querying database, which will be used to define the rules. Data enumeration has been used to load drop-down values dynamically, which is good option for small amount of data but to load huge data it does not look to be a suitable option to dynamically load all drop down values at once. May be an alternate solution could be to split the number of records into categories so that if user chooses a category from first drop-down then the next drop-down in the Guided Rule Editor would dynamically identify the selected category from the first drop-down to fetch the database to collect the related result-set/data , which would be relatively lesser in terms of records to be displayed in one drop-down. Now the major question is, does Guided Rule Editor support this kind of feature so that if users change/select a value from one drop-down the other drop-down dynamically loads it values with the selected values from the first drop-down?
  • The requirement is such that the selected option from one drop-down in Guided Rule Editor can be used as a criteria to populate the list of the options for a second drop-down in the same rule. Of course both the drop down's values would be populated using the feature of Enumeration. This is how it looks like as an example. First enumeration which populates the values for slType field of Selector fact in the first drop down would look like the following.
'Selector.slType' : '(new com.test.selection.ReturnSelectionType()).returnType()'

Once a user selects the value of slType field to any value (say, Car) from the populated first drop down , the second drop down's enumeration (which populates the slTypeDetails field of Selector fact) would use the chosen value from the first drop down to populate the values for the second drop-down dynamically. How to achieve this requirement?

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content