Hi,
I have successfully set up A CMP with a MigXdb grid that displays data from a custom package. All is working as expected (add, edit, delete of records etc), except that our TV's are not validating as expected when the done button is clicked (despite us specifying that a blank value should not be accepted in the TV). This means that fields that should be a requirement are not being completed, the user will not be informed of the error and empty values are being entered in our tables. I would also like to process one of the table field values (an id integer) to be entered automatically on submission 'behind the scenes' without any involvement of the user.
Having searched the forums I have found this post:
https://forums.modx.com/thread/82862/migxdb-validate-custom-tvs which details the issue to some degree and I understand that I need a custom processor to check for these empty values and return an error on form submission. However this seems to be referencing an example setup that we have not implemented (childresources). We have just build our MigxDb implementation directly based on the gallery management example.
Is there anywhere I can read about about implementing a custom processor when the form data is saved? Or is there anyone that can give me a brief explanation as to what I should be doing to check these values have been filled before they are submitted to the db.
Thanks in advance for any assistance.