Report ..help with Get...on after get record

Kareltje
Member Posts: 6
Hi,
I created a simple report with 1 dataitem (production BOM line).
I thought it was quit simple to add the description of the production BOM header.
Anyway some difficulies, and have an overflow message.
Anyone can give some advice?
thanks!
I created a simple report with 1 dataitem (production BOM line).
I thought it was quit simple to add the description of the production BOM header.
Anyway some difficulies, and have an overflow message.
Anyone can give some advice?
thanks!
0
Answers
-
check datatype and length for variable.0
-
It depends on what you are doing. Easiest is to define record variable for the header, get the header, and siplay directly the description of this record to the report. You do not need to assign anything...0
-
I tried, but seems not working. get messagen that item not excist.
Probably i miss something.
Can someone describe in detalis steps what I need to do!
I really appriciated that.
Thanks!0 -
Take it from other side: show us your code, we will tell you what is wrong. For now for me it seems that you even didn't tried or you are missing some basic knowledge about C/Al... :whistle:0
-
Kareltje wrote:some difficulies, and have an overflow message.0
-
I did next:
DataItem= Production Bom Line
Variables = gDescription / datatype = record / subtype= Production Bom Header
In form : groupheader/ = gDescription.Description
Code in On after get record of dataItem = gDescription.GET ("Description");
Then i have the overflow message text to code .
I create a list for the BOM list per item and i would like to add in the groupheader the description of the item.0 -
-
Kareltje wrote:I did next:
DataItem= Production Bom Line
Variables = gDescription / datatype = record / subtype= Production Bom Header
In form : groupheader/ = gDescription.Description
Code in On after get record of dataItem = gDescription.GET ("Description");
Then i have the overflow message text to code .
I create a list for the BOM list per item and i would like to add in the groupheader the description of the item.
I am guessing you are very new to Navision and C/AL. So one important hint.
Read the Terminology guide and follow it exactly. if you use bad variable names it may seem silly now, but it will make your life very difficult. Don't worry that its different to what you are used to, just follow the rules. So your code would be:
DataItem= Production Bom Line
Variables = ProdBomHeader / datatype = record / subtype= Production Bom Header
Section groupheader
Source Expression = PrdoBomHeader.Description
On after get record of dataItem
ProdBomHeader.("Production BOM No.");
If you feel the need to use g or l or dec or int or any other prefix to variable names, then quit Navision and become a C# developer. If you don;t do things the Navision way, you will never get it.David Singleton0
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