Comment not Printing Properly

Stivan_dsouza21
Member Posts: 218
While making PO,PI,SO,SI...etc
when User update the Header Comment whoose length is 100.I have restricted upto 2 Lines.
but Now wat happens his when User puts comment in
1st Line 60 Characters
2nd Line 30 Characters
I want these both Lines to be printed in posted Vocuher Report on Separate Lines
As 1st Line 60 Characters
and 2nd Line 30 Characters
User wants commented to be printed after amount in words in posted voucher:
In Posted Voucher what i have done is:
Below is the code i have written
Name DataType Subtype Length
totalcomment Text 200
commentline1 Text 100
commentline2 Text 100
Purch. Comment Line, Body (2) - OnPreSection()
CurrReport.SHOWOUTPUT(Comment <> '');
totalcomment:=totalcomment+"Purch. Comment Line".Comment;
G/L Entry, GroupFooter (5) - OnPreSection()
commentline1 := COPYSTR(totalcomment, 1, 100);
commentline2 := COPYSTR(totalcomment, 101, 100);
But then too the Comment is getting printed on Single line (1st line + 2nd line)
when User update the Header Comment whoose length is 100.I have restricted upto 2 Lines.
but Now wat happens his when User puts comment in
1st Line 60 Characters
2nd Line 30 Characters
I want these both Lines to be printed in posted Vocuher Report on Separate Lines
As 1st Line 60 Characters
and 2nd Line 30 Characters
User wants commented to be printed after amount in words in posted voucher:
In Posted Voucher what i have done is:
Below is the code i have written
Name DataType Subtype Length
totalcomment Text 200
commentline1 Text 100
commentline2 Text 100
Purch. Comment Line, Body (2) - OnPreSection()
CurrReport.SHOWOUTPUT(Comment <> '');
totalcomment:=totalcomment+"Purch. Comment Line".Comment;
G/L Entry, GroupFooter (5) - OnPreSection()
commentline1 := COPYSTR(totalcomment, 1, 100);
commentline2 := COPYSTR(totalcomment, 101, 100);
But then too the Comment is getting printed on Single line (1st line + 2nd line)
Thanks & Regards,
Stivan D'souza
Stivan D'souza
0
Comments
-
take a text variable with 2 dimensions(array) and copy the values to it..
show them whereever you need..0 -
DONEThanks & Regards,
Stivan D'souza0 -
Further you should not write code on Trigger OnPreSection. Trasfer the code to Trigger OnAfterGetRecord.CA Sandeep Singla
http://ssdynamics.co.in0
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