I am trying to add feilds to a current form, (using the feild menu I select the Tool ID and drop it on the form) when I try to compile it gives me this error: Could not load the selected library type. When I select ok the Form Cal editor opens, I am not editing any of the code, nor is there any reference in the code to any of the fields on this page.
I can add fields to the master page with out any problem, it is the pages within the master I am having trouble with.
Anyone have a solution to this? Your help is greatly appreciated.
Charlie853
0
Comments
It sounds like your form does contain an global or local variable of type Automation which is not installed on you computer.
You need to have this automation registrered before you will be able to compile the form.
My techblog
Meet me @ LinkedIn
Only users that actually interact with it would require it, and if you are compiling all objects or upgrading, the CU can be updated without much effort.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thank you
I am not sure I understand, Somewhere there is an automation on this form? I am new to this configuration I have just started at this company, I am experienced in Navision however this particular case is highly customized. A button was added to pull an external document would this be the cause? Everyone in sales uses this button. I would appreciate a hint on how to find this, I am told by mangement that they are unaware of this automation.
Any help is greatly appreciated
Charlie853
You will find the variable. Then search the registry on the users computer that use the feature for the GUID.
Once you find where the DLL is then copy that to your computer and register it. Then you can compile the Form.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Here you can see one or more Automation variables with subtype 'Undefined varaible', you need to register that control, after that it will complile.
Regards,
Rakesh
Navision Developer
I have found the reference under the CAL Globals. Unfortunately all it states is Name: Detector Subtype: unknown automation server. Is there any other way I can find out what this is or turn it off? We are not using any automation that I can find in the daily operations.
Your help is greatly appreciated
Thank you
Charlie853
Hope this will resolve your problem.
Regards,
Rakesh
Navision Developer
Your help is greatly appreciated
Thank you.
OnPush()
IsActive := VARIABLEACTIVE(MSAccess);
IF IsActive THEN
CLEAR(MSAccess);
IsActive := VARIABLEACTIVE(Detector);
IF IsActive THEN
CLEAR(Detector);
sAppName := 'MSACCESS.EXE';
//strdb := "Work Order No.";
strdb := ('[Enter The Work Order Number] = " &') + (' ') + ("Work Order No.") + (' ')+('& "');
Pathlocator;
IF strform <> '' THEN BEGIN
CREATE(Detector);
IF Detector.MsAccessRunning(sAppName) THEN BEGIN
CREATE(MSAccess);
MSAccess.CloseCurrentDatabase;
MSAccess.OpenCurrentDatabase(strpath);
MSAccess.DoCmd.OpenReport(strform,2,'',strdb);
//DoCmd.OpenReport "MyReportName",2, , "[SomeDate] = #" &
// MSAccess.DoCmd.FindRecord(strdb);
END ELSE BEGIN
CREATE(MSAccess);
MSAccess.OpenCurrentDatabase(strpath);
// MSAccess.DoCmd.OpenReport(strform);
MSAccess.DoCmd.OpenReport(strform,2,'','[Enter The Work Order Number] = " & strdb & "');
// MSAccess.DoCmd.FindRecord(strdb);
END;
END ELSE BEGIN
MESSAGE('The Model Type is Empty, so this feature is Disabled');
END;