Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Advanced Properties 'Inherited' in Layout-Hierarchies ?
Advanced Properties 'Inherited' in Layout-Hierarchies ? [message #757816] Tue, 15 November 2011 21:09 Go to next message
Robert Aust is currently offline Robert Aust
Messages: 17
Registered: July 2009
Junior Member
Hi there,

Can someone explain to me what this 'inherited' behind properties of
Cells, Rows, etc means ?
When I have a layout with GRID=>ROW=>CELL=>DATA it sometimes shows this
'inherited' behind the 'overflow'-property.
But I still have to set it manually thru the whole hierarchie to make it
work, that is, to have the layout expand in this case of 'overflow:visible'.

Am I missing something here ?
Btw - I am still using Birt 2.5.2.

Thanks,
Robert
Re: Advanced Properties 'Inherited' in Layout-Hierarchies ? [message #757825 is a reply to message #757816] Wed, 16 November 2011 17:14 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Robert,

Can you create a report with the issue using sample data and post it?

Jason

On 11/15/2011 4:09 PM, Robert Aust wrote:
>
> Hi there,
>
> Can someone explain to me what this 'inherited' behind properties of
> Cells, Rows, etc means ?
> When I have a layout with GRID=>ROW=>CELL=>DATA it sometimes shows this
> 'inherited' behind the 'overflow'-property.
> But I still have to set it manually thru the whole hierarchie to make it
> work, that is, to have the layout expand in this case of
> 'overflow:visible'.
>
> Am I missing something here ?
> Btw - I am still using Birt 2.5.2.
>
> Thanks,
> Robert
Re: Advanced Properties 'Inherited' in Layout-Hierarchies ? [message #757827 is a reply to message #757825] Wed, 16 November 2011 21:13 Go to previous messageGo to next message
Robert Aust is currently offline Robert Aust
Messages: 17
Registered: July 2009
Junior Member
Hi Jason,

I tried - but did not get the problem in the sample report.

In my other reports I sometimes had to manually set
- overflow : visible
- pushdown : true
thru the whole hierarchy GRID->ROW->CELL->DATA in order to have the data
expand and show longer texts/use more vertical space. - If not it would
just be cut off.

In this sample report I did not touch these properties at all and still
it works, i.e. shows all the full product descriptions.
Here the designer shows this 'inherited' behind the properties in
the 'Advanced' tab. Is there some sort of default ?
How and in what direction does this inheritance work?

Best regards,
Robert

Here is the sample report
======================================================================================================
<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.21"
id="1">
<property name="createdBy">Eclipse BIRT Designer Version 2.5.2.v20100208
Build &lt;2.5.2.v20100210-0630></property>
<property name="units">cm</property>
<property name="iconFile">/templates/blank_report.gif</property>
<property name="bidiLayoutOrientation">ltr</property>
<property name="imageDPI">96</property>
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
name="DS_SAMPLE" id="7">
<text-property name="displayName"></text-property>
<property
name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver</property>
<property name="odaURL">jdbc:classicmodels:sampledb</property>
<property name="odaUser">ClassicModels</property>
<property name="OdaConnProfileName"></property>
</oda-data-source>
</data-sources>
<data-sets>
<oda-data-set
extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet"
name="Q_SAMPLE" id="8">
<list-property name="columnHints">
<structure>
<property name="columnName">PRODUCTCODE</property>
<text-property name="displayName">PRODUCTCODE</text-property>
</structure>
<structure>
<property name="columnName">PRODUCTNAME</property>
<text-property name="displayName">PRODUCTNAME</text-property>
</structure>
<structure>
<property name="columnName">PRODUCTDESCRIPTION</property>
<text-property name="displayName">PRODUCTDESCRIPTION</text-property>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">PRODUCTCODE</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">PRODUCTNAME</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">PRODUCTDESCRIPTION</property>
<property name="dataType">string</property>
</structure>
</list-property>
</structure>
<property name="dataSource">DS_SAMPLE</property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">PRODUCTCODE</property>
<property name="nativeName">PRODUCTCODE</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">PRODUCTNAME</property>
<property name="nativeName">PRODUCTNAME</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">PRODUCTDESCRIPTION</property>
<property name="nativeName">PRODUCTDESCRIPTION</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
</list-property>
<xml-property name="queryText"><![CDATA[select PRODUCTCODE, PRODUCTNAME,
PRODUCTDESCRIPTION
from products]]></xml-property>
<xml-property name="designerValues"><![CDATA[<?xml version="1.0"
encoding="UTF-8"?>
<model:DesignValues
xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design"
xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
<Version>1.0</Version>
<design:ResultSets derivedMetaData="true">
<design:resultSetDefinitions>
<design:resultSetColumns>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>PRODUCTCODE</design:name>
<design:position>1</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>15</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>PRODUCTCODE</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>PRODUCTCODE</design:label>
<design:formattingHints>
<design:displaySize>15</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>PRODUCTNAME</design:name>
<design:position>2</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>70</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>PRODUCTNAME</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>PRODUCTNAME</design:label>
<design:formattingHints>
<design:displaySize>70</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:name>PRODUCTDESCRIPTION</design:name>
<design:position>3</design:position>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>32700</design:precision>
<design:scale>0</design:scale>
<design:nullability>Nullable</design:nullability>
<design:uiHints>
<design:displayName>PRODUCTDESCRIPTION</design:displayName>
</design:uiHints>
</design:attributes>
<design:usageHints>
<design:label>PRODUCTDESCRIPTION</design:label>
<design:formattingHints>
<design:displaySize>32700</design:displaySize>
</design:formattingHints>
</design:usageHints>
</design:resultColumnDefinitions>
</design:resultSetColumns>
<design:criteria/>
</design:resultSetDefinitions>
</design:ResultSets>
</model:DesignValues>
]]></xml-property>
</oda-data-set>
</data-sets>
<styles>
<style name="report" id="4">
<property name="fontFamily">sans-serif</property>
<property name="fontSize">10pt</property>
</style>
<style name="crosstab" id="5">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
<style name="crosstab-cell" id="6">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
</styles>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<value-of>new
Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</page-setup>
<body>
<list id="9">
<property name="dataSet">Q_SAMPLE</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">PRODUCTCODE</property>
<expression name="expression"
type="javascript">dataSetRow["PRODUCTCODE"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">PRODUCTNAME</property>
<expression name="expression"
type="javascript">dataSetRow["PRODUCTNAME"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">PRODUCTDESCRIPTION</property>
<expression name="expression"
type="javascript">dataSetRow["PRODUCTDESCRIPTION"]</expression>
<property name="dataType">string</property>
</structure>
</list-property>
<detail>
<grid id="10">
<property name="height">0.79375cm</property>
<property name="width">19.817291666666666cm</property>
<property name="pushDown">true</property>
<column id="11">
<property name="width">6.614583333333333cm</property>
</column>
<column id="12">
<property name="width">4.101041666666666cm</property>
</column>
<column id="13">
<property name="width">9.101666666666667cm</property>
</column>
<row id="14">
<cell id="15">
<data id="18">
<property name="resultSetColumn">PRODUCTCODE</property>
</data>
</cell>
<cell id="16">
<data id="19">
<property name="resultSetColumn">PRODUCTNAME</property>
</data>
</cell>
<cell id="17">
<data id="20">
<property name="resultSetColumn">PRODUCTDESCRIPTION</property>
</data>
</cell>
</row>
</grid>
</detail>
</list>
</body>
</report>
======================================================================================================


Am 16.11.2011 18:14, schrieb Jason Weathersby:
> Robert,
>
> Can you create a report with the issue using sample data and post it?
>
> Jason
>
> On 11/15/2011 4:09 PM, Robert Aust wrote:
>>
>> Hi there,
>>
>> Can someone explain to me what this 'inherited' behind properties of
>> Cells, Rows, etc means ?
>> When I have a layout with GRID=>ROW=>CELL=>DATA it sometimes shows this
>> 'inherited' behind the 'overflow'-property.
>> But I still have to set it manually thru the whole hierarchie to make it
>> work, that is, to have the layout expand in this case of
>> 'overflow:visible'.
>>
>> Am I missing something here ?
>> Btw - I am still using Birt 2.5.2.
>>
>> Thanks,
>> Robert
>
Re: Advanced Properties 'Inherited' in Layout-Hierarchies ? [message #757830 is a reply to message #757827] Wed, 16 November 2011 22:10 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

It should be pushing down the hierarchy inherited properties. Where
your other reports designed with an earlier version of BIRT?

Jason

On 11/16/2011 4:13 PM, Robert Aust wrote:
> Hi Jason,
>
> I tried - but did not get the problem in the sample report.
>
> In my other reports I sometimes had to manually set
> - overflow : visible
> - pushdown : true
> thru the whole hierarchy GRID->ROW->CELL->DATA in order to have the data
> expand and show longer texts/use more vertical space. - If not it would
> just be cut off.
>
> In this sample report I did not touch these properties at all and still
> it works, i.e. shows all the full product descriptions.
> Here the designer shows this 'inherited' behind the properties in
> the 'Advanced' tab. Is there some sort of default ?
> How and in what direction does this inheritance work?
>
> Best regards,
> Robert
>
> Here is the sample report
> ======================================================================================================
>
> <?xml version="1.0" encoding="UTF-8"?>
> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.21"
> id="1">
> <property name="createdBy">Eclipse BIRT Designer Version 2.5.2.v20100208
> Build &lt;2.5.2.v20100210-0630></property>
> <property name="units">cm</property>
> <property name="iconFile">/templates/blank_report.gif</property>
> <property name="bidiLayoutOrientation">ltr</property>
> <property name="imageDPI">96</property>
> <data-sources>
> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
> name="DS_SAMPLE" id="7">
> <text-property name="displayName"></text-property>
> <property
> name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver</property>
>
> <property name="odaURL">jdbc:classicmodels:sampledb</property>
> <property name="odaUser">ClassicModels</property>
> <property name="OdaConnProfileName"></property>
> </oda-data-source>
> </data-sources>
> <data-sets>
> <oda-data-set
> extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet"
> name="Q_SAMPLE" id="8">
> <list-property name="columnHints">
> <structure>
> <property name="columnName">PRODUCTCODE</property>
> <text-property name="displayName">PRODUCTCODE</text-property>
> </structure>
> <structure>
> <property name="columnName">PRODUCTNAME</property>
> <text-property name="displayName">PRODUCTNAME</text-property>
> </structure>
> <structure>
> <property name="columnName">PRODUCTDESCRIPTION</property>
> <text-property name="displayName">PRODUCTDESCRIPTION</text-property>
> </structure>
> </list-property>
> <structure name="cachedMetaData">
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">PRODUCTCODE</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">PRODUCTNAME</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">PRODUCTDESCRIPTION</property>
> <property name="dataType">string</property>
> </structure>
> </list-property>
> </structure>
> <property name="dataSource">DS_SAMPLE</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">PRODUCTCODE</property>
> <property name="nativeName">PRODUCTCODE</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">PRODUCTNAME</property>
> <property name="nativeName">PRODUCTNAME</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">PRODUCTDESCRIPTION</property>
> <property name="nativeName">PRODUCTDESCRIPTION</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> </list-property>
> <xml-property name="queryText"><![CDATA[select PRODUCTCODE, PRODUCTNAME,
> PRODUCTDESCRIPTION
> from products]]></xml-property>
> <xml-property name="designerValues"><![CDATA[<?xml version="1.0"
> encoding="UTF-8"?>
> <model:DesignValues
> xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design"
> xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
> <Version>1.0</Version>
> <design:ResultSets derivedMetaData="true">
> <design:resultSetDefinitions>
> <design:resultSetColumns>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>PRODUCTCODE</design:name>
> <design:position>1</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>15</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>PRODUCTCODE</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>PRODUCTCODE</design:label>
> <design:formattingHints>
> <design:displaySize>15</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>PRODUCTNAME</design:name>
> <design:position>2</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>70</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>PRODUCTNAME</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>PRODUCTNAME</design:label>
> <design:formattingHints>
> <design:displaySize>70</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>PRODUCTDESCRIPTION</design:name>
> <design:position>3</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>32700</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>PRODUCTDESCRIPTION</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>PRODUCTDESCRIPTION</design:label>
> <design:formattingHints>
> <design:displaySize>32700</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> </design:resultSetColumns>
> <design:criteria/>
> </design:resultSetDefinitions>
> </design:ResultSets>
> </model:DesignValues>
> ]]></xml-property>
> </oda-data-set>
> </data-sets>
> <styles>
> <style name="report" id="4">
> <property name="fontFamily">sans-serif</property>
> <property name="fontSize">10pt</property>
> </style>
> <style name="crosstab" id="5">
> <property name="borderBottomColor">#CCCCCC</property>
> <property name="borderBottomStyle">solid</property>
> <property name="borderBottomWidth">1pt</property>
> <property name="borderLeftColor">#CCCCCC</property>
> <property name="borderLeftStyle">solid</property>
> <property name="borderLeftWidth">1pt</property>
> <property name="borderRightColor">#CCCCCC</property>
> <property name="borderRightStyle">solid</property>
> <property name="borderRightWidth">1pt</property>
> <property name="borderTopColor">#CCCCCC</property>
> <property name="borderTopStyle">solid</property>
> <property name="borderTopWidth">1pt</property>
> </style>
> <style name="crosstab-cell" id="6">
> <property name="borderBottomColor">#CCCCCC</property>
> <property name="borderBottomStyle">solid</property>
> <property name="borderBottomWidth">1pt</property>
> <property name="borderLeftColor">#CCCCCC</property>
> <property name="borderLeftStyle">solid</property>
> <property name="borderLeftWidth">1pt</property>
> <property name="borderRightColor">#CCCCCC</property>
> <property name="borderRightStyle">solid</property>
> <property name="borderRightWidth">1pt</property>
> <property name="borderTopColor">#CCCCCC</property>
> <property name="borderTopStyle">solid</property>
> <property name="borderTopWidth">1pt</property>
> </style>
> </styles>
> <page-setup>
> <simple-master-page name="Simple MasterPage" id="2">
> <page-footer>
> <text id="3">
> <property name="contentType">html</property>
> <text-property name="content"><![CDATA[<value-of>new
> Date()</value-of>]]></text-property>
> </text>
> </page-footer>
> </simple-master-page>
> </page-setup>
> <body>
> <list id="9">
> <property name="dataSet">Q_SAMPLE</property>
> <list-property name="boundDataColumns">
> <structure>
> <property name="name">PRODUCTCODE</property>
> <expression name="expression"
> type="javascript">dataSetRow["PRODUCTCODE"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">PRODUCTNAME</property>
> <expression name="expression"
> type="javascript">dataSetRow["PRODUCTNAME"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">PRODUCTDESCRIPTION</property>
> <expression name="expression"
> type="javascript">dataSetRow["PRODUCTDESCRIPTION"]</expression>
> <property name="dataType">string</property>
> </structure>
> </list-property>
> <detail>
> <grid id="10">
> <property name="height">0.79375cm</property>
> <property name="width">19.817291666666666cm</property>
> <property name="pushDown">true</property>
> <column id="11">
> <property name="width">6.614583333333333cm</property>
> </column>
> <column id="12">
> <property name="width">4.101041666666666cm</property>
> </column>
> <column id="13">
> <property name="width">9.101666666666667cm</property>
> </column>
> <row id="14">
> <cell id="15">
> <data id="18">
> <property name="resultSetColumn">PRODUCTCODE</property>
> </data>
> </cell>
> <cell id="16">
> <data id="19">
> <property name="resultSetColumn">PRODUCTNAME</property>
> </data>
> </cell>
> <cell id="17">
> <data id="20">
> <property name="resultSetColumn">PRODUCTDESCRIPTION</property>
> </data>
> </cell>
> </row>
> </grid>
> </detail>
> </list>
> </body>
> </report>
> ======================================================================================================
>
>
>
> Am 16.11.2011 18:14, schrieb Jason Weathersby:
>> Robert,
>>
>> Can you create a report with the issue using sample data and post it?
>>
>> Jason
>>
>> On 11/15/2011 4:09 PM, Robert Aust wrote:
>>>
>>> Hi there,
>>>
>>> Can someone explain to me what this 'inherited' behind properties of
>>> Cells, Rows, etc means ?
>>> When I have a layout with GRID=>ROW=>CELL=>DATA it sometimes shows this
>>> 'inherited' behind the 'overflow'-property.
>>> But I still have to set it manually thru the whole hierarchie to make it
>>> work, that is, to have the layout expand in this case of
>>> 'overflow:visible'.
>>>
>>> Am I missing something here ?
>>> Btw - I am still using Birt 2.5.2.
>>>
>>> Thanks,
>>> Robert
>>
>
Re: Advanced Properties 'Inherited' in Layout-Hierarchies ? [message #757832 is a reply to message #757830] Thu, 17 November 2011 19:49 Go to previous message
Robert Aust is currently offline Robert Aust
Messages: 17
Registered: July 2009
Junior Member
No - I have always been using 2.5.2
Maybe this was cause in my reports by other layout-changes, when I first
had (and later removed) fixed heights on some components etc.
In the sample reports I did none of that, just used the first/default
layout. I will keep an eye on that.

best regards,
Robert

Am 16.11.2011 23:10, schrieb Jason Weathersby:
> It should be pushing down the hierarchy inherited properties. Where
> your other reports designed with an earlier version of BIRT?
>
> Jason
>
> On 11/16/2011 4:13 PM, Robert Aust wrote:
>> Hi Jason,
>>
>> I tried - but did not get the problem in the sample report.
>>
>> In my other reports I sometimes had to manually set
>> - overflow : visible
>> - pushdown : true
>> thru the whole hierarchy GRID->ROW->CELL->DATA in order to have the data
>> expand and show longer texts/use more vertical space. - If not it would
>> just be cut off.
>>
>> In this sample report I did not touch these properties at all and still
>> it works, i.e. shows all the full product descriptions.
>> Here the designer shows this 'inherited' behind the properties in
>> the 'Advanced' tab. Is there some sort of default ?
>> How and in what direction does this inheritance work?
>>
>> Best regards,
>> Robert
>>
>> Here is the sample report
>> ======================================================================================================
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.21"
>> id="1">
>> <property name="createdBy">Eclipse BIRT Designer Version 2.5.2.v20100208
>> Build &lt;2.5.2.v20100210-0630></property>
>> <property name="units">cm</property>
>> <property name="iconFile">/templates/blank_report.gif</property>
>> <property name="bidiLayoutOrientation">ltr</property>
>> <property name="imageDPI">96</property>
>> <data-sources>
>> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
>> name="DS_SAMPLE" id="7">
>> <text-property name="displayName"></text-property>
>> <property
>> name="odaDriverClass">org.eclipse.birt.report.data.oda.sampledb.Driver</property>
>>
>>
>> <property name="odaURL">jdbc:classicmodels:sampledb</property>
>> <property name="odaUser">ClassicModels</property>
>> <property name="OdaConnProfileName"></property>
>> </oda-data-source>
>> </data-sources>
>> <data-sets>
>> <oda-data-set
>> extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet"
>> name="Q_SAMPLE" id="8">
>> <list-property name="columnHints">
>> <structure>
>> <property name="columnName">PRODUCTCODE</property>
>> <text-property name="displayName">PRODUCTCODE</text-property>
>> </structure>
>> <structure>
>> <property name="columnName">PRODUCTNAME</property>
>> <text-property name="displayName">PRODUCTNAME</text-property>
>> </structure>
>> <structure>
>> <property name="columnName">PRODUCTDESCRIPTION</property>
>> <text-property name="displayName">PRODUCTDESCRIPTION</text-property>
>> </structure>
>> </list-property>
>> <structure name="cachedMetaData">
>> <list-property name="resultSet">
>> <structure>
>> <property name="position">1</property>
>> <property name="name">PRODUCTCODE</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">2</property>
>> <property name="name">PRODUCTNAME</property>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="position">3</property>
>> <property name="name">PRODUCTDESCRIPTION</property>
>> <property name="dataType">string</property>
>> </structure>
>> </list-property>
>> </structure>
>> <property name="dataSource">DS_SAMPLE</property>
>> <list-property name="resultSet">
>> <structure>
>> <property name="position">1</property>
>> <property name="name">PRODUCTCODE</property>
>> <property name="nativeName">PRODUCTCODE</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">2</property>
>> <property name="name">PRODUCTNAME</property>
>> <property name="nativeName">PRODUCTNAME</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> <structure>
>> <property name="position">3</property>
>> <property name="name">PRODUCTDESCRIPTION</property>
>> <property name="nativeName">PRODUCTDESCRIPTION</property>
>> <property name="dataType">string</property>
>> <property name="nativeDataType">12</property>
>> </structure>
>> </list-property>
>> <xml-property name="queryText"><![CDATA[select PRODUCTCODE, PRODUCTNAME,
>> PRODUCTDESCRIPTION
>> from products]]></xml-property>
>> <xml-property name="designerValues"><![CDATA[<?xml version="1.0"
>> encoding="UTF-8"?>
>> <model:DesignValues
>> xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design"
>> xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
>> <Version>1.0</Version>
>> <design:ResultSets derivedMetaData="true">
>> <design:resultSetDefinitions>
>> <design:resultSetColumns>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>PRODUCTCODE</design:name>
>> <design:position>1</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>15</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>PRODUCTCODE</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>PRODUCTCODE</design:label>
>> <design:formattingHints>
>> <design:displaySize>15</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>PRODUCTNAME</design:name>
>> <design:position>2</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>70</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>PRODUCTNAME</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>PRODUCTNAME</design:label>
>> <design:formattingHints>
>> <design:displaySize>70</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> <design:resultColumnDefinitions>
>> <design:attributes>
>> <design:name>PRODUCTDESCRIPTION</design:name>
>> <design:position>3</design:position>
>> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
>> <design:precision>32700</design:precision>
>> <design:scale>0</design:scale>
>> <design:nullability>Nullable</design:nullability>
>> <design:uiHints>
>> <design:displayName>PRODUCTDESCRIPTION</design:displayName>
>> </design:uiHints>
>> </design:attributes>
>> <design:usageHints>
>> <design:label>PRODUCTDESCRIPTION</design:label>
>> <design:formattingHints>
>> <design:displaySize>32700</design:displaySize>
>> </design:formattingHints>
>> </design:usageHints>
>> </design:resultColumnDefinitions>
>> </design:resultSetColumns>
>> <design:criteria/>
>> </design:resultSetDefinitions>
>> </design:ResultSets>
>> </model:DesignValues>
>> ]]></xml-property>
>> </oda-data-set>
>> </data-sets>
>> <styles>
>> <style name="report" id="4">
>> <property name="fontFamily">sans-serif</property>
>> <property name="fontSize">10pt</property>
>> </style>
>> <style name="crosstab" id="5">
>> <property name="borderBottomColor">#CCCCCC</property>
>> <property name="borderBottomStyle">solid</property>
>> <property name="borderBottomWidth">1pt</property>
>> <property name="borderLeftColor">#CCCCCC</property>
>> <property name="borderLeftStyle">solid</property>
>> <property name="borderLeftWidth">1pt</property>
>> <property name="borderRightColor">#CCCCCC</property>
>> <property name="borderRightStyle">solid</property>
>> <property name="borderRightWidth">1pt</property>
>> <property name="borderTopColor">#CCCCCC</property>
>> <property name="borderTopStyle">solid</property>
>> <property name="borderTopWidth">1pt</property>
>> </style>
>> <style name="crosstab-cell" id="6">
>> <property name="borderBottomColor">#CCCCCC</property>
>> <property name="borderBottomStyle">solid</property>
>> <property name="borderBottomWidth">1pt</property>
>> <property name="borderLeftColor">#CCCCCC</property>
>> <property name="borderLeftStyle">solid</property>
>> <property name="borderLeftWidth">1pt</property>
>> <property name="borderRightColor">#CCCCCC</property>
>> <property name="borderRightStyle">solid</property>
>> <property name="borderRightWidth">1pt</property>
>> <property name="borderTopColor">#CCCCCC</property>
>> <property name="borderTopStyle">solid</property>
>> <property name="borderTopWidth">1pt</property>
>> </style>
>> </styles>
>> <page-setup>
>> <simple-master-page name="Simple MasterPage" id="2">
>> <page-footer>
>> <text id="3">
>> <property name="contentType">html</property>
>> <text-property name="content"><![CDATA[<value-of>new
>> Date()</value-of>]]></text-property>
>> </text>
>> </page-footer>
>> </simple-master-page>
>> </page-setup>
>> <body>
>> <list id="9">
>> <property name="dataSet">Q_SAMPLE</property>
>> <list-property name="boundDataColumns">
>> <structure>
>> <property name="name">PRODUCTCODE</property>
>> <expression name="expression"
>> type="javascript">dataSetRow["PRODUCTCODE"]</expression>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="name">PRODUCTNAME</property>
>> <expression name="expression"
>> type="javascript">dataSetRow["PRODUCTNAME"]</expression>
>> <property name="dataType">string</property>
>> </structure>
>> <structure>
>> <property name="name">PRODUCTDESCRIPTION</property>
>> <expression name="expression"
>> type="javascript">dataSetRow["PRODUCTDESCRIPTION"]</expression>
>> <property name="dataType">string</property>
>> </structure>
>> </list-property>
>> <detail>
>> <grid id="10">
>> <property name="height">0.79375cm</property>
>> <property name="width">19.817291666666666cm</property>
>> <property name="pushDown">true</property>
>> <column id="11">
>> <property name="width">6.614583333333333cm</property>
>> </column>
>> <column id="12">
>> <property name="width">4.101041666666666cm</property>
>> </column>
>> <column id="13">
>> <property name="width">9.101666666666667cm</property>
>> </column>
>> <row id="14">
>> <cell id="15">
>> <data id="18">
>> <property name="resultSetColumn">PRODUCTCODE</property>
>> </data>
>> </cell>
>> <cell id="16">
>> <data id="19">
>> <property name="resultSetColumn">PRODUCTNAME</property>
>> </data>
>> </cell>
>> <cell id="17">
>> <data id="20">
>> <property name="resultSetColumn">PRODUCTDESCRIPTION</property>
>> </data>
>> </cell>
>> </row>
>> </grid>
>> </detail>
>> </list>
>> </body>
>> </report>
>> ======================================================================================================
>>
>>
>>
>>
>> Am 16.11.2011 18:14, schrieb Jason Weathersby:
>>> Robert,
>>>
>>> Can you create a report with the issue using sample data and post it?
>>>
>>> Jason
>>>
>>> On 11/15/2011 4:09 PM, Robert Aust wrote:
>>>>
>>>> Hi there,
>>>>
>>>> Can someone explain to me what this 'inherited' behind properties of
>>>> Cells, Rows, etc means ?
>>>> When I have a layout with GRID=>ROW=>CELL=>DATA it sometimes shows this
>>>> 'inherited' behind the 'overflow'-property.
>>>> But I still have to set it manually thru the whole hierarchie to
>>>> make it
>>>> work, that is, to have the layout expand in this case of
>>>> 'overflow:visible'.
>>>>
>>>> Am I missing something here ?
>>>> Btw - I am still using Birt 2.5.2.
>>>>
>>>> Thanks,
>>>> Robert
>>>
>>
>
Previous Topic:Can't save .rptdesign file with chart
Next Topic:Avoid multiple sheets in excel using Tribix
Goto Forum:
  


Current Time: Sat Oct 25 22:50:46 GMT 2014

Powered by FUDForum. Page generated in 0.02031 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software