Using the same check / processing that I performed based on this thread:
Calling an Oracle Function Through Ajax in Place Verification Objectives in Oracle APEX v4.2.2
Now I have a tabular form that can contain from 1 to n rows, but when the user clicks the Apply button, I need to perform the same type of check that I have, based on the stream described above, that is:
An example rowset might look like this:
Col1 Col2 Col3 Col4
----------------------------
A 10 20 30
B 5 8 9
C 92 88 12
D 1 2 44
E 95 77 88
According to the above scenario, when the user clicks the Apply button, by calling Dynamic Action / Ajax (apex.server.process), I need to iterate through each row using the above four columns (without checkboxes used here, just select the lists, select the column values), call my ajax to check:
(Col2 > Col4) for all rows
and if so, return via javascript, a warning message to the user indicating that the problem was found with the data (i.e. the INVALID response from apex.server.process).
I need to check this validation for all rows before writing records to the database.
Any help on how to achieve this (hopefully through DA / Ajax / jQuery) would be greatly appreciated.
Thank.
source
share