Setting a Reference and corresponding dot walked fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 09:39 AM
Hi Team,
I am not sure if this is technically feasible and hence thought of reaching out to the group.
Current Layout :
On my timecard, I display resource plan which is a reference field and I display the corresponding dot walked fields of Resource Plan which are rp.group resource, rp.task , rp.task.projectname and so on...
What is working :
If I am on the time card and manually populate the resource plan , all the corresponding 1st level dot walked fields and 2nd level dot walked fields are auto-populated . And I assume this happens automatically (No manual script written)
What is not working :
I am trying to write an OnLoad script in which I populate the resourceplan value. The subsequent 1st level fields are again getting auto-populated (no script written) but the 2nd level fields like project name and manager are not getting populated.
I have tried n number of combinations on the script but it is not working at all.
I tried setting the 2nd level fields as well but the problem here is that they are not reference fields but '+' (dot walked) fields.
via OnLoad:
manually if resourceplan is populated:
Any help is much appreciated.
Regards
Nitin
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2016 06:39 AM
Unfortunately, it is not getting me any value.
This what I get in the developer tools window.
gr.u_resource_plan.getDisplayValue is not a function .
I am really not sure why the auto-populate does not work.
I am also not sure if we can set values for these '+' fields ...(dot walked and not referenced) ..
REgards
Nitin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2016 06:42 AM
Sorry for the misinformation. I lost track of what was being done on the server and what was being done on the client. Because of the complexity of this and the inherent challenge with communicating concepts and solutions like this over the community, I recommend reaching to professional services from ServiceNow or one of our partners. Apologies for not being able to create a quick solution for you on this one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2016 06:59 AM
no worries at Chuck.
Your inputs are always appreciated.
Regards
Nitin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2016 04:28 AM
Hi Nitin,
Did you get any solution for this requirement?
I have exactly the same requirement.
Please help..!!
Regards,
Bhoomika