CRUD Web Service API : Problem publishing forms that reference section template

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

CRUD Web Service API : Problem publishing forms that reference section template

fbonin
Hi,
I am trying to use the CRUD web API to update the form definitions on a continous Integration server (http://doc.orbeon.com/form-runner/api/persistence/crud.html). It is working fine for normal forms but it is not working properly for forms that reference a section template in the library that we created. For these, the section referenced is just missing.

I verified by doing the operation manually and it seems that Orbeon is copying the section template in the currently edited form when it publishes it in the orbeon_form_definition table. Is this something that we can do in the CRUD API ? If so, how ?

Thank you !

Frederic
Reply | Threaded
Open this post in threaded view
|

Re: CRUD Web Service API : Problem publishing forms that reference section template

Erik Bruchez
Administrator
Frederic,

The CRUD API is pretty much just that: it stores and returns what it receives.

On the other hand, when Form Builder publishes a form definition, it goes through a process where it includes the section templates as well as some migration information. In the future there could be even more processing to do.

You can get an idea by looking at the process here:

    https://github.com/orbeon/orbeon-forms/blob/22040809014802780cbafee201b5daa069e7fcd8/form-builder/src/main/resources/forms/orbeon/builder/form/model.xml#L564

It would be good to have some kind of API to do this, but currently there is no such API.

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: CRUD Web Service API : Problem publishing forms that reference section template

Erik Bruchez
Administrator
I added an RFE here:

    https://github.com/orbeon/orbeon-forms/issues/2876

-Erik