BOster
Legendary Poster
So calling on the server via Object Browser works but running via BSSV fails? What tools release are you on?
So calling on the server via Object Browser works but running via BSSV fails? What tools release are you on?
That is correct, we are on tools release 9.1.4.6
I'm trying to wrap my head around this and see if I can prove it out, i think this might be a bug. I don't see very many bsfn that use the jdeErrorGetNextDDItemNameInfoEx API.
Could be. Maybe when a BSFN is invoked via BSSV lpBhvrCom isn't filled out with what ever info is needed by jdeErrorGetNextDDItemNameInfoEx and jdeErrorGetNextDDItemNameInfoEx crashes.
I'm assuming jdeErrorGetNextDDItemNameInfoEx hits a null pointer....
what call stpe?Here is a small little utility BSFN I wrote several years ago that will copy the current error stack to cache and let you iterate over the list. I use it quite a bit in UBEs to detect and display errors on a UBE as well as for situations like what you are talking about. I actually wrote an article in jdeTips on this if you have access to it it will explain a little more about how to use jdeErrorGetNextDDItemNameInfoEx and the attached BSFN as well as some "gotchas" with jdeErrorGetNextDDItemNameInfoEx.
AcmeGetErrorListInit - Copies all errors and error info to jdeCache
AcmeGetErrorListIter - Iterates the list of errors stored in jdeCache by AcmeGetErrorListInit
AcmeGetErrorListDestroy - Frees all resources allocated by AcmeGetErrorListInit (destroys the jdeCache)
AcmeClearErrorList - Wrapper to jdeErrorClearEx. Clears the error list. Needed in a UBE since a subsequent calls to AcmeGetErrorListInit would just return the same list of errors each time.
jdeErrorSetToFirstEx - make sure the the error list pointer points to the first error
jdeErrorGetNextDDItemNameInfoEx - iterate through the errors, store info in jdeCache
jdeErrorSetToFirstEx - reset the list pointer to the first error
cloneServerErrorList
jdeListGetFirst
jdeListGetNext
jdeListGetData
destroyErrorList
AcmeGetErrorListInit - cloneServerErrorList
AcmeGetErrorListIter - jdeListGetFirst, jdeListGetNext, jdeListGetData
AcmeGetErrorListDestroy - destroyErrorList
We use essential cookies to make this site work, and optional cookies to enhance your experience.