Wappler Version : 1.9.7
Operating System : Windows 10
Expected behavior
Calling a server connect’s load event should update the data shown on the UI.
Actual behavior / How to reproduce
A repeat children section is set with server connect as the data source.
User enters some data. Clicks save to submit the form. The data is NOT updated on the server for some reason. Response is 200 (which is how my system works).
On response, I re-load the source server connect of repeater.
The text box still shows the old value - even thought the dmx-bind:value is set to server connect data field.
The issue, from what I understand is that the data in UI is not updated if the response data of server connect is same as current values.
So in this case, old value & new value for the text-box’s field is same - hence it does not update the value via dmx, and the value shown in UI is still the one user had entered which did not save.
Is there any way to force-reload the UI dmx-bind values? OR clear out the repeater, so it re-creates all elements in the UI?
This is the structure:
Repeat Children > Card > Form > Collapse > Textbox etc. & Submit Button
So each child in the repeater has a form of its own.
So on submit type save button, server connect form gets submitted automatically.
Then, on success of form, I call server connect's load method.
This server connect is bound with the repeater.
On page load, this server connect is is auto-loaded.
I still don’t really understand the idea behind this.
You update the data in your database, but you then want to refresh the data returned from the database? What’s the point of doing that?
You update “abc123” in the database, and you already have “abc123” in the input because you just used it to update the data.
That's half correct. I try to update value to "abc123", but it fails. So when I reload the server connect the value returned is "abc" (original value). But, the input still shows "abc123".