Access checked rows in details editor from master dialog and save #7303
-
Hi All, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Please any help will be greatly appreciated, I know its wrong to tag a user but am stuck at this point. |
Beta Was this translation helpful? Give feedback.
-
@minhhungit , please can you assist me |
Beta Was this translation helpful? Give feedback.
@rhemasystems To achieve this, I guess you can get selected rows from this property
this.from.YourDetailGridField
(I don't remember exact the sub-method you can use). Next, you can customize the save entity by overriding the getSaveEntity() method:Serenity/packages/corelib/src/ui/dialogs/entitydialog.tsx
Line 539 in 8e4d90f
Once all the necessary information is prepared and sent to the server-side, you can implement your desired logic in the Save Handler to handle the data as needed.