how to add a new row and input value with codeunit on form

redriver_liu
Member Posts: 4
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!
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 can search codeunit 80/90 to with GenJnlLine.INIT;
You will get some idea..0 -
Thanks mohana_cse06 !
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!0 -
redriver_liu wrote: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.
What do you mean by this? which cant be used in form?
why do you want to do in forms?0 -
Actually, I want to simulate the user input process with propram like this:
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!0 -
redriver_liu wrote:How can I use the trigger which is on Form, not on table?1
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions