Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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: vm.vm.com

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")
.getStringExpression();

System.out.println(name);
System.out.println(xpath);
}

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: Thu Apr 25 20:08:53 GMT 2024

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

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

Back to the top