W3C home > Mailing lists > Public > www-forms@w3.org > May 2005

Need help for making dynamic choice

From: Anjali Abraham <anjalia@aztec.soft.net>
Date: Sat, 28 May 2005 12:37:50 +0530
Message-ID: <584DE893B0E08F4B9748E295029F1E9790717E@maya.aztec.soft.net>
To: w3c-forms@w3.org, www-forms@w3.org, Mark Birbeck <mark.birbeck@x-port.net>
            I am struck with a problem. The Problem is:
I am attaching a screen shot with this mail. 
Well what my requirement is that:
1)                          When I select the Drop down control which shows
the content as "TEST" or any other values from the same drop down, its
corresponding Element values from my input xml should get populated in the
corresponding right hand fields like "Name, Amount, Type and Tax." 
2)                          The drop down will have 5 values only, and if
the input xml doesn't have these 5 values then it has to show in the drop
down as "# - UNUSED". And also any editions done from the right had text
boxes, the corresponding values should get updated in my output xml.
My input xml can look like is:
                    <element id="1">
  <                     <name>test22222</name>
                <element id="2">
  <                     <name>test44444</name>
                <element id="4">
  <                     <name>test33333</name>
The element by name "name" should get displayed in the drop down box which
is at the left hand side and only 5 values need to be displayed in the same
drop down box and as we can see in the above xml, id's 3 and 5 are missing
so for such case, the drop down should show as "3 - UNUSED" and "5 -
UNUSED". And also when I select any value from this drop down, based on the
attribute "Id" chosen, the elements name, amt and type's should get
displayed in the right hand side controls and any editions done to it, the
same fiels of the xml gets updated and if any editions has done to "UNUSED"
values of the drop down then the corresponding "element" entry need to be
inserted in the same xml.
Please give me the solutions to these issues since this has come as
workstopper to me.. Please need help.

(image/jpeg attachment: Test.jpg)

Received on Saturday, 28 May 2005 07:07:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:15 UTC