Event configuration in Ui Builder for different databases inside one vertical bar.

Miikka_M
Tera Guru

Hi, 

In Ui Builder event configuration, is it possible to configure different destination links for one vertical bar's specific databases?

See picture attached. I have diagram which shows all open cases sorted with work groups / assignment groups. I'm trying to configure specific dynamic routing for each data shown on diagram.

For example when I click diagram which has number 3 on it, agent workspace should lead to list view of these 3 cases. Same way when I click diagram which has number 1 on it, list view with this one case should open. 

For now I'v only managed to configure it this way: Which ever bar I click, it opens case view with all open cases (from all assignment groups -> see pic below), not case view with that specific assignment group which bar I just clicked. 

Hope you'll understand what I'm trying to do!

Any tips / documentation for this? 

Best regards,
Miikka

1 ACCEPTED SOLUTION

Miikka_M
Tera Guru

I actually just solved this. 

In Ui Builder:

1. Click data visualization component active
2. Click events
3. Under "visualization clicked" -> Click "+ Add a new event handler"
4. Choose link to destination
5. Select destination
6. Choose Simple list
7. Enable dynamic data binding (by hovering mouse over specific database)
8. Add followings:
table: @payload.params.table
listTitle: @payload.title
query: @payload.params.query

See picture attached. 

Best,
Miikka

View solution in original post

4 REPLIES 4

Community Alums
Not applicable

Hi @Miikka Martikainen ,

You can follow this article :https://community.servicenow.com/community?id=community_article&sys_id=24e72505db7051102dc24f7813961...

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

Hi @Sandeep Dutta,

Thank you for answer and documentation. I checked the documentation and the video attached to it. I'm still not quite sure how to do event mapping for different bars in already existing data visualization vertical bar component. Should I do it from sys_ux_action_config?

See the picture attached, it should tell more than my words. Basically I don't know how to configure specific mappings for each bar inside one data visualization component.

Best, 
Miikka


Miikka_M
Tera Guru

I actually just solved this. 

In Ui Builder:

1. Click data visualization component active
2. Click events
3. Under "visualization clicked" -> Click "+ Add a new event handler"
4. Choose link to destination
5. Select destination
6. Choose Simple list
7. Enable dynamic data binding (by hovering mouse over specific database)
8. Add followings:
table: @payload.params.table
listTitle: @payload.title
query: @payload.params.query

See picture attached. 

Best,
Miikka

Point 6 is not available in my case for 'Card Base Container' having 'Data Visualization' as a 'Single score' Data visualization type.  

 

Any ide why it is not available?