cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

setVariable method performance degradation

rafal_skorupa1
Explorer
0 Likes
688

Hello Experts

I have dashboard with live connection to BW model with input variables. I noticed that setting variable value via script is much slower than setting it via standard build in prompt dialog.

When I am setting the variable via standard prompt I can see that GetResponse action for each widget is executed at the same time:

after submitting it looks like this:

When I change the same variable via script -it is executed in sequence. (All widgets are set to Application variables)

KPI_MTD.getDataSource().setVariableValue("CAMON_AUTH_COMP_CODE",DD_COMPANY.getSelectedKey());

Do you have any idea why it behaves like this?

Regards

Rafal

View Entire Topic
Bob0001
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi rafal.skorupa, it needs some more detailed anaylsis what exactly is slowing down here. However you can try omitting loading variable descriptions if acceptable in your scenario as the documentations says. This would safe you some requests.

Note: You can omit loading variable descriptions (which are displayed in the Prompt dialog and in dynamic texts) by setting the optional property loadDescriptions in the options to false.
rafal_skorupa1
Explorer
0 Likes

Hi Bob

Thanks for your sugestion. I tested it, but there was no improvement unfortunately. SetVariableValue still runs getResponse in a sequence -while prompt dialog does it in parrallel.