- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2014 01:07 AM
Hi Guys, I am trying to set the default value of the caller field. The below code is already there, I want to show only the caller who are active could you please help me with the rest of the code?
javascript:incidentGetCaller();
Solved! Go to Solution.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2014 01:16 AM
No need to change the default value if you only want to return active users, just update the 'Reference Specification' tab and the Reference Qual Condition to ACTIVE is TRUE.
Then if you don't auto-populate the caller field with the current user and need to lookup users, it will only return active-true users, is that your intention?
By default that incidentGetCaller() will autopopulate the caller field if the user logging the incident is not an itil user, otherwise it presumes they are logging a call on behalf of someone so will use the reference qualifier to only show you active users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2014 01:16 AM
No need to change the default value if you only want to return active users, just update the 'Reference Specification' tab and the Reference Qual Condition to ACTIVE is TRUE.
Then if you don't auto-populate the caller field with the current user and need to lookup users, it will only return active-true users, is that your intention?
By default that incidentGetCaller() will autopopulate the caller field if the user logging the incident is not an itil user, otherwise it presumes they are logging a call on behalf of someone so will use the reference qualifier to only show you active users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2014 01:17 AM
Hi Vikrant,
If you want the caller field to be populated by the Logged in User, the code for that would be:-
javascript:gs.getUserID().
If you want to show only the active users on look up, add active=true in the reference qualifier field of the dictionary entry of the caller field.
Thanks,
Subhajit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2014 01:18 AM
Yep - javascript:gs.getUserID(); is one of the most valuable strings to use in filters and form etc!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2014 01:43 AM
Thanks Guys, Sorted.