Post Process URL for an Editable Form Page

You can specify a URL to execute after a form has been closed by the user.

The postProcessURL parameter specifies the name of the JSP to call during post processing of the web form in edit mode.

The following examples show how to invoke the emxForm.jsp with postProcessURL:


  • Set the href of any command object using macros where appropriate:
    ${COMMON_DIR}/emxForm.jsp?mode=Edit&form=<form_name>
    &postProcessURL=${SUITE_DIR}/emxCustomPostProcess.jsp
    

    Or>

  • Invoke emxForm.jsp with custom JSP pages using the relative path (macros are not supported):
    ../common/emxForm.jsp?mode=Edit&form=<form_name>
    &postProcessURL=../<Application Directory>/emxCustomPostProcess.jsp
    

If you specify both a postProcessURL and postProcessJPO, the postProcessURL executes first followed by the postProcessJPO.

When the standard edit process completes, the edit display frame formEditDisplay is submitted to a hidden target frame with the post process URL. The post process JSP has the following input parameters:


  • The request parameters available for the emxForm.jsp, for example, objectId, relId, timeStamp, form, portalMode, suiteKey, etc.
  • The request parameter timeStamp gets the form field information stored in the form bean as a map.
  • All the form values displayed in the frame formEditDisplay are available to the post process JSP as request parameters.

To update or interact with any objects, obtain the context from the request in the post process JSP using this code:

context = (matrix.db.Context)request.getAttribute("context");

See Pre-Process URL for an Editable Form Page for code samples that retrieve request parameters and field information.