1 Reply Latest reply: Feb 5, 2013 7:35 AM by 984952 RSS

    Apex 4.1 Ajax Callback don't work in apex_application array

    984952
      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;