Re: xforms:upload updating two parts of the model

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.

Regards,

Mark

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
    London
    EC2A 4RR

Received on Monday, 25 February 2008 20:39:27 UTC