Blair, Mat, or Geoff is going to have to answer that one ;). I wondered
that as well, but expediency of a working solution versus finding out why it
existed that way kept me from asking.
Matthew Williams
Geodesic GraFX
On Fri, Dec 5, 2008 at 2:01 PM, Marco van den Oever <
[EMAIL PROTECTED]> wrote:
>
> Awesome, that was what i needed :)
>
> Still wondering about the fact that in the content types the createdby
> field is default filled with the username without _USERUD
>
> and the fact that you can insert users with the same ID, that would be
> 2 the same createdby field values for 2 different users.
>
> So is this just a default and when needed so change this by inserting
> the users objectid in the createdby field, where the objectid is
> retrieved through the example you gave?
>
> Or am i making it more complicated then needed?
>
> Thanks
>
> On Dec 5, 7:26 pm, Matthew Williams <[EMAIL PROTECTED]>
> wrote:
> > <cfset stUser = createObject("component",
> >
> application.stcoapi["farUser"].packagePath).getByUserID(listfirst(application.security.getCurrentUserID(),"_"))
> > />
> >
> > This gets the entire FarUser struct based on the logged in user. You
> > can use the listfirst() function to strip out the user directory
> > information, or you might be able to use the ownedyby field to match up
> > with the object ID of the user as well.
> >
> > Matthew Williams
> > Geodesic GraFX
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---