Forum Stats

  • 3,837,076 Users
  • 2,262,223 Discussions
  • 7,900,198 Comments

Discussions

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

User_VYF4M
User_VYF4M Member Posts: 1 Green Ribbon


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:


and here is the embedded result:

but when I change the code to pass fitters then the page doesn't load anymore:



the browser console has two specific errors:

1- Uncaught Error: Either projectPath or projectJSON are required

2- Uncaught ReferenceError: requirejs is not defined

In 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.



I will appreciate your help for this strange situation.