-3
With the last update of PRIMAVERA this Demo code that was working previously, in the event open company, stopped working.
using (var result = BSO.Extensibility.CreateCustomFormInstance(typeof(FDU_GuiaEntrada)))
{
if (result.IsSuccess())
{
(result.Result as FDU_GuiaEntrada).Show();
}
}
Error:
Object Reference not set to an instance of an Object.
Is there another way to show a CustomForm
?
The idea is to call the form without being via code?
– Sérgio Sereno
Hi Rui, will not work this attempt to open a form in this event, the Erp shell has not yet been fully loaded to support the form. What is the purpose of opening a form at this event?
– Daniel Vieira
There are at least two ways to open a customform: (1) Using this same code to be executed by calling a user function of type "Macro Extensibility"; (2) Creating a user function of type "User Form". Both functions can then be placed in a user menu.
– Daniel Vieira
There is a need to open a user form when opening company
– RuiCosta