5 Replies Latest reply on Jan 21, 2008 1:09 AM by orrketrec

    Data binding will not be able to detect assignments to...

    orrketrec
      Hello,

      I've got this warning:
      Data binding will not be able to detect assignments to "name"
      for this line:
      <mx:TextInput x="200" y="10" name="prodnr" text="{theService1.lastResult.queryResult.(@name=='product_item').item.prodnr}"/>

      If I don't use (@name=='product_item') condition, there is no warning, so this seems fine:
      <mx:TextInput x="200" y="10" name="prodnr" text="{theService1.lastResult.queryResult.item.prodnr}"/>

      lastResult's XML looks like this:
      <?xml version="1.0" encoding="utf-8"?>
      <root>
      <queryResult name="product_item">
      <item id="1">
      <id>1</id>
      <prodnr>0001</prodnr>
      <name>Egy könyv</name>
      <prodgroup>DVD</prodgroup>
      <service>0</service>
      <dutyid>23656</dutyid>
      <tax>kedvezményes (5%)</tax>
      <unit>db</unit>
      <madein>Magyarország</madein>
      <note></note>
      <baseprice>1047.62</baseprice>
      <short_desc></short_desc>
      </item>
      </queryResult>
      <queryResult name="product_item2">
      <item id="1">
      <id>1</id>
      <prodnr>0001</prodnr>
      <name>Egy könyv</name>
      <prodgroup>DVD</prodgroup>
      <service>0</service>
      <dutyid>23656</dutyid>
      <tax>kedvezményes (5%)</tax>
      <unit>db</unit>
      <madein>Magyarország</madein>
      <note></note>
      <baseprice>1047.62</baseprice>
      <short_desc></short_desc>
      </item>
      </queryResult>
      </root>

      Anybody knows why this warning?