Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

That's it. As usual, you access the form using its URl. When the form is used (instantiated), you may specify one or more query parameters along with the URI. For this example, we might use a URI and query parameter: .../form/1234?customer=02.  will resolve the URI template above to: .../customers/02, GET the customer, and display the initialized form. When the form is submitted, Live Forms will  will automatically PUT the customer document to the same URI thereby updating the customer. The diagram below shows the interactions.

...

  1. We instantiate the form with a parameter customer=02. This causes the form to resolve the URI template and GET the customer data from: http://[server]/customers/02. The resulting XML document provides the initial state of the Customer and is used to initialize the form.
  2. Modify a value and click Submit. The form will automatically PUT to the correct resource and update the customer information.
  3. Finally, Live Forms frevvo product name macro will store the generated document set and assign it a unique URI. The document set and the documents therein can be accessed at this URl.

...

Here is an example form an example form ] that creates a new customer using this method.

...

For example, if you enter ID 03, Live Forms will  will GET .../customers/03, display the form with fields initialized from the returned XML document and PUT the modified XML document to the same URI when the form is submitted. This PUT will update the customer with ID 03.

...