- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2022 07:07 PM
Hi Guys,
I hope Everyone is fine.
I have an requirement of the reference qualifier to restrict the value of the another field. So I need to get the current value of that field from script include. In which way, we can use current object in Script Include. Kindly help me to do this requirement.
Thanks and Regards,
Navinkumar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2022 07:41 PM
Hi @Navin kumar,
You have to pass the current field value as a parameter to Script include and use it in SI for querying records.
For Table Fields -
javascript: new ScriptInlcudeNAme().functionName(current.field_name, current.field_name1);
For Catalog variables -
javascript: new ScriptInlcudeNAme().functionName(current.variables.variable_name1, current.variables.variable_name2);
Take a look at old thread -
Call Script include from Reference Qualifier
Using Advanced Reference Qualification in Catalog Variables
It will help you.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2022 07:39 PM
Hi @Navin kumar ,
Please follow below link you will get an idea how to pass current object in script include from reference qualifier:-
I hope this helps
Please mark my answer correct if this helps you
Thanks
Mohit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2022 07:41 PM
Hi @Navin kumar,
You have to pass the current field value as a parameter to Script include and use it in SI for querying records.
For Table Fields -
javascript: new ScriptInlcudeNAme().functionName(current.field_name, current.field_name1);
For Catalog variables -
javascript: new ScriptInlcudeNAme().functionName(current.variables.variable_name1, current.variables.variable_name2);
Take a look at old thread -
Call Script include from Reference Qualifier
Using Advanced Reference Qualification in Catalog Variables
It will help you.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2022 08:59 PM
Thanks @Sagar Pagar Your answer helped me to do my task thank you so much