Passing variables from reference qualifier - service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 02:44 AM
Hello
I am trying to filter a reference field (cmdb_ci) with an advanced reference qualifier, which calls a script include. The script filters according to the variable `u_environment`.
when I tried it with the incident module it worked just fine, but when I used it in the incident in the service portal (record producer), it didn’t pass the variables, I also tried using current.variables.u_environmet inside the script include, but to no avail.
the reference qualifier is as follows:
javascript:new CIremove().removeRedundantCI(current.variables.u_environment);
Does anyone know why it might not work?
We are working in a closed environment so unfortunately I can’t provide any screenshots.
thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 04:10 AM
what type of field is u_environment in incident table? and what type of variable is "u_environment" on record producer.
If the field on form and variable type are same it should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 04:38 AM
The type of field in the incident table is choice and the type of variable in the record producer is select box, but their function is pretty much the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 05:00 AM
@Snow Tomcal make sure the backend value of choices in field and variable are same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 11:41 PM
The values are the same in both