Get xpath from a selected column? [message #557337] |
Mon, 06 September 2010 21:27 |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.02882 seconds