- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2024 10:19 AM
I am creating a scenario where I have to populate dashboards based on the selection of owner variable (reference to user table) value on catalog item.
I have written the script working on the background script but I am not getting how to call this script include at the reference qualifier Can someone help me with this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-23-2024 12:13 AM
@akankshak15 - Use case has some exceptions as one dashboard owner can have multiple dashboards assigned.
However you can adjust that change later in the script includes.
1. You need to have a on change client script on the Dashboard owner field which will call a script include where you will pass user sys id and return the dashboards sys id.
2. In script include you need to query pa_dashbords table putting query for the owner and return the sys id.
3. After receiving the sys id in the client script just use the form set value to set the value for dashboard variable using g_form.setValue()
Let me know if any concerns
---------------------------------------------------------------------------------------------------
Please mark my answer as helpful/correct if it resolves your query.
Thanks,
Nilesh Wahule
---------------------------------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2024 11:01 PM
I have written a client callable script include and on change client script but not able to handle response of script include .. getting correct result when i have run the script include in background script
Script Include:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2024 11:28 PM
Hey @akankshak15 ,
Can you provide more context for use case ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2024 11:39 PM
I wanted to populated dashboards name in the variable , based on selection of the 'Dashboard owner' variable value
ex. if i will select Abel in 'Dashboard Owner ' variable then in 'Dashboard ' variable all the dashboard name should populate where Able is owner of the dashboard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2024 11:53 PM
@akankshak15 - What you want to have a reference dynamically based on the owner selected.
You have a variable called "Dashboard" on the catalog item along with one more field as "Dashboard Owner", so whenever the Dashboard owner is changed, you need to show auto populate the dashboard variable.
Is my understanding correct ?