Dear Experts,
I am facing issue to pass parameter value from controller class to service class (ProcessOperation Method) using sysoperation framwork and not in ssrs report class, The requirement is to process some data using batch job (Reliable Asynchronous) and no client side dialog box required to put parameter value so I have set showdialog property to false in the class, now I am unable to pass some parameter value from my form using controller class to service class operation method. Pls guide me if I am missing something
Controller Class
public class SysOperationControllerClass1 extends SysOperationServiceController
{
}
public void new()
{
this.parmShowDialog(false);
super();
this.parmClassName(classStr(SysOperationServiceClass1));
this.parmMethodName(methodStr(SysOperationServiceClass1, processOperation));
this.parmLoadFromSysLastValue(false);
this.parmDialogCaption("Batch Operation Dialog Title - BKS");
}
public static void main(Args args)
{
SysOperationControllerClass1 controller;
controller = new SysOperationControllerClass1();
controller.parmShowDialog(true);
controller.startOperation();
}
//Contract Class
[DataContractAttribute]
public class SysOperationDataContractClass
{
TransDate dateValue;
}
[DataMemberAttribute,
SysOperationLabelAttribute('Date Property'),
SysOperationHelpTextAttribute('Enter a date in past'),
SysOperationDisplayOrderAttribute('1')]
public TransDate parmDate(TransDate _dateValue = dateValue)
{
dateValue = _dateValue;
return dateValue;
}
//Service ClASS code
public class SysOperationServiceClass1 extends SysOperationServiceBase
{
}
public void processOperation(SysOperationDataContractClass _contract)
{
info ("Running SysOperation Batch Operation");
info ("Date Property: " + date2Str
(_contract.parmDate(),
213,
DateDay::Digits2,
DateSeparator::Dot,
DateMonth::Long,
DateSeparator::Dot,
DateYear::Digits4));
}