[How-to] Display Webpage in Dynamics NAV
Views (17)
Inside Dynamics NAV Page you can display the webpage. Let's start how you can achieve this in Dynamics NAV. Create a new blank card page. And add the Page container and field as below.
![]()
Now select the field WebPageViewer and open its property. Press F6 in ControlAddIn Property and select "Microsoft.Dynamics.Nav.Client.WebPageViewer".
After doing this you will get property assigned in controlAddIn as below.
add CurrPage.WebPageViewer.Navigate('https://navcourse.blogspot.com/'); in WebPageViewer::ControlAddInReady trigger
and
add CurrPage.WebPageViewer.Navigate('https://navcourse.blogspot.com/'); in
WebPageViewer::Refresh(callbackUrl : Text) trigger
Now everything ready, save the page as "My Demo Web Page Viewer" and run it. You will get the result as below.
![]()
Now select the field WebPageViewer and open its property. Press F6 in ControlAddIn Property and select "Microsoft.Dynamics.Nav.Client.WebPageViewer".
After doing this you will get property assigned in controlAddIn as below.
ControlAddIn Microsoft.Dynamics.Nav.Client.WebPageViewer;PublicKeyToken=31bf3856ad364e35
Now, Select Field WebPageViewer and press F9 to see the C/AL Codes.
WebPageViewer - OnAssistEdit()
WebPageViewer - OnControlAddIn(Index : Integer;Data : Text)
WebPageViewer::ControlAddInReady(callbackUrl : Text)
CurrPage.WebPageViewer.Navigate('https://navcourse.blogspot.com/');
WebPageViewer::DocumentReady()
WebPageViewer::Callback(data : Text)
WebPageViewer::Refresh(callbackUrl : Text)
CurrPage.WebPageViewer.Navigate('https://navcourse.blogspot.com/');
As shown above,add CurrPage.WebPageViewer.Navigate('https://navcourse.blogspot.com/'); in WebPageViewer::ControlAddInReady trigger
and
add CurrPage.WebPageViewer.Navigate('https://navcourse.blogspot.com/'); in
WebPageViewer::Refresh(callbackUrl : Text) trigger
Now everything ready, save the page as "My Demo Web Page Viewer" and run it. You will get the result as below.
This was originally posted here.

Like
Report
*This post is locked for comments