Smart View Perspective Web Report
Hi all
Can anyone advise whether Parameters can be passed to a webreport which is on a Content Intelligence HTML webreport Perspective - from a URL?
I can do it in Classic view, but Smart View fails pass the parameters through.
Thanks
Best Answer
-
Hi Damien,
In a WebReport widget you can access the URL parameters with the tag [LL_REPTAG_ORIGINPARAMS /].
In case you are on an older CS version, the original URL is available in the HTTP_REFERER, but you need parse the URL yourself. You access the HTTP_REFERER as [LL_REPTAG_&HTTP_REFERER /], basically as a parameter to the WebReport.
Hans
1
Answers
-
Hello Damien,
I do not believe it is possible to pass parameters via the query string. The Smart UI truncates the query string and it will never make it to your WR.
I recommend you take a look at this post:
https://forums.opentext.com/forums/developer/discussion/comment/965496You can use [LL_REPTAG_WIDGETCONTAINERID /]
The other technique I have used to overcome the query string problem is local storage:
First WR:
localStorage.clear();
localStorage.setItem("seq", seq);
var subWrUrl = "[LL_REPTAG_URLPREFIXFULL /]/app/nodes/[LL_REPTAG_$EditDatesWRID /]"
document.location = subWrUrl;Second WR:
var seq = localStorage.getItem("seq");
localStorage.clear();
Hope this info assists you.Regards,
-MC0 -
Hi Damien,
In a WebReport widget you can access the URL parameters with the tag [LL_REPTAG_ORIGINPARAMS /].
In case you are on an older CS version, the original URL is available in the HTTP_REFERER, but you need parse the URL yourself. You access the HTTP_REFERER as [LL_REPTAG_&HTTP_REFERER /], basically as a parameter to the WebReport.
Hans
1 -
Does that work for a webreport within a Perspective on a Smart View page?
0 -
Hi Damien, if your question is for me. What I wrote is only valid for Smart View and works especially for the WeBReport widgets.
2 -
Thanks Hans - that's great, although I don't appear to be getting the values from the assoc correctly. I have this sample URL
…/app/nodes/34633253&ProotFolderID=4178657&PreportName=DummyName&PlqlQuery=stuff
In the webreport I am doing this
[LL_REPTAG_ORIGINPARAMS ASSOC:"ProotFolderID" setvar:varrootFolderID /]
[LL_REPTAG_ORIGINPARAMS ASSOC:"PreportName" setvar:varreportName /]
[LL_REPTAG_ORIGINPARAMS ASSOC:"PlqlQuery" setvar:varlqlQuery /]Does that look correct?
0 -
I solved it, I needed a ? before params in URL. It works as required. Thanks Hans.
0 -
Great information Hans!
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 151 General Questions
- 148 Thrust Services
- 57 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories