GenJournalLine2.Reset(); GenJournalLine2.SetRange("Journal Template Name", GenJournalLine."Journal Template Name"); GenJournalLine2.SetRange("Shortcut Dimension 2 Code", ''); if GenJournalLine2.FindFirst() then if GenJournalLine2."Journal Template Name" = 'GENERAL' then exit else error(''); GenJournalLine2.Reset(); GenJournalLine2.SetRange("Journal Template Name", GenJournalLine."Journal Template Name"); GenJournalLine2.SetFilter("Journal Template Name", '<>%1', 'GENERAL'); GenJournalLine2.SetRange("Shortcut Dimension 2 Code", ''); if GenJournalLine2.FindFirst() then error('');[img]https://us.v-cdn.net/5022383/uploads/editor/ja/ab9p7k6ud0um.png[/img]
Answers
GenJournalLine2.SetRange("Journal Template Name", GenJournalLine."Journal Template Name");
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav