Setting up a Control AddIn as a DotNet Variable in a codeunit, is it possible?

gycsiak
Member Posts: 19
I am testing the TinyMCEEditor Control AddIn (https://github.com/navaddins/TinyMCEEditor-AL) and I have done some modifications, so that I can have several configuration settings (i.e. Inside NAV Mail Client Page should be differently set up as a Requestpage of different reports, etc.).
I am trying to make it as easy as possible for the other end-user developers to use TinyMCEEditor in their custom-made pages, so I would like to create a codeunit, which would receive a TinyMCEEditor as a DotNet variable and set as "VAR" and so in my codeunit I would like to read the peferred settings record and set up the Dotnet variable's parameters, and after that give it back to the caller page, so that every single page and request page would only include one call to the set up function with the page's TinyMCEEditor Control AddIn.
Unfortunately I receive an error message, when I try to give CurrPage.TinyMCEEditor as a variable to my function, that it cannot be identitied as a variable.
Is this scenario possible or is this a limitation to the visual Control AddIns and I need to create the Setup Function always within the certain Page or Requestpage Object?
I am trying to make it as easy as possible for the other end-user developers to use TinyMCEEditor in their custom-made pages, so I would like to create a codeunit, which would receive a TinyMCEEditor as a DotNet variable and set as "VAR" and so in my codeunit I would like to read the peferred settings record and set up the Dotnet variable's parameters, and after that give it back to the caller page, so that every single page and request page would only include one call to the set up function with the page's TinyMCEEditor Control AddIn.
Unfortunately I receive an error message, when I try to give CurrPage.TinyMCEEditor as a variable to my function, that it cannot be identitied as a variable.
Is this scenario possible or is this a limitation to the visual Control AddIns and I need to create the Setup Function always within the certain Page or Requestpage Object?
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
- 320 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