Developing server-side extensions
Code in .NET components integrated in NAV applications can be executed either on the server or on the client-side. The RunOnClient
variable property is an instruction for NAV specifying which side the component should run on. Most of the .NETt code is executed in server-side components, client-side variables being a special case.
Code running on client is the topic of the next recipe, and now we will walk through creating a page that will connect to the NASDAQ website to read news in the RSS feed.
How to do it...
The page object created here, reads the RSS feed from articlefeeds.nasdaq.com
, parses the result, and displays the news text.
Create a new page in the page designer. Choose to create a blank page without the wizard and leave the source table blank.
Open C/AL Globals and create the following variables:
Name
Type
Subtype
XmlDoc
DotNet
System.Xml.XmlDocument
XmlNodeList
DotNet
System.Xml.XmlNodeList
Title
Text
Description
Text
CurrNode...