Hi Chris,
I can not copy the entire code as there is a lot of extra stuff there
that you probably do not need (dmUsers, dmGroups, dmUserToGroup,
permissions etc.).
I added all the fields for dmProfile and dmUser plus a few others to
my new dmUserProfile content type.
Copied the beforeSave function from types.cfc to dmUserProfile.cfc
Added the following to my new beforeSave
<cfset oProfile = createobject("component",
application.types.dmProfile.typePath)>
<cfset stProfileProperties = structNew()>
<!--- create/update dmProfile --->
<cfif arguments.stProperties.dmProfileID eq "">
<cfset stProperties.dmProfileID = createUUID()>
</cfif>
<cfset stProfileProperties.ObjectID = stProperties.dmProfileID>
<cfset stProfileProperties.label = stProperties.label>
<cfset stProfileProperties.userName = stProperties.userName>
<cfset stProfileProperties.firstName = stProperties.firstName>
<cfset stProfileProperties.emailAddress = stProperties.emailAddress>
<cfset stProfileProperties.department = stProperties.department>
<cfset stProfileProperties.phone = stProperties.phone>
<cfset stProfileProperties.fax = stProperties.fax>
<cfset stProfileProperties.bActive = stProperties.bActive>
<cfset stProfileProperties.bReceiveEmail = stProperties.bReceiveEmail>
<cfset stProfileProperties.locale = stProperties.locale>
<cfset stProfileProperties.notes = stProperties.notes>
<cfset stProfileProperties.overviewHome = stProperties.overviewHome>
<cfset stProfileProperties.position = stProperties.position>
<cfset stProfileProperties.userDirectory = stProperties.userDirectory>
<cfset stProfileProperties.status = "">
<cfset stProfileProperties.typeName = "dmProfile">
<cfset stResult = oProfile.setData(stProperties=stProfileProperties) /
>
This gives me one place to allow easy maintenance of user/profile/
groups/permissions without having to extend the standard dmProfile.
Hope this helps,
Chris.
On Aug 2, 10:28 pm, Chris Roth <[EMAIL PROTECTED]> wrote:
> Hey Chris.
>
> Long time no talk (cartweaver)...
>
> Are you willing/able to share some of the code?
>
> Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---