rajesh_bamane
3rd July 2008, 14:24
Hi,

I am printing two addresses in one report.
So I have created to header sections. in header 1 I am printing the supplier address and header 2 I am printing where house address.

But while printing report the header 1 address is printing correctly but while printing second header address the first line of warehouse address is getting override by the first line of supplier address.

e.g.:
Header 1 Address:-
ABC Company,
102 road,
pune

Header 2Address
ABC Company ,
Xyz road,
Mumbai


Can one know the solution for this problem?

Regards
Rajesh

NirajKakodkar
3rd July 2008, 14:31
Hello Mr. Bamane ,

I doubt you have used same field in both the places .
I might be wrong .

May i know more in this regards .

Regards,
Niraj Kakodkar

rajesh_bamane
3rd July 2008, 15:16
Yes i am using same field in both places.

But i am selecting two different records in two different headers.

header.3:
before.layout:
get.bp.address()
header.4:
before.layout:
get.warehouse.address()

so how can i print now two different address in two section using same input field?
Is there any method available so I can flush the old value from input field?

Regards
Rajesh

mark_h
3rd July 2008, 19:03
Are these input fields to the report? I do not know about LN, but I declare script variables in the report script. Then I add those fields to the print layout.

cyprus
5th July 2008, 09:52
Yes i am using same field in both places.

But i am selecting two different records in two different headers.

header.3:
before.layout:
get.bp.address()
header.4:
before.layout:
get.warehouse.address()

so how can i print now two different address in two section using same input field?
Is there any method available so I can flush the old value from input field?


Not sure but if you want to flush the field, you can do that in the after.layout of header.3, like say if the field is ABC your code would be like :

header.3:
before.layout:
get.bp.address()
after.layout:
ABC = ""
header.4:
before.layout:
get.warehouse.address()