How would you reference that multiple to single created object by the key?
Now i use: <cfset stTicket = getData(objectid=lSavedObjectIDs) /> Does that stays the same? When setting all objects of the ticket type (4) to typename and key, i get for each object a different objectid, so the lSavedObjectIDs will not validate anymore as type uuid as it holds a string of objectid's. When i use the same objectid (and key) for the 4 parts of the ticket object, and just typename and key for the ticketanswers object so in any way they all use the same key, how can i retrieve them all by referencing the key? The lSavedObjectIDs is not holding it. For now i use my last example but if i can simplify and do it like it should, would be even better. I am also using FC 5.0.2 like Tomek, so does that has anything to do with it? Maybe? Thank you On Dec 3, 12:11 am, "Blair McKenzie" <[EMAIL PROTECTED]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
