logo

New Response

« Return to the blog entry

You are replying to:

  1. Hi Jake,

    I think i have the another solution for you!!!... All that it requires is a WQS agent and a WQO agent!

    I now it runs along the lines of what you suggested, but you can use the WQO to delete the original document (i.e. step 6).

    Steps

    ************************************

    1) User enters a new form and submits it to the Server.

    (e.g. test?openform)

    2) The WQS agent saves and validates the form.

    3) If the validation fails, the WQS redirects the user to the same form with a URL parameter that is the UNID of the saved document!

    (e.g. test?openform&unid=###...)

    4) When the form opens you check to see if a UNID has been passed to the form... If it has you call the WQO Agent.

    5) The WQO Agent, gets the original saved document, populates the fields for the form!

    (NOTE: You can delete the document at this stage, but if the user refreshes the form, they will lose all the data they entered!)

    6) The form is now populated with the data the user originally entered, plus it contains the validation message you want to display!

    7) When the user attempts to save again, you can

    a) update the original document

    OR

    b) create a new document and delete the previous one!

    8) This cycle can be repeated as many times as you like and should be fairly easy to implement!

    ************************************

    I have tried the process above and it works pretty well.

    Again, you will have to have a scheduled agent to delete the "non-finished" documents!

    Later

    Patrick

    P.S. Let me know what you think!

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: