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!

How to use APEX Javascript API apex.server.process

Magnus LJan 18 2019 — edited Jan 18 2019

Taking my first steps in the APEX world by trying the hosted Oracle APEX environment making some test pages. In one of them I am writing some Javascript code where I want to use an AJAX call by use of API function apex.server.process.

Simple example code:

...

apex.server.process("testFunc",

      {},

      {success:

        function(pData)

        {alert(pData);}

      }

    );

...

The Javascript is called from the page HTML body. My problem is that the call to apex.server.process is unrecognized. I get "apex is not defined" in the console when debugging, so I don't even get to making the call. I thought I did not have to include anything to be able to call the API functions but maybe that is not correct?

Comments
Post Details
Added on Jan 18 2019
3 comments
1,883 views