Hi Friends,
With reference to our last communication (please refer attached mail), We succeeded in invoking JSP code for table creation at the time of form publishing. We achieved it by making the following changes in orbeon-form-builder.jar / forms / orbeon / builder / form / dialog-publish.xml. dialog-publish.xml ____________________________________________________________________________ <xforms:group ref=".[not(normalize-space($response) != '')]"> <xhtml:div class="fb-publish-message"> <xhtml:ol> <xhtml:li> <xhtml:a href="/fr/{$metadata-instance/application-name}/{$metadata-instance/form-name}/summary" target="_blank"> <xforms:output value="$form-resources/dialog-publish/messages/open-summary"/> </xhtml:a> </xhtml:li> <xhtml:li> <xhtml:a href="/fr/{$metadata-instance/application-name}/{$metadata-instance/form-name}/new" target="_blank"> <xforms:output value="$form-resources/dialog-publish/messages/open-new"/> </xhtml:a> </xhtml:li> <!-- Modified Code!> <xhtml:li> <xhtml:a href="http:// localhost:8088 / Orbeon_DB / Test / TableCreation.jsp"> Create Table For This Form </xhtml:a> </xhtml:li> <!-- Modified Code Ends!> </xhtml:ol> </xhtml:div> </xforms:group> ________________________________________________________________________________ When the user clicks the link Create Table For This Form, the control transfers to TableCreation.jsp which executes the table creation logic at the time of form-publishing. We have also written a code that pulls the record from the table orbeon_form_data, after it is entered by the end-user, and saves it in our own tables. We, however, have not been able to locate an invocation point for this jsp. Ideally, we want this code to be invoked when the user clicks the "Save Button" on the form served by the form runner. We extensively perused through orbeon_form_runner.jar but could not find the action that corresponds to the click of the "Save Button". Could you please help us in resolving this issue ?? Thanks & Regards, Seema |
Administrator
|
Mmh, I would place any hooks in the persistence layer implementation,
not in the user interface of Form Builder. When you save or publish, Form Builder calls the persistence REST API: http://wiki.orbeon.com/forms/doc/contributor-guide/form-builder-integration-notes#TOC-Persistence-API You can plug your own persistence layer by implementation the API. Or, you can modify one of the existing implementations (eXist, Oracle XML, MySQL) to suit your needs. See e.g.: http://github.com/orbeon/orbeon-forms/tree/master/src/resources/apps/fr/persistence/ -Erik On Mon, Oct 25, 2010 at 4:33 AM, Seema Shukla <[hidden email]> wrote: > > Hi Friends, > > With reference to our last communication (please refer attached mail), > We succeeded in invoking JSP code for table creation at the time of form > publishing. > We achieved it by making the following changes in orbeon-form-builder.jar / > forms / orbeon / builder / form / dialog-publish.xml. > > dialog-publish.xml > ____________________________________________________________________________ > > <xforms:group ref=".[not(normalize-space($response) != '')]"> > > <xhtml:div class="fb-publish-message"> > > <xhtml:ol> > > <xhtml:li> > <xhtml:a > href="/fr/{$metadata-instance/application-name}/{$metadata-instance/form-name}/summary" > target="_blank"> > <xforms:output > value="$form-resources/dialog-publish/messages/open-summary"/> > </xhtml:a> > </xhtml:li> > > <xhtml:li> > <!-- TODO: i18n --> > <xhtml:a > href="/fr/{$metadata-instance/application-name}/{$metadata-instance/form-name}/new" > target="_blank"> > <xforms:output > value="$form-resources/dialog-publish/messages/open-new"/> > </xhtml:a> > </xhtml:li> > > <!-- Modified Code!> > > <xhtml:li> > <xhtml:a href="http:// localhost:8088 / > Orbeon_DB / Test / TableCreation.jsp"> > Create Table For This Form > </xhtml:a> > </xhtml:li> > > <!-- Modified Code Ends!> > > </xhtml:ol> > </xhtml:div> > </xforms:group> > ________________________________________________________________________________ > > When the user clicks the link Create Table For This Form, the control > transfers to TableCreation.jsp which executes the table creation logic at > the time of form-publishing. > > > We have also written a code that pulls the record from the table > orbeon_form_data, after it is entered by the end-user, and saves it in our > own tables. We, however, have not been able to locate an invocation point > for this jsp. Ideally, we want this code to be invoked when the user clicks > the "Save Button" on the form served by the form runner. We extensively > perused through orbeon_form_runner.jar but could not find the action that > corresponds to the click of the "Save Button". > > Could you please help us in resolving this issue ?? > > > Thanks & Regards, > > Seema > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Integrating-custom-jsps-with-Orbeon-Form-Runner-tp3010153p3010153.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 > > -- 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 |
Free forum by Nabble | Edit this page |