can you use a system property in a reference qualifier for a catalog variable

randrews
Tera Guru

we have a catalog item that lists   every region we have and a table that lists those regions... up to now we have been using a reference qualifier to limit the regions shown on catalog items based on what are applicable for that item...

 

the drawback to this is to add or remove a region has to go through a complete update cycle.. what i would like to do is create a system property that lists the regions that are available to that item and use it as the reference qualifier currently we use a reference qualifer of <for example u_businessunitidIN2562,11918,11974,11747,12183,11605,10811,10810,12375,3932,5074,6210,10801,5395,1872,5180,12293,1971,12781,6396,6838

 

inow how can i create a system property that lists those businessunit id's and reference that in the service catalog variable as part of the reference qualifier... i am thinking i can't since the get property is a glide script which isn't available as a client side function.

1 ACCEPTED SOLUTION

ohhgr
Kilo Sage
Kilo Sage

Hi Doug,



You can use the system property in a reference qualifier.



Just use



javascript:gs.getProperty("property_name");



Thanks,
Mandar


View solution in original post

4 REPLIES 4

ohhgr
Kilo Sage
Kilo Sage

Hi Doug,



You can use the system property in a reference qualifier.



Just use



javascript:gs.getProperty("property_name");



Thanks,
Mandar


that worked i must have mistyped originally set the ref qualifier to


javascript:gs.getProperty("fa.sc.agent_fast_system_access.agent_region");



and the sys property to


u_businessunitidIN2562,11918,11974,11747,12183,11605,10811,10810,12375,3932,5074,6210,10801,5395,1872,5180,12293,1971,12781,6396,6838



awesome thanks


tltoulson
Kilo Sage

Hi Doug,



Reference Qualifiers are actually processed server side.   So you should be able to easily create a ref qual that embeds something like 'javascript:fieldname=gs.getProperty('prop name')'


Monica Deshpand
Giga Contributor

Answer 

I had requirement to use reference qualifier in dictionary override of problem task assignment group field where it should fetch groups with type "ITSM or problem_only(custom type created)" and active=true groups only.

Here is how we can achieve it: (refer attached screenshot)

javascript:"active=true^typeIN"+gs.getProperty('aldi.group_type.sys_id.problem_only&ITSM') 

so basically you can call it in simple way as below:

javascript:"fielnameIN"+gs.getProperty('aldi.group_type.sys_id.problem_only')

e.g. javascript:"typeIN"+gs.getProperty('aldi.group_type.sys_id.problem_only') i.e.