Dataport (G/L Entries table)
ykcheong
Member Posts: 32
Hello,
I want to export data from G/L Entries table. I also want to be able to sum the "amount" by "G/L Account Code" and "Global Dimension 1" before the data being export to excel file.
Can this be done? Please help.
Thank you very much.
Have a nice day.
I want to export data from G/L Entries table. I also want to be able to sum the "amount" by "G/L Account Code" and "Global Dimension 1" before the data being export to excel file.
Can this be done? Please help.
Thank you very much.
Have a nice day.
0
Comments
-
Create dataport with new variable Amount and GLAcc (as rec T:15).
code (without setting dinamicaly filter to Dim1):G/L Entry - OnBeforeExportRecord() GLAcc.setrange(GLAcc."No.","G/L Entry"."G/L Account No.") ; GLAcc.setfilter(GLAcc."Global Dimension 1 Filter",GLdim1) ; //you can use getfilteR("Global dimension 1) ; amm := 0 ; if GLAcc.findfirst then GLAcc.calcfields("Balance at Date") ; //otherwise calcfield returns 0 Amm := GLAcc."Balance at Date" ;
And you have to add dataport filed Amm0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions