Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Custom DataSet wizard page(Custom DataSet wizard page of ODA Driver bridge is used in base driver dataset wizard page)
Custom DataSet wizard page [message #760462] Fri, 02 December 2011 08:13 Go to next message
Zilla  is currently offline Zilla
Messages: 2
Registered: December 2011
Junior Member
Hello.

I have made custom ODA Runtime driver with custom Dataset wizard page. My driver is bridge over BIRT JDBC Data Source.

When I create new data set in report with my driver the new custom dataset wizard page is shown. But when I create dataset with JDBC Data Source driver my custom wizard page is shown too, instead of wizard page defined for JDBC driver dataset.
Why my wizard page is used for JDBC driver dataset wizard?

Here is section in my ODA Designer plug-in project plugin.xml

   <extension
         point="org.eclipse.datatools.connectivity.oda.design.ui.dataSource">
      <dataSourceUI
            id="%oda.data.source.id">
         <newDataSourceWizard
               pageClass="org.eclipse.datatools.connectivity.oda.design.ui.pages.impl.DefaultDataSourceWizardPage"
               includesProgressMonitor="false"
               pageTitle="%wizard.data.source.page.title"
               windowTitle="%wizard.window.title">
         </newDataSourceWizard>
      </dataSourceUI>
      <dataSetUI
            supportsOutParameters="false"
            supportsInParameters="true"
            initialPageId="org.eclipse.birt.report.data.oda.integrator.dataSet.page1"
            id="org.eclipse.birt.report.data.oda.integrator.dataSet">
         <dataSetWizard
               class="org.eclipse.datatools.connectivity.oda.design.ui.wizards.DataSetWizard"
               windowTitle="%wizard.data.set.window.title">
         </dataSetWizard>
         <dataSetPage
               displayName="%wizard.data.set.page.title"
               icon="icons/datasetpage.ico"
               wizardPageClass="org.eclipse.birt.report.data.oda.integrator.ui.impl.CustomDataSetWizardPage"
               path="/"
               id="org.eclipse.birt.report.data.oda.integrator.dataSet.page1">
         </dataSetPage>
      </dataSetUI>
   </extension>


Thanks
Re: Custom DataSet wizard page [message #760540 is a reply to message #760462] Fri, 02 December 2011 13:26 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

What is the value of:
oda.data.source.id

Are you implementing this extension point?
org.eclipse.datatools.connectivity.oda.consumer.driverBridge

Jason


On 12/2/2011 8:13 AM, Zilla wrote:
> Hello.
>
> I have made custom ODA Runtime driver with custom Dataset wizard page.
> My driver is bridge over BIRT JDBC Data Source.
>
> When I create new data set in report with my driver the new custom
> dataset wizard page is shown. But when I create dataset with JDBC Data
> Source driver my custom wizard page is shown too, instead of wizard page
> defined for JDBC driver dataset.
> Why my wizard page is used for JDBC driver dataset wizard?
>
> Here is section in my ODA Designer plug-in project plugin.xml
>
>
> <extension
> point="org.eclipse.datatools.connectivity.oda.design.ui.dataSource">
> <dataSourceUI
> id="%oda.data.source.id">
> <newDataSourceWizard
> pageClass="org.eclipse.datatools.connectivity.oda.design.ui.pages.impl.DefaultDataSourceWizardPage"
>
> includesProgressMonitor="false"
> pageTitle="%wizard.data.source.page.title"
> windowTitle="%wizard.window.title">
> </newDataSourceWizard>
> </dataSourceUI>
> <dataSetUI
> supportsOutParameters="false"
> supportsInParameters="true"
> initialPageId="org.eclipse.birt.report.data.oda.integrator.dataSet.page1"
> id="org.eclipse.birt.report.data.oda.integrator.dataSet">
> <dataSetWizard
> class="org.eclipse.datatools.connectivity.oda.design.ui.wizards.DataSetWizard"
>
> windowTitle="%wizard.data.set.window.title">
> </dataSetWizard>
> <dataSetPage
> displayName="%wizard.data.set.page.title"
> icon="icons/datasetpage.ico"
> wizardPageClass="org.eclipse.birt.report.data.oda.integrator.ui.impl.CustomDataSetWizardPage"
>
> path="/"
> id="org.eclipse.birt.report.data.oda.integrator.dataSet.page1">
> </dataSetPage>
> </dataSetUI>
> </extension>
>
>
> Thanks
Re: Custom DataSet wizard page [message #760591 is a reply to message #760540] Sat, 03 December 2011 04:32 Go to previous messageGo to next message
Zilla  is currently offline Zilla
Messages: 2
Registered: December 2011
Junior Member
Jason Weathersby wrote on Fri, 02 December 2011 13:26
What is the value of:
oda.data.source.id

oda.data.source.id = org.eclipse.birt.report.data.oda.integrator

Jason Weathersby wrote on Fri, 02 December 2011 13:26
Are you implementing this extension point?
org.eclipse.datatools.connectivity.oda.consumer.driverBridge

Jason

Yes, of course. Here is extension section in Runtime driver plugin.xml
<plugin>
   <extension
         point="org.eclipse.datatools.connectivity.oda.consumer.driverBridge">
      <bridge
            bridgeId="org.eclipse.birt.report.data.oda.integrator.bridge"
            driverType="org.eclipse.birt.report.data.oda.jdbc.OdaJdbcDriver">
      </bridge>
   </extension>
...
Re: Custom DataSet wizard page [message #760750 is a reply to message #760591] Mon, 05 December 2011 00:33 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

I believe the driverBridge effects all odas of a type. You may want to
look at this approach instead:
http://www.eclipse.org/birt/phoenix/project/notable3.7.php#jump_5

Jason

On 12/3/2011 4:32 AM, Zilla wrote:
> Jason Weathersby wrote on Fri, 02 December 2011 13:26
>> What is the value of:
>> oda.data.source.id
>
> oda.data.source.id = org.eclipse.birt.report.data.oda.integrator
>
> Jason Weathersby wrote on Fri, 02 December 2011 13:26
>> Are you implementing this extension point?
>> org.eclipse.datatools.connectivity.oda.consumer.driverBridge
>>
>> Jason
>
> Yes, of course. Here is extension section in Runtime driver plugin.xml
>
> <plugin>
> <extension
> point="org.eclipse.datatools.connectivity.oda.consumer.driverBridge">
> <bridge
> bridgeId="org.eclipse.birt.report.data.oda.integrator.bridge"
> driverType="org.eclipse.birt.report.data.oda.jdbc.OdaJdbcDriver">
> </bridge>
> </extension>
> ...
>
Previous Topic:Displaying group header on left side of detail instead of over it
Next Topic:Poor quality of chart when exporting to PDF/Word
Goto Forum:
  


Current Time: Thu Aug 21 18:11:09 EDT 2014

Powered by FUDForum. Page generated in 0.02266 seconds