Grid Hierarchy - sub grid saving records error handling

0 Answers 52 Views
Grid
Jonathan
Top achievements
Rank 1
Jonathan asked on 24 Mar 2023, 04:45 PM | edited on 24 Mar 2023, 05:37 PM

I've followed code from the Grid Hierarchy demo to create a sub grid and have made it editable.

I have got validation and record editing working fine.

However I am struggling with creating new records. I have a constraint on the SQL table to disallow duplicate values (combination of 2 columns).

However I cannot seem to handle this error. Currently the UI adds the record, but doesn't create it in SQL.

I also noticed I cannot use decorate my controller action with HTTP post, as this yields a 404 error. Perhaps this is due to the sub grid.

Are there any examples there of a 2 level hierarchy grid with CRUD operations on the sub grid with error handling please?

EDIT: Does anyone know what this symbol means? I get this after trying to create a new record in the sub grid.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Jonathan
Top achievements
Rank 1
Share this question
or