NAV 2009 SP1 – Using the RSS reader Add-In

Navision No Comments

In the previous article we created a RSS reader Add-In, now let us take a look on how to use it from navision (RoleTailored Client).

First we must make it possible for navision to see it. This is done by adding the dll’s information to the table 2000000069 Client Add-in.

Before we are doing this we need to be sure that the dll is in the add-ins folder and we need to know the public key for the dll.

Okay – first locate the folder C:\Program Files\Microsoft Dynamics NAV\60\RoleTailored Client\Add-ins and make sure the file naviRss.dll is located there.

Read the rest of this entry »

RSS Reader Add-In for the RoleTailored Client

.NET, Navision No Comments

Add-Ins are used to add new features to the RoleTailored Client and was introduced with NAV 2009 SP1.

I have previous written about a ASP.NET RSS reader – in that article, the collection of feeds was a C# function, so why not use this function to extend the RoleTailored Client.

I will be using Visual Studio 2008 to write a Dynamic Link Library (dll), but you can also use the free Express version of Visual C#.

Let’s start by creating a new project – a class library. I have chosen to call it naviRSS.
Read the rest of this entry »

Building a RSS reader in ASP.Net

.NET No Comments

Hi

RSS Feeds are just XMLs – so building a RSS reader is not so difficult, first you know how to do it ;-)

Let’s start with looking at C# function that reads the RSS Feeds.

First step is to collect the feeds. This is done by using WebRequest:

System.Net.WebRequest myRequest = System.Net.WebRequest.Create(rssURL);
System.Net.WebResponse myResponse = myRequest.GetResponse();
 
System.IO.Stream rssStream = myResponse.GetResponseStream();
System.Xml.XmlDocument rssDoc = new System.Xml.XmlDocument();
rssDoc.Load(rssStream);
Read the rest of this entry »

NAV 2009 SP1 – Testing Codeunits – Part 2

Navision No Comments

In the earlier article, we where using the ConfirmHandler – but confirm is not everything a function can contain. So why not add the handling of Message Boxes ;-)

First, let us a add simple test message function to the previous created “doTest” codeunit. The function could look this:

 cside |  copy code |? 
PROCEDURE TestMessage@1112800001(useWrong@1112800000 : Boolean) : Boolean;
BEGIN
  IF useWrong THEN
    MESSAGE('Wrong Message')
  ELSE
    MESSAGE('Test Ok');
  EXIT(TRUE);
END;

Read the rest of this entry »

NAV 2009 SP1 – Testing Codeunits

Navision No Comments

One of the new features in NAV 2009 SP1 is C/AL Testability.

Let try using the new feature to test a simple codeunit – let us call the codeunit doTest. The codeunit will only contain a simple function, that includes a confirm and will look like this:

 cside |  copy code |? 
PROCEDURE TestConfirm@1112800000(useConfirm@1112800000 : Boolean) out : Boolean;
BEGIN
    IF useConfirm THEN
        IF CONFIRM('Do you confirm?',TRUE) THEN
          EXIT(TRUE)
        ELSE
          ERROR('No confirmation!');
    EXIT(FALSE);
END;

Read the rest of this entry »

Yes is not an option

Navision 1 Comment

Hi

During my tests with NAV 2009 SP1 I ran into an old well known error / problem.
So why not write a post on it ;-)

When starting a Navision Client (in this case a Classic Client) you may get the error “Yes is not an option” or a localize version “Ja is not an option”.
Read the rest of this entry »

Icons by N.Design Studio. Designed By Ben Swift and Customized by Ingrid Byllemos. Powered by WordPress
Entries RSS Comments RSS Log in