GithubHelp home page GithubHelp logo

fcorti / pentaho-dashboard-project Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 11.0 684 KB

Angular project developing the pentaho-dashboard npm package.

Home Page: https://www.npmjs.com/package/pentaho-dashboard

TypeScript 71.74% JavaScript 15.84% HTML 12.10% CSS 0.32%
angular angularjs ctools npm npm-package pentaho

pentaho-dashboard-project's People

Contributors

fcorti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pentaho-dashboard-project's Issues

doesn't work with angular 8

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

How to pass multiple params

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>

Trigger change on button click

I have a usecase where I have four fields and a button. As shown in below screenshot

r

Currently we can send params to dashboard but changing multiple fields at a time will cause dashboard to load multiple times.

Can we have a way to hold the load until button is click.

Two interacting dashboards not behaving right

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.

screencapture-localhost-4200-dashboard3-1516898248754

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

  1. Developing the Dashboard3Component
    Once done, it's time to develop the dashboard2 component.

Load dashboard with default values

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.

Connect to a remote pentaho server via https protocol

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.

Does not work on Angular 7

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.