Report Parameter
Hello,
in my template I have a REPORT PARAMETER with the name XYZ.
I need to automatically add it to my layout programmatically, it is possible?
I tried as follows, but without success :
DataItemHandle dataItemHandle = design.getElementFactory().newDataItem("XYZ");
dataItemHandle.setDisplayName("XYZ");
dataItemHandle.setResultSetColumn("params[\"XYZ\"]");
cellHandle.getContent().add(dataItemHandle);
The DataItem appears in the layout but with all blank, without expression defined
Thanks
in my template I have a REPORT PARAMETER with the name XYZ.
I need to automatically add it to my layout programmatically, it is possible?
I tried as follows, but without success :
DataItemHandle dataItemHandle = design.getElementFactory().newDataItem("XYZ");
dataItemHandle.setDisplayName("XYZ");
dataItemHandle.setResultSetColumn("params[\"XYZ\"]");
cellHandle.getContent().add(dataItemHandle);
The DataItem appears in the layout but with all blank, without expression defined
Thanks
Warning
No formatter is installed for the format ipb
0
Comments
-
Found the solution!
This is the code used :
cellHandle.clearContents(0);
ComputedColumn newComputedColumn = StructureFactory.createComputedColumn( );
newComputedColumn.setName("XYZ");
newComputedColumn.setDataType("String");
newComputedColumn.setExpression("params[\"XYZ"\"]");
DataItemHandle newDataItem = design.getElementFactory().newDataItem(null);
newDataItem.setResultSetColumn("XYZ");
newDataItem.addColumnBinding(newComputedColumn, true);
cellHandle.getContent().add(newDataItem);
Thanks anyway!Warning No formatter is installed for the format ipb0
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 104 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management