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!

APEX plugins static file default path?

wanglei_CNFeb 8 2020

Dear all.

APEX 19.2 ORDS & DB 19c

1. the plugin default static filepath is like this,if i didn't custom the "G_APEX_NITRO_PROGRESS_BAR",the default filepath is "p_plugin.file_prefix".I also can't find the "apex_plugin_util.debug_page_item".

apex_plugin_util.debug_page_item

    ( p\_plugin     => p\_plugin

    , p\_page\_item  => p\_item

    );

getValues

    ( p\_value      => l\_escaped\_value

    , p\_percentage => l\_percentage

    , p\_message    => l\_message

    );

apex\_javascript.add\_library

    ( p\_name       => 'script#MIN#'

    , p\_directory  => nvl(:G\_APEX\_NITRO\_PROGRESS\_BAR, p\_plugin.file\_prefix) || 'js/'

    );

apex\_css.add\_file

    ( p\_name       => 'style#MIN#'

    , p\_directory  => nvl(:G\_APEX\_NITRO\_PROGRESS\_BAR, p\_plugin.file\_prefix) || 'css/'

 );

2020-02-08 11-33-39屏幕截图.png

2. And the plugin default filepath prefix is none,so browser will go this address to load js/css,but the address is not exist.As you see it can't load correctly.

2020-02-08 11-22-31屏幕截图.png2020-02-08 11-23-21屏幕截图.png

3. now i copy the plugin files to /oracle/myapex/image/plugins/,and configure the prefix-filepath(#IMAGE_PREFIX#plugins/stefandobre-Progress-Bar-214aafa/src/),then the browser will load the css/js normally.The plugin will work well.

2020-02-08 11-23-47屏幕截图.png

Q: there are many plugins in my apps,i can't do this steps again and again.I want to know why the static filepath is http://ip:8080/ords/v3fa/r/101/files/plugin/1330855766029805499/v29/js/script.js ,it never be created in the system folders.I remember this error never happend before,so i think it must be related with ORDS.But i don't know how to configure the default "p_plugin.file_prefix".

thanks for any help.

regards.

Comments
Post Details
Added on Feb 8 2020
1 comment
1,252 views