The problemYou have 2 separate forms created with Form Builder and running in Form Runner. You would like the user to navigate from the first form to the second form, and then gather all the data at once. The solutionNOTE: This is a stub solution. Feel free to complete!
Let's say we have form A and form B. You can, via the workflow-send button, send the filled-out data of form A to form B, and have form B initialize from the posted data, by enabling the oxf.fr.detail.new.accept-post property for form B.
One issue si that the data from form A has a certain specific layout for its XML data model. If form B expects a different data model, then form B will not work.
So the key is to make the data model of form B be "compatible" with that of form A. These rules apply: - The data model for form B should be an extension of that of form A.
- Section names and control names must match for data that is shared.
One way of doing #1 is to make the XML data model for both forms be exactly the same, by copy/paste of the XML data model from form A to B, then extending that data model in form B. For example:
If there is a piece of information in form A, say first-name, in a section, say section1, then if you want to edit or view that information in form B, then the input or text control in form B must also be called first-name, and it must be in a section called section1.
|
|