Replies: 4 comments 6 replies
-
At this stage, modifying the partials of the Relation controller, or using a I'll convert this thread to an "Idea" thread, as it may be something we need to address in the future. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the feedback. If anyone is interested in this in the future, I have a note here. RelationController provides a lot of vars to the partial widget, but what I miss here is an unambiguous identification of the related model(s). When updating, the related model(s) can be addressed using relationship, because the |
Beta Was this translation helpful? Give feedback.
-
The related model being edited in the popup form. |
Beta Was this translation helpful? Give feedback.
-
OK, got it. It was very simple in the end. Action method onMyButton receives the
|
Beta Was this translation helpful? Give feedback.
-
Relation manage form has obviously hardcoded action buttons, either Create/Cancel or Update/Cancel, depending on the context. I didn't find any information about whether it is possible to add a custom button in the relation manage popup form via config.
The only option that worked for me was to copy the partial _manage_form.htm from the behaviour to my controller, rename it to _relation_manage_form.htm and edit the form in my controller.
Beta Was this translation helpful? Give feedback.
All reactions