Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Field event trigger not working with getactivesheetID

I have a field on which I am trying to apply Active Sheet Trigger.

To get currently active SheetID , i use the following syntax

vActiveSheetID=  chr(39)& right(getactivesheetid(),4)& chr(39) = 'SH01'

In field event trigger, I use the variable vActiveSheetID and it does not recognize the variable I have created.

But, when I hardcode the value 'SH01'. The trigger works just fine

Trigger Syntax: IF(getSelectedCount(InvoiceDate)='1','SH01','SH02') works fine

Variable Reference Sytanx =  IF(getSelectedCount(InvoiceDate)='1',vActiveSheetID,'SH02')

Can someone direct me what I am not doing correctly?

Much appreciate your time

Thank you

4 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

Try

Variable Reference Sytanx =  IF(getSelectedCount(InvoiceDate)='1',$(vActiveSheetID),'SH02')

Not applicable
Author

That did not help either

disqr_rm
Partner - Specialist III
Partner - Specialist III

Post a sample qvw here.

Not applicable
Author

Hi

Try to loose the chr(39) in your variable. The variable itself will be a string, and therefor you do not need them in your expression.