PDA

View Full Version : source code needed



vidhya
11-26-2008, 01:33 AM
Hi,
I would like to download the source code of design studio and report designer.
Design Studio svn://source.pentaho.org/svnroot/pentaho-designstudio

Report Designer svn://source.pentaho.org/svnroot/pentaho-reportdesigner

Pls confirm if the above are the correct links to get the DS & RD source code..

vidhya

vidhya
11-26-2008, 06:00 AM
hello...
Is there anyone out there...?
Where does one find the pentaho source code(ds & rd)..?
Pls guide me..

vidhya

Manasa_InfoAxon
11-26-2008, 06:37 AM
http://sourceforge.net/project/showfiles.php?group_id=140317&package_id=171242

vidhya
11-26-2008, 07:28 AM
Hi,

Thanks a lot for replying..
But am getting the following error when i open the url u had mentioned.
"You may have used an outdated link or may have typed the address (URL) incorrectly."

Could u pls help me get the latest one..?

thanks

Manasa_InfoAxon
11-27-2008, 04:50 AM
http://sourceforge.net/project/showfiles.php
?group_id=140317&package_id=171242

vidhya
11-27-2008, 05:00 AM
Hi manasa,

I was able to open that link you sent me.,..i had actually typed the url wrong...;)
anyway, thanks...

vidhya

Manasa_InfoAxon
11-27-2008, 06:12 AM
ok thank u

vidhya
12-03-2008, 01:38 AM
Hi manasa,

I got the source code downloaded from the link you specified.
Have you tried editing it? I only see .class files and no .java files.
Is it possible edit the source code??

regards
vidhya

vidhya
12-11-2008, 02:15 AM
Hi,
Plz refer the below attachment and read the further explanation provided below:
The Pentaho-action-editor.jar is present in the installation of pentaho-design-studio in the path given below:

\pentaho\pentaho-design-studio\plugins\org.pentaho.designstudio.editors.actionsequence_1.7.0.859\Pentaho-action-editor.jar

Pentaho-action-editor.jar is the pentaho actionsequence plugin file which when we extract gives 3 folders as below:

build-res --> which consists version.properties file that holds the version of the jar file
META_INF --> which consists MANIFEST.MF file
org --> is the package that consists all the .class files that are responsible for the plugin to act.Can we get the org package that consists .java files which we can edit further according to our needs?

Do correct me, if something mentioned above is not right...

-Vidhya

bamaer
12-11-2008, 04:08 AM
http://community.pentaho.com/getthecode/

vidhya
12-11-2008, 07:05 AM
Hi,

I went through http://community.pentaho.com/getthecode/ (http://community.pentaho.com/getthecode/) site.
I found two links related to my requirement.

1) Design Studio:
svn://source.pentaho.org/svnroot/pentaho-designstudio
Am unable to open the above link even with http instead of svn. It says page cannot be found. why is it so? and what exactly is present in the above link? .java files?

2) Developing Pentaho Projects:
http://wiki.pentaho.org/display/PentahoDoc/Building+and+Debugging+Pentaho+with+Eclipse (http://wiki.pentaho.org/display/PentahoDoc/Building+and+Debugging+Pentaho+with+Eclipse)
In the above link,I understand that one can connect to repository,check out source code and make change the source code as per our requirement.

Am a bit confused..:confused:Which link should I proceed with in order to edit source code of DS according to my requirement? What does the first link contain?

Kindly clarify.

-Vidhya

bamaer
12-11-2008, 08:36 AM
As you could have found out yourself if you had read the link in my previous post: with the subclipse plugin you can browse the Pentaho SVN repositories. You'll find pentaho-designstudio-core, pentaho-designstudioIDE, pentaho-designstudioIDE-linux and pentaho-designstudioIDE-mac projects. You will find your .java files there. Good luck.

Of course you can not edit the sources in the SVN repository (could be good fun at times though), but you can check out a local copy and make your modifications there.

vidhya
12-12-2008, 07:50 AM
Hi bart,

Thanks a lott...
I was able to install subclipse following the instructions in that link...

Now, i try to create connection to repository.I get the following attached error when i enter the following url in the Add SVN Repository dialog.
URL:
svn://source.pentaho.org/svnroot
I tried the same url with http instead of svn too.But still getting the same error.

Why is it so?

-vidhya

bugg_tb
12-12-2008, 08:24 AM
Not to sound overly patronizing but aren't you going to struggle with editing source code if you can't even check it out of SVN?

vidhya
12-14-2008, 11:47 PM
Yep.. Maybe...

But, if you think i may face trouble, why don't you give a solution, to my problem..:D

In design studio, i've written a MDX query, and the values in the [dimension] of MDX doesn't get passed to Message Template...

Why don't you answer.. If you doesn't know, no one is asking to post your comments here.. :p

And just because there is a "Moderator" under your name, it doesn't mean you can talk anything...:eek:

And i don't think am asking something very silly..

And i believe "Moderators" are here to help people out, and not to discurage them....:rolleyes:


Thank you Bart.. Your replies were very helpful, and i appreciate your help... Thanks a lot...!!

bugg_tb
12-15-2008, 01:05 AM
But, if you think i may face trouble, why don't you give a solution, to my problem..:D

In design studio, i've written a MDX query, and the values in the [dimension] of MDX doesn't get passed to Message Template...

Why don't you answer.. If you doesn't know, no one is asking to post your comments here.. :p

Well I already suggested that you try passing it through a jscript step to get your desired output. I also suggested that you try comparing a bare MDX output to a bare SQL output at xaction level and see what the differences are, MDX has difference with header output etc for example. Although I do agree to get it to a message it should be easier.



And just because there is a "Moderator" under your name, it doesn't mean you can talk anything...:eek:

That is true, but then why are moderators suddenly bound by a code of conduct that doesn't apply to other people? Especially as this is completely voluntary and done in my spare time


And i don't think am asking something very silly..
And i believe "Moderators" are here to help people out, and not to discurage them....:rolleyes:ate your help... Thanks a lot...!!

I certainly try not to discourage people,. from everyones perspective the more Pentaho users the better can only be a good thing. I was merely stating that if it takes you a week to work out how to get the source then I guess you haven't really any experience in java, and there are probably easier ways of reaching the end result.

Tom

vidhya
12-15-2008, 02:10 AM
Well..

I had tried all these.. And i went for this source code, as this was the last option for me..
And true, am a Dot Net developer and not java..

I tried using the javascript component...used the getMetaData(),getRowHeaders() etc..None of it fitted our requirement..

Ok,.. Here, i have attached a sample xaction of mine and also the cube files.. this is with sample data.. just try passing the "Customers" column to the message template..May be if this works for you, then am doing some blunder.. If not, this must be a bug i believe...

Thanks..

bugg_tb
12-15-2008, 08:23 AM
I took a look at what you are trying to do, your xaction is wrong, you shouldn't be able to see the column/row outputs at xaction level mdx will work with the resultset as a whole but not individual rows/columns(although someone can feel free to correct me on that).

I've attached my example as you will see you can't see customer accounts as they are disgarded by the message template when it gets a resultset, not a bug as such, just the way it is. If you look through other examples like in steel-wheels etc with the dynamic reporting stuff you will see loads of java resultset manipulation, there is a reason for this...

vidhya
12-16-2008, 02:36 AM
Ok..., I understand that this is the way it works....
But my requirement is like the xaction iv attached ,but with a MDX in place of a SQL....!
How do i solve this..?Is thr any other alternative available other than dropping this issue..?
These are the few javascript things i tried...

var row = java.lang.reflect.Array.newInstance(java.lang.String,12);
function fun()
{
var rsmd = query_result.getMetaData();
var R=query_result.getRowCount();
var colHeaders = rsmd.getColumnHeaders();
var rowHeaders = rsmd.getRowHeaders();
for (i =0; i<R; i++)
{
var c=rowHeaders[i][0];
row[i]=c;
return row[i];
}
}
fun();

So, here , as in my previous attached xaction,For every loop, I wana obtain a project code and pass tht project code to message template...:(!
I appreciate any help...

thanks...