Pass Dynamic values from condition builder to scripted filter

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2020 10:35 AM
Hi
I have developed the scripted filter that is working as expected with static values as a parameters. Now I am trying to make it 100% dynamic and to achieve this I need to pass dynamic values from condition builder to my classless script include. i.e. First param should be the Table name on which I am applying my filter and 2nd param should be the field name selected in the condition builder. See the screenshot below
Any help would be highly appreciated.
Thanks & Regards,
Sharjeel
Muhammad
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 01:42 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 01:47 PM
Hi Kristoffer,
Thanks for your response.
Yes, we can pass static values that I have already got working. Now, I am trying to pass the dynamic values, let say you are applying filter on incident table so it pass incident as the table name without asking me to manually enter incident as a parameter to function.
Thanks & Regards,
Sharjeel
Muhammad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 03:39 PM
Hi,
Just wanted to say that I've seen this and have been trying a few things on my PDI, but unfortunately, not getting any results. I feel like it should be possible, but none of the "documented" approaches seem to work.
This is gonna be one of those things where it'll be annoying not to figure it out, haha.
I'll keep looking, but I definitely get what you're trying to do.
-Allen
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 03:52 PM
Hi Allen,
Thanks for you response.
Yes, I have spent several hours before posting the question. I also, tried every single approach that I could but got no luck.
I am still on it, if something worked for me I will share here for sure. Its literally annoying but a good challenge.
Thanks Again,
Sharjeel
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 03:48 PM
You might have to use a List banner button UI action to read the filters and apply the them dynamically. You will need that extra click 🙂
Vinod Kumar Kachineni
Community Rising Star 2022