issue with using Preprocessor across programs

Hi..

I am trying to make a customized browse and I am using a shared temp-table.

My browse is working fine. The issue is with its label.
say I have 2 fields on my input screen. the label of one is 'XYZ' and the label for other is 'PQR'
the lebel of my browse field should change accordingly. is it possible to use pre-processors for temp-table fields

I want to do something like this

&SCOPED-DEFINE PP_FRAME_NAME a
DEFINE TEMP-TABLE TMP_HLP
FIELDS tmp_lbl as character.
def var i as int .
def var a as char.
update i.
for each tmp_hlp:
if i = 1 then
do:
&SCOPED-DEFINE rcrp13_p_15 "Hiii"
tmp_lbl = "145".
display tmp_lbl with frame {&PP_FRAME_NAME}.
tmp_lbl:column-label = {&rcrp13_p_15}.
end.
else
do:
&SCOPED-DEFINE rcrp13_p_15 "hELLO"
tmp_lbl = "145".
display tmp_lbl with frame {&PP_FRAME_NAME}.
tmp_lbl:column-label = {&rcrp13_p_15}.
end.
end.
 
Back
Top