I have deployed my SSRS report HrvRepairPacket1 which requires the parameter REPAIRID to run.
These are the steps I have completed:
Controller Class:
public class HrvRSPController extends SrsReportRunController
{
}
public static client void main(Args _args)
{
//define the new object
HrvRSPController controller = new HrvRSPController();
//pass the caller args to the controller
controller.parmArgs(_args);
//set the report name and report design to run
controller.parmReportName(ssrsReportStr(HrvRepairPacket1, PrecisionDesign1));
//suppress the report dialog
controller.parmShowDialog(false);
//execute the report
controller.startOperation();
}
public void prePromptModifyContract()
{
add a range in the report query
SrsReportHelper::addParameterValueRangeToQuery(this.getFirstQuery(),tableNum(hrvRepairTable),fieldNum(hrvRepairTable, RepairId),SysQuery::value(this.parmArgs().record().RecId));
}
I created an Output Menu Item which calls the class and set the linked permissions: Type - SSRSReport Object - HrvRepairPacket1 Child - PrecisionDesign1
I am running the output item from a button in the form, but the REPAIRID is not passing into the report.
What step(s) am I missing. PLEASE PLEASE PLEASE answer like I am two years old. This is my first attempt at x++ and so far of the dozens of "examples" of how to do this, there always seems to be something that it is just assumed that I should know and the result is that the process does not work.