Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Formatting of table messed up when output spans multiple pages
Formatting of table messed up when output spans multiple pages [message #557509] Tue, 07 September 2010 17:27 Go to next message
sram is currently offline sram
Messages: 40
Registered: July 2009
Member
I have 2 table in my report ; one has a group and the other does not and both span multiple pages. The issue I have is that though the table is aligned to the center within the cell of the grid row, in the first n-1 pages , the table output is always left aligned and its only the last page or the nth page that is correctly aligned in the center.

Can this remedied? Is there a particular way to use page breaks to avoid this formatting issue?

Thanks much in advance.
Re: Formatting of table messed up when output spans multiple pages [message #557553 is a reply to message #557509] Wed, 08 September 2010 00:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Can you post the design?

Jason

On 9/7/2010 5:27 PM, sram wrote:
> I have 2 table in my report ; one has a group and the other does not and
> both span multiple pages. The issue I have is that though the table is
> aligned to the center within the cell of the grid row, in the first n-1
> pages , the table output is always left aligned and its only the last
> page or the nth page that is correctly aligned in the center.
>
> Can this remedied? Is there a particular way to use page breaks to avoid
> this formatting issue?
>
> Thanks much in advance.
Re: Formatting of table messed up when output spans multiple pages [message #557710 is a reply to message #557509] Wed, 08 September 2010 11:13 Go to previous messageGo to next message
sram is currently offline sram
Messages: 40
Registered: July 2009
Member
I am sorry, I must be missing something really obvious but how do I upload a file here? I wanted to upload my .rptdesign file as well as as the .ppt file of the output so that you could get a better idea of what I was talking about.

In the meanwhile, I am pasting the xml code for my .rptdesign file for now until I can figure out how to upload a file.

Thanks much in advance.

<?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">in</property>
    <property name="iconFile">/templates/blank_report.gif</property>
    <property name="bidiLayoutOrientation">ltr</property>
    <parameters>
        <scalar-parameter name="CampaignName" id="4233">
            <text-property name="promptText">Select Campaign</text-property>
            <property name="valueType">dynamic</property>
            <property name="isRequired">true</property>
            <property name="dataSetName">Campaign Name</property>
            <expression name="valueExpr" type="javascript">dataSetRow["cid"]</expression>
            <expression name="labelExpr" type="javascript">dataSetRow["campaign"]</expression>
            <property name="dataType">string</property>
            <property name="distinct">true</property>
            <simple-property-list name="defaultValue">
                <value type="constant">759</value>
            </simple-property-list>
            <property name="paramType">simple</property>
            <property name="controlType">list-box</property>
            <property name="mustMatch">true</property>
            <property name="fixedOrder">true</property>
            <structure name="format">
                <property name="category">Unformatted</property>
            </structure>
        </scalar-parameter>
    </parameters>
    <data-sources>
        <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="warehouse" id="7">
            <list-property name="privateDriverProperties">
                <ex-property>
                    <name>contentBidiFormatStr</name>
                    <value>ILYNN</value>
                </ex-property>
                <ex-property>
                    <name>metadataBidiFormatStr</name>
                    <value>ILYNN</value>
                </ex-property>
            </list-property>
            <property name="odaDriverClass">org.postgresql.Driver</property>
            <property name="odaURL">jdbc:postgresql://db2.javelin.pvt:5432/warehouse</property>
            <property name="odaUser">warehouse</property>
            <encrypted-property name="odaPassword" encryptionID="base64">RGF0YSpUcmFwIQ==</encrypted-property>
        </oda-data-source>
    </data-sources>
    <data-sets>
        <oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" name="Sales by Market" id="4068">
            <list-property name="columnHints">
                <structure>
                    <property name="columnName">Market</property>
                    <text-property name="displayName">Market</text-property>
                </structure>
                <structure>
                    <property name="columnName">D</property>
                    <text-property name="displayName">D</text-property>
                </structure>
                <structure>
                    <property name="columnName">I</property>
                    <text-property name="displayName">I</text-property>
                </structure>
                <structure>
                    <property name="columnName">V</property>
                    <text-property name="displayName">V</text-property>
                </structure>
                <structure>
                    <property name="columnName">XTotal</property>
                    <text-property name="displayName">XTotal</text-property>
                </structure>
            </list-property>
            <list-property name="parameters">
                <structure>
                    <property name="name">param_1</property>
                    <property name="paramName">CampaignName</property>
                    <property name="nativeName"></property>
                    <property name="dataType">string</property>
                    <property name="nativeDataType">12</property>
                    <property name="position">1</property>
                    <property name="isInput">true</property>
                    <property name="isOutput">false</property>
                </structure>
                <structure>
                    <property name="name">param_2</property>
                    <property name="paramName">CampaignName</property>
                    <property name="nativeName"></property>
                    <property name="dataType">string</property>
                    <property name="nativeDataType">12</property>
                    <property name="position">2</property>
                    <property name="isInput">true</property>
                    <property name="isOutput">false</property>
                </structure>
            </list-property>
            <structure name="cachedMetaData">
                <list-property name="resultSet">
                    <structure>
                        <property name="position">1</property>
                        <property name="name">Market</property>
                        <property name="dataType">string</property>
                    </structure>
                    <structure>
                        <property name="position">2</property>
                        <property name="name">D</property>
                        <property name="dataType">decimal</property>
                    </structure>
                    <structure>
                        <property name="position">3</property>
                        <property name="name">I</property>
                        <property name="dataType">decimal</property>
                    </structure>
                    <structure>
                        <property name="position">4</property>
                        <property name="name">V</property>
                        <property name="dataType">decimal</property>
                    </structure>
                    <structure>
                        <property name="position">5</property>
                        <property name="name">XTotal</property>
                        <property name="dataType">decimal</property>
                    </structure>
                </list-property>
            </structure>
            <property name="dataSource">warehouse</property>
            <list-property name="resultSet">
                <structure>
                    <property name="position">1</property>
                    <property name="name">Market</property>
                    <property name="nativeName">Market</property>
                    <property name="dataType">string</property>
                    <property name="nativeDataType">12</property>
                </structure>
                <structure>
                    <property name="position">2</property>
                    <property name="name">D</property>
                    <property name="nativeName">D</property>
                    <property name="dataType">decimal</property>
                    <property name="nativeDataType">2</property>
                </structure>
                <structure>
                    <property name="position">3</property>
                    <property name="name">I</property>
                    <property name="nativeName">I</property>
                    <property name="dataType">decimal</property>
                    <property name="nativeDataType">2</property>
                </structure>
                <structure>
                    <property name="position">4</property>
                    <property name="name">V</property>
                    <property name="nativeName">V</property>
                    <property name="dataType">decimal</property>
                    <property name="nativeDataType">2</property>
                </structure>
                <structure>
                    <property name="position">5</property>
                    <property name="name">XTotal</property>
                    <property name="nativeName">XTotal</property>
                    <property name="dataType">decimal</property>
                    <property name="nativeDataType">2</property>
                </structure>
            </list-property>
            <xml-property name="queryText"><![CDATA[select * from
CROSSTAB('
(
	select market , vdi , SUM(COALESCE(sales,0)) + SUM(COALESCE(derived_sales,0)) + SUM(COALESCE(mc_sales,0)) as sales
	from
		(select b.market , c.vdi , SUM(a.sales) as sales , SUM(a.derived_sales) as derived_sales , SUM(a.mc_sales) as mc_Sales
		from smb_cubes.campaign_comparison_usoc_sales a
		inner join dim.smb_mobil_market b on b.id = a.mobil_market_id
		inner join dim.smb_mobil_vdi c on c.id = a.mobil_vdi_id
		where a.smb_sale_match_id in (4,5)
		and a.smb_project_id = ''' || ? || '''
		group by b.market , c.vdi
		
		union
		
		select b.market , ''XTotal'' as vdi , SUM(a.sales) as sales , SUM(a.derived_sales) as derived_sales , SUM(a.mc_sales) as mc_Sales
		from smb_cubes.campaign_comparison_usoc_sales a
		inner join dim.smb_mobil_market b on b.id = a.mobil_market_id
		inner join dim.smb_mobil_vdi c on c.id = a.mobil_vdi_id
		where a.smb_sale_match_id in (4,5)
		and a.smb_project_id = ''' || ? || '''
		group by b.market ) a
	group by a.market , a.vdi
	order by market,vdi
)
'
,
'
(select distinct vdi from dim.smb_mobil_vdi where vdi not in (''UNKNOWN'')
union
select ''XTotal'' as vdi from dim.smb_mobil_vdi)
order by vdi
') as
("Market" text , "D" numeric , "I" numeric, "V" numeric , "XTotal" numeric)]]></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:DataSetParameters>
    <design:parameterDefinitions>
      <design:inOutMode>In</design:inOutMode>
      <design:attributes>
        <design:name></design:name>
        <design:position>1</design:position>
        <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
        <design:precision>0</design:precision>
        <design:scale>0</design:scale>
        <design:nullability>Unknown</design:nullability>
      </design:attributes>
    </design:parameterDefinitions>
    <design:parameterDefinitions>
      <design:inOutMode>In</design:inOutMode>
      <design:attributes>
        <design:name></design:name>
        <design:position>2</design:position>
        <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
        <design:precision>0</design:precision>
        <design:scale>0</design:scale>
        <design:nullability>Unknown</design:nullability>
      </design:attributes>
    </design:parameterDefinitions>
  </design:DataSetParameters>
  <design:ResultSets derivedMetaData="true">
    <design:resultSetDefinitions>
      <design:resultSetColumns>
        <design:resultColumnDefinitions>
          <design:attributes>
            <design:name>Market</design:name>
            <design:position>1</design:position>
            <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
            <design:precision>0</design:precision>
            <design:scale>0</design:scale>
            <design:nullability>Unknown</design:nullability>
            <design:uiHints>
              <design:displayName>Market</design:displayName>
            </design:uiHints>
          </design:attributes>
          <design:usageHints>
            <design:label>Market</design:label>
            <design:formattingHints>
              <design:displaySize>2147483647</design:displaySize>
            </design:formattingHints>
          </design:usageHints>
        </design:resultColumnDefinitions>
        <design:resultColumnDefinitions>
          <design:attributes>
            <design:name>D</design:name>
            <design:position>2</design:position>
            <design:nativeDataTypeCode>2</design:nativeDataTypeCode>
            <design:precision>0</design:precision>
            <design:scale>0</design:scale>
            <design:nullability>Unknown</design:nullability>
            <design:uiHints>
              <design:displayName>D</design:displayName>
            </design:uiHints>
          </design:attributes>
          <design:usageHints>
            <design:label>D</design:label>
            <design:formattingHints>
              <design:displaySize>131089</design:displaySize>
            </design:formattingHints>
          </design:usageHints>
        </design:resultColumnDefinitions>
        <design:resultColumnDefinitions>
          <design:attributes>
            <design:name>I</design:name>
            <design:position>3</design:position>
            <design:nativeDataTypeCode>2</design:nativeDataTypeCode>
            <design:precision>0</design:precision>
            <design:scale>0</design:scale>
            <design:nullability>Unknown</design:nullability>
            <design:uiHints>
              <design:displayName>I</design:displayName>
            </design:uiHints>
          </design:attributes>
          <design:usageHints>
            <design:label>I</design:label>
            <design:formattingHints>
              <design:displaySize>131089</design:displaySize>
            </design:formattingHints>
          </design:usageHints>
        </design:resultColumnDefinitions>
        <design:resultColumnDefinitions>
          <design:attributes>
            <design:name>V</design:name>
            <design:position>4</design:position>
            <design:nativeDataTypeCode>2</design:nativeDataTypeCode>
            <design:precision>0</design:precision>
            <design:scale>0</design:scale>
            <design:nullability>Unknown</design:nullability>
            <design:uiHints>
              <design:displayName>V</design:displayName>
            </design:uiHints>
          </design:attributes>
          <design:usageHints>
            <design:label>V</design:label>
            <design:formattingHints>
              <design:displaySize>131089</design:displaySize>
            </design:formattingHints>
          </design:usageHints>
        </design:resultColumnDefinitions>
      </design:resultSetColumns>
    </design:resultSetDefinitions>
  </design:ResultSets>
</model:DesignValues>]]></xml-property>
        </oda-data-set>
        <oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" name="Sales by Region" id="4136">
            <list-property name="columnHints">
                <structure>
                    <property name="columnName">region</property>
                    <text-property name="displayName">region</text-property>
                </structure>
                <structure>
                    <property name="columnName">sales</property>
                    <text-property name="displayName">sales</text-property>
                </structure>
            </list-property>
            <list-property name="parameters">
                <structure>
                    <property name="name">param_1</property>
                    <property name="paramName">CampaignName</property>
                    <property name="nativeName"></property>
                    <property name="dataType">integer</property>
                    <property name="nativeDataType">4</property>
                    <property name="position">1</property>
                    <property name="isInput">true</property>
                    <property name="isOutput">false</property>
                </structure>
            </list-property>
            <structure name="cachedMetaData">
                <list-property name="resultSet">
                    <structure>
                        <property name="position">1</property>
                        <property name="name">region</property>
                        <property name="dataType">string</property>
                    </structure>
                    <structure>
                        <property name="position">2</property>
                        <property name="name">sales</property>
                        <property name="dataType">decimal</property>
                    </structure>
                </list-property>
            </structure>
            <property name="dataSource">warehouse</property>
            <list-property name="resultSet">
                <structure>
                    <property name="position">1</property>
                    <property name="name">region</property>
                    <property name="nativeName">region</property>
                    <property name="dataType">string</property>
                    <property name="nativeDataType">12</property>
                </structure>
                <structure>
                    <property name="position">2</property>
                    <property name="name">sales</property>
                    <property name="nativeName">sales</property>
                    <property name="dataType">decimal</property>
                    <property name="nativeDataType">2</property>
                </structure>
            </list-property>
            <xml-property name="queryText"><![CDATA[select region , SUM(COALESCE(sales,0)) + SUM(COALESCE(derived_sales,0)) + SUM(COALESCE(mc_sales,0)) as sales
from
(
	select b.region,SUM(a.sales) as sales , SUM(a.derived_sales) as derived_sales , SUM(a.mc_sales) as mc_Sales
	from smb_cubes.campaign_comparison_usoc_sales a
	inner join dim.smb_mobil_regions b on b.id = a.mobil_region_id
	where a.smb_sale_match_id in (4,5)
	and a.smb_project_id = ?
	group by b.region 
) q
group by q.region , q.sales
order by q.sales desc ]]></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:DataSetParameters>
    <design:parameterDefinitions>
      <design:inOutMode>In</design:inOutMode>
      <design:attributes>
        <design:name></design:name>
        <design:position>1</design:position>
        <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
        <design:precision>0</design:precision>
        <design:scale>0</design:scale>
        <design:nullability>Unknown</design:nullability>
      </design:attributes>
    </design:parameterDefinitions>
  </design:DataSetParameters>
  <design:ResultSets derivedMetaData="true">
    <design:resultSetDefinitions>
      <design:resultSetColumns>
        <design:resultColumnDefinitions>
          <design:attributes>
            <design:name>region</design:name>
            <design:position>1</design:position>
            <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
            <design:precision>255</design:precision>
            <design:scale>0</design:scale>
            <design:nullability>Nullable</design:nullability>
            <design:uiHints>
              <design:displayName>region</design:displayName>
            </design:uiHints>
          </design:attributes>
          <design:usageHints>
            <design:label>region</design:label>
            <design:formattingHints>
              <design:displaySize>255</design:displaySize>
            </design:formattingHints>
          </design:usageHints>
        </design:resultColumnDefinitions>
        <design:resultColumnDefinitions>
          <design:attributes>
            <design:name>sales</design:name>
            <design:position>2</design:position>
            <design:nativeDataTypeCode>-5</design:nativeDataTypeCode>
            <design:precision>19</design:precision>
            <design:scale>0</design:scale>
            <design:nullability>Unknown</design:nullability>
            <design:uiHints>
              <design:displayName>sales</design:displayName>
            </design:uiHints>
          </design:attributes>
          <design:usageHints>
            <design:label>sales</design:label>
            <design:formattingHints>
              <design:displaySize>20</design:displaySize>
            </design:formattingHints>
          </design:usageHints>
        </design:resultColumnDefinitions>
      </design:resultSetColumns>
    </design:resultSetDefinitions>
  </design:ResultSets>
</model:DesignValues>]]></xml-property>
        </oda-data-set>
        <oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" name="Sales by Device" id="4207">
            <list-property name="columnHints">
                <structure>
                    <property name="columnName">make</property>
                    <text-property name="displayName">make</text-property>
                </structure>
                <structure>
                    <property name="columnName">model</property>
                    <text-property name="displayName">model</text-property>
                </structure>
                <structure>
                    <property name="columnName">sales</property>
                    <text-property name="displayName">sales</text-property>
                </structure>
            </list-property>
            <list-property name="parameters">
                <structure>
                    <property name="name">param_1</property>
                    <property name="paramName">CampaignName</property>
                    <property name="nativeName"></property>
                    <property name="dataType">integer</property>
                    <property name="nativeDataType">4</property>
                    <property name="position">1</property>
                    <property name="isInput">true</property>
                    <property name="isOutput">false</property>
                </structure>
            </list-property>
            <structure name="cachedMetaData">
                <list-property name="resultSet">
                    <structure>
                        <property name="position">1</property>
                        <property name="name">make</property>
                        <property name="dataType">string</property>
                    </structure>
                    <structure>
                        <property name="position">2</property>
                        <property name="name">model</property>
                        <property name="dataType">string</property>
                    </structure>
                    <structure>
                        <property name="position">3</property>
                        <property name="name">sales</property>
                        <property name="dataType">decimal</property>
                    </structure>
                </list-property>
            </structure>
            <property name="dataSource">warehouse</property>
            <list-property name="resultSet">
                <structure>
                    <property name="position">1</property>
                    <property name="name">make</property>
                    <property name="nativeName">make</property>
                    <property name="dataType">string</property>
                    <property name="nativeDataType">12</property>
                </structure>
                <structure>
                    <property name="position">2</property>
                    <property name="name">model</property>
                    <property name="nativeName">model</property>
                    <property name="dataType">string</property>
                    <property name="nativeDataType">12</property>
                </structure>
                <structure>
                    <property name="position">3</property>
                    <property name="name">sales</property>
                    <property name="nativeName">sales</property>
                    <property name="dataType">decimal</property>
                    <property name="nativeDataType">2</property>
                </structure>
            </list-property>
            <xml-property name="queryText"><![CDATA[select 
	   make,
	   model, 
	   SUM(COALESCE(sales,0)) + 
	   SUM(COALESCE(derived_sales,0)) + 
	   SUM(COALESCE(mc_sales,0))
	   as sales
from
(
	select b.name as make,
	       c.model,
	       SUM(a.sales) as sales , 
	       SUM(a.derived_sales) as derived_sales , 
	       SUM(a.mc_sales) as mc_Sales
	from smb_cubes.campaign_comparison_usoc_sales a
	inner join dim.smb_mobil_device_manufacturer b on b.id = a.mobil_manf_id
	inner join dim.smb_mobil_device_model c on c.id = a.mobil_model_id
	where a.smb_sale_match_id in (4,5)
	and a.smb_project_id = ?
	group by b.name,c.model
) q
group by make ,model, sales 
order by  make ,model, sales desc]]></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:DataSetParameters>
    <design:parameterDefinitions>
      <design:inOutMode>In</design:inOutMode>
      <design:attributes>
        <design:name></design:name>
        <design:position>1</design:position>
        <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
        <design:precision>0</design:precision>
        <design:scale>0</design:scale>
        <design:nullability>Unknown</design:nullability>
      </design:attributes>
    </design:parameterDefinitions>
  </design:DataSetParameters>
  <design:ResultSets derivedMetaData="true">
    <design:resultSetDefinitions>
      <design:resultSetColumns>
        <design:resultColumnDefinitions>
          <design:attributes>
            <design:name>make</design:name>
            <design:position>1</design:position>
            <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
            <design:precision>255</design:precision>
            <design:scale>0</design:scale>
            <design:nullability>Nullable</design:nullability>
            <design:uiHints>
              <design:displayName>make</design:displayName>
            </design:uiHints>
          </design:attributes>
          <design:usageHints>
            <design:label>make</design:label>
            <design:formattingHints>
              <design:displaySize>255</design:displaySize>
            </design:formattingHints>
          </design:usageHints>
        </design:resultColumnDefinitions>
        <design:resultColumnDefinitions>
          <design:attributes>
            <design:name>sales</design:name>
            <design:position>2</design:position>
            <design:nativeDataTypeCode>-5</design:nativeDataTypeCode>
            <design:precision>19</design:precision>
            <design:scale>0</design:scale>
            <design:nullability>Unknown</design:nullability>
            <design:uiHints>
              <design:displayName>sales</design:displayName>
            </design:uiHints>
          </design:attributes>
          <design:usageHints>
            <design:label>sales</design:label>
            <design:formattingHints>
              <design:displaySize>20</design:displaySize>
            </design:formattingHints>
          </design:usageHints>
        </design:resultColumnDefinitions>
      </design:resultSetColumns>
    </design:resultSetDefinitions>
  </design:ResultSets>
</model:DesignValues>]]></xml-property>
        </oda-data-set>
        <oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" name="Campaign Name" id="4232">
            <list-property name="columnHints">
                <structure>
                    <property name="columnName">cid</property>
                    <text-property name="displayName">cid</text-property>
                </structure>
                <structure>
                    <property name="columnName">campaign</property>
                    <text-property name="displayName">campaign</text-property>
                </structure>
            </list-property>
            <structure name="cachedMetaData">
                <list-property name="resultSet">
                    <structure>
                        <property name="position">1</property>
                        <property name="name">cid</property>
                        <property name="dataType">integer</property>
                    </structure>
                    <structure>
                        <property name="position">2</property>
                        <property name="name">campaign</property>
                        <property name="dataType">string</property>
                    </structure>
                </list-property>
            </structure>
            <property name="dataSource">warehouse</property>
            <list-property name="resultSet">
                <structure>
                    <property name="position">1</property>
                    <property name="name">cid</property>
                    <property name="nativeName">cid</property>
                    <property name="dataType">integer</property>
                    <property name="nativeDataType">4</property>
                </structure>
                <structure>
                    <property name="position">2</property>
                    <property name="name">campaign</property>
                    <property name="nativeName">campaign</property>
                    <property name="dataType">string</property>
                    <property name="nativeDataType">12</property>
                </structure>
            </list-property>
            <xml-property name="queryText"><![CDATA[select distinct ccus.smb_project_id as cid , p.name as campaign
from smb_cubes.campaign_comparison_usoc_sales ccus
inner join dim.smb_projects p on p.smb_project_id = ccus.smb_project_id
where ccus.smb_sale_match_id in (4,5)
order by ccus.smb_project_id]]></xml-property>
        </oda-data-set>
    </data-sets>
    <styles>
        <style name="report" id="4">
            <property name="fontFamily">"Verdana"</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>
        <style name="NewStyle" id="2532">
            <property name="fontSize">large</property>
            <property name="color">#067AB4</property>
        </style>
    </styles>
    <page-setup>
        <simple-master-page name="AT&amp;T Orange Curve" id="2">
            <property name="type">custom</property>
            <property name="height">576pt</property>
            <property name="width">756pt</property>
            <property name="topMargin">0in</property>
            <property name="leftMargin">0.027777777777777776in</property>
            <property name="bottomMargin">0.013888888888888888in</property>
            <property name="rightMargin">0.041666666666666664in</property>
            <page-header>
                <image id="1274">
                    <property name="paddingTop">0pt</property>
                    <property name="paddingLeft">0pt</property>
                    <property name="paddingBottom">0pt</property>
                    <property name="paddingRight">0pt</property>
                    <property name="height">18pt</property>
                    <property name="width">756pt</property>
                    <property name="source">embed</property>
                    <property name="imageName">att_curve_header.png</property>
                </image>
            </page-header>
            <page-footer>
                <image id="1276">
                    <property name="paddingTop">0pt</property>
                    <property name="paddingLeft">0pt</property>
                    <property name="paddingBottom">0pt</property>
                    <property name="paddingRight">0pt</property>
                    <property name="height">66pt</property>
                    <property name="width">756pt</property>
                    <property name="source">embed</property>
                    <property name="imageName">att_curve_footer.png</property>
                </image>
            </page-footer>
        </simple-master-page>
        <simple-master-page name="Title Page" id="1275">
            <page-footer>
                <image id="1823">
                    <property name="paddingTop">0pt</property>
                    <property name="paddingLeft">0pt</property>
                    <property name="paddingBottom">0pt</property>
                    <property name="paddingRight">0pt</property>
                    <property name="height">250pt</property>
                    <property name="width">756pt</property>
                    <property name="source">embed</property>
                    <property name="imageName">att_big_footer.png</property>
                </image>
            </page-footer>
        </simple-master-page>
    </page-setup>
    <body>
        <grid name="Sales by Manu_Model" id="4234">
            <property name="pageBreakAfter">always</property>
            <property name="height">1.3958333333333333in</property>
            <column id="4235"/>
            <row id="4238">
                <property name="height">1.3958333333333333in</property>
                <cell id="4239">
                    <property name="textAlign">center</property>
                    <property name="verticalAlign">middle</property>
                    <table id="4243">
                        <property name="borderBottomColor">#000000</property>
                        <property name="borderBottomStyle">solid</property>
                        <property name="borderBottomWidth">thin</property>
                        <property name="verticalAlign">middle</property>
                        <property name="pageBreakInside">auto</property>
                        <property name="width">2.7777777777777777in</property>
                        <property name="dataSet">Sales by Device</property>
                        <list-property name="boundDataColumns">
                            <structure>
                                <property name="name">make</property>
                                <expression name="expression">dataSetRow["make"]</expression>
                                <property name="dataType">string</property>
                            </structure>
                            <structure>
                                <property name="name">sales</property>
                                <expression name="expression">dataSetRow["sales"]</expression>
                                <property name="dataType">decimal</property>
                            </structure>
                            <structure>
                                <property name="name">total_sales</property>
                                <text-property name="displayName">total_sales</text-property>
                                <property name="dataType">float</property>
                                <property name="aggregateFunction">SUM</property>
                                <list-property name="arguments">
                                    <structure>
                                        <property name="name">Expression</property>
                                        <expression name="value" type="javascript">row["sales"]</expression>
                                    </structure>
                                </list-property>
                            </structure>
                            <structure>
                                <property name="name">perc_sales</property>
                                <text-property name="displayName">perc_sales</text-property>
                                <expression name="expression">BirtMath.safeDivide(row["sales"],row["total_sales"],0)</expression>
                                <property name="dataType">float</property>
                            </structure>
                            <structure>
                                <property name="name">total_perc_sales</property>
                                <text-property name="displayName">total_perc_sales</text-property>
                                <expression name="expression">BirtMath.safeDivide(row["total_sales"],row["total_sales"],0)</expression>
                                <property name="dataType">float</property>
                            </structure>
                            <structure>
                                <property name="name">model</property>
                                <expression name="expression" type="javascript">dataSetRow["model"]</expression>
                                <property name="dataType">string</property>
                            </structure>
                            <structure>
                                <property name="name">group_sales</property>
                                <text-property name="displayName">group_sales</text-property>
                                <property name="dataType">float</property>
                                <simple-property-list name="aggregateOn">
                                    <value>Manu-model group</value>
                                </simple-property-list>
                                <property name="aggregateFunction">SUM</property>
                                <list-property name="arguments">
                                    <structure>
                                        <property name="name">Expression</property>
                                        <expression name="value" type="javascript">row["sales"]</expression>
                                    </structure>
                                </list-property>
                            </structure>
                            <structure>
                                <property name="name">total_sales_per_grp</property>
                                <text-property name="displayName">total_sales_per_grp</text-property>
                                <property name="dataType">float</property>
                                <simple-property-list name="aggregateOn">
                                    <value>Manu-model group</value>
                                </simple-property-list>
                                <property name="aggregateFunction">SUM</property>
                                <list-property name="arguments">
                                    <structure>
                                        <property name="name">Expression</property>
                                        <expression name="value" type="javascript">row["sales"]</expression>
                                    </structure>
                                </list-property>
                            </structure>
                            <structure>
                                <property name="name">per_sales_by_grp</property>
                                <text-property name="displayName">per_sales_by_grp</text-property>
                                <expression name="expression" type="javascript">BirtMath.safeDivide(row["total_sales_per_grp"],row["total_sales"],0)</expression>
                                <property name="dataType">float</property>
                            </structure>
                        </list-property>
                        <property name="pageBreakInterval">250</property>
                        <column id="4259">
                            <property name="width">2.5in</property>
                        </column>
                        <column id="4312">
                            <property name="width">1.4in</property>
                        </column>
                        <column id="4260">
                            <property name="width">1.4in</property>
                        </column>
                        <header>
                            <row id="4244">
                                <property name="backgroundColor">#E87400</property>
                                <property name="borderBottomColor">#000000</property>
                                <property name="borderBottomStyle">solid</property>
                                <property name="borderBottomWidth">thin</property>
                                <property name="borderLeftColor">#000000</property>
                                <property name="borderLeftStyle">solid</property>
                                <property name="borderLeftWidth">thin</property>
                                <property name="borderRightColor">#000000</property>
                                <property name="borderRightStyle">solid</property>
                                <property name="borderRightWidth">thin</property>
                                <property name="borderTopColor">#000000</property>
                                <property name="borderTopStyle">solid</property>
                                <property name="borderTopWidth">thin</property>
                                <cell id="4245">
                                    <label id="4246">
                                        <property name="fontSize">10pt</property>
                                        <property name="fontWeight">bold</property>
                                        <property name="textAlign">left</property>
                                        <text-property name="text">Device Make and Model</text-property>
                                    </label>
                                </cell>
                                <cell id="4307">
                                    <label id="4313">
                                        <property name="fontSize">10pt</property>
                                        <property name="fontWeight">bold</property>
                                        <property name="textAlign">right</property>
                                        <text-property name="text"># of Sales</text-property>
                                    </label>
                                </cell>
                                <cell id="4247">
                                    <label id="4248">
                                        <property name="fontSize">10pt</property>
                                        <property name="fontWeight">bold</property>
                                        <property name="textAlign">right</property>
                                        <text-property name="text">% of Total</text-property>
                                    </label>
                                </cell>
                            </row>
                        </header>
                        <group id="4299">
                            <property name="groupName">Manu-model group</property>
                            <property name="interval">none</property>
                            <property name="sortDirection">asc</property>
                            <expression name="keyExpr" type="javascript">row["make"]</expression>
                            <structure name="toc">
                                <expression name="expressionValue" type="javascript">row["make"]</expression>
                            </structure>
                            <property name="repeatHeader">true</property>
                            <property name="hideDetail">false</property>
                            <property name="pageBreakAfter">auto</property>
                            <property name="pageBreakBefore">auto</property>
                            <property name="pageBreakInside">auto</property>
                            <header>
                                <row id="4300">
                                    <property name="borderBottomColor">#000000</property>
                                    <property name="borderBottomStyle">solid</property>
                                    <property name="borderBottomWidth">thin</property>
                                    <property name="borderLeftColor">#000000</property>
                                    <property name="borderLeftStyle">solid</property>
                                    <property name="borderLeftWidth">thin</property>
                                    <property name="borderRightColor">#000000</property>
                                    <property name="borderRightStyle">solid</property>
                                    <property name="borderRightWidth">thin</property>
                                    <property name="borderTopColor">#000000</property>
                                    <property name="borderTopStyle">solid</property>
                                    <property name="borderTopWidth">thin</property>
                                    <property name="pageBreakInside">auto</property>
                                    <cell id="4301">
                                        <data id="4306">
                                            <property name="fontSize">8pt</property>
                                            <property name="fontWeight">bold</property>
                                            <property name="textAlign">left</property>
                                            <property name="resultSetColumn">make</property>
                                        </data>
                                    </cell>
                                    <cell id="4308"/>
                                    <cell id="4302"/>
                                </row>
                            </header>
                            <footer>
                                <row id="4303">
                                    <property name="borderBottomColor">#000000</property>
                                    <property name="borderBottomStyle">solid</property>
                                    <property name="borderBottomWidth">thin</property>
                                    <property name="borderLeftColor">#000000</property>
                                    <property name="borderLeftStyle">solid</property>
                                    <property name="borderLeftWidth">thin</property>
                                    <property name="borderRightColor">#000000</property>
                                    <property name="borderRightStyle">solid</property>
                                    <property name="borderRightWidth">thin</property>
                                    <property name="borderTopColor">#000000</property>
                                    <property name="borderTopStyle">solid</property>
                                    <property name="borderTopWidth">thin</property>
                                    <property name="pageBreakInside">auto</property>
                                    <cell id="4304">
                                        <label id="4316">
                                            <property name="fontSize">8pt</property>
                                            <property name="fontWeight">bold</property>
                                            <property name="color">#067AB4</property>
                                            <property name="textAlign">left</property>
                                            <text-property name="text">Total</text-property>
                                        </label>
                                    </cell>
                                    <cell id="4310">
                                        <data id="4318">
                                            <property name="fontSize">8pt</property>
                                            <property name="fontWeight">bold</property>
                                            <property name="color">#067AB4</property>
                                            <structure name="numberFormat">
                                                <property name="category">Custom</property>
                                                <property name="pattern">###,##0</property>
                                            </structure>
                                            <property name="textAlign">right</property>
                                            <property name="resultSetColumn">group_sales</property>
                                        </data>
                                    </cell>
                                    <cell id="4305">
                                        <data id="4322">
                                            <property name="fontSize">8pt</property>
                                            <property name="fontWeight">bold</property>
                                            <property name="color">#067AB4</property>
                                            <structure name="numberFormat">
                                                <property name="category">Percent</property>
                      



Re: Formatting of table messed up when output spans multiple pages [message #557731 is a reply to message #557710] Wed, 08 September 2010 11:43 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

I use thunderbird so uploading is pretty easy, but generally I just copy
and paste the xml. For some reason all of yours did not come through.
Can you email it to me at jasonweathersby at windstream dot net?

Jason


On 9/8/2010 11:13 AM, sram wrote:
> I am sorry, I must be missing something really obvious but how do I
> upload a file here? I wanted to upload my .rptdesign file as well as as
> the .ppt file of the output so that you could get a better idea of what
> I was talking about.
>
> In the meanwhile, I am pasting the xml code for my .rptdesign file for
> now until I can figure out how to upload a file.
>
> Thanks much in advance.
>
>
> <?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 <2.5.2.v20100210-0630></property>
> <property name="units">in</property>
> <property name="iconFile">/templates/blank_report.gif</property>
> <property name="bidiLayoutOrientation">ltr</property>
> <parameters>
> <scalar-parameter name="CampaignName" id="4233">
> <text-property name="promptText">Select Campaign</text-property>
> <property name="valueType">dynamic</property>
> <property name="isRequired">true</property>
> <property name="dataSetName">Campaign Name</property>
> <expression name="valueExpr"
> type="javascript">dataSetRow["cid"]</expression>
> <expression name="labelExpr"
> type="javascript">dataSetRow["campaign"]</expression>
> <property name="dataType">string</property>
> <property name="distinct">true</property>
> <simple-property-list name="defaultValue">
> <value type="constant">759</value>
> </simple-property-list>
> <property name="paramType">simple</property>
> <property name="controlType">list-box</property>
> <property name="mustMatch">true</property>
> <property name="fixedOrder">true</property>
> <structure name="format">
> <property name="category">Unformatted</property>
> </structure>
> </scalar-parameter>
> </parameters>
> <data-sources>
> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
> name="warehouse" id="7">
> <list-property name="privateDriverProperties">
> <ex-property>
> <name>contentBidiFormatStr</name>
> <value>ILYNN</value>
> </ex-property>
> <ex-property>
> <name>metadataBidiFormatStr</name>
> <value>ILYNN</value>
> </ex-property>
> </list-property>
> <property name="odaDriverClass">org.postgresql.Driver</property>
> <property
> name="odaURL">jdbc:postgresql://db2.javelin.pvt:5432/warehouse</property>
> <property name="odaUser">warehouse</property>
> <encrypted-property name="odaPassword"
> encryptionID="base64">RGF0YSpUcmFwIQ==</encrypted-property >
> </oda-data-source>
> </data-sources>
> <data-sets>
> <oda-data-set
> extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet "
> name="Sales by Market" id="4068">
> <list-property name="columnHints">
> <structure>
> <property name="columnName">Market</property>
> <text-property name="displayName">Market</text-property>
> </structure>
> <structure>
> <property name="columnName">D</property>
> <text-property name="displayName">D</text-property>
> </structure>
> <structure>
> <property name="columnName">I</property>
> <text-property name="displayName">I</text-property>
> </structure>
> <structure>
> <property name="columnName">V</property>
> <text-property name="displayName">V</text-property>
> </structure>
> <structure>
> <property name="columnName">XTotal</property>
> <text-property name="displayName">XTotal</text-property>
> </structure>
> </list-property>
> <list-property name="parameters">
> <structure>
> <property name="name">param_1</property>
> <property name="paramName">CampaignName</property>
> <property name="nativeName"></property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> <property name="position">1</property>
> <property name="isInput">true</property>
> <property name="isOutput">false</property>
> </structure>
> <structure>
> <property name="name">param_2</property>
> <property name="paramName">CampaignName</property>
> <property name="nativeName"></property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> <property name="position">2</property>
> <property name="isInput">true</property>
> <property name="isOutput">false</property>
> </structure>
> </list-property>
> <structure name="cachedMetaData">
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">Market</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">D</property>
> <property name="dataType">decimal</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">I</property>
> <property name="dataType">decimal</property>
> </structure>
> <structure>
> <property name="position">4</property>
> <property name="name">V</property>
> <property name="dataType">decimal</property>
> </structure>
> <structure>
> <property name="position">5</property>
> <property name="name">XTotal</property>
> <property name="dataType">decimal</property>
> </structure>
> </list-property>
> </structure>
> <property name="dataSource">warehouse</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">Market</property>
> <property name="nativeName">Market</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">D</property>
> <property name="nativeName">D</property>
> <property name="dataType">decimal</property>
> <property name="nativeDataType">2</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">I</property>
> <property name="nativeName">I</property>
> <property name="dataType">decimal</property>
> <property name="nativeDataType">2</property>
> </structure>
> <structure>
> <property name="position">4</property>
> <property name="name">V</property>
> <property name="nativeName">V</property>
> <property name="dataType">decimal</property>
> <property name="nativeDataType">2</property>
> </structure>
> <structure>
> <property name="position">5</property>
> <property name="name">XTotal</property>
> <property name="nativeName">XTotal</property>
> <property name="dataType">decimal</property>
> <property name="nativeDataType">2</property>
> </structure>
> </list-property>
> <xml-property name="queryText"><![CDATA[select * from
> CROSSTAB('
> (
> select market , vdi , SUM(COALESCE(sales,0)) +
> SUM(COALESCE(derived_sales,0)) + SUM(COALESCE(mc_sales,0)) as sales
> from
> (select b.market , c.vdi , SUM(a.sales) as sales , SUM(a.derived_sales)
> as derived_sales , SUM(a.mc_sales) as mc_Sales
> from smb_cubes.campaign_comparison_usoc_sales a
> inner join dim.smb_mobil_market b on b.id = a.mobil_market_id
> inner join dim.smb_mobil_vdi c on c.id = a.mobil_vdi_id
> where a.smb_sale_match_id in (4,5)
> and a.smb_project_id = ''' || ? || '''
> group by b.market , c.vdi
>
> union
>
> select b.market , ''XTotal'' as vdi , SUM(a.sales) as sales ,
> SUM(a.derived_sales) as derived_sales , SUM(a.mc_sales) as mc_Sales
> from smb_cubes.campaign_comparison_usoc_sales a
> inner join dim.smb_mobil_market b on b.id = a.mobil_market_id
> inner join dim.smb_mobil_vdi c on c.id = a.mobil_vdi_id
> where a.smb_sale_match_id in (4,5)
> and a.smb_project_id = ''' || ? || '''
> group by b.market ) a
> group by a.market , a.vdi
> order by market,vdi
> )
> '
> ,
> '
> (select distinct vdi from dim.smb_mobil_vdi where vdi not in (''UNKNOWN'')
> union
> select ''XTotal'' as vdi from dim.smb_mobil_vdi)
> order by vdi
> ') as
> ("Market" text , "D" numeric , "I" numeric, "V" numeric , "XTotal"
> numeric)]]></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:DataSetParameters>
> <design:parameterDefinitions>
> <design:inOutMode>In</design:inOutMode>
> <design:attributes>
> <design:name></design:name>
> <design:position>1</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>0</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Unknown</design:nullability>
> </design:attributes>
> </design:parameterDefinitions>
> <design:parameterDefinitions>
> <design:inOutMode>In</design:inOutMode>
> <design:attributes>
> <design:name></design:name>
> <design:position>2</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>0</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Unknown</design:nullability>
> </design:attributes>
> </design:parameterDefinitions>
> </design:DataSetParameters>
> <design:ResultSets derivedMetaData="true">
> <design:resultSetDefinitions>
> <design:resultSetColumns>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>Market</design:name>
> <design:position>1</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>0</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Unknown</design:nullability>
> <design:uiHints>
> <design:displayName>Market</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>Market</design:label>
> <design:formattingHints>
> <design:displaySize>2147483647</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>D</design:name>
> <design:position>2</design:position>
> <design:nativeDataTypeCode>2</design:nativeDataTypeCode>
> <design:precision>0</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Unknown</design:nullability>
> <design:uiHints>
> <design:displayName>D</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>D</design:label>
> <design:formattingHints>
> <design:displaySize>131089</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>I</design:name>
> <design:position>3</design:position>
> <design:nativeDataTypeCode>2</design:nativeDataTypeCode>
> <design:precision>0</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Unknown</design:nullability>
> <design:uiHints>
> <design:displayName>I</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>I</design:label>
> <design:formattingHints>
> <design:displaySize>131089</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>V</design:name>
> <design:position>4</design:position>
> <design:nativeDataTypeCode>2</design:nativeDataTypeCode>
> <design:precision>0</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Unknown</design:nullability>
> <design:uiHints>
> <design:displayName>V</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>V</design:label>
> <design:formattingHints>
> <design:displaySize>131089</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> </design:resultSetColumns>
> </design:resultSetDefinitions>
> </design:ResultSets>
> </model:DesignValues>]]></xml-property>
> </oda-data-set>
> <oda-data-set
> extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet "
> name="Sales by Region" id="4136">
> <list-property name="columnHints">
> <structure>
> <property name="columnName">region</property>
> <text-property name="displayName">region</text-property>
> </structure>
> <structure>
> <property name="columnName">sales</property>
> <text-property name="displayName">sales</text-property>
> </structure>
> </list-property>
> <list-property name="parameters">
> <structure>
> <property name="name">param_1</property>
> <property name="paramName">CampaignName</property>
> <property name="nativeName"></property>
> <property name="dataType">integer</property>
> <property name="nativeDataType">4</property>
> <property name="position">1</property>
> <property name="isInput">true</property>
> <property name="isOutput">false</property>
> </structure>
> </list-property>
> <structure name="cachedMetaData">
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">region</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">sales</property>
> <property name="dataType">decimal</property>
> </structure>
> </list-property>
> </structure>
> <property name="dataSource">warehouse</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">region</property>
> <property name="nativeName">region</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">sales</property>
> <property name="nativeName">sales</property>
> <property name="dataType">decimal</property>
> <property name="nativeDataType">2</property>
> </structure>
> </list-property>
> <xml-property name="queryText"><![CDATA[select region ,
> SUM(COALESCE(sales,0)) + SUM(COALESCE(derived_sales,0)) +
> SUM(COALESCE(mc_sales,0)) as sales
> from
> (
> select b.region,SUM(a.sales) as sales , SUM(a.derived_sales) as
> derived_sales , SUM(a.mc_sales) as mc_Sales
> from smb_cubes.campaign_comparison_usoc_sales a
> inner join dim.smb_mobil_regions b on b.id = a.mobil_region_id
> where a.smb_sale_match_id in (4,5)
> and a.smb_project_id = ?
> group by b.region ) q
> group by q.region , q.sales
> order by q.sales desc ]]></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:DataSetParameters>
> <design:parameterDefinitions>
> <design:inOutMode>In</design:inOutMode>
> <design:attributes>
> <design:name></design:name>
> <design:position>1</design:position>
> <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
> <design:precision>0</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Unknown</design:nullability>
> </design:attributes>
> </design:parameterDefinitions>
> </design:DataSetParameters>
> <design:ResultSets derivedMetaData="true">
> <design:resultSetDefinitions>
> <design:resultSetColumns>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>region</design:name>
> <design:position>1</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>255</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>region</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>region</design:label>
> <design:formattingHints>
> <design:displaySize>255</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>sales</design:name>
> <design:position>2</design:position>
> <design:nativeDataTypeCode>-5</design:nativeDataTypeCode>
> <design:precision>19</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Unknown</design:nullability>
> <design:uiHints>
> <design:displayName>sales</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>sales</design:label>
> <design:formattingHints>
> <design:displaySize>20</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> </design:resultSetColumns>
> </design:resultSetDefinitions>
> </design:ResultSets>
> </model:DesignValues>]]></xml-property>
> </oda-data-set>
> <oda-data-set
> extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet "
> name="Sales by Device" id="4207">
> <list-property name="columnHints">
> <structure>
> <property name="columnName">make</property>
> <text-property name="displayName">make</text-property>
> </structure>
> <structure>
> <property name="columnName">model</property>
> <text-property name="displayName">model</text-property>
> </structure>
> <structure>
> <property name="columnName">sales</property>
> <text-property name="displayName">sales</text-property>
> </structure>
> </list-property>
> <list-property name="parameters">
> <structure>
> <property name="name">param_1</property>
> <property name="paramName">CampaignName</property>
> <property name="nativeName"></property>
> <property name="dataType">integer</property>
> <property name="nativeDataType">4</property>
> <property name="position">1</property>
> <property name="isInput">true</property>
> <property name="isOutput">false</property>
> </structure>
> </list-property>
> <structure name="cachedMetaData">
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">make</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">model</property>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">sales</property>
> <property name="dataType">decimal</property>
> </structure>
> </list-property>
> </structure>
> <property name="dataSource">warehouse</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">make</property>
> <property name="nativeName">make</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">model</property>
> <property name="nativeName">model</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> <structure>
> <property name="position">3</property>
> <property name="name">sales</property>
> <property name="nativeName">sales</property>
> <property name="dataType">decimal</property>
> <property name="nativeDataType">2</property>
> </structure>
> </list-property>
> <xml-property name="queryText"><![CDATA[select make,
> model, SUM(COALESCE(sales,0)) + SUM(COALESCE(derived_sales,0)) +
> SUM(COALESCE(mc_sales,0))
> as sales
> from
> (
> select b.name as make,
> c.model,
> SUM(a.sales) as sales , SUM(a.derived_sales) as derived_sales ,
> SUM(a.mc_sales) as mc_Sales
> from smb_cubes.campaign_comparison_usoc_sales a
> inner join dim.smb_mobil_device_manufacturer b on b.id = a.mobil_manf_id
> inner join dim.smb_mobil_device_model c on c.id = a.mobil_model_id
> where a.smb_sale_match_id in (4,5)
> and a.smb_project_id = ?
> group by b.name,c.model
> ) q
> group by make ,model, sales order by make ,model, sales
> desc]]></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:DataSetParameters>
> <design:parameterDefinitions>
> <design:inOutMode>In</design:inOutMode>
> <design:attributes>
> <design:name></design:name>
> <design:position>1</design:position>
> <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
> <design:precision>0</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Unknown</design:nullability>
> </design:attributes>
> </design:parameterDefinitions>
> </design:DataSetParameters>
> <design:ResultSets derivedMetaData="true">
> <design:resultSetDefinitions>
> <design:resultSetColumns>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>make</design:name>
> <design:position>1</design:position>
> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
> <design:precision>255</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Nullable</design:nullability>
> <design:uiHints>
> <design:displayName>make</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>make</design:label>
> <design:formattingHints>
> <design:displaySize>255</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> <design:resultColumnDefinitions>
> <design:attributes>
> <design:name>sales</design:name>
> <design:position>2</design:position>
> <design:nativeDataTypeCode>-5</design:nativeDataTypeCode>
> <design:precision>19</design:precision>
> <design:scale>0</design:scale>
> <design:nullability>Unknown</design:nullability>
> <design:uiHints>
> <design:displayName>sales</design:displayName>
> </design:uiHints>
> </design:attributes>
> <design:usageHints>
> <design:label>sales</design:label>
> <design:formattingHints>
> <design:displaySize>20</design:displaySize>
> </design:formattingHints>
> </design:usageHints>
> </design:resultColumnDefinitions>
> </design:resultSetColumns>
> </design:resultSetDefinitions>
> </design:ResultSets>
> </model:DesignValues>]]></xml-property>
> </oda-data-set>
> <oda-data-set
> extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet "
> name="Campaign Name" id="4232">
> <list-property name="columnHints">
> <structure>
> <property name="columnName">cid</property>
> <text-property name="displayName">cid</text-property>
> </structure>
> <structure>
> <property name="columnName">campaign</property>
> <text-property name="displayName">campaign</text-property>
> </structure>
> </list-property>
> <structure name="cachedMetaData">
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">cid</property>
> <property name="dataType">integer</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">campaign</property>
> <property name="dataType">string</property>
> </structure>
> </list-property>
> </structure>
> <property name="dataSource">warehouse</property>
> <list-property name="resultSet">
> <structure>
> <property name="position">1</property>
> <property name="name">cid</property>
> <property name="nativeName">cid</property>
> <property name="dataType">integer</property>
> <property name="nativeDataType">4</property>
> </structure>
> <structure>
> <property name="position">2</property>
> <property name="name">campaign</property>
> <property name="nativeName">campaign</property>
> <property name="dataType">string</property>
> <property name="nativeDataType">12</property>
> </structure>
> </list-property>
> <xml-property name="queryText"><![CDATA[select distinct
> ccus.smb_project_id as cid , p.name as campaign
> from smb_cubes.campaign_comparison_usoc_sales ccus
> inner join dim.smb_projects p on p.smb_project_id = ccus.smb_project_id
> where ccus.smb_sale_match_id in (4,5)
> order by ccus.smb_project_id]]></xml-property>
> </oda-data-set>
> </data-sets>
> <styles>
> <style name="report" id="4">
> <property name="fontFamily">"Verdana"</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>
> <style name="NewStyle" id="2532">
> <property name="fontSize">large</property>
> <property name="color">#067AB4</property>
> </style>
> </styles>
> <page-setup>
> <simple-master-page name="AT&T Orange Curve" id="2">
> <property name="type">custom</property>
> <property name="height">576pt</property>
> <property name="width">756pt</property>
> <property name="topMargin">0in</property>
> <property name="leftMargin">0.027777777777777776in</property>
> <property name="bottomMargin">0.013888888888888888in</property>
> <property name="rightMargin">0.041666666666666664in</property>
> <page-header>
> <image id="1274">
> <property name="paddingTop">0pt</property>
> <property name="paddingLeft">0pt</property>
> <property name="paddingBottom">0pt</property>
> <property name="paddingRight">0pt</property>
> <property name="height">18pt</property>
> <property name="width">756pt</property>
> <property name="source">embed</property>
> <property name="imageName">att_curve_header.png</property>
> </image>
> </page-header>
> <page-footer>
> <image id="1276">
> <property name="paddingTop">0pt</property>
> <property name="paddingLeft">0pt</property>
> <property name="paddingBottom">0pt</property>
> <property name="paddingRight">0pt</property>
> <property name="height">66pt</property>
> <property name="width">756pt</property>
> <property name="source">embed</property>
> <property name="imageName">att_curve_footer.png</property>
> </image>
> </page-footer>
> </simple-master-page>
> <simple-master-page name="Title Page" id="1275">
> <page-footer>
> <image id="1823">
> <property name="paddingTop">0pt</property>
> <property name="paddingLeft">0pt</property>
> <property name="paddingBottom">0pt</property>
> <property name="paddingRight">0pt</property>
> <property name="height">250pt</property>
> <property name="width">756pt</property>
> <property name="source">embed</property>
> <property name="imageName">att_big_footer.png</property>
> </image>
> </page-footer>
> </simple-master-page>
> </page-setup>
> <body>
> <grid name="Sales by Manu_Model" id="4234">
> <property name="pageBreakAfter">always</property>
> <property name="height">1.3958333333333333in</property>
> <column id="4235"/>
> <row id="4238">
> <property name="height">1.3958333333333333in</property>
> <cell id="4239">
> <property name="textAlign">center</property>
> <property name="verticalAlign">middle</property>
> <table id="4243">
> <property name="borderBottomColor">#000000</property>
> <property name="borderBottomStyle">solid</property>
> <property name="borderBottomWidth">thin</property>
> <property name="verticalAlign">middle</property>
> <property name="pageBreakInside">auto</property>
> <property name="width">2.7777777777777777in</property>
> <property name="dataSet">Sales by Device</property>
> <list-property name="boundDataColumns">
> <structure>
> <property name="name">make</property>
> <expression name="expression">dataSetRow["make"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">sales</property>
> <expression name="expression">dataSetRow["sales"]</expression>
> <property name="dataType">decimal</property>
> </structure>
> <structure>
> <property name="name">total_sales</property>
> <text-property name="displayName">total_sales</text-property>
> <property name="dataType">float</property>
> <property name="aggregateFunction">SUM</property>
> <list-property name="arguments">
> <structure>
> <property name="name">Expression</property>
> <expression name="value" type="javascript">row["sales"]</expression>
> </structure>
> </list-property>
> </structure>
> <structure>
> <property name="name">perc_sales</property>
> <text-property name="displayName">perc_sales</text-property>
> <expression
> name="expression">BirtMath.safeDivide(row["sales"],row["total_sales "],0)</expression>
>
> <property name="dataType">float</property>
> </structure>
> <structure>
> <property name="name">total_perc_sales</property>
> <text-property name="displayName">total_perc_sales</text-property>
> <expression
> name="expression">BirtMath.safeDivide(row["total_sales"],row[ "total_sales"],0)</expression>
>
> <property name="dataType">float</property>
> </structure>
> <structure>
> <property name="name">model</property>
> <expression name="expression"
> type="javascript">dataSetRow["model"]</expression>
> <property name="dataType">string</property>
> </structure>
> <structure>
> <property name="name">group_sales</property>
> <text-property name="displayName">group_sales</text-property>
> <property name="dataType">float</property>
> <simple-property-list name="aggregateOn">
> <value>Manu-model group</value>
> </simple-property-list>
> <property name="aggregateFunction">SUM</property>
> <list-property name="arguments">
> <structure>
> <property name="name">Expression</property>
> <expression name="value" type="javascript">row["sales"]</expression>
> </structure>
> </list-property>
> </structure>
> <structure>
> <property name="name">total_sales_per_grp</property>
> <text-property name="displayName">total_sales_per_grp</text-property>
> <property name="dataType">float</property>
> <simple-property-list name="aggregateOn">
> <value>Manu-model group</value>
> </simple-property-list>
> <property name="aggregateFunction">SUM</property>
> <list-property name="arguments">
> <structure>
> <property name="name">Expression</property>
> <expression name="value" type="javascript">row["sales"]</expression>
> </structure>
> </list-property>
> </structure>
> <structure>
> <property name="name">per_sales_by_grp</property>
> <text-property name="displayName">per_sales_by_grp</text-property>
> <expression name="expression"
> type="javascript">BirtMath.safeDivide(row["total_sales_per_grp "],row["total_sales"],0)</expression>
>
> <property name="dataType">float</property>
> </structure>
> </list-property>
> <property name="pageBreakInterval">250</property>
> <column id="4259">
> <property name="width">2.5in</property>
> </column>
> <column id="4312">
> <property name="width">1.4in</property>
> </column>
> <column id="4260">
> <property name="width">1.4in</property>
> </column>
> <header>
> <row id="4244">
> <property name="backgroundColor">#E87400</property>
> <property name="borderBottomColor">#000000</property>
> <property name="borderBottomStyle">solid</property>
> <property name="borderBottomWidth">thin</property>
> <property name="borderLeftColor">#000000</property>
> <property name="borderLeftStyle">solid</property>
> <property name="borderLeftWidth">thin</property>
> <property name="borderRightColor">#000000</property>
> <property name="borderRightStyle">solid</property>
> <property name="borderRightWidth">thin</property>
> <property name="borderTopColor">#000000</property>
> <property name="borderTopStyle">solid</property>
> <property name="borderTopWidth">thin</property>
> <cell id="4245">
> <label id="4246">
> <property name="fontSize">10pt</property>
> <property name="fontWeight">bold</property>
> <property name="textAlign">left</property>
> <text-property name="text">Device Make and Model</text-property>
> </label>
> </cell>
> <cell id="4307">
> <label id="4313">
> <property name="fontSize">10pt</property>
> <property name="fontWeight">bold</property>
> <property name="textAlign">right</property>
> <text-property name="text"># of Sales</text-property>
> </label>
> </cell>
> <cell id="4247">
> <label id="4248">
> <property name="fontSize">10pt</property>
> <property name="fontWeight">bold</property>
> <property name="textAlign">right</property>
> <text-property name="text">% of Total</text-property>
> </label>
> </cell>
> </row>
> </header>
> <group id="4299">
> <property name="groupName">Manu-model group</property>
> <property name="interval">none</property>
> <property name="sortDirection">asc</property>
> <expression name="keyExpr" type="javascript">row["make"]</expression>
> <structure name="toc">
> <expression name="expressionValue"
> type="javascript">row["make"]</expression>
> </structure>
> <property name="repeatHeader">true</property>
> <property name="hideDetail">false</property>
> <property name="pageBreakAfter">auto</property>
> <property name="pageBreakBefore">auto</property>
> <property name="pageBreakInside">auto</property>
> <header>
> <row id="4300">
> <property name="borderBottomColor">#000000</property>
> <property name="borderBottomStyle">solid</property>
> <property name="borderBottomWidth">thin</property>
> <property name="borderLeftColor">#000000</property>
> <property name="borderLeftStyle">solid</property>
> <property name="borderLeftWidth">thin</property>
> <property name="borderRightColor">#000000</property>
> <property name="borderRightStyle">solid</property>
> <property name="borderRightWidth">thin</property>
> <property name="borderTopColor">#000000</property>
> <property name="borderTopStyle">solid</property>
> <property name="borderTopWidth">thin</property>
> <property name="pageBreakInside">auto</property>
> <cell id="4301">
> <data id="4306">
> <property name="fontSize">8pt</property>
> <property name="fontWeight">bold</property>
> <property name="textAlign">left</property>
> <property name="resultSetColumn">make</property>
> </data>
> </cell>
> <cell id="4308"/>
> <cell id="4302"/>
> </row>
> </header>
> <footer>
> <row id="4303">
> <property name="borderBottomColor">#000000</property>
> <property name="borderBottomStyle">solid</property>
> <property name="borderBottomWidth">thin</property>
> <property name="borderLeftColor">#000000</property>
> <property name="borderLeftStyle">solid</property>
> <property name="borderLeftWidth">thin</property>
> <property name="borderRightColor">#000000</property>
> <property name="borderRightStyle">solid</property>
> <property name="borderRightWidth">thin</property>
> <property name="borderTopColor">#000000</property>
> <property name="borderTopStyle">solid</property>
> <property name="borderTopWidth">thin</property>
> <property name="pageBreakInside">auto</property>
> <cell id="4304">
> <label id="4316">
> <property name="fontSize">8pt</property>
> <property name="fontWeight">bold</property>
> <property name="color">#067AB4</property>
> <property name="textAlign">left</property>
> <text-property name="text">Total</text-property>
> </label>
> </cell>
> <cell id="4310">
> <data id="4318">
> <property name="fontSize">8pt</property>
> <property name="fontWeight">bold</property>
> <property name="color">#067AB4</property>
> <structure name="numberFormat">
> <property name="category">Custom</property>
> <property name="pattern">###,##0</property>
> </structure>
> <property name="textAlign">right</property>
> <property name="resultSetColumn">group_sales</property>
> </data>
> </cell>
> <cell id="4305">
> <data id="4322">
> <property name="fontSize">8pt</property>
> <property name="fontWeight">bold</property>
> <property name="color">#067AB4</property>
> <structure name="numberFormat">
> <property name="category">Percent</property>
Previous Topic:Custom sorting on a chart X axis
Next Topic:java.sql.SQLException: Unknown character set index for field '1075' received from server.
Goto Forum:
  


Current Time: Sat Aug 30 04:38:16 EDT 2014

Powered by FUDForum. Page generated in 0.09128 seconds