W3C home > Mailing lists > Public > www-forms@w3.org > March 2006

Re: select1 control

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Fri, 31 Mar 2006 12:16:22 +0200
To: "Tamasoiu Simina" <t_simina@yahoo.com>, www-forms@w3.org
Message-ID: <op.s69v5ky0smjzpq@acer3010.lan>

>   I have 2 different forms which inherit from the same XML schema and  
> have their own XML instance data(because i use the XML Forms Generator  
> to generate them) :
>     - one of them is called "Types and Constants" and contains an input  
> field called "Name"
>     - the other form is called "Logical Component" and it contains a  
> select1 control called "Type", which should be automatically populated  
> as soon as the user inserts items into "Name" field in the "Types and  
> Constants" form
>  How can i do that? Is it possible to bind a form control to a node into  
> another form? And how can i populate the select1 control? i can use the  
> itemset element or i have to implement some java script?

I explain how to populate a select1 in XForms for HTML Authors part 2:
http://www.w3.org/MarkUp/Forms/2006/xforms-for-html-authors-part2#Getting
You do indeed use an itemset.

As for one form being updated "as soon as" the user adds data to another  
form, it can't be done. The one form would have to refresh the instance it  
shares with the other form (for instance using a trigger that the user  
activates) once the data has been saved from the other form.

Best wishes,

Steven Pemberton
Received on Friday, 31 March 2006 10:16:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:03 GMT