pegaga1979
23rd February 2016, 05:26
Hi,

May i know how i can insert certificate number, whltc100.cert in Label?
I try to put #lb.cert but not working.
The label is created in Text, session whwmd5520m000.
Need your expertise on this.

Thank you.

Ajesh
23rd February 2016, 14:32
Well, from what i can understand you want to change the label at runtime, and not only change but put a parameter inside the label which will show the value. I know about changing labels at runtime and change.field.label() does that. But the session should be a dynamic session for that.

benito
23rd February 2016, 18:18
pegaga, see whether you can make something out of our conv here. it's a little protracted but could be helpful.

discussion link (http://www.baanboard.com/baanboard/showthread.php?t=68510&highlight=font+sizes)

pegaga1979
24th February 2016, 02:41
Hi Benito,

I've read through the thread.
Does it mean i hv to use script?
oh, i'm not good at it :(

pegaga1979
24th February 2016, 04:18
Hi,

i attached the script that i tried to insert whltc.cert.
and also report layout.
it not printed.

benito
24th February 2016, 15:20
my assumptions:
1) lb.cert is custom, meaning you created it. i can't find this in standard.
2) you are able to get the values of lb.lot and lb.item

add this in your detail.1:


select whltc100.cert
from whltc100
where whltc100._index1 = {:bc.lb.item,:bc.lb.lot}
selectdo
bc.lb.cert = whltc100.cert
selectempty
bc.lb.cert = "No cert"
endselect


note that i changed lb.cert to bc.lb.cert