How tos
How To enter filename when modifying the request form of a dataport?
- Author
- Luc Van Dyck
- Date
- 03/03/2003
- Size
- 2,83 KB
- Downloads
-
2741
Detailed statistics
- Downloads today 1
- 30 day downloads 27
- Total downloads 2741
- Overall download rank #298 / 2083
- Today page views 0
- 30 days page views 5
- Total views 15199
- Rating
- Popularity
- Downloaded 13 times in the last two weeks
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
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.


- 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;

Download code
Screenshots
-
Be the first to favourite this entry
- Mail to a friend
- Report a broken link
- Go to forum discussion