Hello Experts,
How to add a request form in Dataport. I tried to add it the way I add in Reports but then I cant see the "FILE NAME" & text box (from which i used to browse the file to be uploaded) when I run the Dataport (where we give the path of csv file).
Help....
0
Answers
Chn
Set the property LookupMode in the Dataport as Yes. NAV will automatically add the selection of the file and path.
Chn
NAV2009 R2 version... screenshot attached..
To enter the Filename I created a textbox with ID 1 (FileExplorer-Feature!), SourceExpression as some TextVariable "VarFilename" and code in OnAssist of this TextBox:
CurrDataport.FILENAME := VarFilename;
I guess this is what DEV meant right?
lavanyaballurgi: Please let me know what you find from the sample dataport I have sent you.
Chn
Chn
If you add something to the request form, you need to add all "standard funcionality" manually. It means, if you need to have Export/Import radiobuttons, you need to add them and use appropriate CurrDataport.Import value. If you need filename selection, add textbox, set Control ID to 1, enable assistedit = yes on it. Than use the value as CurrDataport.FILENAME. I think this is teached on first day of developer classes... 8)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Chn