问题
I have created a dashboard in pentaho User console. I want to view it outside the User console.(Without logging in to user console) Is it possible ?
回答1:
Yes. It is possible.
You need get two things.
1)Get URL for the dashboard
2)Allow URL authentication.
1)Dashboard URL
---------------
The dashboard url structure will be like this.
http://localhost:8080/pentaho/plugin/pentaho-cdf-dd/api/renderer/render?solution=RootDirectoryName&path=SubDirectoryName&file=your_dashboard.wcdf&userid=admin&password=password
if you have directory structure like this in your pentaho
-
Home
---->Admin
---->Suzy
---->tiffiny
Public
----->myDashBoard
----------->myDashboard.wcdf
----->SampleDashBoard
----->.....
----->.....etc
Public and Home are root directories, and Suzy,SampleDashBoard are sub Directories.
Example if you want to use myDashboard.wcdf dashboard then you use this link.
http://localhost:8080/pentaho/plugin/pentaho-cdf-dd/api/renderer/render?solution=home&path=suzy&file=iq_dashboard.wcdf&userid=admin&password=password
------------------------------------------------------------------------
2)Allowing URL Authentication
go to your pentaho directory ex:- **
D:\yourDirectory\pentaho-server-ce-7.0.0.0-25\pentaho-server\pentaho-solutions\system\
------------------------------------------------------------------------
**
open security.properties file in editor.
security.properties
change this code from false to true.
requestParameterAuthenticationEnabled=true
------------------------------------------
>save file and close it.
>restart pentaho server.
>Open your browser and enter the dashboard link as generated in step 1.
>Now your dashboard will render on browser.
------------------------------------------------------------------------
回答2:
If your dashboard was created with the CDE, you can embedded it in your web applications in three ways:
- Enabling the requireJS flag in settings within the CDE and embedding the same via a rendering plugin.
- Using iframe and calling the dashboard link passing authentication via URL.
- Using the components of the CDF and placing in the code of your application.
You can choose the best way according your requirements.
回答3:
Yes and no : If you double-click on the tab (here, I mean the tab inside the PUC) of your dashboard, the PUC will ask you if you want to open it in a tab of your browser. Answer yes and then you get your dashboard in a tab. The url ens with something like ' generatedcontent/ts=...' : copy it up toand including 'generatedcontent' : you can now directly see the dashboard BUT an authentification is still required
回答4:
To achieve this you first have:
Double click the dashboard to open it in a new tab in the browser, copy the entire url including the ts
Activate url authentication on the server activing url autentication
- Access the link, which you copied in step 1 by adding the following to the end &userid=YOUR_USER&password=YOUR_PASSWORD
Another way to do this is configuring pentaho with cas Switch to Central Authentication Service (CAS)
I hope I help you
来源:https://stackoverflow.com/questions/38472931/viewing-pentaho-dashboard-outside-pentaho