3 Replies Latest reply on Sep 19, 2013 2:41 PM by Ramesh P, Oracle APEX Developer

    Javascript: to pass values to another page


      hi all,


      i hav an interactive report. if i clik on a particular row, that row values must be passed to an another page (via javascript)

      i found this forum https://forums.oracle.com/thread/2467579 in which they hav used it for sending mail.

      but i wanted to pass those values to another page throug javascript bz, i hav installed a plugin nd wrking from it under right clik.



      ma  javascript function  is,


      function func(action,el, pos)


         window.location ="http://apex.oracle.com/pls/apex/f?p=71510:2:&SESSION.:::2:P2_X,P2_X2:'+ $(el).children('td[headers="EMPNO"]').text() +  ',' + $(el).children('td[headers="ENAME"]').text()";




      here i hav redirected it to the 2nd page and in the 2nd page i hav used 2 items to get these values.


      $(el).children('td[headers="EMPNO"]').text() +        ------->  this is to fetch the empno of that particular row and similarly for the name.


      but if i click on the right clik button , no action is happening... 




      but its working fine, if i use the function as,



      function func(action,el, pos)


         window.location ="http://apex.oracle.com/pls/apex/f?p=71510:2:&SESSION.";



      so somewhere is going wrong in passing the values in URL i suppose....


      and i hav used al d above things in

      http://apex.oracle.com/pls/apex/f?p=71510:1 (username: test / paswrd: pex14gm)


      pls help me out.....


      thanks in advance