Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 116636

Summary: [XML Data Source Improvements] XML data source does not support parameters yet.
Product: [Tools] Data Tools Reporter: Lin Zhu <lzhu>
Component: Enablement:ODAAssignee: Wenjie Tu <wtu>
Status: VERIFIED FIXED QA Contact: Tianli Zhang <tzhang>
Severity: enhancement    
Priority: P3 CC: borism, hwang, wenfeng.fwd
Version: GanymedeKeywords: plan
Target Milestone: 1.7M7   
Hardware: PC   
OS: Windows XP   
Whiteboard: Autoed
Attachments:
Description Flags
xml for automation data source none

Description Lin Zhu CLA 2005-11-16 05:38:04 EST
XML data source should support parameters.
Comment 1 jluo CLA 2005-11-22 01:57:25 EST
*** Bug 117009 has been marked as a duplicate of this bug. ***
Comment 2 Gary Xue CLA 2006-03-17 18:55:02 EST
Request to postpone this feature to future releases. The introduction of Property Binding feature for Data Source has resolved most of the uses cases which require the use of XML data set parameters. We will leave this issue open as a placeholder for futher user-identified use cases that Property Binding may not help.
Comment 3 Boris CLA 2008-03-23 19:32:38 EDT
A BIRT exception occurred.
  Plug-in Provider:Eclipse.org
  Plug-in Name:BIRT Data Engine
  Plug-in ID:org.eclipse.birt.data
  Version:2.2.2.r22x_v20071212
  Error Code:odaconsumer.CannotPrepareStatement
  Error Message:Failed to prepare the following query for the data set type org.eclipse.datatools.enablement.oda.xml.dataSet. 
[table0#-TNAME-#table0#:#[/TecKomBS/tecajnica[@datum= {?datum?} ]]#:#{datum;DATE;/@datum},{veljavnost;DATE;/@veljavnost}]
The filter definition is invalid. 


When should XML data source  support parameters.
Comment 4 Lin Zhu CLA 2009-03-26 02:00:58 EDT
We will implement the XML parameter support according to the original XML Driver spec.
Comment 5 Wenjie Tu CLA 2009-04-14 05:32:25 EDT
Now user can adjust mapping path dynamically by trying parameter feature.

Say, a mapping path is: /a/b/{?param1?}/c[@attr="{?param2}"], then "param1" & "param2" are two named paramters of the data set and the final mapping path is determined by the values of "param1" & "param2" parameters.
Comment 6 Wenjie Tu CLA 2009-04-14 05:45:31 EDT
Fixed.
Comment 7 Tianli Zhang CLA 2009-05-12 02:05:00 EDT
Feature testing has been completed, mark as verified.
Comment 8 Xiaoying Gu CLA 2009-09-15 02:21:25 EDT
Created attachment 147158 [details]
xml for automation data source