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 pass string parameter in javascript function from sql query ?

TRMNov 27 2018 — edited Nov 27 2018

Hi,

i have below query where i am calling java script function myfunction on button click and trying to pass parameter in that.

but it is not working. Can you please support.

select STELLE_ID,

       STELLE_DISPLAY_NAME,

       STELLE_CITY,   

       '<button onclick="myFunction(STELLE_DISPLAY_NAME)">Click me</button>' as button

  from TMD_STELLE;

JavaScript function :

function myFunction(a)

{

    var b = a;

   alert(b);

}

Thanks

Comments
Post Details
Added on Nov 27 2018
1 comment
1,016 views