hi All,
I am a freshman for Navision, I want to add new row and input value with codeunit on General Journal form automatically, meanwhile I want to use the existing trigger to get some value like account name when I input account No. with codeunit, how can I do it? could you please give some advice, I will appreciate so much if you can give me some example codes.
thanks!
0
Comments
You will get some idea..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I know the way that you said, INIT and INSERT, but this way only can use trigger of table, can not use trigger of Form.
How can I use the trigger which is on Form, not on table? like this:
//this code is in General Journal Form
Account No. - OnValidate()
GenJnlManagement.GetAccounts(Rec,AccName,BalAccName);
ShowShortcutDimCode(ShortcutDimCode);
Thanks!
What do you mean by this? which cant be used in form?
why do you want to do in forms?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
The General Journal Form was opened Auto. and then the cursor will be put in Posting date column, and then input data in this column, switch to next column, input value, but there are some column will get value Auto. when some special column was inputted value (like when Account No. was inputted value, the Description will get value Auto. etc...). all those things are done by program. that is what I want.
Anyway, thank you!
RIS Plus, LLC