Posts

Showing posts with the label runbase

Runbase with query parameters, runtime lookup selection on dialog

 /// <summary> /// The <c>PayrollPayStatementJournalizeBase</c> handles the dialog logic /// that is common to all pay statement journalizing actions, such as posting /// and generating vendor invoices. /// </summary> class CMCTimeSheetGenerateInquiryDataService extends RunBaseBatch {     QueryRun                        queryRun;          FormBuildComboBoxControl        toDateBuildComboBox;     FormComboBoxControl             toDateComboBox;     TSTimesheetPeriod  timeSheetWk;     container periodFromList,periodToList;     TransDate periodFrom,periodTo;     HcmWorker worker;              private const str toDateListControl = 'ToDateListControl';     #DEFINE.CurrentVersion(1)     #LOCALMACRO.CurrentList ...

Sample runbase with parameters

 class BPAADTerminationTriggerService   extends RunBaseBatch {     TransDate terminationDate;     DialogField fieldTerminationDate;         public server static BPAADTerminationTriggerService construct()         {             return new BPAADTerminationTriggerService();         }     public void initParmDefault()     {         super();         terminationDate = systemDateGet();     }     public Object dialog()     {         DialogRunbase dlg;         ;           dlg                 = super();         fieldTerminationDate        = dlg.addFieldValue(extendedTypeStr(TransDate), terminationDate, "Terminate selected workers upto", "i...

Sample runbase class without parameters

 class BPAADimportTriggerService   extends RunBaseBatch {         public server static BPAADimportTriggerService construct()         {             return new BPAADimportTriggerService();         }         /// <summary>         /// </summary>         /// <returns>Return the class desc</returns>         public client server static ClassDescription description()         {             return "Azure AD user import process";         }         /// <summary>         /// </summary>         /// <returns>Whether the class can be used in a batch task</returns>         protected boolean canGoBatchJournal()     ...