AJ, for what its worth, I was always a big fan of the extended array 
concept, however, every time I have used them I have regretted it.  I have 
always gone back and replaced it with an intermediary custom type.  So you 
create a new custom type that holds all the extended info & a pointer to 
the actual record you are linking to.  Not sure I explained that well, but 
hopefully you get what I mean.

Extended arrays are great in theory, but I find there are just too many 
bugs that crop up because they are just not used often enough and don't get 
the same attention as regular types/rules. The maintenance issues of having 
to write a customized edit UI for that portion also contributes to my past 
frustrations.

Just my two cents.


With regards to the error...

I think the problem is that the extended array struct reports the wrong 
typename.  So the "typename" is the type of the object being pointed to by 
the "data" property. Think of a regular array... there are 4 primary 
fields, data, parentid, seq, and typename.  Typename is the type of the 
object for the "data" field.

So extended arrays carry this over.

However, in your case the actual typename for the extend array object is 
myParentType_aWhateverProperty so rather than pass the struct as is as 
Blair suggests, you either have to use getData() on the extended array type 
using the objectid property of the struct to retrieve the "real" struct OR, 
pass the objectid AND a typename attribute to the ft:object tag.

See what I was saying about extended arrays being buggy/weird?? :)

On Friday, March 14, 2014 1:40:15 AM UTC-4, AJ Mercer wrote:
>
> Message: Element name is undefined in a CFML structure referenced as part 
> of an expression.
>
>
>    - \farcry\core\tags\formtools\object.cfm (line: 328) 
>    - \farcry\core\tags\formtools\object.cfm (line: 309)
>    - \farcry\core\tags\formtools\object.cfm (line: 42)
>    - \farcry\core\tags\formtools\object.cfm (line: 1)
>    - *\farcry\plugins\pslClient\packages\types\AflGame.cfc (line: 53)* 
>
>
>
> On 14 March 2014 13:35, Blair McKenzie <[email protected] <javascript:>>wrote:
>
>> Looks right to me. Is it not working?
>>
>>
>> On Fri, Mar 14, 2014 at 4:20 PM, AJ Mercer <[email protected]<javascript:>
>> > wrote:
>>
>>> I don't think I have the right struct here??
>>>  
>>> <ft:object stObject="#aClients[i]#"  r_stFields="stFields" />
>>>  aClients[i] - structCREATEDBY [empty 
>>> string]DATA5E24E1C0-AB22-11E3-AC3B005056830008
>>> DATETIMECREATED [empty string]DATETIMELASTUPDATED [empty string]LABEL[empty 
>>> string]
>>> LASTUPDATEDBY [empty string]LOCKED 0LOCKEDBY[empty string] OBJECTID
>>> BE78B22A-5056-8300-08A1064B2590E633 OWNEDBY[empty string] PARENTID
>>> FC907F30-A9C0-11E3-A473005056830008 PREFERENCE1st SEQ1 TICKETSTATUS
>>> Offered TYPENAMEAflGameClient 
>>>
>>>
>>>  
>>>
>>> On 14 March 2014 13:13, Blair McKenzie <[email protected] 
>>> <javascript:>>wrote:
>>>
>>>> I'm fairly sure array types aren't in refObjects. You'll need to pass 
>>>> the entire struct into ft:object with the stObject attribute.
>>>>
>>>> Blair
>>>>
>>>>
>>>> On Fri, Mar 14, 2014 at 4:03 PM, AJ Mercer <[email protected]<javascript:>
>>>> > wrote:
>>>>
>>>>> something like this
>>>>> but I am not getting the extended properties
>>>>>
>>>>> <cfloop from="1" to="#arraylen(aClients)#" index="i">
>>>>>  <cfset stClient.thisobject = aClients[i].data />
>>>>> <cfset stClient.thistypename = aClients[i].typename /> 
>>>>>  <cfdump var="#stClient#" label="stClient">
>>>>>  *<ft:object objectid="#stClient.thisobject#"  r_stFields="stFields" 
>>>>> />*
>>>>>  <cfdump var="#stFields#" label="stFields">
>>>>> </cfloop>
>>>>>
>>>>>
>>>>> On 14 March 2014 12:58, Justin Carter <[email protected]<javascript:>
>>>>> > wrote:
>>>>>
>>>>>> It depends what info you need, there are a couple of methods to get 
>>>>>> content type metadata and property metadata:
>>>>>>
>>>>>>
>>>>>> http://docs.farcrycore.org/trunk/component-lib-fapi.html#getContentTypeMetadata
>>>>>>
>>>>>> http://docs.farcrycore.org/trunk/component-lib-fapi.html#getPropertyMetadata
>>>>>>
>>>>>> cheers,
>>>>>> Justin
>>>>>>
>>>>>> --
>>>>>> Justin Carter
>>>>>> http://www.madfellas.com/blog
>>>>>> http://twitter.com/justincarter
>>>>>>  
>>>>>>
>>>>>> On Fri, Mar 14, 2014 at 3:54 PM, AJ Mercer 
>>>>>> <[email protected]<javascript:>
>>>>>> > wrote:
>>>>>>
>>>>>>> how do you get to the formtool properties defined in the extend 
>>>>>>> array (AflGame_aClients.cfc)?
>>>>>>>
>>>>>>>  <cfproperty ftSeq="20"
>>>>>>> name="TicketStatus" type="longchar" ftDefault="Applied" 
>>>>>>> ftLabel="Status"
>>>>>>>  ftType="list" ftSelectMultiple="false" 
>>>>>>> ftList="Applied,Offered,Other Game,Accepted,Tickets Sent"
>>>>>>>  " />
>>>>>>>
>>>>>>>
>>>>>>> -- 
>>>>>>>
>>>>>>> *AJ Mercer*
>>>>>>> <webonix:net strength="Industrial" /> <http://webonix.net> | 
>>>>>>> <webonix:org 
>>>>>>> community="Open" /> <http://webonix.org>
>>>>>>> http://twitter.com/webonix
>>>>>>> Railo Community 
>>>>>>> Manager<http://www.getrailo.org/index.cfm/community/team/>
>>>>>>>  
>>>>>>> -- 
>>>>>>> You received this message cos you are subscribed to "farcry-dev" 
>>>>>>> Google group.
>>>>>>> To post, email: [email protected] <javascript:>
>>>>>>> To unsubscribe, email: [email protected] <javascript:>
>>>>>>> For more options: http://groups.google.com/group/farcry-dev
>>>>>>> --------------------------------
>>>>>>> Follow us on Twitter: http://twitter.com/farcry
>>>>>>> --- 
>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>> Groups "farcry-dev" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>> send an email to [email protected] <javascript:>.
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>  -- 
>>>>>> You received this message cos you are subscribed to "farcry-dev" 
>>>>>> Google group.
>>>>>> To post, email: [email protected] <javascript:>
>>>>>> To unsubscribe, email: [email protected] <javascript:>
>>>>>> For more options: http://groups.google.com/group/farcry-dev
>>>>>> --------------------------------
>>>>>> Follow us on Twitter: http://twitter.com/farcry
>>>>>> --- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "farcry-dev" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>> send an email to [email protected] <javascript:>.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>>
>>>>> *AJ Mercer*
>>>>> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org 
>>>>> community="Open" /> <http://webonix.org>
>>>>> http://twitter.com/webonix
>>>>> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/>
>>>>>  
>>>>> -- 
>>>>> You received this message cos you are subscribed to "farcry-dev" 
>>>>> Google group.
>>>>> To post, email: [email protected] <javascript:>
>>>>> To unsubscribe, email: [email protected] <javascript:>
>>>>> For more options: http://groups.google.com/group/farcry-dev
>>>>> --------------------------------
>>>>> Follow us on Twitter: http://twitter.com/farcry
>>>>> --- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "farcry-dev" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to [email protected] <javascript:>.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  -- 
>>>> You received this message cos you are subscribed to "farcry-dev" Google 
>>>> group.
>>>> To post, email: [email protected] <javascript:>
>>>> To unsubscribe, email: [email protected] <javascript:>
>>>> For more options: http://groups.google.com/group/farcry-dev
>>>> --------------------------------
>>>> Follow us on Twitter: http://twitter.com/farcry
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "farcry-dev" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected] <javascript:>.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> -- 
>>>
>>> *AJ Mercer*
>>> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org 
>>> community="Open" /> <http://webonix.org>
>>> http://twitter.com/webonix
>>> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/>
>>>  
>>> -- 
>>> You received this message cos you are subscribed to "farcry-dev" Google 
>>> group.
>>> To post, email: [email protected] <javascript:>
>>> To unsubscribe, email: [email protected] <javascript:>
>>> For more options: http://groups.google.com/group/farcry-dev
>>> --------------------------------
>>> Follow us on Twitter: http://twitter.com/farcry
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "farcry-dev" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  -- 
>> You received this message cos you are subscribed to "farcry-dev" Google 
>> group.
>> To post, email: [email protected] <javascript:>
>> To unsubscribe, email: [email protected] <javascript:>
>> For more options: http://groups.google.com/group/farcry-dev
>> --------------------------------
>> Follow us on Twitter: http://twitter.com/farcry
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "farcry-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
> *AJ Mercer*
> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org 
> community="Open" /> <http://webonix.org>
> http://twitter.com/webonix
> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/>
>  

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
--- 
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to