I have an interactive report, where the query is combined, so I can't use editable interactive grid. That's why I have to use manual form in my query. I've found some nice tips about the APEX_ITEMs, but I have problem with my process.
In my query there are columns like:
APEX_ITEM.HIDDEN(1,coursestudent.id)
...
APEX_ITEM.SELECT_LIST(2,coursestudent.signed,'Signed;1,Failed;0')
I have a submit button, and here is my process:
FOR i in 1..apex_application.g_f01.count LOOP
UPDATE coursestudent
SET signed=apex_application.g_f02(i)
WHERE id=apex_application.g_f01(i);
END LOOP;
I've thought that it's not too difficult, but after I press Submit nothing happens, except that the Success message is written out the page.
What should I do?
I'm using the Oracle Apex version: 5.1.1.00.08
apex_debug.message('g_f01='||apex_application.g_f01(i)||' g_f02='||apex_application.g_f02(i));
within the loop, and check the debug logs to see what values the submit process gets. Note that your UPDATE statement will do nothing (and not raise any exception) if the where clause finds no matching rows (or ifg_f01(i)
happens to be null). – Jeffrey Kemp