How to make another variable dependent on first variable record Producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 11:19 AM
Hi Team,
I am two variables, Products and Capabilities
Here My requirement is only those capabilities should be visible who has parent=product that you have chosen in above variable.
Here is the example I have chosen product as "3AS_3DS Server"
then only those capabilities should be visible which has parent="3AS_3DS Server"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 10:13 PM
Hi @Prathamesh Cha1 ,
- Please specify the types of each variable. From the screenshot, products field look like a list collector.
- If the above assumption is correct, try this reference qualifier.
parentINjavascript:current.variables.product.split(',').map(function(id) { return "'" + id + "'"; }).join(',');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 10:34 PM
Hi @Kirthika D ,
I used "
parentINjavascript:current.variables.u_products.split(',').map(function(id) { return "'" + id + "'"; }).join(',');
"
but still showing no match found
Both the fields are list collector,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 10:35 PM - edited 08-25-2024 10:38 PM
Hey,
Replace : with :
Also, make sure the backend name for product variable name is correct as per your record producer variable & the parent field backend name is correct as per the capabilities table, in the scripted reference qualifier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 10:49 PM
Hi @Kirthika D ,
parent backend name,
product backend name
both are correct still giving me error, also I want to fir this query in the same means capabilities should not have record whose life of stage is not end of life
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 10:54 PM - edited 08-25-2024 10:54 PM
parentINjavascript:(use colon symbol)current.variables.product.split(',').map(function(id) { return "'" + id + "'"; }).join(',') + '^life_cycle_stage!=End of life;
Make sure "End of Life" is the backend value of the choice if Life Cycle stage is a choice variable.