How to call dynamic scripts in scoped application?

Rohan Madusanka
Kilo Contributor

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.

find_real_file.png

 

find_real_file.png

find_real_file.png

 

find_real_file.png

 

3 REPLIES 3

Markus Kraus
Kilo Sage

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
find_real_file.png

Hi @Markus Kraus ,

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.

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?