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!

Uncaught SyntaxError: Unexpected token &

MätesMay 18 2019 — edited May 18 2019

Hi,

I'm using Apex 19.1 with Apache Tomcat 9.0.17 and ords 19.1.0.092.1545. In an interactive grid I've defined a button to open a modal dialog wizard.

Code snippet IG JavaScript Initialization Code:

config.initActions = function( actions ) {

    actions.add( {

        name: "Create",

        action: function(event, focusElement) {

            apex.navigation.redirect(apex.item("P10\_URL").getValue());

        }

    }),

    actions.add( {

        name: "Refresh",

        action: function(event, focusElement) {

            apex.region("SNAPSHOT\_REPORT").refresh();

        }

    } );

}

The code to populate P10_URL is specified in a DA (Set Value) with PL/SQL Function Body, affected elemnt is set to P10_URL:

RETURN APEX_UTIL.PREPARE_URL(p_url => 'f?p=' || :APP_ID || ':13:' || :APP_SESSION || ':::::');

The url generated looks ok (in my opinien)

pastedImage_30.png

but the modal page does not open and I receive a: Uncaught SyntaxError: Unexpected token &

Web console:

pastedImage_33.png

pastedImage_34.png

Looks like a problem with  at the beginning in apex.navigation.dialog.

Any help is appreciated.

Regards,

mätes

This post has been answered by Mätes on May 18 2019
Jump to Answer
Comments
Post Details
Added on May 18 2019
2 comments
3,054 views