assassinator
13th November 2006, 09:15
:confused:
Before the report prints, I want to get the report information. Just as session tiitm0401m000, I want to get the report code('tiitm040101000') and its description('Item General Data'). Then add some marks on the decription to be a new one. And layout the new one as the report description. Like: 'Item General Data -- Sort by Item Group'. Or 'Item General Data -- Order by Lead Time'.

Please help! Thank you!!

george7a
13th November 2006, 09:28
Hi,

You can use the "report$" or "spool.report" variable to get the report code.

For more predifined variables check:
http://www.baanboard.com/programmers_manual_baanerp_help_misc_predefined_variables
http://www.baanboard.com/programmers_manual_baanerp_help_report_scripts_predefined_variables

However, I am not sure that you can add anything on the description by code, you can do so from Maintain Reports session.

I hope it helps,

- George

günther
13th November 2006, 14:40
To convert the report code (e.g. as above), you can use

#include <bic_tt>
void TT.REPORT.DESC ( string reprt(15), ref string desc() )

I often use a variable of my own (type string, 60 characters long, centered) in the header layout, instead of the report descripition. I assign the text I want in the before.program section, that's all.

Günther