Master Detail - View page with subpage list view - kinda working October 18, 2020, 11:31:09 PM As someone else in the forum mentioned I have a fairly common scenario with a crm type of app. A master accounts table with a related contacts table so contacts are always related to an account.I have the master detail working by using a subpage on the accounts / view by using the filter list so the contacts list only shows the related contacts, but my question is this:How do I make the "Add Contact" button pre-populate the account ID to match the current account record on the view page? So I want to add a contact for the current account. Any ideas?Rich Quote Selected
Re: Master Detail - View page with subpage list view - kinda working Reply #1 – October 18, 2020, 11:53:00 PM @rwebb add an add page subpage component to the view page using page design and bind the page id to the input of your choice. Quote Selected
Re: Master Detail - View page with subpage list view - kinda working Reply #2 – October 19, 2020, 12:31:15 AM Quote from: willvin – October 18, 2020, 11:53:00 PM@rwebb and bind the page id to the input of your choice.Where do I find the page id binding? I looked at the property list to the right and it has filter by and filter value which is what I used to restrict the list grid view to only the contacts that are related to the displayed account. I'll keep looking but let me know where to find the page id. Quote Selected
Re: Master Detail - View page with subpage list view - kinda working Reply #3 – October 19, 2020, 12:38:35 AM OK, I found what you were talking about - it's on the add page. That works if I have an add page on the bottom of my view account page but that is not what I want.. I have an accounts view (master) where it shows all the records for account then..a list view for contacts that shows all the contacts that are related to the displayed account with an "add contact" button.I want it so that when I click add contact it adds the contact to the displayed account. Does that make sense? And is there a way to turn off these captcha's ? It takes me like 5 tries to post a message! Rich Quote Selected 1 Likes
Re: Master Detail - View page with subpage list view - kinda working Reply #4 – October 19, 2020, 06:30:51 PM @rwebb here is a tutorial on how to use the master details configuration https://www.youtube.com/watch?v=1ZZZY5XSWDo. Quote Selected
Re: Master Detail - View page with subpage list view - kinda working Reply #5 – October 20, 2020, 12:52:23 AM So I guess you're saying it won't work to do it the way I want to do it then? I don't want to do it the way it is shown in the video. I want to be able to add sub records from the view page of the master record. So if I'm viewing an account I will see a sub section at the bottom with all the contacts with an add contact button. I want it to add a contact to the currently viewed account. This is a very common scenario in CRM software.Rich Quote Selected
Re: Master Detail - View page with subpage list view - kinda working Reply #6 – October 20, 2020, 01:37:24 PM @rwebb those are the two options, you either add the pages you want to see on a particular page as subpages or you follow the video tutorial. Based on what you are saying, the first solution is what you are looking for. Quote Selected
Re: Master Detail - View page with subpage list view - kinda working Reply #7 – October 21, 2020, 01:01:43 AM I have the subpage - the issue is adding records from the subpage. How do I add a record on the subpage keyed to the master account-ID?By the way I'm very impressed with the built-in functionality. Worst case scenario I could get the framework of my app built and then customize the code to make it do what I need. Rich Quote Selected
Re: Master Detail - View page with subpage list view - kinda working Reply #8 – October 22, 2020, 02:28:57 AM So is the final word that there is no way to accomplish what I need to do the way that I want to do it? What I need to know is if there is any access to the master dataset from within the subpage/list . I want to make it so a click on the subpage "add contact" button links to the url: contacts/add?account=$data['id']; type of thing but I want the ID to be the Accounts ID not the Contacts ID. Thanks.Rich Quote Selected
Re: Master Detail - View page with subpage list view - kinda working Reply #9 – October 22, 2020, 10:51:06 AM @rwebb please provide me with your TeamViewer details. Quote Selected
Re: Master Detail - View page with subpage list view - kinda working Reply #10 – October 23, 2020, 02:01:13 AM Could I provide you my PPM file and my database? Quote Selected
Re: Master Detail - View page with subpage list view - kinda working Reply #11 – October 26, 2020, 12:04:02 PM Tried to contact you on your website chat thing - no response. Could I possibly set up a time tomorrow to work with you on this? If I can't get past this obstacle I'll have to move on to other things. Rich Quote Selected
Re: Master Detail - View page with subpage list view - kinda working Reply #12 – October 26, 2020, 09:32:34 PM @rwebb send me a direct message or an email on the forum and I will connect with you. Quote Selected
Re: Master Detail - View page with subpage list view - kinda working Reply #13 – October 27, 2020, 03:29:58 AM I just figured out how to do it the way I originally was trying to do it. Instead of having the button on the Contacts List (to add a contact) I added the button to the Accounts / View page and made the link = contacts/add?account=$page_id and that worked! Quote Selected 1 Likes
Re: Master Detail - View page with subpage list view - kinda working Reply #14 – January 23, 2021, 08:58:48 AM Nah, this does work for me because is not populating the $recid just referring to another page.Maybe share your code. Quote Selected