Close Document
Bart De Cattelle
I want to catch the close event on document level. Is this possible and what would be the best way?So "Right Click on quotation -->Close --> Popup to confirm : ... Document status is changed to close ... Continue ? --> Yes/No"
Kind regards
Anders Olsson
Hi Bart,Create an Optimizer rule and register it like so:
FormType: 1286 (this is the menuid for Close)
EventType: MenuClick
BeforeEvent: Tick if you want to run the rule before the SAP confirmation dialog
FormMode: ALL
In the rule itself, you can check if the active form is a quotation:
if (Form.GetFormFromUID(SwissAddonFramework.B1Connector.GetB1Connector().Application.Forms.ActiveForm.UniqueID).Type == "149")
{
// Do something
}
Regards,
Anders
0
Please sign in to leave a comment.
Comments
0 comments