Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to re-set "Requested for" on Request and Requested Item

Dyong
Tera Contributor

I have used the following code on REQ table to update the "Requested for" on Request based on "Requested for" variable.

 

The "Requested for" on Request was updated as expected, but the "Requested for" on Request item was only updated its Display Value of the "Requested for", but its XML value is not updated (I opened RITM record xml by "Show XML".  It looks like database value is not updated.  Any suggestion?

 

 

Dyong_0-1701914725288.png

 

1 REPLY 1

Peter Bodelier
Giga Sage

Hi @Dyong,

 

You are not updating anything on requested item, only on request.

 

You'll have to add in your loop as well:

grRITM.requested_for = grRITM.variables.requested_for;

grRITM.update();

Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.