Converting CHUI wrapper programs compatible in QAD Dot Net

vimal

New Member
Hi Friends,

I have a wrapper program written with below format.(Developed in MFGPRO eb sp2) CHUI.

on go, tab, return anywhere:

if frame-field = "ap_po" then do:
update x y z with overlay frame b.
end.
end.

{gprun.i "apvomt.p"}

We are converting them into .Net compatible.

I have some issues in the navigation in .Net SE 2011

My problem is, If you are pressing "Enter" in the customized overlay frame the particular "form / frame" is being submitting and the user is not allowed to enter values in the standard qad fields.
Here My question is "Is there any way where we can focus the cursor in standard QAD field after pressing "Enter" in the "Overlay frame". something like "Apply Entry".

Please advice. Thanks in advance !
 

ovf

Member
Hi Friends,

I have a wrapper program written with below format.(Developed in MFGPRO eb sp2) CHUI.

on go, tab, return anywhere:

if frame-field = "ap_po" then do:
update x y z with overlay frame b.
end.
end.

{gprun.i "apvomt.p"}

We are converting them into .Net compatible.

I have some issues in the navigation in .Net SE 2011

My problem is, If you are pressing "Enter" in the customized overlay frame the particular "form / frame" is being submitting and the user is not allowed to enter values in the standard qad fields.
Here My question is "Is there any way where we can focus the cursor in standard QAD field after pressing "Enter" in the "Overlay frame". something like "Apply Entry".

Please advice. Thanks in advance !
 

ovf

Member
Hi Vimal,

I used similar techniques a few years ago. (not NetUi).

After converting to NetUI - this is not possible anymore! If I remember correctly From NetUi you can act on "GO, F9 (Cursor-UP), F10 (Cursor-Down)" that's it! Unless you force the program to run in terminal mode only.

So a typical Wrapper program would be something like:

ON "GO", "RETURN" ANYWHERE
DO:
make a lot of widget code
if the user entered "wrong data"
add code like:
DO:
{pxmsg.i
&MSGTEXT = "'Error this order is missing a project related PO!'"
&ERRORLEVEL = 3}
RETURN NO-APPLY.
END.
END.

Another code ex. is
ONE 'ENTRY' ANYWHERE
do:
if self:type = "FRAME" and SELF:NAME = "sotot" THEN
DO:
WIDGET-WALK....
and then code like:
CASE ch:name:
WHEN "so_trl1_cd" THEN
DO:
ch:SCREEN-VALUE = "some thing".
APPLY VALUE-CHANGED to ch.
END.
....
end case.
END.
end.

Hope this will help you.

By the way there is an other interesting / usefull command: if {gpiswrap.i} then


Regards Ole
 
Top