Hi All,
for a requirement I had developed the code as below
define var frmnbr like so_nbr .
{mfdeclre.i}
update frmnbr.
for each so_mstr where so_nbr = frame-value no-lock:
find first usr_mstr where so_site = usr_access_loc no-lock no-error.
If not avail usr_mstr then
Do:
message "ERROR: User Doesn't have access to:" so_site "site."
view-as alert-box.
return no-apply.
End.
ON GO,return ANYWHERE
DO:
If frame-field = "nbr" then assign frame-value = frmnbr.
If frame-field = "nbr1" then assign frame-value = frmnbr.
end.
End.
{gprun.i ""xssorp10.p""}
the above code if i press F1 to go from frame field "nbr" it is assigning the frmnbr only to "nbr" filed it not assigning the frmnbr to nbr1 field
if i press f1 from the frame field nbr it has to gor to frame field nbr1 and assign frmnbr value to that field then only it has to go to the next level,
Pls help me.
Thanks in advance
for a requirement I had developed the code as below
define var frmnbr like so_nbr .
{mfdeclre.i}
update frmnbr.
for each so_mstr where so_nbr = frame-value no-lock:
find first usr_mstr where so_site = usr_access_loc no-lock no-error.
If not avail usr_mstr then
Do:
message "ERROR: User Doesn't have access to:" so_site "site."
view-as alert-box.
return no-apply.
End.
ON GO,return ANYWHERE
DO:
If frame-field = "nbr" then assign frame-value = frmnbr.
If frame-field = "nbr1" then assign frame-value = frmnbr.
end.
End.
{gprun.i ""xssorp10.p""}
the above code if i press F1 to go from frame field "nbr" it is assigning the frmnbr only to "nbr" filed it not assigning the frmnbr to nbr1 field
if i press f1 from the frame field nbr it has to gor to frame field nbr1 and assign frmnbr value to that field then only it has to go to the next level,
Pls help me.
Thanks in advance