Wappler Version : 3.8.3
Operating System : mac
Server Model: node
Expected behavior
When making multiple calls to a server connect and displaying those results, any and all data previously retrieved should be removed, and replaced only with current data results.
Actual behavior
Columns that have data on the first call, but are null on the second, display the data from the first call
How to reproduce
Create a server connect that will potentially return null values for some data:
First call:
Second call (aisle and possibleUnits now null):
Display these results in a table and notice that the values from aisle and possibleUnits are retained.
Note that using .default('') as provided in the previously reported bug does not work here.
From what I remember, this has been an issue since forever. I had a long discussion with Teodor I think more than an year ago.
This was said to be improved in one the recent updates, as Teodor pointed, but even in our experience, it did not.
So, as a workaround, we used another one of new options in recent updates - server connect reset.
For example, on click of button which loads the server connect with fresh data: sc1.reset();sc1.load()
You could also do the reset part on start of a SC I think. Haven’t tried myself.