Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Get xpath from a selected column?
Get xpath from a selected column? [message #557337] Mon, 06 September 2010 21:27
Eclipse UserFriend
Originally posted by:

I use the following to read the names assinged to columns in a dataset based
on a xml datasource:

OdaDataSetHandle de = (OdaDataSetHandle) ds;
CachedMetaDataHandle cachedMeta = de.getCachedMetaDataHandle();
List<?> cols = (List<?>) cachedMeta.getResultSet().getValue();
for (int i = 0; i < cols.size(); i++) {
ResultSetColumn rsc = (ResultSetColumn) cols.get(i);
String name = rsc.getColumnName();

// Does not work
String xpath = rsc.get.getExpressionProperty("queryText")


But how do I get the xpath for a selected column (ResultSetColumn)? I know I
can get the total expression using getProperty("queryText") on the dataset
but it could be nice If it was possible to only get the part corresponding
to a selected column, is this possible?
Previous Topic:Binding parameters in dataset
Next Topic:Column width Overflow
Goto Forum:

Current Time: Wed Apr 25 07:07:41 GMT 2018

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

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