How to re-set "Requested for" on Request and Requested Item
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 06:11 PM
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?
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 04:08 AM
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.