Cancel Process URL for an Editable Table

The cancelProcessURL parameter specifies the name of the JSP to call during cancel processing of the table in edit mode.

The following examples show how to invoke the emxTable.jsp with cancelProcessURL:


  1. Set the href of any command object using macros where appropriate:
    ${COMMON_DIR}/emxTable.jsp?mode=Edit&table=<table_name>
    &cancelProcessURL=${SU
    ITE_DIR}/emxCustomCancelProcess.jsp

    or

  2. Invoke emxTable.jsp with custom JSP pages using the relative path (macros are not supported):
    ../common/emxTable.jsp?mode=Edit&table=<table_name>
    &cancelProcessURL=../<Application Directory>/emxCustomCancelProcess.jsp
    

If both a cancelProcessURL and cancelProcessJPO are specified, the cancelProcessURL executes first, followed by the cancelProcessJPO.

The cancel process JSP contains these input parameters:


  • The request parameters that were available for the emxTable.jsp, for example, timeStamp, portalMode, suiteKey, etc.
  • The request parameter timeStamp gets the table data (as a map) stored in the table bean.
  • To update or interact with any objects, obtain the context from the request using this code.
context = (matrix.db.Context)request.getAttribute("context");

The code sample in Preprocess URL for an Editable Table shows you how to read values from the requestMap and iterate through the ObjectList for the objectIds.