EditFormGBRErrors

Return Error Flag If Any GBRError set for Form

Minor Business Rule

Object Name: B03B0033

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description - B03B0033

Purpose


EditFormGBRErrors Function process the GBR Error space for all set errors and passes back a character 

value of what type of errors found. Also can pass back a character value of what type of error has 

been set on grid row if grid roww passed in.


Function will pass back:

" "- No errors found in GBR Error 

"1"- Hard errors only found in GBR Error

"2"- Warning only errors found in GBR Error

"3"- Warning and Hard errors found in GBR Error



Setup Notes and Prerequisites

None.


Special Logic

None.


Technical Specification


Parameters

Item  DescriptionI/OReq?Notes

EV01  cErrorFlagI/OYesReturns value of what type of errors found

EV02  cRowErrorFlagI/OOptReturn value of what type of error found for grid row 


EV03  cHeaderErrorFlagI/OOptReturn value of what type of error found for form 

header

MATH01  mnRowNumberIOptGrid row number to check error for




Related Tables

None



Related Functions



Processing


• Reset GBR Error to starting position jdeResetGBRError.
• Get first error structure JDEGetNextErrorDDItemNameInfo.
• Set While loop until lpErrorStruct not true.
• IF lpErrorStruct->iErrLevel EQ ERROR_LEVEL_ERROR set variable cHardError to "1".
lpErrorStruct->iErrLevel contains the data dictionary error level value for the error message 
1-Hard error or 2- warning error.

Check lpErrorStruct->iGridRow IF EQ to lpDS->mnRowNumber set RowError
IF lpErrorStruct->iGridRow EQ to 0 set HeaderError


• IF lpErrorStruct->iErrLevel EQ ERROR_LEVEL_WARNING 
set variable cWarnError to "1".
Check lpErrorStruct->iGridRow IF EQ to lpDS->mnRowNumber set RowError

IF lpErrorStruct->iGridRow EQ to 0 set HeaderError


• Get next error structure JDEGetNextErrorDDItemNameInfo.
• After all GBR Error structures processed setup return variable lpDS->cErrorFlag.
IF cHardError EQ "1" and cWarnError EQ " " set lpDS->cErrorFlag to "1" Hard Errors Only.
IF cWarnError EQ "1" and cHardError EQ " " set lpDS->cErrorFlag to "2" Warning Errors Only.

IF cHardError EQ "1" and cWarnError EQ "1" set lpDS->cErrorFlag to "3" Both Hard and Warning.


• After all GBR Error structures processed setup return variable lpDS->cRowErrorFlag and 
lpDS->cHeaderErrorFlag.

IF cHardError EQ "1" and cWarnError EQ " " set lpDS->cErrorFlag to "1" Hard Errors Only.
IF cWarnError EQ "1" and cHardError EQ " " set lpDS->cErrorFlag to "2" Warning Errors Only.

IF cHardError EQ "1" and cWarnError EQ "1" set lpDS->cErrorFlag to "3" Both Hard and Warning.


• Return ER_SUCCESS.

Data Structure

D03B0033 - Return Error Flag If Any GBR Errors Set for Form

Item  DescriptionI/OReq?Notes
EV01  cErrorFlagI/OYesReturns value of what type of errors found
EV02  cRowErrorFlagI/OOptReturn value of what type of error found for grid row 


EV03  cHeaderErrorFlagI/OOptReturn value of what type of error found for form 

header

MATH01  mnRowNumberIOptGrid row number to check error for


^

Parameter NameData ItemData TypeReq/OptI/O/Both
cErrorFlagEV01charNONENONE

Itemab    Descriptionab  ab  ab  I/Oab  Req?ab Notes
EV01ab    cErrorFlagab  ab  ab  I/Oab  Yesab Returns value 
^

cRowErrorFlagEV02charOPTNONE

Itemab    Descriptionab  ab  ab  I/Oab  Req?ab Notes
EV02ab    cRowErrorFlagab  ab  ab  I/Oab  Optab Return value of what type of error found for grid row 

^

mnRowNumberMATH01MATH_NUMERICOPTNONE

Itemab    Descriptionab  ab  ab  I/Oab  Req?ab Notes
MATH01   mnRowNumberab  ab  ab  Iab  Optab Grid row number to check error for

^

cHeaderErrorFlagEV03charOPTNONE

Itemab    Descriptionab  ab  ab  I/Oab  Req?ab Notes
EV03ab    cHeaderErrorFlagab  ab  I/Oab  Optab Return value of what type of error found for form header

^

Related Functions

None

Related Tables

None