Get Widget’s Values Directly From The ElastiCube (API Request)
Updated 02-13-2024
Hi vishalbhomia89, I had a similar error and solved it:
For me, the cause was that my Sisense URL was like "www.mydomain.com/Something/app/...". When you set "/api/elasticube/<id>/jaql" as the URL in your script, Sisense/JavaScript will implicitly prepend the domain. So, my path becomes "www.mydomain.com/api/...".
The URL needs to include the "/Something". There are two ways to do that:
(A) URL = "/Something/api/elasticube/<id>/jaql".
(B) URL = window.prism.proxyurl + "/api/elasticube/<id>/jaql".
I prefer (B) because my script gets run on multiple Sisense instances with different URLs, so having it dynamically deal with the "/Someting" or "/SomethingElse" is good for me.