Reference Qualifier

nameisnani
Mega Sage

Hi Team ,

 

As u can see in the below image , Here i have added sub- category and application category based on the category selection . it is OK in Platform level . 

SunilKumarPadh_0-1683014108680.png

 

If u can see in the portal it is not showing 

SunilKumarPadh_1-1683014253591.png

 

How to update my reference qualifier 

SunilKumarPadh_2-1683014285834.png

 

My Reference Qualifer 

 

javascript:if(current.variables.subcategory=='CFS Edge') 'element=u_application_category^name=incident^value=Platform Support'; else 'name=incident^element=u_application_category^dependent_value=Lighthouse';

 

 

Thanks

 

@BharathChintala 

@Community Alums 

@Prince Arora 

@Gunjan Kiratkar 

@Sagar Pagar 

@Ankur Bawiskar 

1 ACCEPTED SOLUTION

itsRakesh
Kilo Sage

@nameisnani 
Try the below

javascript:if(current.variables.subcategory=='CFS Edge') 'element=u_application_category^name=incident^value=Platform Support'; else if(current.variables.subcategory=='Bottomline SWIFT Gateway')'name=incident^element=u_application_category^dependent_value=Bottomline SWIFT Gateway';else 'name=incident^element=u_application_category^dependent_value=Lighthouse';

View solution in original post

19 REPLIES 19

Not sure if it matters, but check your syntax in your Reference Qualifier.  For some reason on this site, when you post code snippets that have a Colon in them it changes the syntax to:

 

StevenParker_0-1683029476642.png

 

Typically it's just "javascript" with a colon after it.  On this forum, if you type Javapscript with a colon after it, you get this

 

javascript:

javascript:

javascript:

 


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

Hi @Steven Parker 

 

You mean like this 

javascript; var query; if(current.variables.subcategory == 'CFS Edge') query = 'element=u_application_category^name=incident^value=Platform Support'; else query = 'name=incident^element=u_application_category^dependent_value=Lighthouse'; query;

 

is this right one , @Steven Parker  please confirm  

That's a semicolon after javascript.  You need a colon.  Like this (2 examples below):

 

Hello:

Syntax:

 

Notice I can write Hello or Syntax with a colon after it on this forum, but as soon as you write javascript with a colon after it you get this

 

javascript:


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

Hi @Steven Parker 

 

After updating also , still i am not getting values which is shown in snip 2 

 

Snip 1 . 

SunilKumarPadh_0-1683030540924.png

 

Snip 2 

SunilKumarPadh_1-1683030666330.png

 

 

 

I am not getting values of sub cateogory ' Bottom SWIFT Gateway '

SunilKumarPadh_2-1683030747674.png

 

 

@Steven Parker  Please help me in this.

 

itsRakesh
Kilo Sage

@nameisnani 
Try the below

javascript:if(current.variables.subcategory=='CFS Edge') 'element=u_application_category^name=incident^value=Platform Support'; else if(current.variables.subcategory=='Bottomline SWIFT Gateway')'name=incident^element=u_application_category^dependent_value=Bottomline SWIFT Gateway';else 'name=incident^element=u_application_category^dependent_value=Lighthouse';