[ExtensionOf(classStr(ProdJournalCheckPost))] final class ProdJournalCheckPost_Extension{ public static void main(Args _args) { next main(_args); ProdJournalTable prodJournalTable; FormDataSource prodJournalTable_ds; Object caller; MultiSelectionHelper helper; JournalForm journalForm; ProdJournalCheckPost journalCheckPost; #ISOCountryRegionCodes try { if (_args.dataset() == tableNum(prodJournalTable)) { prodJournalTable_ds = _args.callerFormControl().formRun().dataSource(); caller = _args.caller(); helper = MultiSelectionHelper::createFromCaller(caller); helper.createQueryRanges(prodJournalTable_ds.queryBuildDataSource(), fieldStr(ProdJournalTable, RecId)); prodJournalTable = helper.getFirst(); while (prodJournalTable) { _args.parmEnum(JournalCheckPostType::Check); _args.record(prodJournalTable); journalForm = JournalForm::fromArgs(_args); journalCheckPost = ProdJournalCheckPost::newFromForm(_args,journalForm); journalForm.runbaseMainStart(); //// <GEERU> if (SysCountryRegionCode::isLegalEntityInCountryRegion([#isoRU]) && journalCheckPost.mustCheckExistJournalRelease_RU()) { journalCheckPost.checkExistJournalRelease_RU(); } // </GEERU> prodJournalTable = helper.getNext(); journalCheckPost.preRun(); journalCheckPost.runOperation(); journalForm.runbaseMainEnd(journalCheckPost,false); } } } catch (Exception::Error) { journalForm.runbaseMainEnd(journalCheckPost,true); } }}
journalCheckPost.runOperation();
JournalCheckPost.run()
journalForm = JournalForm::fromArgs(_args);
[ExtensionOf(classStr(ProdJournalCheckPost))]
final class ProdJournalCheckPost_Extension
{
public static void main(Args _args)
{
next main(_args);
JournalForm journalForm;
ProdJournalCheckPost journalCheckPost;
#ISOCountryRegionCodes
try
{
if (_args.dataset() != tableNum(prodJournalTable))
{
return;
}
FormDataSource prodJournalTable_ds = _args.callerFormControl().formRun().dataSource();
Object caller = _args.caller();
MultiSelectionHelper helper = MultiSelectionHelper::createFromCaller(caller);
helper.createQueryRanges(prodJournalTable_ds.queryBuildDataSource(), fieldStr(ProdJournalTable, RecId));
ProdJournalTable prodJournalTable = helper.getFirst();
while (prodJournalTable)
{
_args.parmEnum(JournalCheckPostType::Check);
_args.record(prodJournalTable);
journalForm = JournalForm::fromArgs(_args);
journalCheckPost = ProdJournalCheckPost::newFromForm(_args, journalForm);
journalForm.runbaseMainStart();
//// <GEERU>
if (SysCountryRegionCode::isLegalEntityInCountryRegion([#isoRU]) && journalCheckPost.mustCheckExistJournalRelease_RU())
{
journalCheckPost.checkExistJournalRelease_RU();
}
// </GEERU>
prodJournalTable = helper.getNext();
journalCheckPost.preRun();
journalCheckPost.runOperation();
journalForm.runbaseMainEnd(journalCheckPost, false);
}
}
catch (Exception::Error)
{
if (journalForm)
{
journalForm.runbaseMainEnd(journalCheckPost, true);
}
}
}
}
André Arnaud de Cal...
291,996
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156