Hello,
We have a codeunit published in the table 2000000076 as web service . The codeunit has just a funciton that returns a value.
When we try Access to run it from a VB program it shows an error "The MAXIMIZEDONOPEN method is obsolete".
We can't figure out what the problem is since codeunits don't have that property.
It is possible to Access the webservice XML definition through the web browser but when try to execute it, the web service show the error.
Scenario: the database is a NAV5.00 that has been upgraded to NAV2009 SP1 so there could be something wrong with the objects. We are now reviewing the objects but any help is appreciated.
Thank you!
0
Answers
We have finally fixed it. In the codeunit 1 there was the typical modification to show the company name in a maximized form whenever you open the company.
Apparently putting a Guiallowed condition before the code is solving the problem (as does the standard with the function LoginStart).
___CompanyOpen()
IF GUIALLOWED THEN
LogInStart;
//Customization
IF GUIALLOWED THEN BEGIN
StartScreen.MAXIMIZEDONOPEN:=TRUE;
StartScreen.RUN;
END;
Thank you.