Extensibility V10 Event Error After Blackout When Opening Customform

Asked

Viewed 197 times

-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?

  • 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?

  • 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.

  • There is a need to open a user form when opening company

1 answer

1


Good afternoon

As far as I have been able to ascertain, this is an error of the last SPRING ERP publication and a correction must be made available.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.