Hi, in the Data Sources Tab of CDE, I chose "kettle over kettleTransFromFile" under KETTLE Queries but when I choose a resource and select a .ktr file, it won't let me hit 'Ok'. I attached a screenshot. Any ideas why this doesn't work?
cdekettle.jpg
Hi, in the Data Sources Tab of CDE, I chose "kettle over kettleTransFromFile" under KETTLE Queries but when I choose a resource and select a .ktr file, it won't let me hit 'Ok'. I attached a screenshot. Any ideas why this doesn't work?
cdekettle.jpg
Open it in a new tab, open firebug and check if there's any errors
Pedro Alves
Meet us on ##pentaho, a FreeNode irc channel
When I click 'Ok', the console gives me this:
- Uncaught TypeError: Cannot call method 'split' of undefined scripts.js:349
- ResourceFileRenderer.extend.formatSelection scripts.js:349
- _fileExplorer.bind.openOrNew.browse.submit scripts.js:266
- $.prompt.$jqib.css.top scripts.js:56
- jQuery.event.dispatch scripts.js:241
- jQuery.event.add.elemData.handle.eventHandle scripts.js:209
And here's scripts.js:349-352
varKtrPathRenderer=ResourceFileRenderer.extend({getFileExtensions:function(){return".ktr";},formatSelection:function(file){varcommon=true,splitFile=file.split("/"),splitPath=cdfdd.getDashboardData().filename.split("/"),finalPath="",i=0;while(common){if(splitFile[i]!==splitPath[i]){common=false;}
i+=1;}
$.each(splitPath.slice(i),function(i,j){finalPath+="../";})
finalPath+=splitFile.slice(i-1).join('/');return finalPath.replace(/\/+/g,"/");}})
Last edited by marielb; 06-19-2012 at 02:18 PM.
Hi marielb,
i have the same error!Have you fixed it?
Yamas