Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

change selected value from script

Hi!

I have calendar object with 2 variables: nach_p and konec_p and field data_sale

and i have load script. in the end of script:

let start_period = date(today()-1-7,'YYYYMMDD');

also i have triger  - select in field data_sale with search string: 

='>=$(=date(nach_p,'YYYYMMDD'))<=$(=date(konec_p,'YYYYMMDD'))'

when i load data in calendar i see my nach_p and konec_p

, but nothing happend with data_sale field - there is no selection by nach_p and konec_p (only old selection)

but if i manuly change nach_p or  konec_p in calendar - triger works and selection is appear

why triger dosent work when variable changing in script?

please help

1 Solution

Accepted Solutions
Gysbert_Wassenaar

I don't think a (re)load can trigger actions from the script. Have you tried setting an action on the OnPostReload document trigger (and/or the OnOpen trigger)?


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

I don't think a (re)load can trigger actions from the script. Have you tried setting an action on the OnPostReload document trigger (and/or the OnOpen trigger)?


talk is cheap, supply exceeds demand
Not applicable
Author

thank you! it works