Restricting execution of form

Hi, From my code I call a standard codeunit which normally opens a form. In an attempt to create a more streamlined process the end-user should not see the form, so how can I run the standard codeunit without executing the form? /zeon

This can be done in several ways. One way to do it can be seen in Table 36 “Sales Header” - Look for the variable HideValidationDialog and the function SetHideValidationDialog which is called initially.

Zeon, If the codeunit your calling is standard and it calls a form within it, I dont think there is much you can do without changing that codeunit or creating your own version of it. You maybe able to add a condition inside the codeunit which determines whether the form is shown or not. Good luck.

thanks…