This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DictEnum dictEnum = new DictEnum(enumNum(ProjFundingType)); | |
if (dictEnum) | |
{ | |
int enumValueCount = dictEnum.values(); | |
//Iterate on positions, not values!! | |
for (int enumValueIndex = 0; enumValueIndex < enumValueCount; enumValueIndex++) | |
{ | |
if (dictEnum.index2Value(enumValueIndex) != ProjFundingType::Customer) | |
{ | |
doSomething(dictEnum.index2Value(enumValueIndex); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SysDictEnum dictEnum = new SysDictEnum(enumNum(ProjSalesPriceMarkup)); | |
int enumValueCount = dictEnum.values(); | |
for (int enumValueIndex = 0; enumValueIndex < enumValueCount; enumValueIndex++) | |
{ | |
ProjSalesPriceMarkup value = dictEnum.index2Value(enumValueIndex); | |
str actual = dictEnum.index2Label(enumValueIndex); | |
str expected = strMin(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Form extensions should have an Extension suffix, and should include the name | |
/// of the extending model as an infix to maintain uniqueness. The extension class | |
/// must be marked as final as it would make no logical sense to subclass | |
/// or extend an extension. | |
/// </summary> | |
[ExtensionOf(tableStr(HcmWorker))] | |
public final class HcmWorker_MyNewModel_Extension | |
{ | |
public display Name someOtherName() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Class extensions should have an Extension suffix, and should include the name | |
/// of the extending model as an infix to maintain uniqueness. The extension class | |
/// must be marked as final as it would make no logical sense to subclass | |
/// or extend an extension. | |
/// </summary> | |
[ExtensionOf(classStr(CustTransSettlement))] | |
final class CustTransSettlement_MyNewModel_Extension | |
{ | |
protected boolean isTransTypeValidForInsertSettlementLines(CustTrans _custTrans) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void processTransactions(true, false, false, false, true, true, false, false, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[FormEventHandler(formstr(FMVehicle), FormEventyType::Inititialized)] | |
public static void FMVehicle_OnInitialized(xFormRun sender, FormEventArgs e) | |
{ | |
FormDataSource ds = sender.dataSource(formDataSourceStr(FMVehicle, FMVehicle) | |
//etc.. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[FormDataSourceEventHandler(formDataSourceStr(FMVehicle, FMVehicle), | |
FormDataSourceEventType::written)] | |
public static void FMVehicle_OnWritten(FormDataSource sender, FormDataSourceEventArgs e) | |
{ | |
FormRun formRun = sender.formRun() as FormRun; | |
//etc.. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[FormControlEventHandler(formControlStr(FMVehicle, ShowVersions), FormControlEventType::Clicked)] | |
public static void ShowVersions_OnClicked(FormControl sender, FormControlEventArgs e) | |
{ | |
FormRun formRun = sender.formRun() as FormRun; | |
//etc… | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DataEventHandler(tableStr(FMVehicle), DataEventType::ValidatedWrite)] | |
public static void FMVehicle_onValidatedWrite(Common sender, DataEventArgs e) | |
{ | |
ValidatedEventArgs validateArgs = e as ValidatedEventArgs; | |
FMVehicle vehicle = sender as FMVehicle; | |
boolean result = validateArgs.parmValidateResult(); | |
if (vehicle.NumberOfCylinders == 0) | |
{ | |
result = checkFailed('Invalid number of cylinders.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void myMethod() | |
{ | |
EventHandlerResult result = new EventHandlerResult(); | |
this.nydelegate(1, 2, result); | |
var total = result.result(); | |
} | |
delegate void myDelegate(real parm1, real parm2, EventHandlerResult result) | |
{ |
OlderNewer