BOster
Legendary Poster
*sigh* Is this "working as designed"?
If I set an error inside of a BSFN i.e. jdeErrorSet(lpBhvrCom, lpVoid, IDERRszLocation_16, "500030B", (LPVOID)NULL);, and then I call that BSFN from a grid event or an event of a column on the grid, the error shows on the GC passed as a parameter into the BSFN (the GC turns red). However, if I take that same BSFN call and move it to a push button on the form and instead of calling the BSFN from the grid event, do a system func push button to call the push button event, the error still gets thrown, however, it is not "associated" with the GC that was passed in as a parameter. In other words, the GC does not turn red.
In other words, this works just fine:
=======================================================================
FORM: Recommit Inventory [HEADERLESS DETAIL] (W5642201C)
=======================================================================
CONTROL: GRIDCOL Lot Serial Number
EVENT: Col Exited & Changed - Inline
-----------------------------------------------------------------------
Acme Inv SO DeReCommit Edit Line
FI idSession -> idSession
"U" -> cActionCode
GC nIdx [HIDDEN] <> nIdx
GC Order Co <> szCompany
GC Order Number <> mnOrderNum
GC Or Ty <> szOrderType
GC Line Number <> mnLineNumber
UNDEFINED <> mnQty
GC Lot Serial Number <> szLot
GC Location <> szLocation
GC nState [HIDDEN] <- nState
UNDEFINED <- nRelatedIdx
UNDEFINED <- nSplitFlag
UNDEFINED <- mnOrderQty
UNDEFINED <- mnNetChangeAvailQty
This only half way works (the GC doesn't turn red):
=======================================================================
FORM: Recommit Inventory [HEADERLESS DETAIL] (W5642201C)
=======================================================================
CONTROL: GRIDCOL Lot Serial Number
EVENT: Col Exited & Changed - Inline
-----------------------------------------------------------------------
Press Button(FC CallEditLine)
=======================================================================
FORM: Recommit Inventory [HEADERLESS DETAIL] (W5642201C)
=======================================================================
CONTROL: BUTTON CallEditLine [HIDDEN]
EVENT: Button Clicked
-----------------------------------------------------------------------
Acme Inv SO DeReCommit Edit Line
FI idSession -> idSession
"U" -> cActionCode
GC nIdx [HIDDEN] <> nIdx
GC Order Co <> szCompany
GC Order Number <> mnOrderNum
GC Or Ty <> szOrderType
GC Line Number <> mnLineNumber
UNDEFINED <> mnQty
GC Lot Serial Number <> szLot
GC Location <> szLocation
GC nState [HIDDEN] <- nState
UNDEFINED <- nRelatedIdx
UNDEFINED <- nSplitFlag
UNDEFINED <- mnOrderQty
UNDEFINED <- mnNetChangeAvailQty
If I set an error inside of a BSFN i.e. jdeErrorSet(lpBhvrCom, lpVoid, IDERRszLocation_16, "500030B", (LPVOID)NULL);, and then I call that BSFN from a grid event or an event of a column on the grid, the error shows on the GC passed as a parameter into the BSFN (the GC turns red). However, if I take that same BSFN call and move it to a push button on the form and instead of calling the BSFN from the grid event, do a system func push button to call the push button event, the error still gets thrown, however, it is not "associated" with the GC that was passed in as a parameter. In other words, the GC does not turn red.
In other words, this works just fine:
=======================================================================
FORM: Recommit Inventory [HEADERLESS DETAIL] (W5642201C)
=======================================================================
CONTROL: GRIDCOL Lot Serial Number
EVENT: Col Exited & Changed - Inline
-----------------------------------------------------------------------
Acme Inv SO DeReCommit Edit Line
FI idSession -> idSession
"U" -> cActionCode
GC nIdx [HIDDEN] <> nIdx
GC Order Co <> szCompany
GC Order Number <> mnOrderNum
GC Or Ty <> szOrderType
GC Line Number <> mnLineNumber
UNDEFINED <> mnQty
GC Lot Serial Number <> szLot
GC Location <> szLocation
GC nState [HIDDEN] <- nState
UNDEFINED <- nRelatedIdx
UNDEFINED <- nSplitFlag
UNDEFINED <- mnOrderQty
UNDEFINED <- mnNetChangeAvailQty
This only half way works (the GC doesn't turn red):
=======================================================================
FORM: Recommit Inventory [HEADERLESS DETAIL] (W5642201C)
=======================================================================
CONTROL: GRIDCOL Lot Serial Number
EVENT: Col Exited & Changed - Inline
-----------------------------------------------------------------------
Press Button(FC CallEditLine)
=======================================================================
FORM: Recommit Inventory [HEADERLESS DETAIL] (W5642201C)
=======================================================================
CONTROL: BUTTON CallEditLine [HIDDEN]
EVENT: Button Clicked
-----------------------------------------------------------------------
Acme Inv SO DeReCommit Edit Line
FI idSession -> idSession
"U" -> cActionCode
GC nIdx [HIDDEN] <> nIdx
GC Order Co <> szCompany
GC Order Number <> mnOrderNum
GC Or Ty <> szOrderType
GC Line Number <> mnLineNumber
UNDEFINED <> mnQty
GC Lot Serial Number <> szLot
GC Location <> szLocation
GC nState [HIDDEN] <- nState
UNDEFINED <- nRelatedIdx
UNDEFINED <- nSplitFlag
UNDEFINED <- mnOrderQty
UNDEFINED <- mnNetChangeAvailQty