Bogdan
12th February 2002, 16:07
Hi,

I have a report with several After.Field layouts and After.Report layout. So:

Layout Print Condition
--------------------------------------
Detail 0
After.Field 1 1
After.Field 2 1
After.Field 3 1
After.Report 1

Is it true that BaaN calculate After.Report layout based on After.Field layouts? And After.Field3 based on After.field2 and so on?
Is there any chance to change that?
Of course I have some Totals on After.XXX layouts.

Best regards,
Bogdan

mark_h
12th February 2002, 17:28
I quickly compile one of my reports that had several after field totals. Each one of the totals had a variable created called like total..1,total..2 etc. Then each one of these totals was calculated based on the field I selected to be totaled - not based off of the previous after.field. Compile the report in debug mode and search through it for "total..". I do know that you can play with these total.. fields, but I do not recommend it.

Hope this helps!!

Mark

Bogdan
13th February 2002, 00:56
Hi mark_h,

Yep, you're right. It was a silly question on me, but I tried several versions of the same report and now I'm very confused. It was an error in my script who "gave" me this ideea.
Thanks for your help.

Yes, I'm using these total..x variables; I don't think it's dangerous but for certain it's a lot of work to do. After a while if you cange something in the report layout you must change also the fields containing refferences to these total..xx, etc...

Thank you again for your help.

Best regards,
Bogdan

popeye
13th February 2002, 01:03
Bogdan,
I haven't tried playing with the "total.x" variables.

But if I am not wrong, if u add a new field on the report then
the total.x variables change.

total.1 could start pointing to a different "total" field.
You may wanna check it out b4 using them.

Hope this helps.

Bogdan
15th February 2002, 07:52
Hi Popeye,

Yes you are right. It's true. But sometime its can be realy useful.


Best regards,
Bogdan