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