I need some information regarding your parameter, what the parameter is all about?
Hello, thanks for your reply. There is a workbook parameter called Department which is used to filter data. After workbook loaded, my webpage calls changeParameterValueAsync(name, value) to set the parameter with user's department name. But after reloading, this workbook shows all data because of invalidate parameter value. Do you have any idea about why workbooks reload after a while?
I am just taking a guess here, but you did use your parameter in a calculated field right? Because if you have not done that then your parameter wont work.
If you have already done this then send a screenshot of your parameter and the workbook too if possible.
I'm not sure about whether I'm authorized to send a screenshot of the workbook because it's published to a Tableau server of our company. But I have an idea that my webpage calls changeParameterValueAsync method again to set the paramter right after the workbook reloads. And I find that a CUSTOM_VIEW_LOAD event is triggered when workbook reloading. So could I listen to this event to set the parameter? And are you familiar with the workbook reloading mechanism? I will appreciate it if you could share any information about this.