using Microsoft.Dynamics.Framework.UI.Extensibility; namespace Microsoft.Dynamics.Nav.Custom { [ControlAddInExport("ShowHTMLwithNAV")] public interface ControlAddIn { [ApplicationVisible] event ApplicationEventHandler ControlAddInReady; [ApplicationVisible] void DataFromCALToJavaScript(object data); } }
<?xml version="1.0" encoding="utf-8" ?> <Manifest> <Resources> <Script>Control.js</Script> </Resources> <ScriptUrls> <ScriptUrl>http://code.jquery.com/jquery-1.9.1.min.js</ScriptUrl> </ScriptUrls> <Script> <![CDATA[ $(document).ready(function() { InitializeControl(); Microsoft.Dynamics.NAV.InvokeExtensibilityMethod('ControlAddInReady', null); }); ]]> </Script> <VerticalStretch>true</VerticalStretch> <HorizontalStretch>true</HorizontalStretch> </Manifest>
function InitializeControl() { } function DataFromCALToJavaScript(data) { $("#controlAddIn").empty(); $("#controlAddIn").append(data); }
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
It is not the solution that I hoped for.
I hope Microsoft give a solution in a next release for a better integration with JavaScript.