GUI Convert

cbsethna

New Member
I am working on Progress 9.1d and MfgPro Eb2.1. I am developing a program which gives me the follwoing error.

"Cannot execute UPDATE statement while <widget-id> is active. (4015)"

When finding solution for this error in the QAD KB it said that to convert the program using GUI convert utility. I also found the same but it is not converting the same and giving me the following error.

xxrjnt01a.p WARN1 "ConvertMode=" NOT FOUND.
xxrjnt01a.p 1 (N) QUIT No convert mode specified:

Can anybody help me in how to solve this error.

The program patch is as below wherein the first error is encountered.


loop4:
REPEAT:
HIDE FRAME a NO-PAUSE.
HIDE FRAME b NO-PAUSE.
ASSIGN m_rej = NO
m_prej = NO.
UPDATE UNLESS-HIDDEN m_rej m_prej WITH FRAME c.
IF m_rej = YES OR m_prej = YES THEN DO :
/* {mfselprt.i "window" 80}. */
{gpselout.i &printType = "printer"
&printWidth = 80
&pagedFlag = " "
&stream = " "
&appendToFile = " "
&streamedOutputToTerminal = " "
&withBatchOption = "yes"
&displayStatementType = 1
&withCancelMessage = "yes"
&pageBottomMargin = 6
&withEmail = "y}
IF m_prej = YES THEN DO :
RUN P01_Prn_Pre_Rej.
END.
ELSE
IF m_rej = YES THEN DO :
{gprun.i ""gpnrmgv.p""
"(""C-Rej"",
input-output m_nbr,
output errorst,
output errornum)" }
IF errornum <> 0 THEN DO :
{mfmsg.i &msgnum=errornum &errorlevel=errorst}
undo, retry.
END.
RUN P01_Create_Wkfl.
MESSAGE "Printing the Rejection " VIEW-AS ALERT-BOX.
/** RUN P01_Prn_Rej. **/
HIDE FRAME c.
LEAVE loop1.
END.
{mfreset.i}
END.
IF m_prej = NO THEN
HIDE FRAME c NO-PAUSE.
IF ( m_rej = NO AND FRAME-FIELD = "m_rej" ) THEN DO :
HIDE FRAME c.
LEAVE loop1.
END.
ASSIGN m_rej:HIDDEN IN FRAME c = FALSE
m_prej:HIDDEN IN FRAME c = TRUE.
END.
 
Read the code document, the convert mode should be GUI. I have used it very long time back. There is a doc which explains how your CHUI program should be.
 

cbsethna

New Member
Hi Kishor

Would be good if you could guide as to from where i ca get support for this as how to write the code and all...

Thanks & Regards
Cyrus Sethna
 

suny

ProgressTalk.com Sponsor
Use one of these in top of your code.
The bold line is the right choice to your code.

Code:
/*V8:ConvertMode=NoConvert*/
/*V8:ConvertMode=Maintenance*/
[B]/*V8:ConvertMode=Report*/
[/B]/*V8:ConvertMode=FullGUIReport*/ 
/*V8:ConvertMode=ReportAndMaintenance*/
/*V8:ConvertMode=ConditionalIncludeExclude*/
/*V8:ConvertMode=NoConvertNoOutput*/
 
Top