Thanks Jeff. I no longer get the error but it still does not display the first table on the left and the second on the right, they are still stacked on top of each other. It seems like the displayFieldSelection is only for splitting up the same displayViewForm.
Dan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Fleitz Sent: Thursday, October 20, 2005 6:40 PM To: [email protected] Subject: Re: [plum] Multiple joins to the same parent Can't do that. The way the custom tags are written, DisplayFieldSection is a child tag of the form tags, and have to be nested inside them. It took me a while to figure this out. In my experience, you have to keep the PrimaryKey and JoinToParent tags outside of DisplayFieldSection as well. Has to be like: <cf_DisplayViewForm> (Parent) <cf_PrimaryKey> <cf_JoinToParent> <cf_DisplayFieldSection> Form controls for parent here.... </cf_DisplayFieldSection> <cf_DisplayViewForm>(child) <cf_PrimaryKey> <cf_JoinToParent> <cf_DisplayFieldSection> Form controls for child here.... </cf_DisplayFieldSection> <cf_DisplayViewForm>(grandchild) <cf_PrimaryKey> <cf_JoinToParent> <cf_DisplayFieldSection> Form controls for parent here.... </cf_DisplayFieldSection> </cf_DisplayViewForm> </cf_DisplayViewForm>(child) </cf_DisplayViewForm>(parent) Hope that makes sense. Not intuitive the first time. Jeff Dan O'Keefe wrote: > I knew I would do this. > > The "</cf_DisplayViewForm" at the end of the 2 <cf_DisplayFieldSection > lines is a copying mistake. > > Dan > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dan > O'Keefe > Sent: Thursday, October 20, 2005 5:49 PM > To: [email protected] > Subject: RE: [plum] Multiple joins to the same parent > > The master-detail page is currently nested like this: > > </cf_DisplayViewForm > <cf_...... > <cf_...... > > </cf_DisplayViewForm > <cf_...... > <cf_...... > > <cf_DisplayList > <cf_...... > <cf_...... > </cf_DisplayList > </cf_DisplayViewForm > </cf_DisplayViewForm > > I want to do this and get an error: > > <cf_DisplayFieldSection label="Table1" location="Left"> > </cf_DisplayViewForm > <cf_...... > <cf_...... > </cf_DisplayViewForm > </cf_DisplayFieldSection> > > <cf_DisplayFieldSection label="Table2" location="Right"> > </cf_DisplayViewForm > <cf_...... > <cf_...... > </cf_DisplayViewForm > </cf_DisplayFieldSection> > > <cf_DisplayList > <cf_...... > <cf_...... > </cf_DisplayList > > So, basically, my first table displayed on the left, 2nd on the right > and the 3rd at the bottom. I getthefollowing error: > > Invalid list index 2. > In function ListGetAt(list, index [, delimiters]), the value of index, > 2, is not a valid as the first argument (this list has 1 > elements). Valid indexes are in the range 1 through the number of elements in the list. > > The error occurred in > C:\Inetpub\wwwroot\Adsouth\customtags\DisplayFieldSection.cfm: line 19 > > > Dan > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Adam > Churvis > Sent: Thursday, October 20, 2005 5:29 PM > To: [email protected] > Subject: Re: [plum] Multiple joins to the same parent > > Should be okay. Have you had a problem with it? > > Respectfully, > > Adam Phillip Churvis > Member of Team Macromedia > Certified Advanced ColdFusion MX 7 Developer > http://www.ProductivityEnhancement.com > > Download Plum and other cool development tools, and get advanced > intensive Master-level training: > > * C# & ASP.NET for ColdFusion Developers > * ColdFusion MX Master Class > * Advanced Development with CFMX and SQL Server 2000 > > ----- Original Message ----- > From: "Dan O'Keefe" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Thursday, October 20, 2005 5:20 PM > Subject: RE: [plum] Multiple joins to the same parent > > > >>Thanks. Came across another question. On a master-detail form, since >>the displayViewForms are nested, I can't use cf_DisplayFieldSection, >>can > > I? > >>Dan >> >>-----Original Message----- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf Of Adam >>Churvis >>Sent: Thursday, October 20, 2005 4:50 PM >>To: [email protected] >>Subject: Re: [plum] Multiple joins to the same parent >> >>Yep, but we're going to change this for the next version. >> >>Respectfully, >> >>Adam Phillip Churvis >>Member of Team Macromedia >>Certified Advanced ColdFusion MX 7 Developer >>http://www.ProductivityEnhancement.com >> >>Download Plum and other cool development tools, and get advanced >>intensive Master-level training: >> >>* C# & ASP.NET for ColdFusion Developers >>* ColdFusion MX Master Class >>* Advanced Development with CFMX and SQL Server 2000 >> >>----- Original Message ----- >>From: "Dan O'Keefe" <[EMAIL PROTECTED]> >>To: <[email protected]> >>Sent: Thursday, October 20, 2005 4:23 PM >>Subject: RE: [plum] Multiple joins to the same parent >> >> >> >>>Jeff & Adam, >>> >>>This is still the situation, correct? >>> >>>Dan >>> >>> >>>-----Original Message----- >>>From: [EMAIL PROTECTED] >>>[mailto:[EMAIL PROTECTED] On Behalf Of >>>Jeff Fleitz >>>Sent: Thursday, June 16, 2005 3:41 PM >>>To: [email protected] >>>Subject: Re: [plum] Multiple joins to the same parent >>> >>>Thanks. That's the way I'll handle it, then. >>> >>>Adam Churvis wrote: >>> >>>>Unfortunately, there is no way to do this directly in the current >>>>version of Plum. You can, however, create a view with these columns >>>>aliased as you like and use that as your display table. >>>> >>>>We'll add this capability to the project plan for the next major >>>>upgrade to Plum. >>>> >>>>Respectfully, >>>> >>>>Adam Phillip Churvis >>>>Member of Team Macromedia >>>>http://www.ProductivityEnhancement.com >>>> >>>>Download Plum and other cool development tools, and get advanced >>>>intensive Master-level training: >>>> >>>>* C# & ASP.NET for ColdFusion Developers >>>>* ColdFusion MX Master Class >>>>* Advanced Development with CFMX and SQL Server 2000 >>>> >>>>----- Original Message ----- >>>>From: "Jeff Fleitz" <[EMAIL PROTECTED]> >>>>To: "[email protected]" >>>><[email protected]> >>>>Sent: Thursday, June 16, 2005 3:24 PM >>>>Subject: [plum] Multiple joins to the same parent >>>> >>>> >>>> >>>> >>>>>Hi All, >>>>> >>>>>I have a situation where I have a child table with multiple foreign >>>>>keys >>>> >>>>to the same parent (Company), and I want to >>>> >>>> >>>>>display the names (alternate key) of the each of companies on a >>>>>single >>>> >>>>child view form. Is this possible? Is there a >>>> >>>> >>>>>way to Alias a table that I am not aware of? >>>>> >>>>>This is not a problem on an add/edit form, because the >>>> >>>>DisplayFilteredSelect tag has attributes which handle the primary >>>> >>>> >>>>>and foreign key specifications for you. This is not the situation >>>>>with a >>>> >>>>DisplayColumnOnForm tag on a view form, however. >>>> >>>> >>>>>Looking for the best way to approach this. >>>>> >>>>>v/r, >>>>> >>>>>Jeff >>>>> >>>>> >>>>>****************************************************************** >>>>>**** You can subscribe to and unsubscribe from lists, and you can >>>>>change your subscriptions between normal and digest modes here: >>>>> >>>>>http://www.productivityenhancement.com/support/DiscussionListsForm >>>>>.cfm >>>>>****************************************************************** >>>>>**** >>>>> >>>> >>>> >>>> >>>>****************************************************************** >>>>**** You can subscribe to and unsubscribe from lists, and you can >>>>change your subscriptions between normal and digest modes here: >>>> >>>>http://www.productivityenhancement.com/support/DiscussionListsForm >>>>.cfm >>>>****************************************************************** >>>>**** >>>> >>>> >>> >>>******************************************************************** >>>** You can subscribe to and unsubscribe from lists, and you can >>>change your subscriptions between normal and digest modes here: >>> >>>http://www.productivityenhancement.com/support/DiscussionListsForm.c >>>fm >>>******************************************************************** >>>** >>> >>> >>> >>> >>>******************************************************************** >>>** You can subscribe to and unsubscribe from lists, and you can >>>change your subscriptions between normal and digest modes here: >>> >>>http://www.productivityenhancement.com/support/DiscussionListsForm.c >>>fm >>>******************************************************************** >>>** >>> >> >>********************************************************************** >>You can subscribe to and unsubscribe from lists, and you can change >>your subscriptions between normal and digest modes here: >> >>http://www.productivityenhancement.com/support/DiscussionListsForm.cfm >>********************************************************************** >> >> >> >> >>********************************************************************** >>You can subscribe to and unsubscribe from lists, and you can change >>your subscriptions between normal and digest modes here: >> >>http://www.productivityenhancement.com/support/DiscussionListsForm.cfm >>********************************************************************** >> > > > > ********************************************************************** > You can subscribe to and unsubscribe from lists, and you can change > your subscriptions between normal and digest modes here: > > http://www.productivityenhancement.com/support/DiscussionListsForm.cfm > ********************************************************************** > > > > > ********************************************************************** > You can subscribe to and unsubscribe from lists, and you can change > your subscriptions between normal and digest modes here: > > http://www.productivityenhancement.com/support/DiscussionListsForm.cfm > ********************************************************************** > > > > > ********************************************************************** > You can subscribe to and unsubscribe from lists, and you can change > your subscriptions between normal and digest modes here: > > http://www.productivityenhancement.com/support/DiscussionListsForm.cfm > ********************************************************************** > > ********************************************************************** You can subscribe to and unsubscribe from lists, and you can change your subscriptions between normal and digest modes here: http://www.productivityenhancement.com/support/DiscussionListsForm.cfm ********************************************************************** ********************************************************************** You can subscribe to and unsubscribe from lists, and you can change your subscriptions between normal and digest modes here: http://www.productivityenhancement.com/support/DiscussionListsForm.cfm **********************************************************************
