Method FindRecord() used.
A button added to the form. Following code added to the clicked method of the button:
searchFields = new dialog("Leitargluggi");
dlgFldVendAccount = searchFields.addField(typeId(VendAccount));
searchFields.run();
vend = dlgFldVendAccount.value();
if(vend > '')
{
select firstonly mjt where mjt.JournalId == MPSJournalTrans.JournalId
&& mjt.vendAccount == vend;
if (mjt.RecId)
{
MPSJournalTrans_ds.findRecord(mjt);
}
}