I have a server-connect data (myJSON) that has two-level of parent-child data (department & employees) and is rendered using parent-child repeats (screenshot below).
I have two variables on employee-level that holds the salaries of 2019 & 2020 for each employee. And this is used on department-level to show the total salary of the respective years using this formula:
This works perfectly when loading the page… until… I have button when clicked, reloads the my server-connect with amended data. When reloaded, looks like everything is broken in the repeats.
When I look at the dmx.app.data after reload:
I see that only the parent-level repeat has loaded only the data
The two variables on parent-level repeat hasn’t loaded (not visible)
Child-level repeats and the two variables within it hasn’t loaded (not visible)
.
I assume this is a bug as it’s logically not working to my eyes. Any help would be greatly appreciated, have been a great blocker. Thanks in advance.
I have also tried printing the parent-level data after the child data has loaded (like below) to see if it’s a DOM loading sequence issue, didn’t help, same issue persists.
The error comes somewhere from your server action.
Are you trying to use a default formatter somewhere, as the error points to a non-existing one - probably you entered somewhere defaults instead of default ?