- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2022 01:26 PM - edited 10-28-2022 01:27 PM
Hi everyone,
how can I populate a user reference field with created by user of the record?
Thanks for help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2022 03:27 AM
@JohnDF - Create the dictionary overide on the cmdb.owned_by as the field is cloned down from there. see the below screenshot.
Solution2: You can write an onBefore insert BR on the table, condition: class: service and just set the field value
current.field_name = gs.getUserID();
As in your case you are letting users to change the value anytime.
Abhit Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2022 01:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2022 02:18 PM
@Mike Thanks for reply.
I cant set the default value.
I tryed a ditionary override and its working neither.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2022 02:21 PM
I should specified, the default value only works for future records going forward.
Did you want to update existing records?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2022 12:57 AM
The reference should be filled when creating the record with the created by user. But later it should be possible to change the reference with another user when I want to Update the record.