Welcome to mibuso.com

mibuso account = Forum account

To login to mibuso.com, you need a forum account. The same forum account is used through the site.

Don't have a forum account yet?

Please register yourself first in the forum: registration

Member Login

Lost your password?

21 May 2013
 Home | Forum | Downloads | Business Directory | Product Directory | How Tos | Blogs | Jobs Feedback 
Become a sponsor
Our sponsors

How Tos

How To enter filename when modifying the request form of a dataport?

Author: Luc Van Dyck

When creating a dataport using the wizard, the request form contains the controls "File Name" and "Direction". In design-mode, the request form is empty, so these controls are added by Navision at run-time.

When controls are added to the request form, you loose the ability to choose a filename for the dataport.

Steps to add the filename control
  • Define a global variable txtFilename of type Text[250]
  • Place a Label and TextBox control on the request form
  • Modify the following properties of the TextBox control:
      ID: 1
      Caption: File Name
      SourceExpr: txtFilename
      AssistEdit: Yes
  • Modify the following property of the Label control:
      ParentControl: 1
  • Put this code in the OnPreDataport-trigger: CurrDataport.FILENAME := txtFilename;

Note: It is essential that the ID of the TextBox control is set to 1. Otherwise, you can't browse for the file when pressing the AssistEdit button.

 

 Download code

Author: Luc Van Dyck
Date: 03/03/2003
Size: 2.8 KB
Downloads: 1923
Views: 10081  (Page views are only logged since 3 May 2005)
 
Avg. rating:  (rated 90 times)
 
Discuss this How To in the forum (1 reaction)
 
What's this MUID? [MUID:UUBY]  SMS this title to a friend
 Mail this title to a friend
 
Rate this HowTo
 
- Please do not vote for the same HowTo more than once.
- Please be objective.
   poor



   excellent



Copyright © 1999-2013 mibuso.com. All rights reserved. About | Link to us | Recommend it! | Disclaimer
mibuso.com is not in any way affiliated or associated with Microsoft Corporation or any of the companies in the Microsoft Corporation Group.