Record Producer dot walking does not work.

Vaishnavi35
Tera Guru

Hi,

 

I have created Program variable and added choices to it.

I have added Program field dot walking from Demand form onto the Idea form. Whatever value I choose on the variable should go to the idea form field.

 

current.idea.demand.primary_program = producer.u_program 
 
Vaishnavi35_0-1717431876987.png

 

 

I am writing this in the record producer itself. For "cost center" its working fine. For "program" its not working fine.
 
Thanks,
Vaishnavi
6 REPLIES 6

swathisarang98
Giga Sage
Giga Sage

Hi @Vaishnavi35 ,

 

You cannot dot walk for current and set the value, instead Gliderecord to that table and update the field.

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

Hi,

 

Vaishnavi35_0-1717431737376.png

 

I am writing this in Record Producer itself. For "cost center" its working fine.

 

Thanks,

Vaishnavi

 

Amitoj Wadhera
Kilo Sage

Hi @Vaishnavi35 ,

 

You have to do something like this:

var demandGR = current.idea.demand.getRefRecord();
demandGR.primary_program= producer.u_program;
demandGR.update();

 

If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.

 

Thanks,

Amitoj Wadhera

Is this Business rule?? Where do I write this script?

Thank you!