jojovalenton
24th January 2016, 16:39
hi,

please help on how to change field (column) name of MMT Session (grid lines) at run time. thanks.

regards,
jojo

darkhorse
24th January 2016, 18:34
Hi,
Use of change.field.label() may solve your purpose.Based on your condition you can assign it in after.form.read section

jojovalenton
25th January 2016, 07:15
hi,

this is really cool, thanks a lot for this wonderful idea.

best regards,
jojo

jojovalenton
25th January 2016, 09:39
hi,

can i ask another help on how to refresh column labels when i scroll to next or previous records in the MMT header? i used prcm.notify and prcm.register but i'm not sure exactly how should this work in my case for labels on MMT satellite. thanks.

regards,
jojo

darkhorse
5th February 2016, 05:49
Hi ,
Very Rightly said, prcm could be of great use to you in case of MMT especially.
I am posting sample peice of code written in satellite session likewise you can frame yours as per your requirement.
Hope it helps:)


choice.bms:
on.choice:
if prcm.bms.is.notification() then
on case prcm.get.subject()
case "tablename(MMT Controller)":
|* Refresh all data on the screen
temp.var = tablename.orno |* Header index
import("tablename.orno",tablename.orno)
if temp.var <> tablename.orno then
read.concerned.table()
endif
if Condition then
change.field.label()
endif
if lines.exists() then
refresh.all.occs()
endif
break
endcase
endif

jojovalenton
8th February 2016, 13:26
thanks for sharing this code and i will try yo explore this.

regards,
jojo