Java Methods Inside Form Builder

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

Java Methods Inside Form Builder

Randy Smith-9
All,
Are Java methods/functions allowed inside Form Builder and or Form
Runner XForms code? Also, is it possible to write an XML instance file
to the eXist DB independent of Form Builder from within Form Builder in
addition to Form Builder saving the file in the eXist DB?
Thanks
Randy



--
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: Java Methods Inside Form Builder

Alessandro Vernet
Administrator
Randy,

Randy Smith-9 wrote
Are Java methods/functions allowed inside Form Builder and or Form
Runner XForms code? Also, is it possible to write an XML instance file
to the eXist DB independent of Form Builder from within Form Builder in
addition to Form Builder saving the file in the eXist DB?
Since we use Saxon as an XPath engine, you can call Java code from XPath. See the links at the bottom of this page:

http://www.saxonica.com/documentation/extensibility/functions.html

I am not sure to understand what you are asking about storing an XML instance in eXist from Form Builder. Are you saying that you'd like to have the instance as a separate document in eXist instead of it being inside the form?

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Re: Java Methods Inside Form Builder

Randy Smith-9
Alex,
What I would like to do is save the xml file that was generated by users entering data into the form as an additional xml file in a special collection that I have already created.
Randy

Alessandro Vernet wrote:
Randy,


Randy Smith-9 wrote:
  
Are Java methods/functions allowed inside Form Builder and or Form 
Runner XForms code? Also, is it possible to write an XML instance file 
to the eXist DB independent of Form Builder from within Form Builder in 
addition to Form Builder saving the file in the eXist DB?

    

Since we use Saxon as an XPath engine, you can call Java code from XPath.
See the links at the bottom of this page:

http://www.saxonica.com/documentation/extensibility/functions.html

I am not sure to understand what you are asking about storing an XML
instance in eXist from Form Builder. Are you saying that you'd like to have
the instance as a separate document in eXist instead of it being inside the
form?

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/
Twitter - http://twitter.com/avernet
  


--
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: Java Methods Inside Form Builder

Alessandro Vernet
Administrator
Randy,

Randy Smith-9 wrote
What I would like to do is save the xml file that was generated by users
entering data into the form as an additional xml file in a special
collection that I have already created.
The XML with the data entered by users is already stored as a separate file in eXist. For instance, if you fill out a new Bookshelf form (the example form that comes out of the box with Orbeon Forms), you'll end up with a new XML document in /db/orbeon/bookshelf/data. Every time a new form is created a new XML file with the data for that new form is created in that collection. Does this work for you?

Alex