Posts

Showing posts from October, 2019

onmodified field and activate method in form level

[ FormControlEventHandler ( formControlStr ( CustParameters , CustParameters_KGSPPSendEmail), FormControlEventType ::Modified)] public static void CustParameters_KGSPPSendEmail_OnModified( FormControl sender, FormControlEventArgs e) { FormCheckBoxControl sendEmail = sender.formRun().design().controlName( formControlStr ( CustParameters , CustParameters_KGSPPSendEmail)); FormStringControl emailTemplate = sender.formRun().design().controlName( formControlStr ( CustParameters , CustParameters_KGSPPDefaultEmailTemplate)); if (sendEmail.checked() == NoYes ::Yes) { emailTemplate.enabled( true ); } else { emailTemplate.enabled( false ); } } [ FormDataSourceEventHandler ( formDataSourceStr ( CustParameters , CustParameters), FormDataSourceEventType ::Activated)] public static void CustParameters_OnActivat...

Lookup in form level

/// <summary> /// Lookup for admin to select data projects of type import in DMF parameters form for users to use during quote import /// </summary> /// <param name="sender"></param> /// <param name="e"></param> [ FormControlEventHandler ( formControlStr ( DMFParameters , KGSPP_DMFDefinitionGroup), FormControlEventType ::Lookup)] public static void KGSPP_DMFDefinitionGroup_OnLookup( FormControl sender, FormControlEventArgs e) { SysTableLookup tableLookup; Query query = new Query (); tableLookup = SysTableLookup ::newParameters( tableNum ( DMFDefinitionGroup ), sender); tableLookup.addLookupfield( fieldNum ( DMFDefinitionGroup , DefinitionGroupName), true ); tableLookup.addLookupfield( fieldNum ( DMFDefinitionGroup , OperationType)); QueryBuildDataSource qbds = query.addDataSource( tableNum ( DMF...