we have a g/l entry table ,in that we have document no field...
coming to forms we have general journal in this we have document no
when we are entering document no in the forms of general journal....if it was already exists in document no of g/l entry table ...
it must need to throw an error ,document no already exists....
this my actual question,can any one can give suggestion
thank you
in g/l entry we have document no
document no
100
200
300
in general journal form we have document no field
if we are again entering the same values
let us consider with the number 300..then it was inserting into the g/l entry document no field
we have a batch name:cash and default
i kept batch name:cash and no.series=gen journal
i have checked like this i am getting the same error
can you briefly explain what the process is going on
why we have to keep batch name:cash/default and as well as no series
thank you
Comments
we have a g/l entry table ,in that we have document no field...
coming to forms we have general journal in this we have document no
when we are entering document no in the forms of general journal....if it was already exists in document no of g/l entry table ...
it must need to throw an error ,document no already exists....
this my actual question,can any one can give suggestion
thank you
i have written this code
document no onvalidate();
glentry.INIT;
IF "Document No." <>glentry."Document No." THEN
glentry.INSERT
ELSE
ERROR('document no already exists');
i am not getting the error
You just have to check whether Document No. is already existing or not.
You have put filter on G/L Entry Document No. field with Current Document No. and if it found then show error message..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
mohana
even though i am not getting ...what you have suggested i have done
thank you....
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
document no
100
200
300
in general journal form we have document no field
if we are again entering the same values
let us consider with the number 300..then it was inserting into the g/l entry document no field
onvalidate()
if document.no=g/lentry.document no then
begin
message('document no already exists');
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Where did you get glentry table?
You need to either use GET/SETRANGE/FINDFIRST to get the G/L Entry..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
i kept batch name:cash and no.series=gen journal
i have checked like this i am getting the same error
can you briefly explain what the process is going on
why we have to keep batch name:cash/default and as well as no series
thank you