|
 |
AJAX Page Process |
|
 |
|
Instruction
Enter Data and press the submit button.
What you will see is that the Data is stored in the database and displayed in the report region below, all without submitting the page.
This is done just by calling the new JavaScript function apexlib.process.executePageProcess from the button.
And to make it even better, all item values are returned from the page process and written to the items (DOM-Tree) -> check the display item "Last created job id" in this example.
|
|
 |
|
 |
 |
 |
Jobs Data |
|
 |
|
JOB_ID | JOB_TITLE | MIN_SALARY | MAX_SALARY |
Z135848 | abcd | 9 | 999 |
Z135840 | 管理 | 1000 | 10000 |
Z135736 | 少飞 | 111 | 2000 |
Z135149 | x | - | - |
Z135014 | Testing | 0 | 100 |
Z134956 | tester | 100 | 1000 |
Z134832 | Manager | 3000 | 5000 |
Z134821 | FI_MGR | 8200 | 16000 |
Z134427 | President | 3000 | 5000 |
Z134321 | DEV - SmartPlant Materials | 140 | 550 |
Z134009 | 1sdfgh | 2456 | 40000 |
Z133808 | Test Staff | 500 | 1000 |
Z133558 | x | 400 | 300000 |
Z133346 | nuevo | 10 | 100 |
Z133317 | Serf | 0 | 0 |
| | |
|
 |
|
|
 |
 |
Instructions |
|
 |
|
Note
AJAX Computations require APEX 3.1 or higher!
AJAX Page Process should only be used when you really need to process data right away without submitting the page. Remember that you'll have to take care of storing the data and maybe clearing the form and so on!
Integrate it!
All you have to do is to define a page process containing the code to store the data and then call "javascript:apexlib.process.executePageProcess('myProcess');" within your Button.
That's it !
|
|
 |
|
 |
 |
|