Medtun
17th December 2015, 16:27
Hi,
I would like to add a "week" field to "Labels" report(whwmd543001000).
This report looks a bit special : you have to use predifined variables mentionned in the users help. You can add these fields through session "Label's layout"(whwmd5520m000).
There is no "Week" field in the available variables so i would like to add it.

The problem is that the layout contains only a text field. So i can't add any other field.
I tried to add a new variable in function : whwmd5002(declaration of report variables). It contains the declaration of all variables used in "Label's layout" session. But something is missing. where may i declare the formula of my week variable ? is it in the script ?

Do you think my method is wrong ?

Thank you.

benito
17th December 2015, 17:00
it's just a report so just add the field week with a domain tcmcs.long, then compile.

if you have a custom/calculated field, you can add through input fields (Specific, Input Fields) in the report wmd5430 then add it in your report.

Medtun
18th December 2015, 11:04
Thank you for repliying Benito, i already added this :

in Report script :
domain tcweek lb.sem
lb.sem = val(sprintf$("%u(%02W)", utc.num()))

In input Fields :
lb.sem
Depth : 1
Domain : tc.mcs.st80m

In layout :
#lb.sem

But it doesn't work.

benito
18th December 2015, 15:10
remove from input field and declare as extern in report script.

Medtun
18th December 2015, 16:11
Fantastic! finally it works.
Thank you very much Benito. IT's very important for me.

Good evening.