The principle is that the compiler always assumes the binding expression
is an object/property chain, but tries to use type information when
possible.  Repeater.currentItem is typed as Object, so the binding
subsystem will look for change events that Objects use.  But if you know
the type is not an Object, you can specify the type via the “casting”.

-Alex

On 7/15/15, 4:43 AM, "kamcknig" <[email protected]> wrote:

>That got rid of the warnings! Hopefully it still works correctly, I'll
>have
>to test it out. Thanks so much!
>
>
>Kyle McKnight
>Senior UI Engineer - Accesso
>602.515.1444 (M)
>
>On Tue, Jul 14, 2015 at 6:54 PM, Alex Harui [via Apache Flex Users] <
>[email protected]> wrote:
>
>> Try:
>>
>> {XMLList(deRep.currentItem)..RELATIONSHIP.@dep_cust_rel_type}
>>
>>
>> And
>>
>> {XMLList(deRep.currentItem).ADDRESS.@street}
>>
>>
>> -Alex
>>
>> On 7/14/15, 12:13 PM, "kamcknig" <[hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=10757&i=0>> wrote:
>>
>> >I'm trying to get some databinding working and it keeps throwing
>> warnings.
>> >
>> >I have the following MXML (PSEUDO CODE):
>> >
>> ><Repeater id="deRep" dataProvider={"dependantXML"}>
>> >    ....
>> >    <Text ...
>> >text=&quot;{deRep.currentItem..RELATIONSHIP.@dep_cust_rel_type}&quot;
>> ...
>> >/>
>> >    ....
>> >    <TextArea ... text=&quot;{deRep.currentItem.ADDRESS.@street}&quot;
>> ...
>> >/>
>> >    ....
>> ></Repeater>
>> >
>> >Where "dependantXML" is an XMLListCollection.
>> >
>> >I keep getting the warnings:
>> >Warning: Data binding will not be able to detect assignments to
>> >"RELATIONSHIP".
>> >Warning: Data binding will not be able to detect assignments to
>> "ADDRESS".
>> >
>> >I've tried making "deRep" Bindable but that doesn't work.
>> >
>> >Not sure what else to try.
>> >
>> >Thanks for any help!
>> >Kyle
>> >
>> >
>> >
>> >--
>> >View this message in context:
>> >
>> 
>>http://apache-flex-users.2333346.n4.nabble.com/Can-t-get-Flex-binding-to-
>>w
>> >ork-without-warnings-tp10754.html
>> >Sent from the Apache Flex Users mailing list archive at Nabble.com.
>>
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the
>>discussion
>> below:
>>
>> 
>>http://apache-flex-users.2333346.n4.nabble.com/Can-t-get-Flex-binding-to-
>>work-without-warnings-tp10754p10757.html
>>  To unsubscribe from Can't get Flex binding to work without warnings,
>>click
>> here
>> 
>><http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?
>>macro=unsubscribe_by_code&node=10754&code=a2FtY2tuaWdAZ21haWwuY29tfDEwNzU
>>0fC0xNTg3MjQ1NTM4>
>> .
>> NAML
>> 
>><http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?
>>macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml
>>.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabbl
>>e.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble
>>%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21n
>>abble%3Aemail.naml>
>>
>
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/Can-t-get-Flex-binding-to-w
>ork-without-warnings-tp10754p10768.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to