The code is below, but first...

I have some more info  that is pertinent.  In testing the form, I
would enter something in the first few fields, then zip down to the
bottom and submit.  This was resulting in doubling the values.  What I
didn't notice right away was that I had entire duplicated fieldsets!
And, yes, from using the code below, which does not have any duplicate
properties.  This is probably what was causing the doubling.

Now, WHY do I have duplicate sets of fields??  I believe I have found
the answer.  On my system, if I take out the 18th property
(IMPATitle), the duplication disappears and everything works
perfectly. If I put it back in, everything breaks, as I have
described.  The only thing that is special about the 18th property is
that it is in the 'Details' fieldset and orphaned from its fellow
fieldset members which are all at the beginning of the cfc.  I suspect
there is some parser error that is not dealing well with this
separation.  Also, if I change the 18th property to the 'Contact'
fieldset, so that it is now in the same set as its nearest neighbors,
everything also works perfectly.  I have gone back and forth, changing
this fieldset designator and every time I have it 'out of order', the
edit form starts duplicating fields and data.

If I was supposed to watch for this in the first place, then this is
my mistake, but I haven't read anywhere that it was important to keep
fieldsets together.  If it is not supposed to matter, then this seems
like a bug that shoud be addressed.  I hope this is truly the answer
as I have spent HOURS on this.


CFC CODE:

<cfcomponent name="IMPAMember"
extends="farcry.core.packages.types.types"
output="false"
displayname="IMPA Member">

<cfproperty ftSeq="1"
ftFieldset="Details"
name="FirstName"
type="string"
required="true"
default=""
ftLabel="FirstName"
ftType="string"
hint="First Name" />

<cfproperty ftSeq="2"
ftFieldset="Details"
name="LastName"
type="string"
required="true"
default=""
ftLabel="LastName"
ftType="string"
hint="Last Name" />

<cfproperty ftSeq="3"
ftFieldset="Details"
name="Specialization"
type="string"
required="false"
ftLabel="Specialization"
ftType="string"
hint="Chief knowledge area of member" />

<cfproperty ftSeq="4"
ftFieldset="Details"
name="teaser"
type="longchar"
required="false"
default=""
ftLabel="Teaser"
ftType="longchar"
hint="Mini intro for IMPA Member biography." />

<cfproperty ftSeq="5"
ftFieldset="Details"
name="biography"
type="longchar"
required="false"
default=""
ftLabel="Biography"
ftType="richtext"
hint="Member biography." />

<cfproperty ftSeq="6"
ftFieldset="Details"
name="ContactsPage"
type="Boolean"
required="false"
default=""
ftLabel="Contacts Page"
ftType="Boolean"
hint="Show on contacts page." />

<cfproperty ftSeq="7"
ftFieldset="Address"
name="Company"
type="string"
required="false"
default=""
ftLabel="Company"
ftType="string"
hint="Company field." />

<cfproperty ftSeq="8"
ftFieldset="Address"
name="Address1"
type="string"
required="false"
default=""
ftLabel="Address1"
ftType="string"
hint="First address field." />

<cfproperty ftSeq="9"
ftFieldset="Address"
name="Address2"
type="string"
required="false"
default=""
ftLabel="Address2"
ftType="string"
hint="Second address field." />

<cfproperty ftSeq="10"
ftFieldset="Address"
name="City"
type="string"
required="false"
default=""
ftLabel="City"
ftType="string"
hint="City field." />

<cfproperty ftSeq="11"
ftFieldset="Address"
name="State"
type="string"
required="false"
default=""
ftLabel="State"
ftType="string"
hint="State field." />

<cfproperty ftSeq="12"
ftFieldset="Address"
name="PostalCode"
type="string"
required="false"
default=""
ftLabel="ZIP Code"
ftType="string"
hint="ZIP Code field." />

<cfproperty ftSeq="13"
ftFieldset="Contact"
name="Phone1"
type="string"
required="false"
default=""
ftLabel="Phone1"
ftType="string"
hint="First phone field." />

<cfproperty ftSeq="14"
ftFieldset="Contact"
name="Phone2"
type="string"
required="false"
default=""
ftLabel="Phone2"
ftType="string"
hint="Second phone field." />

<cfproperty ftSeq="15"
ftFieldset="Contact"
name="FAX"
type="string"
required="false"
default=""
ftLabel="FAX"
ftType="string"
hint="FAX field." />

<cfproperty ftSeq="16"
ftFieldset="Contact"
name="Email1"
type="string"
required="false"
default=""
ftLabel="Email1"
ftType="string"
hint="First email field." />

<cfproperty ftSeq="17"
ftFieldset="Contact"
name="Email2"
type="string"
required="false"
default=""
ftLabel="Email2"
ftType="string"
hint="Second email field." />

<cfproperty ftSeq="18"
ftFieldset="Details"
name="IMPATitle"
type="string"
required="false"
default=""
ftLabel="IMPA Title"
ftType="string"
hint="Officer title field." />

<cfproperty ftSeq="19"
ftFieldset="Contact"
name="Website"
type="string"
required="false"
default=""
ftLabel="Website"
ftType="string"
hint="Website field." />

<cfproperty ftSeq="20"
ftFieldset="Imagery"
name="imgIMPAMember"
type="string"
required="false"
ftType="image"
ftLabel="IMPA Member Image"
ftDestination="/IMPAMember/imgIMPAMember"
ftImageWidth="120"
ftImageHeight="120"
ftAutoGenerateType="fitInside"
hint="The source image to upload" />

</cfcomponent>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to