PDA

View Full Version : How do you create a new portal wintin Pentaho?



chugh97
07-12-2006, 03:38 AM
Hi,

I am new to the Java world basically a MS programmer. I was having a look at Pentaho and was quite impressed. I have downloaded the demo version 1.0.0.0 I was not sure how do I customise the portal and how do I create a new portal within pentaho.

I have some BIRT reports but do not know how to deploy them ?Can someone pls help me...!! I have Eclipse installed with the Petaho Designer Studio as a plug in. Also I need help to create a very simple xaction file which I am not able to figure out as when I try to run my BIRT report with the xaction file the JBOSS server returns a NullPointerException...Do not know what is quite wrong?

Can someone pls help.

Thanks,
Shaleen

nricheton
07-12-2006, 04:17 AM
I would recommend to try Pentaho 1.1.7. A lot of things has been improved since 1.0.0. (bugs fixes, support for newer BIRT versions, ...)

Your action will probably work in the last version without changing anything.


--
Nicolas

chugh97
07-12-2006, 06:20 AM
Thanks Nicolas,

I ahve tried doing that and installed 1.1.7 version of Pentaho. I have tried copying my two files Customers.rptdesign and Customers.xaction and now it gives me a message that Action successful but I do not get any data displayed on the screen? Why is this happening...Pls help

Thanks for your previous email for sorting my problem

Thanks,
Shaleen

nricheton
07-12-2006, 06:35 AM
Hi,

Did you set the Result Type for your action ? (General tab of the action in the pentaho studio designer)
In your case it should be set to "report"
(<result-type>report</result-type> if you look at the XML source)

--
Nicolas

chugh97
07-12-2006, 07:21 AM
Hi Nicolas,

My xaction file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
<name>Customers_1.xaction</name>
<title>Customers</title>
<version>1.0.0</version>
<logging-level>DEBUG</logging-level>
<documentation>
<author>S Chugh</author>
<result-type>report</result-type>
</documentation>

<inputs/>

<outputs/>

<resources>
<BIRTReportComponent-report-definition>
<file>
<location>C:\\Program Files\\pentaho-demo\\pentaho-solutions\\samples\\reporting\\Customers_1.rptdesign</location>
<mime-type>text/xml</mime-type>
</file>
</BIRTReportComponent-report-definition>
</resources>

<actions>
<action-definition>
<component-name>BIRTReportComponent</component-name>
<action-type>BIRT Report</action-type>
<action-inputs/>
<action-resources>
<report-definition type="resource" mapping="BIRTReportComponent-report-definition"/>
</action-resources>
<action-outputs>
<report-output type="content" mapping="Customers"/>
</action-outputs>
<component-definition>
<output-type>pdf</output-type>
</component-definition>
</action-definition>

</actions>
</action-sequence>

-----------------------------------------------------

My report File from BIRT


<?xml version="1.0" encoding="UTF-8"?>
<!-- Written by Eclipse BIRT 1.0 -->
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 1.0.1 Build <20051110-0743></property>
<property name="units">in</property>
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="Data Source" id="38">
<property name="odaDriverClass">sun.jdbc.odbc.JdbcOdbcDriver</property>
<property name="odaURL">jdbc:odbc:pubs</property>
<property name="odaUser">sa</property>
<encrypted-property name="odaPassword">c2NyZXd0YXBl</encrypted-property>
</oda-data-source>
</data-sources>
<data-sets>
<oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" name="Data Set" id="39">
<property name="dataSource">Data Source</property>
<property name="queryText">select *
from authors</property>
</oda-data-set>
</data-sets>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<page-footer>
<grid id="3">
<property name="width">100%</property>
<column id="4"/>
<row id="5">
<cell id="6">
<text id="7">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
</text>
</cell>
</row>
</grid>
</page-footer>
</simple-master-page>
</page-setup>
<body>
<grid id="8">
<property name="height">0.739in</property>
<property name="width">5.979in</property>
<column id="9"/>
<row id="10">
<property name="height">0.739in</property>
<property name="verticalAlign">text-bottom</property>
<cell id="11">
<property name="verticalAlign">top</property>
<label id="12">
<property name="fontWeight">bold</property>
<property name="textUnderline">underline</property>
<property name="textAlign">center</property>
<text-property name="text">Report Header</text-property>
</label>
</cell>
</row>
</grid>
<table name="table1" id="13">
<property name="width">100%</property>
<property name="dataSet">Data Set</property>
<column id="35">
<property name="width">33.3%</property>
</column>
<column id="36">
<property name="width">33.3%</property>
</column>
<column id="37">
<property name="width">33.4%</property>
</column>
<column id="51">
<property name="width">33.4%</property>
</column>
<header>
<row id="14">
<cell id="15">
<label id="40">
<text-property name="text">au_id</text-property>
</label>
</cell>
<cell id="16">
<label id="42">
<text-property name="text">au_lname</text-property>
</label>
</cell>
<cell id="17">
<label id="44">
<text-property name="text">au_fname</text-property>
</label>
</cell>
<cell id="46">
<label id="52">
<text-property name="text">phone</text-property>
</label>
</cell>
</row>
</header>
<group id="18">
<expression name="keyExpr">row["au_id"]</expression>
<header>
<row id="19">
<cell id="20">
<data id="41">
<expression name="valueExpr">row["au_id"]</expression>
</data>
</cell>
<cell id="21">
<data id="43">
<expression name="valueExpr">row["au_lname"]</expression>
</data>
</cell>
<cell id="22">
<data id="45">
<expression name="valueExpr">row["au_fname"]</expression>
</data>
</cell>
<cell id="47">
<data id="53">
<expression name="valueExpr">row["phone"]</expression>
</data>
</cell>
</row>
</header>
<footer>
<row id="23">
<cell id="24"/>
<cell id="25"/>
<cell id="26"/>
<cell id="49"/>
</row>
</footer>
</group>
<detail>
<row id="27">
<cell id="28"/>
<cell id="29"/>
<cell id="30"/>
<cell id="48"/>
</row>
</detail>
<footer>
<row id="31">
<cell id="32"/>
<cell id="33"/>
<cell id="34"/>
<cell id="50"/>
</row>
</footer>
</table>
</body>
</report>
---------------------------------

Borth files are named Customers_ followed by suffixes xaction and rptdesign
When I execute I get ACTION SUCCESSFUL but no report data.

I am just connecting to pubs database and it works fine if I deploy the report in TomCat alone but I dont get anything in pentaho ?
Can you pls help

Thanks,
Shaleen

chugh97
07-12-2006, 07:23 AM
Just a small mistake:

Borth files are named Customers_1 followed by suffixes xaction and rptdesign
When I execute I get ACTION SUCCESSFUL but no report data.

nricheton
07-12-2006, 07:42 AM
Hi,

Remove the output name in your report step.

If you set a name, it means that your report will be available as a variable in the workflow and dropped at the end of the action.

--
Nicolas

chugh97
07-12-2006, 07:50 AM
Hi Nicolas,

I have gone to the desinger and have tried deleted outputs but i cannot delete it

Is that I have to go into XML view and delete this tag <output-type>html</output-type> ???

Thanks

chugh97
07-12-2006, 01:43 PM
Hi Nicolas,

I was able to fix the problem and thanks a lot for your support.

One more pestering question, How do I create a new portal in PentaHo and deploy my reports with a proper login. There is no document I found which explained this and hence this question.
Pls let me know

Thanks,
Shaleen