teddybear
19th October 2005, 12:12
Dear All,
I need to selectively print certain portion of the text in a report. For example, there are 5 rows of text in the sales order header. I only want to print those line(s) start with #.
Appreciate your input for this problem.
Youp2001
19th October 2005, 13:46
Hi,
You could do the following:
In the before.print section of your text field in the report script test if the first character of the text line that will be printed (report variable lattr.prline) contains the #. If true set lattr.print to true; otherwise set lattr.print to false.
If you don't want to print the #-sign on the report strip the #-sign from the line to print: lattr.prline = lattr.prline(2).
Success
Youp
bdittmar
19th October 2005, 14:13
Dear All,
I need to selectively print certain portion of the text in a report. For example, there are 5 rows of text in the sales order header. I only want to print those line(s) start with #.
Appreciate your input for this problem.
Use BaaN function with ">" , "<" for internal and external text.
All lines, marked with "<" will not be printed on external documents like oder acknowledgement, invoice aso.
function validate.textline()
{
if ( lattr.prline(1;1) = ">" ) then
lattr.prline = lattr.prline(2)
else
if ( lattr.prline(1;1) = "<" ) then
lattr.print = false
endif
endif
}
Regards