Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Problem Dataset after upgrade 2.3 to 2.5
smgomes
Hi,
i built my reports programatically. I had this code:
scriptDataSet = factory.newScriptDataSet("dataset1");
scriptDataSet.setDataSource("datasource");
scriptDataSet.setOpen("setOpenMethod");
scriptDataSet.setFetch("setFetchMethod");
resultSet = mainscriptDataSet
.getPropertyHandle(ScriptDataSetHandle.RESULT_SET_PROP);
columnHint = mainscriptDataSet
.getPropertyHandle(ScriptDataSetHandle.COLUMN_HINTS_PROP);
ColumnHint ch = StructureFactory.createColumnHint();
ch.setProperty("columnName", "name");
ch.setProperty("displayName","displayname");
columnHint.addItem(ch);
ResultSetColumn rs = StructureFactory.createResultSetColumn();
rs.setColumnName("columnName");
rs.setPosition(1);
rs.setDataType("string");
resultSet.addItem(rs);
...the XML report appears:
<list-property name="resultSetHints">
<structure>
<property name="position">1</property>
<property name="name">name</property>
<property name="dataType">string</property>
</structure>
</list-properties>
<list-property name="columnHints">
<structure>
<property name="columnName">name</property>
<property name="displayName">displayname</property>
</structure>
</list-property>
Everything is fine with version 2.3.2. When i open the report and expand de Dataset node at Outline view, my fields are all listed.
With the same code in version 2.5, When i open the report and expand de Dataset node at Outline view it's empty!! Why?
My Java code doesn't generate this :
<list-property name="cachedMetaData">
<structure>
...
</structure>
</list-property>
I tried somenthing like:
CachedMetaData cm = StructureFactory.createCachedMetaData();
...
but it doesn't work.
Can u help me? It's really important.
Thanks a lot.
Find more posts tagged with
Comments
There are no comments yet