on ‎2022 May 06 3:27 PM
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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.