I have a form page (page 2) in an Apex App which is filled in periodically over time as events are actioned. When the whole task is complete, the user should click a button which automatically fills a couple of database items (also in the form, set as display only items) to indicate date completed and by whom. (app_user)
I have created a Button and a Dynamic action, but clicking the button causes the App to jump back to page one (a report with edit links to the form above). No fields filled or indeed anything saved..
Dynamic Action assigned to a button:
-- set closed out items
then :P2_CLOSED_OUT := sysdate;
:P2_CLOSED_OUT_BY := :APP_USER;
-- already set, don't change
l_blank := 0;
don't mind if the button only performs this action, but if it can save the page as well then all the better.
Any pointers would be greatly appreciated !
thanks in advance