Skip to main content

Lobby Element changing values dynamically based on Filter selection.

 

For Example, we have a lobby element created with list of open Work Orders (requests)

By Default it should should all requests, however as soon as you select country, the same lobby element should filter the values based on Country selected and after state is selected, it should show the workorders associated to the selected state.

 

We can definitely create three different lobby elements with First one without condition, second one as request.user_def1 = “$COUNTRY$” (Just as an example)

And third one as

request.user_def1 = “$COUNTRY$”

request.user_def2 = “$STATE_PROV$”

 

But is it possible that the 1lobby element behaves in three different ways.

I tried with Just the third one and unless you select the values, it will show Zero results (and expectation is it should show the entire list)

Hi @RAQVVAIDYA ,

Did you try defining a SQL data source and define a condition statement according to you requirement. 

A condition containing  “OR” operator might do the job.

request.user_def1 = “$COUNTRY$” OR request.user_def2 = “$STATE_PROV$”

Regards,

Kalana.


If you need to populate the complete list of data when the filters are not defined, try using acase statement in the condition.


@Kalana Surendra : Thank you for the reply. Is there anyway you can give me an example of case statement on Condition in Datasource designer please.