Request Form in a dataport

RachelSoon
Member Posts: 202
Hi All,
As you all know, when we run a dataport, a option tab with the file name and direction will be available for user to locate the import or export file path.
However, these will not be availble at the option tab when there is a control is added to the request form. The file name and direction are not available, the option tab only show the newly added control.
How can i add more control to the request form and maintain the original file name and direction?
As you all know, when we run a dataport, a option tab with the file name and direction will be available for user to locate the import or export file path.
However, these will not be availble at the option tab when there is a control is added to the request form. The file name and direction are not available, the option tab only show the newly added control.
How can i add more control to the request form and maintain the original file name and direction?
0
Comments
-
Hello,
You have to crate a global variable of text type and on the assist edit trigger you write the next code:
Janela.ShowOpen;
IF Janela.FileName <> '' THEN Filename := Janela.FileName;
Janela is a variable:
Name DataType Subtype Length
Janela OCX COMMON DIALOGS CONTROL
then on the Initdataport trigger you write the code:
CurrDataport.FILENAME(Filename);
Regards
Afonso0 -
Hi!
To enable file-lookup in a dataport where you have put fields on the request-form you have to do the following.
Create a variable to hold your filename.
Put a textbox with accompanying label on the request form. In the properties of the textbox containing your filename you should set ID to 1 and assistedit to yes. Put your variable in the source-expression of the the textbox. Now when you run the dataport you will be able use F6 to look for your file.
The trick is to have the textbox-id set to 1.Best regards
Tommy0 -
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Hi Tommy and Afanso,
Thank you so much for replying my question.
I've tried it and it works!
Thank you so much for helping0 -
Hi Tommy,
I am just wondering why the text box ID has to be 1? it only works for ID = 1. what is the relationship between the ID and the lookup?0 -
RachelSoon wrote:Hi Tommy,
I am just wondering why the text box ID has to be 1? it only works for ID = 1. what is the relationship between the ID and the lookup?
Nothing in particular that I know of other than the fact that navision on a dataport automatically creates a file-lookup on the field with ID=1. Probably just a hack that Navision created in the "old" days to accomodate the ability to create your own request-form.Best regards
Tommy0 -
Tommy Schou wrote:RachelSoon wrote:Hi Tommy,
I am just wondering why the text box ID has to be 1? it only works for ID = 1. what is the relationship between the ID and the lookup?
Nothing in particular that I know of other than the fact that navision on a dataport automatically creates a file-lookup on the field with ID=1. Probably just a hack that Navision created in the "old" days to accomodate the ability to create your own request-form.0 -
Hehe. true! That may very well be the case.. but we FOUND IT!! :twisted:Best regards
Tommy0 -
I don't found it, i learn it in my Application builder course... 8)0
-
Course? What's that? :shock:Best regards
Tommy0 -
anyway folks, thanks a lot for helping....0
-
Tommy Schou wrote:Course? What's that? :shock:
Lessons... Class... Before I done my Application Builder exam for my Application builder licence, I have 5 day AB course (in time of Navision Financials...)0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions