DAX Tribe,
I have a need to retrieve the InfoLog errors pushed into the popup during a failed Journal Posting event.
Specifically, a ProdJournalTable with ProdJournalBOM records is about to get posted. One or more of the BOM records fails validation (not enough quantity or some such). So, I want to alert someone with this failure (it's part of a Workflow -- I need to tell the Originator that their picklist is not valid any longer and must be re-submitted).
I'd *like* to include the list of errors that were generated during the Post process -- is there anyway to access this data after the Post fails (or the Validate fails)?
I've dug and dug and I see that within the ProdJournalPostCheck class, which inherits from like a dozen super classes (kidding), that there are error lists -- but I'll be damned if I can figure out how these errors get marshalled around.
ProdJournalPostCheck
public static void main(args)
....
try { journalCheckPost.preRun(); journalCheckPost.run(); journalForm.runbaseMainEnd(journalCheckPost,false); } catch (Exception::Error) { journalForm.runbaseMainEnd(journalCheckPost,true); }
I expected an error to show itself if the post failed -- but of course it's not an *exception* to have the post fail.
Clues?
Thanks for any response.
Dave C.