jpadilla
3rd September 2002, 17:20
I have a report of sales by agent, I need that each agent starts in a new page. I'm using the function page(), but when a new page is started I always get the before.field layout of both, the last and the new agent. Something like this

Agent: 001 XXXXXXXXXX
Agent: 002 YYYYYYYYYYY

Item Quantity Price Cost
------ --------- ---- --
------ -------- ---- ---

for the agent 003 I get

Agent: 002 XXXXXXXXXX
Agent: 003 YYYYYYYYYYY

Item Quantity Price Cost
------ --------- ---- --
------ -------- ---- ---

How could I solve it??

I have the next report script:

after.tdsls970.agnt.10:
after.layout:
page()

any clue??

Regards

JP

Hitesh Shah
3rd September 2002, 17:39
You should write following in the script and that should work.

before.tdsls970.agnt.10:
before.layout:
page()

klesch
3rd September 2002, 17:45
No, no, no...

You should create before.tdsls970.agnt.10 layout and put a checkmark on page field for it.

Hitesh Shah
5th September 2002, 09:44
That also is correct. U have to have before field layout defined in the report layout. Considering the layout shown in thread , it can be presumed that the layout is already defined. That was understood for me .

If it created any consusion , I apologize for that.