Javascript Add-in Webclient Error "Method XYZ was not found in the control add-in"

sradloff
Member Posts: 2
Dear colleagues,
I've created a simple javascript add-in for NAV2016 that works fine in the Windows client.
It's just a textarea with an event and custom methods to set and get the textarea content.
The error message "method "my-method-name" was not found in the control add-in" comes up when using the same page in the web client.
I've double checked allmost everything+
-restarted the NST and IIS sebsite several time
- deleted all add-ins
- deleted the object from the object metadata table
- ...
- if I change the action to another method, the message changes, too: method "the-other-method name" was not found...
-
The error is not very popular in google, so I hope that there is a expert in the community, who had this error in the past and could solve it.
Thanks in advance
Sebastian
I've created a simple javascript add-in for NAV2016 that works fine in the Windows client.
It's just a textarea with an event and custom methods to set and get the textarea content.
The error message "method "my-method-name" was not found in the control add-in" comes up when using the same page in the web client.
I've double checked allmost everything+
-restarted the NST and IIS sebsite several time
- deleted all add-ins
- deleted the object from the object metadata table
- ...
- if I change the action to another method, the message changes, too: method "the-other-method name" was not found...
-
The error is not very popular in google, so I hope that there is a expert in the community, who had this error in the past and could solve it.
Thanks in advance
Sebastian
1
Answers
-
[UPDATE]
I installed the add-in in a NAV2017 database and it worked in the windows client, as well in the web client.
0 -
I don't know if it still helps but for the webclient you have to add functions to your javascript like this:
window.myFunction = function (myParameter) {
myExecutedCode;
};
and let your NAV/BC Now what this is by adding
procedure myFunction(myParameter: Text);
to your ControlAddIn.
(i just have experience in AL Javascript not in C/AL, so it might not work like this in C/AL)1
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