suhas-mahajan
14th November 2005, 11:31
Hi All,

Fail to get it after spending hours in it. It looks simple but crucial for me.

What I am trying, to show receipts data Supplierwise, Itemwise.

ex.
Supplier Name : A001
Item : COMPUTER
---------------------------------------
SrNo. RecNo. Value
---------------------------------------
1 453453 45466.45

I am re-initialising SrNo under "before.field.item" section. Whenever the receipts beyonds one page, automatically BaaN standard forcefully prints Supplier Name,Item and executes before.field event, because of that, my SrNo. also initialises. I would like to show it continuosly untill really new Item occurres.

How to avoid it?

Thanks in advance.

Regards,

-Suhas
Above data is virtual made for better understanding to you.

grzegorz
14th November 2005, 13:34
IMHO you can use lattr.break variable to determine, when a layout is printed in result of page change, or sort field change

Look at my example: ( there is a layout before field tiitm001.item which is a sort field)


before.tiitm001.item.1:
after.layout:
if lattr.break = true then
lp = 0
endif

detail.1:
before.layout:
lp = lp + 1

en@frrom
14th November 2005, 13:59
If you however DO WANT the item data to appear on top of every new page, you can simply maintain a hold.item variable in the report script, in which you check if the item has changed. Somthing like this:

domain tcitem hold.item

detail.1:
before.layout:
if hold.item <> <table_field_item> then
hold.item = <table_field_item>
srno = 0 | or 1, or whatever it should be
else
srno = srno + 1 | or + 10 etc.
endif


Hope this helps...

suhas-mahajan
15th November 2005, 06:24
Thanks for the help.

Actually I was expecting to hide Item, Supplier on top of every page, That has been done by holding and adding condition at run time i.e. in Output Expr. in the layout.

Thanks again.

Bye for now.

-Suhas

bigjack
16th November 2005, 10:58
Hi,

Perhaps setting the predefined variable "lattr.autobefores" to false would have solved the problem in an elegant way.

Chao!!!