Adding Dimension in Statement (Report 116)

julkifli33
Member Posts: 1,092
hi all... i want to add Shortcut dimension in Report 116 (Statement)
how do i link that?
which table should i use?
thanks
how do i link that?
which table should i use?
thanks
0
Answers
-
I think you need to look in the table "Ledger Entry Dimensions"0
-
Hi
You can't filter shortcut dimension directly in customer ledger. the shortcut dimensions are storing in ledger entry dimensions table, I will give you one solution I think its will solve your problem
add one data item table "Ledger Entry Dimension" in your report after customer data item set the request field Dimension Code,Dimension Value Code
write the code
Ledger Entry Dimension - OnAfterGetRecord()
CurrReport.SKIP;
otherwise its will run for all records in Ledger Entry Dimension
go to the Cust. Ledger Entry-CustLedgEntry2
CustLedgEntry2 - OnAfterGetRecord()
create a new variable RsLedgerDimention for Ledger Entry Dimension then
write the code
//001
RsLedgerDimention.RESET;
RsLedgerDimention.SETRANGE(RsLedgerDimention."Table ID",21);
RsLedgerDimention.SETFILTER(RsLedgerDimention."Dimension Code","Ledger Entry Dimension".GETFILTER("Dimension Code"));
RsLedgerDimention.SETFILTER(RsLedgerDimention."Dimension Value Code",
"Ledger Entry Dimension".GETFILTER("Dimension Value Code"));
IF NOT RsLedgerDimention.FINDFIRST THEN
CurrReport.SKIP;
//001
the code using for skipping the other dimensions values entries in customer ledger table
Save and run give the filter
I think it should work
regards
Akhilesh0 -
akhileshek wrote:Ledger Entry Dimension - OnAfterGetRecord()
CurrReport.SKIP;
otherwise its will run for all records in Ledger Entry Dimension
Ledger Entry Dimension -OnPreDataItem()
setfilter("Entry No.",0);0 -
All ....
thanks a lot for the info0
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