Order Guide - Catalog Items

RonHolton
Kilo Explorer

Looking to display list of Catalog Items - Laptops in a Order Guide.

Created a Variable - Lookup Multiple Choice

Lookup Table:   Hardware Catalog: pc_hardware_cat_item

Lookup Value Field: name

Displays all items.  

I would like to be able to display only those Catalog Items that are "Available at Location" based on a Order Guide variable "Location" and/or the values on the related table "Available at Locations: sc_cat_item_location_mtom"

Just looking to provide the same functionality that a Category View of a Service Catalog Items does.

When you open a Order Guide...

There is no reason why you should not be able to display a list of items, in a Category View, that a person can select the item and then be presented a tab for item variables.

Sometimes we know the persons GEO in SN before using the form but other times we are collecting it as a new employee.

Thanks for your help...

Mentioning some experts as well.

Aaron IsbellAndrew VenablesGeoff CoxCal WallaceThomas McGee

2 REPLIES 2

adiddigi
Tera Guru

You can write a reference qualifier, and return sys_ids or conditions that you the lookup to show.


You can access the variables on the form using `current.variables.<variable_name>`. Here is a page on Reference Qualifier that will help you:



http://wiki.servicenow.com/index.php?title=Reference_Qualifiers



Also, you created this discussion in a group. This makes it difficult for everybody who aren't in the group to reply to your question. Next time you might want to create discussions in spaces where everybody can see and answer your questions.


andrew_venables
ServiceNow Employee
ServiceNow Employee

It sounds like you are trying to use a dynamic reference qualifier on a catalog item?



If so then i believe this is not possible without hacking the UI somehow. A catalog item does not behave like a record form does, this would be easy other wise.



I have had this requirement many times and it is not possible to change the reference qualifier based on another variable on the item. A solution maybe possible by hacking the variable somehow but there is nothing in the API i am aware of. Or you have to workaround by adding a variable for each of the choices in the Location variable(!)