Open xumes opened 6 years ago
Have raised a PR for this https://github.com/AllegiantAir/g4js-cognos/pull/11 cc @nesbert That should get you access to the request object on which you can do a GET with the url that you have.
Here is a reference sample of how you could extend it
const MyCms = require('g4js-cognos').Cms;
MyCms.prototype.getDashboardList = function() {
return new Promise(function(resolve, reject) {
// here you can access this.request and do a custom fetch with your url
});
});
// const report = new Cms(config.serviceUrl.....blah blah blah)
report
.getDashboardList()
.then() // success
.failure() // failure
Hope it helps !
Hi @anoopmd just getting back from vacation. Will review when I can.
Simple enough change, not sure why the commits in the PR.
Going to cut a separate release branch for the change and minor version bump. To be safe.
Thanks @nesbert Even I was surprised to see so many commits. Likely because I committed the changes and later synced my fork with the main g4js-cognos before raising the PR.
Hello, is there a way to retrieve a list of available reports/dashboards/folders?
I am implementing a solution that access a Cognos environment, retrieves a list of reports and allow user to decide which report will open/run.
Thanks for the attention.