Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Serialize a Form Region for AJAX request?

McRiversOct 21 2020 — edited Oct 22 2020

Hey All, i'm new to the oracle communities and in my second week trying to learn APEX (19.2).
I'm trying to wire up an AJAX Callback process to insert a new record into a table. I am able to get the ajax request to work if I list all the form fields in a pageItems object as specified in the JSDoc API, but was hoping there was an easier way to serialize all the form fields at the region level at once similar to jQuery's .serialize method.
I tried to specify a static id for the region ("user-info-form") and then use the following javascript:
let request = apex.server.process("PROCESS_USER_INFO", {
"regions": [ {
"id": "user-info-form,
}]);
I didn't have much luck with this. No data is being sent when looking at the request via the browser dev tools. I'm sure I am missing something obvious, but been struggling for last day trying to pinpoint it. Appreciate any help.

This post has been answered by John Snyders-Oracle on Oct 26 2020
Jump to Answer
Comments
Post Details
Added on Oct 21 2020
4 comments
373 views