Cannot compile Codeunit 1 - ApplicationManagement

aquawater
Member Posts: 71
I was unable to compile changes on Codeunit 1 ApplicationManagement.
Due to this following error.
And the cursor always points to:
Does anyone know what is the error?
If I look at CAL Globals \ VARIABLES, there is this "Unknown OLE Control".
How am I supposed to know what OCX or OLE control I am missing?
Due to this following error.
--------------------------- Microsoft Dynamics NAV --------------------------- The OLE control (GUID: {3478A2C5-F354-11D3-AFA0-005004C33BAF}) could not be compiled because it was not registered properly. Try to register the OLE control by clicking Tools, Custom Controls, Browse. --------------------------- OK ---------------------------
And the cursor always points to:
MenuRunTimer::TimerError(ErrorString : Text[1024]) MenuRunTimer.Enabled := FALSE;
Does anyone know what is the error?
If I look at CAL Globals \ VARIABLES, there is this "Unknown OLE Control".
How am I supposed to know what OCX or OLE control I am missing?
0
Answers
-
Does this one ring a bell? viewtopic.php?f=23&t=21341
<edit>
The right link: viewtopic.php?f=23&t=21341&view=next
</edit>0 -
you should not create automation variable in CU. You should crate a separate CU that is single instance and contains automation.
That way it's separated and handled by that CU and even during upgrade you can upgrade the object without having the automation.0 -
ara3n wrote:you should not create automation variable in CU. You should crate a separate CU that is single instance and contains automation.
That way it's separated and handled by that CU and even during upgrade you can upgrade the object without having the automation.
Now, here I would like to have a possibility in a forum of tagging an entry with my own tags (i.e. "best practises").
Good tip.Tomas,
Dynamics NAV Enthusiast0 -
Thanks for the reply.
@DenSter:
I don't see how "hiding tabs" got anything to do with my problem.
@ara3n:
Automation variables...
That was created by LSRetail team. We are using NAV with LSRetail package.
So what is the problem ?
Is it "'Navision Timer 1.0'.Timer" or the unknown OCX control.
How could I compile my codeunit #1.0 -
LS retail is one of the worst offenders on how not to modify NAV. The product works, It's just sad they are not improving the code.
LS Retail comes with a toolbox that you need to install to get all the dll/ocx registered.0 -
aquawater wrote:@DenSter:
I don't see how "hiding tabs" got anything to do with my problem.
viewtopic.php?f=23&t=21341&view=next
I removed the "&view=next" part from the link and that changed the link to the one with the tabs, which I agree is not relevant at all0 -
ara3n wrote:LS retail is one of the worst offenders on how not to modify NAV. The product works, It's just sad they are not improving the code.
LS Retail comes with a toolbox that you need to install to get all the dll/ocx registered.
Yes that's the answer.
In CODEUNIT 1, there is OCX control from LS RETAIL TOOLBOX.
After I install that, I can compile successfully. Geez...
Thanks. :thumbsup:0 -
I'm glad you got this solved.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions