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!

Unexpected token var on Dynamic Action javascript

pawuyulanNov 7 2017 — edited Nov 8 2017

APEX version: 5.1 on apex.oracle.com

This is valid javascript as tested here

var LOV =new Array();

LOV = ['cuis', 'carpincho'];

alert('length =' + LOV.length);

it produces the expected output:

Untitled.jpg

But if I put that javascript code in APEX 5, on a Dynamic action, I get this error: "Uncaught SyntaxError: Unexpected token var"

pastedImage_10.png

Is there a special way in which arrays should be declared here?

This post has been answered by fac586 on Nov 7 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 6 2017
Added on Nov 7 2017
2 comments
1,358 views