I have created several wrapper programs to change default value of fields. I can get them working properly in Character but when I convert and run in GUI, it does not work.
Any tricks/tips to make it work?
Here is my code to change "Previos Operation complete" field to NO in 17.5 Operation Complete Transaction
Progress 8.3D
MfgPro 9.0
define variable vCompPrev as handle.
Function get-sibling returns HANDLE ( input child as HANDLE, Input sibling_name as CHAR ).
define variable parent as handle.
define variable fchild as handle.
parent = childARENT.
IF parent = ? then
do:
return ?.
end.
fchild = parent:first-child.
repeat:
if fchild = ? then
leave.
if fchild:name = sibling_name then
return fchild.
fchild = fchild:next-sibling.
end.
return ?.
END Function.
/*-----------------------------------------------------------*/
on "entry":U anywhere
do:
case self:name :
when "eff_date" then do:
vcompprev = get-sibling(self:handle, "compprev").
if vCompPrev = ? then leave.
vcompprev:screen-value = "no".
end. /*when eff_date */
end. /*case ...*/
END. /* On entry:u anywhere .*/
PAUSE 0.
{gprun.i ""sfoptr05.p""}
Any tricks/tips to make it work?
Here is my code to change "Previos Operation complete" field to NO in 17.5 Operation Complete Transaction
Progress 8.3D
MfgPro 9.0
define variable vCompPrev as handle.
Function get-sibling returns HANDLE ( input child as HANDLE, Input sibling_name as CHAR ).
define variable parent as handle.
define variable fchild as handle.
parent = childARENT.
IF parent = ? then
do:
return ?.
end.
fchild = parent:first-child.
repeat:
if fchild = ? then
leave.
if fchild:name = sibling_name then
return fchild.
fchild = fchild:next-sibling.
end.
return ?.
END Function.
/*-----------------------------------------------------------*/
on "entry":U anywhere
do:
case self:name :
when "eff_date" then do:
vcompprev = get-sibling(self:handle, "compprev").
if vCompPrev = ? then leave.
vcompprev:screen-value = "no".
end. /*when eff_date */
end. /*case ...*/
END. /* On entry:u anywhere .*/
PAUSE 0.
{gprun.i ""sfoptr05.p""}