How to listenTo beforeRelate
Collapse
X
-
So, I managed to get it done working.- I created a new JS view that inherits 'views/modals/select-records'
- Added in my "contact" clientDefs "modalViews" > "select' my custom view name
- The problem was that I also needed the id of the "account" is this case in my modal. After searching for a while and found nothing to get the caller/parent id nor scope I added 2 new parameters in my "src/views/detail.js" in the "this.createView('dialogSelectRelated'" which are "parentId" and "parentScope".
- Now I'm able to do what I wanted.
Comment
-
The fact that it's a professional project, not a personal one, means I'd rather not share the code.Comment
-
It's unfortunate that you couldn't post something as simple as pseudo-code after getting a lot of free help for your professional project. This community doesn't exist without contributions from everyone.Comment
-
Here is how you can do it, i have already done something similar in the paste
Hi all, Just thought would share this in case someone needs it. If you have a 1:n relationship and want to add a confirm message when selecting related records, you can do it as below. Let us take Account and Contact entities. Let us say that you want to add a confirmation message (are sure you want to relate the selected
-
Comment