having issues understanding how to save changes of a multi-select checkbox options group to the database. I make the selections in the edit window, and save the record, but upon reopening, the changes are not reflected. Here is my edit controller code below:
public class RFIEdit extends AbstractEditor<RFI> {
@Inject
private FieldGroup fieldGroup;
@Inject
private ComponentsFactory componentsFactory;
@Inject
private OptionsGroup optionsGroup;
@Override
public void init(Map<String, Object> params) {
super.init(params);
fieldGroup.addCustomField("impacts", (datasource, propertyId) -> {
optionsGroup = componentsFactory.createComponent(OptionsGroup.class);
optionsGroup.setOptionsEnum(RFIImpact.class);
optionsGroup.setMultiSelect(true);
optionsGroup.setOrientation(OptionsGroup.Orientation.HORIZONTAL);
return optionsGroup;
});
}
}
I’m not sure what additional code i need to add in order for the database to accept the changes.
Thanks.