Calcfields and Inventory avail report
Kisu
Member Posts: 381
Hi
I'm trying to add inventory field for Inventory availability report (705)
I get it working on classic side but on RDLC it wont calculate the field.
I have calcfields on the section side though, do I have to do add something on the rdlc side too so it calculates there?
I'm trying to add inventory field for Inventory availability report (705)
I get it working on classic side but on RDLC it wont calculate the field.
I have calcfields on the section side though, do I have to do add something on the rdlc side too so it calculates there?
K.S.
0
Answers
-
In which trigger you have your "calcfields"?~Rik~
It works as expected... More or Less...0 -
Its in the section where I have the textbox with sourceexpression inventory
Item, Body (6) - OnPreSection()K.S.0 -
In this way can't work because RTC doensn't execute code written under Sections.Kisu wrote:Its in the section where I have the textbox with sourceexpression inventory
Item, Body (6) - OnPreSection()
You've to move your code under the correct DataItem trigger.~Rik~
It works as expected... More or Less...0 -
Hmm I moved the calcfield under the dataitem but still it does not count the values on rdlc
Item - OnPreDataItem()
IF ISSERVICETIER THEN
GetCurrentKey := Item.CURRENTKEY;
Item.CALCFIELDS(Item.Inventory); // <
K.S.0 -
OnPreDataItem the record is not available yet. Of course it doesn't work. You should put it in OnAfterGetRecord.-Mihail- [MCTS]0
-
Kisu wrote:Hmm I moved the calcfield under the dataitem but still it does not count the values on rdlc
Item - OnPreDataItem()
IF ISSERVICETIER THEN
GetCurrentKey := Item.CURRENTKEY;
Item.CALCFIELDS(Item.Inventory); // <
Have you already tried the same code in Item - OnAfterGetRecord()?~Rik~
It works as expected... More or Less...0 -
Troubles In Paradise wrote:Kisu wrote:Hmm I moved the calcfield under the dataitem but still it does not count the values on rdlc
Item - OnPreDataItem()
IF ISSERVICETIER THEN
GetCurrentKey := Item.CURRENTKEY;
Item.CALCFIELDS(Item.Inventory); // <
Have you already tried the same code in Item - OnAfterGetRecord()?
Aa, that sorted it. now it works
Cheers guysK.S.0 -
I have a 2009 R2 W1 database (without any other country specific objects). I have just added the Inventory field in the Bosy section of Item dataitem, and changed the RDLC layout. The report (705) is printing the proper Inventory balance figures both in classic and RTC reports. Can you do this on a new database and check?
Chn0
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