W3C home > Mailing lists > Public > www-forms@w3.org > February 2008

Re: xforms:upload updating two parts of the model

From: Mark Birbeck <mark.birbeck@x-port.net>
Date: Mon, 25 Feb 2008 20:39:11 +0000
Message-ID: <a707f8300802251239x56d8d82dh27778b76680cddb1@mail.gmail.com>
To: "Nuno Job" <nunojobpinto@gmail.com>
Cc: www-forms@w3.org

Hi Nuno,

Have you tried hooking an xf:insert action handler onto the
xforms-value-changed event? Unfortunately, one of the quirks about
XForms 1.x is that you can only hook the XVC event in a UI control, so
it will 'feel' wrong to do this. But anyway, putting that aside,
register for the change on the file id, and when you get it, test for
the existence of the element, and if it doesn't exist create it from a
template. Then copy in the file id.



On 25/02/2008, Nuno Job <nunojobpinto@gmail.com> wrote:
> Hi,
> > Hi Nuno,
> >
> > Can I just clarify the question? Is the problem as simple as needing
> > to duplicate the value from filegrp/file/@ID to fptr/@FILEID? Or is it
> > slightly more complex in that the fptr element must also be created?
> It's the more complex  solution. Do you know how to do it?
> Anyway I'm ging to release a screencast on xforms and ruby on rails - TODAY
> - at my blog. Your welcome to check it out. I'll message the list when it's
> up on nunojob.wordpress.com.
> Footnote: That is not implemented :P I didn't know how to and had very
> limited time to present the screencast.
> > Regards,
> >
> > Mark
> Thanks for the help,
> Regards,
> Nuno

  Mark Birbeck

  mark.birbeck@x-port.net | +44 (0) 20 7689 9232
  http://www.x-port.net | http://internet-apps.blogspot.com

  x-port.net Ltd. is registered in England and Wales, number 03730711
  The registered office is at:

    2nd Floor
    Titchfield House
    69-85 Tabernacle Street
    EC2A 4RR
Received on Monday, 25 February 2008 20:39:27 UTC

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