Previous |
Next |
Displays a confirmation showing a message (pMessage
) and depending on user's choice, submits a page setting request values specified by (pOptions
) or cancels page submit.
Parameters
pMessage (string) pOptions (object) Object can contain the following options: request - The request value to be set (Defaults to null) set - Object containing name / value pairs of items to be set on the page prior to submission (Defaults to null)
Example 1
This example shows a confirmation message with the 'Save Department?' text. If the user chooses to proceed with the save, the page is submitted with a REQUEST
value of 'SAVE' and 2 page item values are set, P1_DEPTNO
to 10
and P1_EMPNO
to 5433
."
apex.confirm("Save Department?", { request:"SAVE", set:{"P1_DEPTNO":10, "P1_EMPNO":5433});
Example 2
This example submits the current page and sets the REQUEST
value to SAVE
.
apex.submit('SAVE');