- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2016 02:49 PM
Hello world!
We have a document ID type field named "Trigger ID". This field is auto populated by the system which concatenates the related table and number. I need to find a way to parse out only the number (highlighted in yellow) so i can use to copy onto a new reference field on the same form. Any idears? Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2016 03:14 PM
HI Binh,
reference field accepts Sys_id's so, You can do a simple assignment and that should work.
gr.u_target_refereence_field=gr.u_target_id;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2016 03:14 PM
HI Binh,
reference field accepts Sys_id's so, You can do a simple assignment and that should work.
gr.u_target_refereence_field=gr.u_target_id;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2016 02:08 PM
Confirmed pulling the sys_id of the document ID worked.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2016 05:23 PM
If you want just the number value, do something like this (business rule example)
var display = current.u_trigger_id.getDisplayValue();
var number = display.split(' ')[1];
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2016 02:09 PM
Thanks for the quick reply Chuck!