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!

ONCLICK in HTML Uncaught ReferenceError: *** is not defined

I am practicing my Apex and some html / javascript but i ended with this error and now I'm stuck.

In a link i have the same code:

<script>
function showmydata(myparam) 
{
 apex.item( "P3_NOMBRE" ).setValue( myparam );
};
</script>
<a href="#" onclick="showmydata(#ENAME#)">
 <img src="#APP_FILES#icon.png" />
</a>

When I click on the big blue arrow, it should display in the first column: “nombre” the content of “ENAME” **apex.item( "P3_NOMBRE" ).setValue( myparam );**

But it shows an error: Uncaught ReferenceError: KING is not defined. Strange that if i click on a record that has a numeric value in ENAME, for instance “21” it works as it should.

Is “ONCLICK” only numeric? and not string?

This post has been answered by Karel Ekema on Nov 24 2024
Jump to Answer
Comments
Post Details
Added on Nov 24 2024
4 comments
963 views