- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 09:13 PM
Hi All,
I have a requirement. I have UI action button 'Convert Ticket' . I have another table u_m2m_tasks_tasks table with column u_to. this u_to is reference column from task table only.
I want to put a condition on UI action to check whether current.sys_id is present on u_m2m_tasks_tasks table's u_to column and also query u_type is of value 'Conversion'. If present the UI action is should not be visible, it not present then visibile.
Plz help .
Thanks in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 09:18 PM
Hi @Supriya39 you may need to write a script include to glide u_m2m_tasks_tasks and return true/false based on logic,
then call this script include in UI Action condition to validate whether to make the button visible or not
Below link has the reference to implement the same.
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 09:18 PM
Hi @Supriya39 you may need to write a script include to glide u_m2m_tasks_tasks and return true/false based on logic,
then call this script include in UI Action condition to validate whether to make the button visible or not
Below link has the reference to implement the same.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 09:39 PM - edited 02-01-2024 11:46 PM
Hi Harish,
Thanks for responding. I created script include as mentioned. Find below screenshot.
Also Called it from ui action. Still failing

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 09:42 PM
Hi @Supriya39 there is a error in your script include at line 8. it must be gr.hasNext() not check.hasNext().
Harish