I have created a screen with 2 fieldGroups and some other input boxes outside of the field groups (all connected to the same datasource) and all the data creates/displays/updates correctly. I have also set a number of fields to ‘required’, however when the system is running it only checks the required fields in the 1st fieldgroup and ignores all the other required fields outside of this.
All the required fields are displayed with a red border so it appears the settings are correct, it just doesn’t check them at point of entity save.
Any thoughts would be appreciated as I am pretty stumped.
Hi.
Unfortunately, we cannot reproduce the problem. Could you please provide more information about your problem? Which version of the platform do you use? We will be able to help you if you send us a small sample project along with reproduction scenario that demonstrates the issue.
Hi.
Unfortunately, an entity combined screen does not support this functionality yet.
You can override the whole save() method from the EntityCombinedScreen.java class, or you can create your own screen based on this class functionality.
Thank you for reporting the problem. We have created an issue.
For anyone with the same problem. The following code in the controller resolves the issue as the validateAll() will check the validation of all fields on the screen:
public void save() {
if (validateAll())
{
releaseLock();
disableEditControls();
}
}