Hi.......
I am having the requirement on click of one choice in dropdown field. Need to show lists of more than 20 actions in the actions lists tab. I am not getting logic on this, Can someone help on this?
Discussion posts and replies are publicly visible
Hi, few questions before we answer,
Where are you using this drop down? What are the values in drop down?
Is this drop down a filter ?
yes it is filter.
item: a!dropdownField( showWhen: ri!actionTypes_txt <> cons!CR_TXT_PENDING_ACTION_TABS[2], label: cons!CR_LAB_PENDING_ACTION_FILTERS[4], labelPosition: "ABOVE", placeholderLabel: "--- Select a Value ---", choiceLabels: touniformstring({ index( cons!MODULE_NAMES, { 1, 2, 3 } ), "QA", "Action" }), choiceValues: touniformstring({ index( cons!FLOW_IDS, { 1, 2, 3, 5 } ), "Facilities" }), value: local!moduleId_int, saveInto: { local!moduleId_int }, validations: {} )
What about the data? Are you querying from process report and trying to show tasks in grid?
yes exactly
Ok. In this case pass selected drop down value In your query and then use query filter . Once you get filtered data ,you can show all items in the grid.
No the actual requirement is on click of credit action, currently getting those actions ,bcoz of this code
item: a!dropdownField(showWhen: ri!actionTypes_txt <> cons!CR_TXT_PENDING_ACTION_TABS[2],label: cons!CR_LAB_PENDING_ACTION_FILTERS[4],labelPosition: "ABOVE",placeholderLabel: "--- Select a Value ---",choiceLabels: touniformstring({index(cons!MODULE_NAMES,{1,2,3}),"QA","Action"}),choiceValues: touniformstring({index(cons!FLOW_IDS,{1,2,3,5}),"Facilities"}),value: local!moduleId_int,saveInto: {local!moduleId_int},validations: {})
Now ON click of credit ction,I need to get all actions not only that action, How do i get?
Hi, i am sorry but could not understand what are you trying to explain but if you want data based on any selections from the drop-down ,you would need to query the data based on selected value. There must be an expression rule which would take selected value from the drop-down as parameter for filters.