As Matt said, it's not a persistent field in the Work Order table. So in your SELECT statement for your Data Set, you'll need to do something to go get it. This could be as simple as something like:
maximoDataSet = MXReportDataSetProvider.create(this.getDataSource().getName(), this.getName());
maximoDataSet.open();
var sqlText = new String();
// Add query to sqlText variable.
sqlText = "SELECT workorder.siteid, workorder.orgid, workorder.wonum, workorder.description AS wodesc, workorder.location, locations.description AS locdesc, "
+ "longdescription.ldtext AS longdesc "
+ "FROM workorder "
+ "LEFT OUTER JOIN longdescription ON workorder.workorderid = longdescription.ldkey AND longdescription.ldownertable = 'WORKORDER' AND longdescription.ldownercol = 'DESCRIPTION' "
+ "LEFT OUTER JOIN locations ON workorder.location = locations.location AND workorder.siteid = locations.siteid ";
That's an example of how to properly use the JOIN to get the Description's Long Description. Then add it to your report design layout by using a Dynamic Text control from the Palette.
You can also look at the out-of-the-box WOPRINT.RPTDESIGN file as a different, similar way to do it. Click on the mainDataSet then the Fetch script, and scroll down, to see what they did there.
------------------------------
Travis Herron
Pensacola Christian College
------------------------------
Original Message:
Sent: 08-27-2024 12:37
From: Bill Poelma
Subject: include long description in report
Hello!
I am looking to see if there is a way to do a report for a work order and include the text/notes included in the long description box.
Thanks!
#EverythingMaximo
------------------------------
Bill Poelma
City of Grand Rapids
------------------------------