anonymous cvs access unreliable

classic Classic list List threaded Threaded
25 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Re: loading variable instance

Hank Ratzesberger

On Feb 20, 2008, at 9:48 AM, Paul Kelly wrote:

>
> Now how do target the eXist file in the submission:
>
> <xforms:submission action="/exist/rest//db/[variable-path]"  
> method="put" id="submit-edit" replace="none" />
>
> Or should I make it so the put to eXist is in another xpl on simple  
> submit?

Yes, that should work.  I know it is mentioned in Erik's presentation:

http://www.orbeon.com/blog/2007/12/05/great-success-of-the-xforms- 
evening-at-the-xml-2007-conference/

and probably documented somewhere else, but I only quickly found the  
XPL examples:

http://www.orbeon.com/ops/doc/processors-xmldb#rest

If your db update changes any instance that you need refreshed, then you
would want to 'replace="myInstance"'

But you need to give the submission an xml instance ... right?...  
ref="event-doc" ?

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: loading variable instance

Paul Kelly-5
In reply to this post by Alessandro Vernet
At 10:38 AM -0800 2/20/08, Alessandro Vernet wrote:
><xforms:submission action="/exist/rest//db/{some xpath expression here}" .../>
>
>What goes between the curly braces is an XPath expression. In that expression you can refer to other instances (instance('my-instance')/...) like you would anywhere else.

Cool, and thanks again.

Do those work in xforms:instance/@src? I need to pull in two other instances based on values I can xpath from the main instance. Possible?
--
--paul

Paul Kelly
Dir. of Operations
XML Team: http://xmlteam.com


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: loading variable instance

Alessandro Vernet
Administrator
Paul,

On Feb 20, 2008, at 12:23 PM, Paul Kelly wrote:

> Cool, and thanks again.
>
> Do those work in xforms:instance/@src? I need to pull in two other  
> instances based on values I can xpath from the main instance.  
> Possible?

You can't use AVTs in instances src="...", as those expressions run on  
the instances, which are not yet available at that point. In general  
you do this by starting with a dummy instance (<xforms:instance  
id="your-instance-id"><dummy/></xforms:instance>) and by loading the  
actual instance you need dynamically on xforms-ready with a submission.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: loading variable instance

Erik Bruchez
Administrator
In reply to this post by Paul Kelly-5
On Feb 20, 2008, at 12:23 PM, Paul Kelly wrote:

> At 10:38 AM -0800 2/20/08, Alessandro Vernet wrote:
>> <xforms:submission action="/exist/rest//db/{some xpath expression  
>> here}" .../>
>>
>> What goes between the curly braces is an XPath expression. In that  
>> expression you can refer to other instances (instance('my-
>> instance')/...) like you would anywhere else.
>
> Cool, and thanks again.
>
> Do those work in xforms:instance/@src? I need to pull in two other  
> instances based on values I can xpath from the main instance.  
> Possible?
No, those won't work there, because AVTs assume that XForms instances  
have been loaded and initialized, and here we are in the process of  
loading such an instance. It could be made to work but the processing  
model would be quite inelegant.

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: loading variable instance

Erik Bruchez
Administrator
In reply to this post by Paul Kelly-5
We have now implemented this in the CVS.

You can now write:

<xforms:setvalue ref="columns" select="xxforms:get-
parameter('columns')"/>

You have to be careful to call this only during XForms initialization,  
typically as a response to xforms-model-construct-done or xforms-
ready, otherwise the function will return an empty result.

-Erik

On Feb 20, 2008, at 9:50 AM, Paul Kelly wrote:

> At 9:38 AM -0800 2/20/08, Erik Bruchez wrote:
>> <xforms:setvalue ref="name" value="request:parameter('name', '')"/>
>
> That would be wonderful.
> --
> --paul
>
> Paul Kelly
> Dir. of Operations
> XML Team: http://xmlteam.com
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
12