Re: Can't get Flex binding to work without warnings

2015-07-15 Thread kamcknig
That worked, thanks!


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Tue, Jul 14, 2015 at 11:35 PM, pkumar.flex [via Apache Flex Users] 
ml-node+s246n10759...@n4.nabble.com wrote:

 Use proper type casting of repeater current item as (deRep.currentItem as
 XML)

 On Wed, Jul 15, 2015 at 12:43 AM, kamcknig [via Apache Flex Users] [hidden
 email] http:///user/SendEmail.jtp?type=nodenode=10759i=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={deRep.currentItem..RELATIONSHIP.@dep_cust_rel_type}
 ... /
 
 TextArea ... text={deRep.currentItem.ADDRESS.@street} ... /
 
 /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

 --
  If you reply to this email, your message will be added to the
 discussion below:

 http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754.html
  To unsubscribe from Apache Flex Users, click here.
 NAML
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




 --
 *Regards,*
 Prashant Kumar* | *Mob.: +91 8408811225


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10759.html
  To unsubscribe from Can't get Flex binding to work without warnings, click
 here
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=10754code=a2FtY2tuaWdAZ21haWwuY29tfDEwNzU0fC0xNTg3MjQ1NTM4
 .
 NAML
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10769.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Can't get Flex binding to work without warnings

2015-07-15 Thread kamcknig
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] 
ml-node+s246n10757...@n4.nabble.com 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=nodenode=10757i=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.246.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.246.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.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=10754code=a2FtY2tuaWdAZ21haWwuY29tfDEwNzU0fC0xNTg3MjQ1NTM4
 .
 NAML
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10768.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Can't get Flex binding to work without warnings

2015-07-15 Thread kamcknig
Thanks for the explanation!

Kyle


Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Wed, Jul 15, 2015 at 11:41 AM, Alex Harui [via Apache Flex Users] 
ml-node+s246n1077...@n4.nabble.com wrote:

 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 [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=10779i=0 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] 
 [hidden email] http:///user/SendEmail.jtp?type=nodenode=10779i=1
 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=nodenode=10757i=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.246.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.246.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.246.n4.nabble.com/template/NamlServlet.jtp?

 macro=unsubscribe_by_codenode=10754code=a2FtY2tuaWdAZ21haWwuY29tfDEwNzU

 0fC0xNTg3MjQ1NTM4
  .
  NAML
 
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?

 macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml

 .namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabbl

 e.view.web.template.NodeNamespacebreadcrumbs=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.246.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.



 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10779.html
  To unsubscribe from Can't get Flex binding to work without warnings, click
 here
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=10754code=a2FtY2tuaWdAZ21haWwuY29tfDEwNzU0fC0xNTg3MjQ1NTM4
 .
 NAML
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10780.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Can't get Flex binding to work without warnings

2015-07-15 Thread Alex Harui
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 kamck...@gmail.com 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] 
ml-node+s246n10757...@n4.nabble.com 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=nodenode=10757i=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.246.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.246.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.246.n4.nabble.com/template/NamlServlet.jtp?
macro=unsubscribe_by_codenode=10754code=a2FtY2tuaWdAZ21haWwuY29tfDEwNzU
0fC0xNTg3MjQ1NTM4
 .
 NAML
 
http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?
macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml
.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabbl
e.view.web.template.NodeNamespacebreadcrumbs=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.246.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.



RE: Can't get Flex binding to work without warnings

2015-07-14 Thread Kunal Jaura
Hi,

Have tried making the dataProvider variable 'dependantXML' bindable? I've
had that work for me.

Cheers
Kunal Jaura | Director of Architecture | www.CRMantra.com  | office +1 (415)
839 9672 | mobile +1 (415) 272 4868 | kunal.ja...@crmantra.com 

 

-Original Message-
From: kamcknig [mailto:kamck...@gmail.com] 
Sent: Tuesday, July 14, 2015 12:14 PM
To: users@flex.apache.org
Subject: Can't get Flex binding to work without warnings

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.246.n4.nabble.com/Can-t-get-Flex-binding-to-wor
k-without-warnings-tp10754.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.



RE: Can't get Flex binding to work without warnings

2015-07-14 Thread kamcknig
Hi!

Yes its already set to be Bindable

Best
On Jul 14, 2015 3:58 PM, Kunal Jaura [via Apache Flex Users] 
ml-node+s246n10755...@n4.nabble.com wrote:

 Hi,

 Have tried making the dataProvider variable 'dependantXML' bindable? I've
 had that work for me.

 Cheers
 Kunal Jaura | Director of Architecture | www.CRMantra.com  | office +1
 (415)
 839 9672 | mobile +1 (415) 272 4868 | [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=10755i=0



 -Original Message-
 From: kamcknig [mailto:[hidden email]
 http:///user/SendEmail.jtp?type=nodenode=10755i=1]
 Sent: Tuesday, July 14, 2015 12:14 PM
 To: [hidden email] http:///user/SendEmail.jtp?type=nodenode=10755i=2
 Subject: Can't get Flex binding to work without warnings

 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.246.n4.nabble.com/Can-t-get-Flex-binding-to-wor
 k-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.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10755.html
  To unsubscribe from Can't get Flex binding to work without warnings, click
 here
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=10754code=a2FtY2tuaWdAZ21haWwuY29tfDEwNzU0fC0xNTg3MjQ1NTM4
 .
 NAML
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10756.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Can't get Flex binding to work without warnings

2015-07-14 Thread Alex Harui
Try:

{XMLList(deRep.currentItem)..RELATIONSHIP.@dep_cust_rel_type}


And

{XMLList(deRep.currentItem).ADDRESS.@street}


-Alex

On 7/14/15, 12:13 PM, kamcknig kamck...@gmail.com 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.246.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.



Re: Can't get Flex binding to work without warnings

2015-07-14 Thread pkumar.flex
Use proper type casting of repeater current item as (deRep.currentItem as
XML)

On Wed, Jul 15, 2015 at 12:43 AM, kamcknig [via Apache Flex Users] 
ml-node+s246n10754...@n4.nabble.com 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={deRep.currentItem..RELATIONSHIP.@dep_cust_rel_type}
 ... /
 
 TextArea ... text={deRep.currentItem.ADDRESS.@street} ... /
 
 /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

 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754.html
  To unsubscribe from Apache Flex Users, click here
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1code=cHJhc2hha3VtYXJAZ21haWwuY29tfDF8LTU0MTcyMzE2NA==
 .
 NAML
 http://apache-flex-users.246.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




-- 
*Regards,*
Prashant Kumar* | *Mob.: +91 8408811225




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Can-t-get-Flex-binding-to-work-without-warnings-tp10754p10759.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.