- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2022 06:30 PM
Hello,
I have a UI Action('Config Complete') in a child record that I create by associating it with a parent number.
When this UI Action is pressed, the value of the group and owner of the child record is passed to the specific item (for example, info such as Assignment Group and owner) to be kept by the linked parent number(its 'Pass Number'), and the value of the Assignment Group and owner of the child record is passed, and it is set and updated.
For example) When the UI Action ('Config Complete') in DEM0001135 is pressed, the 'Assignment Group' item in DEM0001131 is overwritten and updated with the value of the 'Assignment Group' item held in DEM0001135.
Alas, I wanna overwrite and update the value only if there is a change...
Any help would be appreciated.
Best Regards,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2022 06:40 AM
You are setting the value on a GlideElement and saving the current GlideRecord. Try this instead...
var parent = current.parent.getRefRecord();
parent.assignment_group = current.assignment_group;
parent.update();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2022 07:40 PM
Hi Mi,
In UI action try writing like below.?
current.parent.assignment_group = current.assignment_group;
current.update();
Update backend name of parent if not correct
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2022 05:07 AM
Hi,
Thank you .
I tried but it didn't work.
Regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2022 06:40 AM
You are setting the value on a GlideElement and saving the current GlideRecord. Try this instead...
var parent = current.parent.getRefRecord();
parent.assignment_group = current.assignment_group;
parent.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2022 07:06 AM
Hi,
Thank you so much.
I worked it!
Best Regards,