How move to next frame field and assign some varible

Namasiva

Member
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
 
I dont underdstand why you are complicating things I woul keep it simple;

There is no need to introduce frmnbr field.

update nbr.
ASSIGN nbr1 = nbr.
 
define var frmnbr like so_nbr .
{mfdeclre.i}
update nbr.

for each so_mstr where so_nbr = nbr 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.

assign nbr1 = nbr.

End.
{gprun.i ""xssorp10.p""}
 

Namasiva

Member
Hi Chari,


Here the frame-field "nbr" and "nbr1" for xxsorp10.p not for the current codes. will this code work for that also?.
 
Top