My question concerns setting dataport filters before the request form opens. I know that I can do this like
Dataport.RUNMODAL(DATAPORT::myDataport, TRUE, myRecord)
but that doesn't work as I want it to.
I want to run the dataport directly. As in if I was in Object Manager and clicked run the filters would pre-populate.
I would also settle for a way to add two text boxes to the options tab and not have the file name box disappear. I know I could fill in the boxes that way and use those to filter, but the I don't have a filename.
Thanks for your help,
Comments
To have the Filename-box NOT disappear, you need to create a field in which you put a text in which you want to have the filename.
This TextBox MUST HAVE the following properties:
-ID=1
-AssistEdit=Yes
Putting the filename in the CurrDataport.Filename must be handled by some programming (CurrDataport.Filename := txtTheFileName;) in the OnPreDataport-trigger
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Dynamics NAV Developer since 2005
The code must look like:
Dynamics NAV Developer since 2005
http://www.mibuso.com/forum/viewtopic.p ... highlight=
Dynamics NAV Developer since 2005