113
Views
3
Comments
Ajax Refresh of a web block does not update data on screen
Application Type
Traditional Web
Service Studio Version
11.53.37 (Build 61887)

Hello everyone,

I have a popup with the following structure:

The webblock shown here inside the "SecondChild" container has several inputs which are feed by a local variable. When the user clicks a certain button I update the value of the local variable and do aa refresh of the "Parent" container and the following happens:

  1. Add widgets inside "FirstChild" container get refreshed and data is updated on the UI
  2. The preparation of the web block inside "SecondChild" container is triggered and using debug I can see that the input values are updated and correct, the local variables of the web block are all assigned the expected and correct values.
    1. The local variables  are used to feed 4 "Edit Record" widgets
    2. Despite the local variables having the correct and updated value, the UI still keeps showing the values that were there before the Ajax refresh.


Any idea of what might be happening here?

Thanks

UserImage.jpg
Narendra Maheshwari

Hi Pedro,

In a traditional app, you must refresh your UI widgets whenever an associated variable's value changes. This is the only thing missing; you try to refresh your UI widgets on the callback handler.


Please let me know if you require any additional information. Otherwise, simply sharing your OML will make it easier to understand.


Thanks,

Narendra



2020-01-21 17-23-11
Pedro Alves

Hello Narendra, 


I'm not sure you understood what the issue is. The web block is being refresh with an Ajax Refresh and the preparation of the web block is triggered. And that is normally enough for all the content of the web block to be rendered again. But for some reason it is not working in this case.

OML cannot be shared for obvious reasons, this is a customers applications.

2022-05-02 13-50-49
Paulo Ritto

Hi Pedro,

I understood your problem but this is highly "suspicious" if you debugged and the values seem right, but then the UI still shows the old values. It never happened to me before but I would gladly take a look into it if you are able to simulate the same problem in a sandbox (ofc without the customer data) and provide that sandbox .oml. 

I tried to do the same in a sandbox and couldn't replicate so... If you can, please let me know so I can try to take a look and help you


Cheers,

Paulo

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.