- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2024 04:02 AM
I have a Variable Set (existing_printer) inside my record producer, I want to check value of a variable from variable set in my record producer script. I tried using producer.<variableSet_name>.<varibale_name> as below:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2024 04:30 AM
producer.existing_printer[0].what_type_of_department_printer == "HOD"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2024 04:15 AM
That should be the way to call it. Can you add logging to see what it returns?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2024 04:16 AM
Hi @sneha_chauhan ,
Even it's the value of a variable set,
we use, producer.variable_name, where variable name is the name of the variable set.
Hope this information helps you. Kindly mark it as Helpful and accept the solution!
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2024 04:21 AM
producer.variable_name is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2024 04:54 AM
Hi @sneha_chauhan ,
I believe the variable set you are using is Multi - row variable set.
My answer is single - row variable set.
Regards,
Najmuddin.