Advance Reference Qualifier on catalog item varibles

keshav77
Tera Contributor
 
 
I have 2 variables in a catalog Item that both reference to the same cmbd_ci table.the first field is a list collector where the can select only cmdb_ci whoes class are business app the reference qualifier I mention out there is sys_class_name=cmdb_ci_business_app and the second varible to show the name of vulnerability application on the bases of source the refernce qulaifer I write is on the basis only source reference qualifier is like javascript: source=CheckMar^ORsource=BlackDuck"+current.varaibles.application but I want to add the asset Id in the name BlackDuck so we can easly differentiate the source as the have same name some time. what I can do in this case
 
1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

It sounds like you want to add the asset Id to the results that are displayed on the reference variable.  If the correct records are displayed, then you are done with the reference qualifier part.  There are two places you can add the asset Id.  The first is in the reference search dialog - when you click the magnifying glass icon on a reference variable/field.  This window is a list view, so just like any other, right-click the column header, choose Configure > List Layout, and move the field(s) from the Available side, to the Selected side, then re-order if needed.

 

If you want to add the field to the typeahead search results - so it appears in the list when typing a few characters, add to the Variable Attributes.  If you already have something in this field, add a comma to the end, then something like this:

ref_ac_columns=asset_id;serial_number,ref_ac_columns_search=true

separating the column names with a semicolon if you want to add more than one, then a comma for the next attribute to be able search on all of the displayed columns - so in this case the user could type *1234 to find records where the serial number, or any other field shown, contains 1234.