I am trying to create a customized "register" page.

Using the default elements of core but then all placed in one page
which i include as _registerReseller.cfm. I placed all the various
elements on one page just for my oversight.

For some reason the dmProfile is not set. Using the standard code:

<ft:processForm action="Register Now">

<ft:processFormObjects typename="dmProfile">

<cfset stProperties.userDirectory = "CLIENTUD" />
<cfset stProperties.username = "#newUserName#_CLIENTUD" />
<cfset stProperties.createdby = "#newUserName#_CLIENTUD" />
<cfset stProperties.ipadres = CGI.REMOTE_ADDR />

</ft:processFormObjects>

And a bit customized in a ft:form:

<ft:object objectid="#stobj.objectid#" typename="dmProfile"
lfields="firstName,lastname,city,address,postalcode,<!--- postalState,
--->phone,emailAddress,bankaccount" legend="Personal details" />

The farUser info gets written to db and is setup in exactly the same
structure as dmProfile.

The only error i get is:

"key [FIRSTNAME] doesn't exist in struct
(keys:BINDB,LOCALE,BRECEIVEEMAIL,USE"

Which tells me that dmProfile is not set, if it was then this code:

<cfset stProfile = createObject("component", application.stcoapi
["dmProfile"].packagePath).getProfile(userName="#newUserName#",
ud="CLIENTUD") />

Would provide that missing variable. I really don't know what's going
on, i hope this description will ring a bell to anyone...
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---

Reply via email to