Hi Blair,
Just to follow up, as I meant to on my own post with a similar problem. I
couldn't get the key attribute to work. Instead what ended up working for me
was setting stproperties.typename and stproperties.objectid and then passing
a full stproperties (rather than just typename or objectid). I'll check the
actual code later and post that as an example.

i.e., I used <ft:object stProps="#stproperties#" > instead of <ft:object
typename="#bla#"> or <ft:object objectid="#bla#">

This is because ft:object doesn't check the objectid when passed in stProps,
just the typename...at least in 5.0.2 as far as I can tell...

Tomek

On Tue, Dec 2, 2008 at 6:11 PM, 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to