fcorti / pentaho-dashboard-project Goto Github PK
View Code? Open in Web Editor NEWAngular project developing the pentaho-dashboard npm package.
Home Page: https://www.npmjs.com/package/pentaho-dashboard
Angular project developing the pentaho-dashboard npm package.
Home Page: https://www.npmjs.com/package/pentaho-dashboard
Hello,
i've already used penatho-dashboard with angular 5 and everything is working great. but with i changed my angular version to 8 things started to go wrong.
now i'm unable to connect to the server eventhough the proxy config works fine.
this is what i changed :
this.http.get(
PentahoDashboardService.PENTAHO_HOME_URI,
{ headers: headers })
.subscribe(
data => {
window.location.href = targetUrl;
},
error => {
console.log(error);
}
n.b: i changed all the import statements
I am try below code
<div >
<input [(ngModel)]="groupBy" placeholder="name" id="group-by">
<input [(ngModel)]="physician" placeholder="name" id="physician-lastName">
<pentaho-dashboard
id = "parent"
pentahoPath = "/public/embed_pentaho_internally/dashboard/drilldown/child_dashboard.wcdf"
[params] = "['groupBy', 'physicianLastName']"
masterHtmlElementId = "[group-by, physician-lastName]">
</pentaho-dashboard>
</div>
I have this in my dashboard3.component template
<div>
<pentaho-dashboard
id = "dashboard3"
pentahoPath = "/public/basic-cde-samples/sample1.wcdf">
</pentaho-dashboard>
<pentaho-dashboard
id = "dashboard4"
pentahoPath = "/public/basic-cde-samples/sample2.wcdf"
[params] = "['param2']"
masterDashboardId = "dashboard3"
[masterDashboardParams] = "['param1']">
</pentaho-dashboard>
</div>
On running application I am seeing sample2 dashboard two times.
I followed your gitbook tutorial https://fcorti.gitbooks.io/pentaho-dashboard-project/content/viewing-a-dashboard/viewing-two-interacting-dashboards.html
Assuming dashboard2 was typo in statement
- Developing the Dashboard3Component
Once done, it's time to develop the dashboard2 component.
Can we set field values default or being calculated on page load and dashboard loads with these param values.
Once dashboard load is completed user can change parameter accordingly.
I'm developing a web app under the https protocol. When using your tool, I have encountered several problems. In your tutorials, the proxy configuration is done via http, however, my application and remote pentaho server run under https, as previously commented.
The proxy.conf.json file looks like this one:
{
"/pentaho": {
"target": {
"host": "my.external.server",
"protocol": "https:",
"port": myport
},
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
}
}
And the login submit method:
onSubmit(username:string, password:string)
{
if (this.pentahoDashboardService.isLoggedIn()) {
this.pentahoDashboardService.logIn('/');
}
else {
this.pentahoDashboardService.setUsername(username);
this.pentahoDashboardService.setPassword(password);
this.pentahoDashboardService.logIn('/');
if (this.pentahoDashboardService.isNotLoggedIn()) {
this.loginMessage = 'No se ha podido establecer la conexión. Inténtelo de nuevo.';
return false;
}
}
}
Also, when I run the first time my application I get this warning and error:
zone.js:2191` [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
(anonymous) @ zone.js:2191
open @ VM41662:3
(anonymous) @ scripts.bundle.js:63240
zone.js:2197 Uncaught DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://myhost:myport/pentaho/Home'.
Finally, when I'm trying to get logged in catching correctly the data from a form I receive a 0 code error. I'm not sure if it's possible to use your package using the https protocol, or it's some implementation error of mine.
Congratulations for your work and effort.
Hi Francesco!
I am trying to use the pentaho-dashboard-project with Angular 7 and getting the errors bellow, could you help me?
Error: C:\workspace\MyProject\node_modules\pentaho-dashboard\src\app\pentaho-dashboard\pentaho-dashboard.component.ts is m
issing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library
. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Forma
t (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (C:\workspace\MyProject\node_modules@ngtools\webpack\src\angular_compiler_pl
ugin.js:752:23)
at plugin.done.then (C:\workspace\MyProject\openbi\node_modules@ngtools\webpack\src\loader.js:41:31)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
ERROR in ./node_modules/pentaho-dashboard/src/app/shared/pentaho-dashboard.service.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: C:\workspace\MyProject\node_modules\pentaho-dashboard\src\app\shared\pentaho-dashboard.service.ts is missing from t
he TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library
. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Forma
t (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (C:\workspace\MyProject\node_modules@ngtools\webpack\src\angular_compiler_pl
ugin.js:752:23)
at plugin.done.then (C:\workspace\MyProject\node_modules@ngtools\webpack\src\loader.js:41:31)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.