How to make another variable dependent on first variable record Producer

Prathamesh Cha1
Tera Contributor

Hi Team,

 

I am two variables, Products and Capabilities

PrathameshCha1_0-1724609796390.png

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"

 

PrathameshCha1_1-1724609974135.png

 

 

 

15 REPLIES 15

Kirthika D
Giga Guru

Hi @Prathamesh Cha1 ,

 

  1. Please specify the types of each variable. From the screenshot, products field look like a list collector. 
  2. If the above assumption is correct, try this reference qualifier. 
parentINjavascript:current.variables.product.split(',').map(function(id) { return "'" + id + "'"; }).join(',');

 

 

Hi @Kirthika D ,

 

I used "

parentINjavascript:current.variables.u_products.split(',').map(function(id) { return "'" + id + "'"; }).join(',');

"

but still showing no match found

PrathameshCha1_0-1724650414884.png

PrathameshCha1_1-1724650433492.png

Both the fields are list collector,

 

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.

Hi @Kirthika D ,

parent backend name,

 

PrathameshCha1_0-1724651198228.png

product backend name

PrathameshCha1_1-1724651264133.png

 

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 

PrathameshCha1_2-1724651359835.png

 

 

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.