How to auto refresh the program or particular panel using H5 script. I have added a button on a panel and calling the API transaction. I need to auto refresh the panel once API execution gets completed.
Can anyone suggest on this?
Thanks in advance.
Hi Pranoti,
this.controller.PressKey(“F5”); should work. Have you tried this after the api execution and its response is completed.??
Try to use delay with await function if incase it gives response bit late or if it causes any issue.
Hope this helps
Hi !
Note also that at after this.controller.PressKey(“F5”) the scripts atached on panel will be restart too.
So maybe need to storage data to session or instant cache.
Br Jyka
Thank you. It worked.
Run the refresh inside a Timeout
setTimeout(function () {
this.controller.PressKey(“F5”);
}, 100);
Remember that API call can be sync our async....