Skip to Main Content

LiveLabs & Workshops

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!

Unable to embed Oracle Analytics in APEX when I pass parameters to filter the project

Hello,
I am trying to embed an Oracle Analytics Server project in an Oracle Apex application.

Technologies:
Oracle Analytics Server 5.9
host:192.168.x.y
port:9502

Oracle Apex configured on weblogic (same weblogic as OAS)
host: 192.168.x.y
port:9500

using Oracle Analytics documentation and some useful blog posts, I managed to embed a sample project in an html apex webpage. however when I try to send filter parameters to OA, some errors raise.

here is the sample project with a simple filter:
image.png
and here is the embedded result:
image.pngbut when I change the code to pass fitters then the page doesn't load anymore:
image.png
image.png
the browser console has two specific errors:
1- Uncaught Error: Either projectPath or projectJSON are required
image.png2- Uncaught ReferenceError: requirejs is not defined
image.pngIn addition, Although I have added server and localhost machines as safe domains in OAS console, but CORS errors raise many times even for simple and successful situations(randomly).

Additional note: I have passed filters directly to <oracle-dv> and it worked successfully. but I need to pass parameters dynamically such as passing a v$(P2_YEAR) as a condition value.
image.pngimage.png
image.png

I will appreciate your help for this strange situation.

Comments

Post Details

Added on Jun 11 2022
0 comments
416 views