How to hide the checkbox variables in Ritm when they are unchecked and show only checked variables

Karthik Reddy11
Tera Contributor

How to hide the checkbox variables in Ritm when they are unchecked and show only checked variables

 

find_real_file.png

It is showing all variables 

can i know which catalog client script i should use

1 ACCEPTED SOLUTION

@Karthik Reddy 

Okay then in that case first revert the changes which I suggested above and make your Line number 10 look like below:

 <div ng-if="variable.type !='7' || (variable.type =='7' && variable.display_value!='false')">

Now for your new requirement, update line number 25 as below:

 <span ng-if="variable.type !='7'" ng-switch-default class="pre-wrap">{{::variable.display_value}}</span>

This is working as you need.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

21 REPLIES 21

Code looks correct to me. Can you confirm on below points:

1) Can you refresh your instance cache which you can do by typing "cache.do" and hit enter in Application Navigator menu

2) Can you confirm like for example "Docking Station" is a variable or some custom macro where a widget is being used on your catalog form?

3) Can you confirm the checkbox on the form is a variable only with the value of it being 7 which you can check by going to Variables table and then open that Variable record and Right click on the header and then click on Show XML.

Then search for by doing Control + F and check the value of type is 7 on variable form or not.

This works perfectly well for me in my PDI.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hi Shloke

It's working fine now 

Thank you so much!

Hi shloke

now I don't want to see the name 'true' only for check box variables 

Here after i did changes in variable summarizer widget.

Line: <span ng-switch-default class="pre-wrap">{{::variable.display_value}}</span>

find_real_file.png

 

after changes to 

Line: <span ng-switch-default class="pre-wrap"></span>

here i removed {{::variable.display_value}} I can't see the requested for and IT manager name below the variables 

How to exclude the value if the variable type is checkbox

my question is i want to see the names for requested for and IT manager variables only 

find_real_file.png

 

@Karthik Reddy 

If you do not want to show Checkbox type of variable then you need to modify the same line of code as explained above i.e. Line Number 10 and update it as below:

<div ng-if="variable.type !='7'">

This works for me in my PDI.

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hi shloke

i want to see checkbox variable name but i don't want to see 'true' name below variable  only for check box variables 

find_real_file.png