Name a row in pivot table with a variable

Stimulsoft Dashboards.JS discussion
Post Reply
akrason1
Posts: 10
Joined: Thu Feb 24, 2022 11:29 am

Name a row in pivot table with a variable

Post by akrason1 »

Hello,

is there a way i can name a row in the pivot table but with a variable? i tried to rename it and put the name of the variable but it just stays as if its a string and not a variable.

Thank you.
Attachments
stimulsoft1.PNG
stimulsoft1.PNG (4.41 KiB) Viewed 9543 times
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Name a row in pivot table with a variable

Post by Max Shamanov »

Hello,

Please check the property "Label" for columns in pivot table.

Thank you.
Attachments
Designer_M1KTLVLZHY.png
Designer_M1KTLVLZHY.png (91.76 KiB) Viewed 9539 times
akrason1
Posts: 10
Joined: Thu Feb 24, 2022 11:29 am

Re: Name a row in pivot table with a variable

Post by akrason1 »

Hello,

I tried that but it only works as a string, if i put the variable name i created it just stays as the name of the variable instead of the value.
stimuls1.PNG
stimuls1.PNG (5.26 KiB) Viewed 9536 times
stimuls2.PNG
stimuls2.PNG (20.07 KiB) Viewed 9536 times
Thank you.
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Name a row in pivot table with a variable

Post by Max Shamanov »

Hello,

Sorry, unfortunately it's not possible.

Thank you.
akrason1
Posts: 10
Joined: Thu Feb 24, 2022 11:29 am

Re: Name a row in pivot table with a variable

Post by akrason1 »

Hello,

It's a shame but thank you anyway.

Is there a way to get the element and hide it? Im using JS Dashboard version, i saw there is a method "getComponentByName", but i dont know if there is a way to hide the element once i get it.

Thank you.
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Name a row in pivot table with a variable

Post by Max Shamanov »

Hello,

You can try to use the following code for :

Code: Select all

report.getComponentByName("Gauge1").enabled = false;
Thank you.
Post Reply