How to call dynamic scripts in scoped application?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 05:32 AM
Hi, I want to create dynamic filter in my scoped application. so I created Script include to get a array of sys_ids and called script include from a dynamic filter option and used in in a filter. but my script include is not executing (can't see 4th line of script in logs) when I execute the filter. Please find the below screenshots. I ran the "new GetSBUOfUsersToDashboard().getCurrentSBuOfUser();" in script -background window, then it is working. please help me to identify the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 09:26 AM
You have to add the scope prefix to the script include name:
Script: new x_782746_new_pro_0.GetSBUOfUsersToDashboard().getCurrentSBuOfUser()
Logging doesn't work with dynamic filter options unfortunately, instead however, you can use the script debugger:
1.) Click on the line where you want to start to debug
2.) Open the Script Debugger
3.) Do the List filter to make the script debugger run into the breakpoint
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 08:35 PM
Hi
Thank you for your response. I tried that one also and it is not working. seems like can't use dynamic filters in scoped application. so I want to know a workaround to achieve this scenario.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2022 12:09 AM
I've just tried it on a PDI and it is definitely working with scoped apps.
Does the script debugger not work?
Can you show us the screenshot of your Dynamic Filter Options again?