Change fieldvalue after print
Mattias Blondeel
Hello,I want to update a field on the Sales order form after I pressed the print button.
With event must I use? I tried the 'Print' event but this doesn't work
If I use the 'Menuclick' event on formtype 520 my code is executed but I don't have the form values
example:
try
{
SwissAddonFramework.UI.Dialogs.MessageBox.Show("Ok " + TextEdit.GetFromUID(pVal.Form,"4").Value, "OK");
}
catch(System.Exception ex)
{
SwissAddonFramework.UI.Dialogs.MessageBox.Show("Unexpected errorn" + ex.Message, "OK");
}
Suggestions?
thx for the help
Mattias
Michael Egloff
Hej Mattias,because the menu event is not triggered directly from a form (a menu click can be performed without a link to a form), you do not have the form set in the properties. However it's possible to get the current form indirectly:
Form currentForm = Form.GetFormFromUID(SwissAddonFramework.B1Connector.GetB1Connector().Application.Forms.ActiveForm.UniqueID);
0
Please sign in to leave a comment.
Comments
0 comments