I created one button on Sales Order Form (Form 42) that will run a dataport when this button is pushed. This dataport is uses Sales Line table and setup to run an export only.
How to capture the Sales Order number on Form 42 and populate it as a default value on my dataport (“Document No.”)?
How to program my dataport to default the File Name the same as the Sales Order number?
For example: Order No 123456 on Form 42 is opens.
When the export button is pushed; I want this Order No 123456 is populated automatically on the “ Document No.” field and the FileName is defaulted as 123456.txt
Create a function in the dataport to transfer the filter to the dataport before running it - there are many examples on such SetFilter functions in the standard systems.
Ad 2)
The filename is just a text string, so it’s just copy it to a text and add the .txt.