How to use ViewParameter.refreshAllViewParameters?

Hi,

I’m currently loading values to a viewParameter through script. However, I don’t want to use the refreshAllAdapters() method, since I don’t want the visualization tied up to the viewParameter to load right away.

Can I use ViewParameter.refreshAllViewParameters? If so, can you give me an example on how to use this method?

Thank you very much

//Renzi

Hi Renzi,

I don’t think that .refreshAllViewParameters(). is going to help you as it’s just a short form for .refreshAllAdapters().

According to the documentation: Given many view parameters, this method will attempt to call refreshAllAdapters in a smarter way to avoid excessive requests when only a single adapter is the end target. If multiple adapters are the end target, then the first one found will be gathered into a single call, while the rest of the affected will be refresh as normal.

Maybe you should try using the Disable Data Auto Loading property to meet your needs?