If you're creating a new object then obviously you don't know what the objectid is yet. So ft:object supports another attribute: key. If you set the key attribute to the same value on several ft:objects, all those inputs will be processed as a single object on submit.
On Wed, Dec 3, 2008 at 10:03 AM, Marco van den Oever < [EMAIL PROTECTED]> wrote: > > Ok so you can use several ft:object tags combined when using the same > objectid, that binds them to one object: > > objectid="#stobj.objectid#" > > But what is the key and how to set it, does that enable me to bind the > object values from different types to one (sort of) object? > > Based on your earlier advice I now indeed use > application.security.getCurrentUserID(), now used: > > <cfif application.security.isLoggedIn() EQ true> > <cfset userid=application.security.getCurrentUserID()> > <cfelse> > <cfset userid="nosession"> > </cfif> > > Although this code wouldn't be accessible without a session, just in > case. > > Thanks again > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
