UI builder filter data resource based on @state.selected_value

Rahman4
Tera Guru

Hi there,

 

I have a UI Builder page where the user selects a Group [sys_user_group] from a dropdown and I need a Data Resource to filter all the related incidents. I basically want something like: Table=incident and Conditions=assignment_group=@state.group_selected but somehow this syntax doesn't work and I hope someone can guide me how to do this?

 

Please see the attached image...

 

Many thanks

 

Rahman4_0-1709247905174.png

 

5 REPLIES 5

Rahman4
Tera Guru

My requirement is very simple but not sure why it is not so easy in UIB 😉

 

Basically, the user selects a Group, it shows the Group Manager and all the Incidents related to that group in a List (I have got this bit working all good but currently I am using Filter on the List component, I would rather create a Data Resource hense Goupr Incidents and use them for all the components). The Visualizations are using the same data as List e.g. want to visualize Active vs close or Pie by Priority (this is for the selected group). Therefore, I wanted to use the same Data Resouce for all the components because at the end of the day they are the same data (incidents for the selected group). First I cannot get this filter working also, doesn't seem like I can bind the Visualization widgets to the Incident By Group data resource?

 

Rahman4_1-1709428514542.png