Quantcast
Channel: Microsoft Dynamics GP
Viewing all articles
Browse latest Browse all 38722

Forum Post: VST: Cancelling a SaveRecord?

$
0
0
Hi: I was looking at this post by David Musgrave and was hoping someone could help clarify something. I find myself needing to cancel a SaveRecord for a third party addon based on whether my extra data has been filled in. I implemented the ...SaveRecord.InvokeBeforeOriginal handler and tried "flipping" the only boolean out parameter in the SaveRecordProcedure.InvokeEventArgs object thinking that it would stop the procedure. It didn't. Am I right in thinking that everyone simply names the script "SaveRecord" as a convention or does Dexterity or GP enforce it as part of some sort of framework? I am simply trying to understand if this is a bug in the third party addin or whether I should have no such expectation. If I shouldn't expect the SaveRecord approach to work, can I accomplish what I want using the VBA approach (still in VST)? I tried briefly, but was surprised to find that the Bridge.AfterModalDialogEventArgs.Response property is read only so I can't override the user's response. Am I missing anything? To be clear, I don't have any Dexterity experience. I started my GP journey with a first VBA customization and am now working on my a VST addin. Thanks! Paul

Viewing all articles
Browse latest Browse all 38722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>