0 Replies Latest reply on Feb 8, 2013 12:09 PM by david_mtl

    Auto update of text field on drop down change (binded to XML doc)

    david_mtl

      Hi all,

       

      I have a problem that i'm stuck with since too long and I'll be really grateful for any useful idea.

      Here is my issue:

       

      I have this XML:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <ItemsList>

                <Product>

                          <itemUnitPrice>200.00000000</itemUnitPrice>

                          <itemCode>lkg</itemCode>

                          <ItemID>2</ItemID>

                          <itemDescription>lk desc</itemDescription>

                </Product>

                <Product>

                          <itemUnitPrice>300.00000000</itemUnitPrice>

                          <itemCode>lkv</itemCode>

                          <ItemID>1</ItemID>

                          <itemDescription>lkv desc</itemDescription>

                </Product>

                <Product>

                          <itemUnitPrice>400.00000000</itemUnitPrice>

                          <itemCode>lks</itemCode>

                          <ItemID>3</ItemID>

                          <itemDescription>lks desc</itemDescription>

                </Product>

      </ItemsList>

       

      ItemID and itemCode are bounded to my dd list and the left is bounded to the rest of the columns in my table (below).

       

      fsdfffff.png

      testest.png

       

      I`d like to find a way to auto change, for example the unit price, of an item selected from the list.

      I have to mention that this xml is returned by a database and data can change so  i can`t write javascript static code to match itemId with their Unitprice and description.

       

       

      Any ideas ??

       

      Thanks in advance.