• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Question Set Statement With Editing Block (mfg/pro)

#1
I am using QAD-MFG/PRO in .NET windows version. I have a frame in which the fields are array elements. During the code execution, the frame is populated with the current field values in database. Hence, the scrolling function enabled for the these fields will start the scroll from current value in the field.

frame definition:

form
so_slspsn[1] colon 16 label "Salesperson 1"
so_comm_pct[1] colon 27 no-label
sort[1] colon 35 no-label
so_slspsn[2] colon 16 label "Salesperson 2"
so_comm_pct[2] colon 27 no-label
sort[2] colon 35 no-label
so_slspsn[3] colon 16 label "Salesperson 3"
so_comm_pct[3] colon 27 no-label
sort[3] colon 35 no-label
so_slspsn[4] colon 16 label "Salesperson 4"
so_comm_pct[4] colon 27 no-label
sort[4] colon 35 no-label
with frame setb_suba .


set
so_slspsn[1]
so_comm_pct[1]
so_slspsn[2]
so_comm_pct[2]
so_slspsn[3]
so_comm_pct[3]
so_slspsn[4]
so_comm_pct[4]
with frame setb_suba
editing:

when in so_slspsn[1] call's a include file which performs scrolling and display the frame field
else
when in so_slspsn[2] call's a include file which performs scrolling and display the frame field
else
when in so_slspsn[3] call's a include file which performs scrolling and display the frame field
else
when in so_slspsn[4] call's a include file which performs scrolling and display the frame field
end.

Issue:
when Salesperson 1 is selected by scrolling the field and the displayed default commission value is modified manually; Further scroll in subsequent field (e.g. Salesperson 2 or 3 or 4) resets the manually changed Commission Percentage to the original default percentage.


Whether a "SET" statement can be written with editing block? where the editing block will have facility of scrolling each field in the frame. The requirement here is all the frame fields will displayed with present date in database and by scrolling in so_slspsn[1],2,3 or 4 will change the sales person and the user can traverse to so_comm_pct[1],2,3 or 4 and edit the commission displayed after scrolling.

The same code is working fine in character version. Please suggest a way to handle the cursor control to the current field.