Created MI Object - LedgerJournalTable form. EnumTypeParameter - LedgerJournalType, EnumParameter - CustPayment. Clicking on MI opens a form with the CustPayment types. All is well. Create a record, the record is created with the type "CustPayment". Then created a class DistribJournalTableCustPaym extends LedgerJournalFormTable, it has "queryAddRange" method with following code
super(); qbds = SysFormDataSource::fds2Qbds(journalTable_ds); while select ledgerJournalName where ledgerJournalName.JournalType == LedgerJournalType::CustPayment && ledgerJournalName.SysSubModule_MRC == SysSubModule_MRC::Disribution { qbrJournalName = qbds.addRange(fieldnum(LedgerJournalTable, JournalName)); qbrJournalName.value(SysQuery::value(ledgerJournalName.JournalName)); qbrJournalName.status(RangeStatus::Locked); }
After that I launch the form, I create the record and record is created with type "Daily". I don't know why.
*This post is locked for comments