- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 08:32 AM
Hi, I have a problem with my reference qualifier. Hope someone could give me a hint on point 5 and 6.
I've got an asset replacement form with some fields. The idea is to:
1. Choose an user (done).
2. Choose the project name assigned to this particular user (done).
3. Choose the opened incident number, where the user is the caller (done).
4. Choose the affected asset which is assigned to the above chosen user (done).
5. Auto populate the field with the model name of the above chosen asset (instead of one model name, I get a list to choose from - this is wrong, I should get the model name of the asset).
6. Auto populate the warranty expiration of the above chosen asset (instead of one date I get a list of multiple dates and I should get only the date of the asset).
The alm_hardware table looks like this:
warranty_end_date variable:
model_of_pc variable:
damaged_pc variable:
If any questions, please let me know, thanks!
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2022 08:36 AM
For warranry field please use the below:-
javascript:'display_name='+current.varibales.damaged_pc;
For model fields as well use:-
javascript:'display_name='+current.varibales.damaged_pc;
And make the checkbox Unique values only to true
Please mark answer correct/helpful based on impact.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 09:39 AM
I think it is because you are only basing it on one field. So It is going to pull all values that have the same warranty expiration date. Since it seems to be the same model you could try checking the box for unique value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 09:47 AM
If you are referring to the "Unique values only" option on the variable form, I have tried it before, unfortunately without success.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 09:43 AM
Tried this out: "javascript: 'warranty_expiration='+current.variables.damaged_pc.warranty_expiration"
but the result is still empty on the form.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 10:01 AM
You may need to call a client callable script include and use GlideAjex to get the data you want and just set the value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 11:42 AM
Hello
Can you please elaborate 5th and 6th point really did not understand exactly what you are trying to achieve?