Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
puneetagarwal
Partner - Creator II
Partner - Creator II

Title change by selections dynamically using Button

Hi All,

I have requirement where the chart title should change after clicking on 2 buttons.


Eg: Let's say I have button called "AB"  it contains (MTD,YTD,QTD) and another Button "CD" which consists of Accounts (Savings,Fixed,Current) so after selection of buttons from AB and CD respectively the Chart name should display as 
"MTD-Savings Chart" , "YTD-Savings Chart", "QTD-Savings Chart","QTD-Current Chart" and so on.. 

Note: We tried using getfieldselection but it works for the field not buttons. Please help on this.

TIA

Regards,

Puneet Agarwal

1 Solution

Accepted Solutions
ajaykakkar93
Specialist III
Specialist III

HI,

I think you are using navigation button to do so, i.e. you are using variable to switch your variable/expressions.

I suggest you make a inline field for the same YTD,QTD etc...  Use hide prefix on the inline field to hide it in selection bar,

now using if condition you can switch expressions/variables + you can call the field name in getselection method.

PFA the attached application.

Way to perform :

1) go to load editor and add set hide prefix as underscore

            SET HidePrefix = '_';

2) Make a inline for filter :

Filter1:
load * inline [
_Filter
YTD
QTD
MTD
];

 

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

View solution in original post

2 Replies
OmarBenSalem

Why are using 'buttons'? and not filters?

I u create these as filters, and u select the value u want to select; the title would be :

Field1&' by '&Field2

ajaykakkar93
Specialist III
Specialist III

HI,

I think you are using navigation button to do so, i.e. you are using variable to switch your variable/expressions.

I suggest you make a inline field for the same YTD,QTD etc...  Use hide prefix on the inline field to hide it in selection bar,

now using if condition you can switch expressions/variables + you can call the field name in getselection method.

PFA the attached application.

Way to perform :

1) go to load editor and add set hide prefix as underscore

            SET HidePrefix = '_';

2) Make a inline for filter :

Filter1:
load * inline [
_Filter
YTD
QTD
MTD
];

 

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting