Arkiv for kategorien ‘Dynamics NAV’.

Dynamics NAV: Custom text boxes on a Request Form in a Dataport

This article is in English because Microsoft Dynamics NAV (better known as Navision) is a world-wide product. Please excuse my English – it is not the best!

In this article I will explain how you can put custom text boxes on the Request Form in a Dataport-object.
As far as I know this solution works for Microsoft Dynamics NAV 5.0 SP1 and all earlier versions. I have not tested this on Dynamics NAV 2009, but my best guess is that this work-around works for the Classic Client in Dynamics NAV 2009 too.

The problem with the Request Form and custom text boxes is that when you put your custom text boxes on the Request Form, the normal text box for choosing what file to import/export will disapear.

To solve this problem you have to do the following steps:

  1. Create a new global variable - I will call the variable “VarFilename” in my example.
     
  2. Insert a new text box (don’t forget a label for the text box) from the Toolbox.
     
  3. Set the ID of the new text box to ’1′.
     
  4. Put the following code in the “OnAssistEdit()”-function of the new text box:
    CurrDataport.FILENAME := VarFilename;

Now run the Dataport and see that is works.

To follow NAV-guidelines remember to give the label, linked to the text box, the correct caption as if it was a standard Dataport, and remember to place the text box at the top of the Request Form.

Good luck with the coding! ;-)

Anden certificering i hus

14 dage efter min første certificering var det tid til endnu en prøve. Denne gang var det i installation og konfiguration af Microsoft Dynamics NAV (Navision).

Prøven gik ret godt – jeg bestod uden fejl i svarene på spørgsmålene, alle rigtige! Wup, jeg er ret glad. Jeg havde frygtet denne certificering en del, da det ikke er en af de områder, som jeg arbejder allermest med til dagligt.

Alt i alt har jeg nu to certificeringer i hus, og regner med, at jeg inden året er omme har tre certificeringer i hus.

Certificeringen bliver helt sikkert fejret i weekenden til en god brandert lørdag, samt tømmermænd søndag!

Hygge…

Første certificering i hus

Som overskriften lyder så var jeg i dag til test. Testen foregik hos Microworld i Århus, hvor jeg var oppe i C/SIDE 4.0 Introduction til Navision, der er den første af i alt 2 udviklingscertificeringer i Navision hos Microsoft.

Jeg bestod med 97 % rigtige svar. Det er helt kanont, og jeg er meget glad for, at denne test endelig er overstået.

Der er ikke længe til næste test kommer – denne vil blive i installation og konfiguration af Navision. Planen er samtidig at jeg på sigt skal op i den sidste udviklingscertificering, der omhandler ren C/AL programmering.

Nyd vejret ;-)