Announcement
Collapse
No announcement yet.
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.
- Likes 2
Comment
-
Originally posted by rabii View Postit will be great if you could share your code with other users on the developer section. i am sure it will help someone some day. of course if you want to
The fact that it's a professional project, not a personal one, means I'd rather not share the code.
Comment
-
Originally posted by Firyo View Post
It's not that I don't want to do it.
The fact that it's a professional project, not a personal one, means I'd rather not share the code.
- Likes 1
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