Options

Passing a variable to a dataport

bhuberbhuber Member Posts: 78
edited 2000-09-29 in Navision Financials
When calling a dataport, how would you pass a variable such as the name of the template and batch for example.

Comments

  • Options
    mfabianmfabian Member Posts: 187
    Assume you have a Variable TemplateName : Text30 within the Dataport.

    Within the dataport create a the following procedure


    Procedure SetTemplatename(parTemplateName : TExt30);
    Begin
    Templatename := parTemplatename
    end;

    From outside create a variable with type of your dataport and call this procedure ...

    myDataport.SetTemplateName(myFileName);

    ... before starting the dataport.

    Needless to say that this method works not only with Dataports but also with Reports and Forms

    Marcus


    Marcus Fabian
    m.fabian@thenet.ch
    +41 79 439 78 72

    [This message has been edited by fabian (edited 29-09-2000).]
    With best regards from Switzerland

    Marcus Fabian
Sign In or Register to comment.