This is CDAjs website.
CDAjs is a stand-alone javascript library for working with Pentaho Community Data Access plugin.
Powered by latinojoel
Learn about CDAjsCDAjs is a stand-alone javascript library for working with Pentaho Community Data Access plugin.
Powered by latinojoel
Learn about CDAjs
var cda = require("cdajs");
exports.list = function(req, res) {
var obj = new cda.CDA({
url: "http://localhost:8086/pentaho/content/cda/",
username: "joe",
password: "password",
error: function(error) {
console.log("Error: " + error);
return;
}
});
obj.doQuery(function(xhr) {
res.send("Result Set: " + xhr.resultset);
}, {
params: {
dataAccessId: 3,
pageSize: 0,
pageStart: 0,
path: "%2Fairc%2Fexecutivo%2Frecursoshumanos%2Frecursoshumanos.cda",
sortBy: ""
}
});
};
var obj = new CDA({
url: "http://localhost:8080/pentaho/content/cda/",
username: "joe",
password: "password",
error: function(error) {
console.log("Error: " + error);
return;
}
});
obj.doQuery(function(xhr) {
document.getElementById("data").innerHTML=("Result Set: " + xhr.resultset);
}, {
params: {
dataAccessId: 1,
pageSize: 0,
pageStart: 0,
path: "%2Fairc%2Fexecutivo%2Frecursoshumanos%2Frecursoshumanos.cda",
sortBy: ""
}
});