Integration of Orbeon Form Builder in a webapp

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

Integration of Orbeon Form Builder in a webapp

Brice QUILLERIE
Hello,

First, please excuse me for my English (I'm French) and for my ignorance (I'm newbie with orbeon).

I have read a lot of documentation but I can't reach to find the good way ; please help me.

I want to include a form builder / runner in a webapp (Spring, JSF, XFire, Hibernate).
The idea is to offer the capability to add some specifics forms depending on the data that the users are consulting.

Here are my questions :
Is there a way to integrate form builder with a filter in my web.xml (as the separate deployment method) ?

Orbeon offers the way to point to URL ;
- How can I get the form_type_id (from /fr/orbeon/builder/edit/form_type_id/) after creating it in order to modify the form ?
- How can I get the form_data_id and my_type (from /fr/my_app/my_type/edit/form_data_id) to modify a response to the form ?

I'm thinking to the followings issues :
 - a persistence service in my webapp
 - an xforms:submission in the builder
But I have not found a way to do this !

Thanks in advance for your responses.

Best regards.

--
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: Integration of Orbeon Form Builder in a webapp

Erik Bruchez
Administrator
Did you find answers to these questions?

-Erik

On Jan 22, 2009, at 5:26 AM, QUILLERIE Brice wrote:

> Hello,
>
> First, please excuse me for my English (I'm French) and for my  
> ignorance (I'm newbie with orbeon).
>
> I have read a lot of documentation but I can't reach to find the  
> good way ; please help me.
>
> I want to include a form builder / runner in a webapp (Spring, JSF,  
> XFire, Hibernate).
> The idea is to offer the capability to add some specifics forms  
> depending on the data that the users are consulting.
>
> Here are my questions :
> Is there a way to integrate form builder with a filter in my web.xml  
> (as the separate deployment method) ?
>
> Orbeon offers the way to point to URL ;
> - How can I get the form_type_id (from /fr/orbeon/builder/edit/
> form_type_id/) after creating it in order to modify the form ?
> - How can I get the form_data_id and my_type (from /fr/my_app/
> my_type/edit/form_data_id) to modify a response to the form ?
>
> I'm thinking to the followings issues :
>  - a persistence service in my webapp
>  - an xforms:submission in the builder
> But I have not found a way to do this !
>
> Thanks in advance for your responses.
>
> Best regards.
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Integration of Orbeon Form Builder in a webapp

Brice QUILLERIE
Yes and No ; I have force the ids in creating forms and data with the
REST interface and then edit.

This works fine but it's just a walkaround !

Now, I have another problem due to authentication so I am testing
intergrated deployment ...

Erik Bruchez a écrit :

> Did you find answers to these questions?
>
> -Erik
>
> On Jan 22, 2009, at 5:26 AM, QUILLERIE Brice wrote:
>
>> Hello,
>>
>> First, please excuse me for my English (I'm French) and for my
>> ignorance (I'm newbie with orbeon).
>>
>> I have read a lot of documentation but I can't reach to find the good
>> way ; please help me.
>>
>> I want to include a form builder / runner in a webapp (Spring, JSF,
>> XFire, Hibernate).
>> The idea is to offer the capability to add some specifics forms
>> depending on the data that the users are consulting.
>>
>> Here are my questions :
>> Is there a way to integrate form builder with a filter in my web.xml
>> (as the separate deployment method) ?
>>
>> Orbeon offers the way to point to URL ;
>> - How can I get the form_type_id (from
>> /fr/orbeon/builder/edit/form_type_id/) after creating it in order to
>> modify the form ?
>> - How can I get the form_data_id and my_type (from
>> /fr/my_app/my_type/edit/form_data_id) to modify a response to the form ?
>>
>> I'm thinking to the followings issues :
>>  - a persistence service in my webapp
>>  - an xforms:submission in the builder
>> But I have not found a way to do this !
>>
>> Thanks in advance for your responses.
>>
>> Best regards.
>>
>> --
>> 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/
>

--
------------------------------------------------------------------
Brice Quillerié
Direction des Systèmes d'Information - Université Montpellier 1
Téléphone : 04 67 82 12 39 - Mél : [hidden email]
------------------------------------------------------------------



--
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: Integration of Orbeon Form Builder in a webapp

bsteuhl
In reply to this post by Erik Bruchez
I have the same requirement in a project I am working on intergrating with sugarCRM.

Our requirements are to have links in sugar pointing to the new forms and when they want to view and/or edit the form.  

We would like to request a form ...orbeon/fr/Company/form/new/ and append our own GUID.  Is this possible?

If not, how would we grab the unique id generated by orbeon when the user clicks save in orbeon, so we can write that back to sugar database for later url construction ponting to that form  .../orbeon/fr/company/form/edit/{id}.

Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: Integration of Orbeon Form Builder in a webapp

bsteuhl
I figured it out this morning - just had to realize that form runner created a fr-parameters-instance/document GUID on page load and I simply overwrite this value with our parameter on model construct done IF we pass in an ID - since I do not want that action to run when in edit mode and we are not passing in an id parameter.  Four (4) lines of code are below for anyone else facing something similar:  

<xforms:action ev:event="xforms-model-construct-done" if="xxforms:get-request-parameter('id') != ''">
                                <xforms:setvalue ref="xxforms:instance('fr-parameters-instance')/document" value="xxforms:get-request-parameter('id')" />
                                <xforms:setvalue ref="instance('fr-form-instance')/section-1/id" value="xxforms:instance('fr-parameters-instance')/document" />
                        </xforms:action>

NOTE: the last setvalue was just for me to see the value on the form instead of looking at instance inspector even though by default the parameters model/instance is the first thing displayed :)  So, you really only need action and one setvalue.

Thanks
Brian Steuhl
BTMSoftwareSolutions.com