Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Service response must ensure that main model recalculates #4178
As things stand, we don't have cross-model dependencies in our XForms engine.
If a service runs (in particular "after the controls are ready"), the service response is stored into a separate
However, certain users have a separate custom model which feeds from the service response directly upon
Ideally, this shouldn't be done, and the user should use a dataset. But we can address this by forcing this upon a service response:
<xf:recalculate model="fr-form-model" xxf:deferred="true"/>
This will not cause an immediate refresh but will make sure the main model recalculates before the next refresh even if there are no other action responses such as setting control values. In general, there will be, and there will be a recalculate/refresh anyway, so the performance is typically not impacted.