This discussion is archived
1 Reply Latest reply: Feb 5, 2013 5:35 AM by 984952 RSS

Apex 4.1 Ajax Callback don't work in apex_application array

984952 Newbie
Currently Being Moderated
Hi;

I hava a process on demand called by ajax in Apex 4.1, like this:

function ajx_callback(){

var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=ALTER',&APP_PAGE_ID.);
var ajaxResult = ajaxRequest.get();

if(ajaxResult) {
alert('Ajax is Called Successfully!');
}
ajaxRequest = null;

}

-> The process ALTER is:

BEGIN
FOR i IN 1 .. apex_application.g_f01.COUNT
LOOP
UPDATE table_01 SET seq = i
WHERE sequence_id = apex_application.g_f01(i); // This Array Value is for a Classic Report
END LOOP;

commit;
END;

-> The javascript is called in a dynamic action When Event = "Change", but the process "ALTER" don't is called. What is wrong with this code?;

Regards;

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points