How to use array
roshini
Member Posts: 122
Hello Experts...
How to use array in Navision. As I want to store comments for a docuement in a array and want to display in a report. Can any expert can explin how to use ??
How to use array in Navision. As I want to store comments for a docuement in a array and want to display in a report. Can any expert can explin how to use ??
0
Answers
-
Info on Arrays can be found in the Application Designers Guide on your product cd or download it here:
http://www.microsoft.com/downloads/deta ... laylang=en
A Post Example can be found here:
viewtopic.php?f=23&t=27443
Sales Order Comment Array Example We Use In Our Picking Ticket ReportSavatage wrote:you add the sales comment line as a dataitem link to the sales headerOnPreDataItem() FOR i := 1 TO 10 DO CommentText[i] := ''; i:= 0;
OnAfterGetRecord() i := i + 1; CommentText[i] := '******************************************************************************************************************'; IF (STRLEN(Comment) < STRLEN(CommentText[i])) THEN CommentText[i] := Comment + COPYSTR(CommentText[i],1,(STRLEN(CommentText[i]) - STRLEN(Comment))) ELSE CommentText[i] := Comment;
View Sections , create pageloop headerOnPreSection() IF CommentText[1] = '' THEN CurrReport.SHOWOUTPUT := FALSE;
on the next sectionOnPreSection() IF CommentText[2] = '' THEN CurrReport.SHOWOUTPUT := FALSE; etc etc.
0 -
Hi Savatage,
Thanks you very much.
As I got clear idea about comment lines handling in reports.
Thanks a lot for your details explaination.!!
My problem solved.0
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
- 322 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