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

Re: XForms problem

From: Erik Bruchez <erik@bruchez.org>
Date: Tue, 23 Aug 2005 10:04:56 -0700
Message-ID: <430B5738.4050509@bruchez.org>
To: www-forms@w3.org
CC: Vincent Berger <vincent.berger@afp.com>, Allan Beaufour <abeaufour@novell.com>

Vincent Berger wrote:
 > Le mardi 23 août 2005 à 13:45 +0200, Allan Beaufour a écrit :
 >
 >>Tuesday 23 August 2005 12:05 skrev Vincent Berger:
 >>> Le mardi 23 août 2005 à 16:16 +0700, Saran Toochinda a écrit :

 >>> > We're planning to use XForms to collect XML data (currently
 >>> > using Novell XForms Explorer for IE). The data we're collecting
 >>> > is company data, 1 file per company. The schema is change from
 >>> > time to time which most of the time is resulting in newly added
 >>> > data elements. The XForms controls need to be added accordingly
 >>> > to accept the new data elements. There is no problem on new file
 >>> > data entry so far but the problem arise when dealing with
 >>> > existing files. Because Xforms' controls bind to existance of
 >>> > element in an instance document. The newly added controls don't
 >>> > get display because no such data ever exists before. Do I
 >>> > missing something?
 >>> >
 >>> > One other issue is about repeat control. Usually we provide a
 >>> > trigger to insert and delete repeated element. Once we delete
 >>> > all elements, we have way(s) to insert it back again?
 >>>
 >>> About repeat control, I keep an element in a section (called in an
 >>> arbitrary way) "<patterns>" , and use the xforms function
 >>> "duplicate" when I want to populate an empty "container".
 >>
 >>Unfortunately duplicate is an XForms 1.1 control.
 >>
 >
 > Yes, but is working , in this case, on Novell Xforms Explorer for
 > IE, as specified by Saran.

You can work around this in 1.0 by always keeping at least one element 
in the homogenous collection, and to hide it with a relevant MIP. See 
this example:

   http://www.orbeon.com/ops/goto-example/xforms-repeat

And the source file:

   http://tinyurl.com/8258j

Those are unfortunate tricks you must use with XForms 1.0, but it's good
to know about them.

-Erik
Received on Tuesday, 23 August 2005 17:05:55 GMT

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