UI builder filter data resource based on @state.selected_value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 03:01 PM - edited 02-29-2024 03:06 PM
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
- Labels:
-
UI Builder : Next Experience
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2024 05:18 PM
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?