- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 12:28 AM
Hi Folks,
We are creating a Record Producer for Hardware table and in this we want to populate Model field as per he Model category selected by the user.
For example : If user has selected " computer " as the Model category then the Model field should show dropdown related to Computer
We have tried Refrence Qualifer but it is showing the whole Model Table data
Tables used:
Model category: cmdb_model_category
Model : cmdb_model
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 01:12 AM - edited 03-19-2025 01:18 AM
You could use a lookup select box type variable with following details:
This works for me.
You can use Reference type variables with the reference qualifier as 'javascript: 'cmdb_model_category='+current.variables.<variable_name_of_model_category>;'
Please check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 12:31 AM
So it means your ref qualifier is not working correctly.
I could see both the variables are Lookup select box
Model Category refers to which table? share variable configuration screenshot and also what's the lookup value field
Model variable refers to which table? share variable configuration screenshot and also what's the lookup value field
what ref qualifier is applied?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 12:57 AM
Hi Ankur
As I have mentioned earlier :
Tables used:
Model category: cmdb_model_category table
Model : cmdb_model table
Model Category
Model
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 01:20 AM
Hi @Preksha Kapoor ,
Can you share the script include to see if there is any issue with the code?
Regards,
Rohit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 01:12 AM - edited 03-19-2025 01:18 AM
You could use a lookup select box type variable with following details:
This works for me.
You can use Reference type variables with the reference qualifier as 'javascript: 'cmdb_model_category='+current.variables.<variable_name_of_model_category>;'
Please check.