Hello
We have a problem with a custom dataport request form, Navision 2.6 native.
This works ok
http://www.mibuso.com/howtoinfo.asp?FileID=4&Type=howto
When set the direction to export, a problem arises:
Browsing for export-file, we get the error "file xyz.txt does not exist", altough before currdataport.import was set to false. Imho the error message should not fire because the file does not exist has to be created by the dataport later. Importing a file works without a problem.
Any help would be appreciated.
Thomas
Comments
?
You must set this on
Also if you use this Dataport to export, set the DataPort Property IMPORT to false
Regards
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Yes, I set currdataport.filename on preDataPort. The Problem is the currdataport.import property. It does not work if it is set at run time. This means the file dialog does always show "open" or "save" according to the property set at design time...
Any other help would be appreciated.
Thanks
Thomas
To set the porperty open dataport in Design mode -> go to a empty line of DataItem -> go to Property (Properties of the Dataport) -> Import (default is <yes>) -> NO -> Save the Dataport -> Test you dataport -> it works fine ;-)
Regards
Sorry, I think my question was a bit confusing. Actually we could write in german
My problem is the following (sorry if you got it already):
I have a dataport with custom options, therefore the direction option and the file dialog are gone. I re-create them and all works ok, except the fact that the direction option does not work for the wizard.
This means that if I open the file dialog, it's always "open" or "save" as set in design time. Actually I think that if I set currdataport.import(false), then the dialog should be a "save" dialog and vice versa. The problem with this is, when I want to export and the file does not exist, an error is thrown: "file xyz.txt not found".
Thanks
Thomas
ok, if i underst. it correct, then you will use your Dataport (with custom made request form) for import AND export.
The only is: Set all your customized fields, for example, in a Report (or Form) and run from there the Dataport (call a Function in Dataport from Report / Form to set the values of variabels).
Regards
Thats what I expected...
Thank anyway for your valuable 2nd opinion
Thomas
The file open Dialog is there also no problem.
Regards
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Here the source:
if you realy use Financials, you doesn't have the codeunit 412 Common Dialog Management. But in the Client Folder must be an ocx like mscomdlg.ocx (or so [Microsoft Common Dialog Control, version 6.0])
Regards
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Regards
René
Hi folks
Thanks for all input. We really use financial in this case. So the solution is to use cu412 from a 4.0 or so?
Thanks
Thomas
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
But in your client folder mus be a ocx called comdlg32.ocx.
This ocx you use as variable. Before register this DLL with Financials: Tools -> Custom Controls -> Control -> Browse (Extras -> Benutzerdefinierte Controls -> Control -> Suchen)
Now you can use thios ocx as Variable.
the source must look like:
Regards
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thanks a lot, this forum is really very friendly and helpful!
Thomas
on this reason we are all members ;-)