karlovac
1st July 2002, 15:03
How to get user input (which is file-name.xls) into function or session (program script)?
And, what you suggest to me to use?

(I have more users which make new .xls files and transfer them with FTP to Baan server for using them as "Drawing" in EDM package)

I want to give them possibility to say which local file they want to transfer (without my intervention - and without possibility to make a mistake using FTP)

Thanks
;- )

For transfer of files I use FTP-script which you can find on baanborard.com list:
keyword - "automated" ftp transfer'

mark_h
1st July 2002, 15:21
You can use the client2server command to copy the files from the client to the server.

Follow this link (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=1910) for a sample program that allows the user to select a file on the client.

So you could do this two ways:

(1) Just ask the user which file, user client2server to copy it up to the server.

(2) Use the sample program, allow the user to select the file, and then use client2server.

You should be able to find samples of the client2server by searching both this forum and the code and utilities forum. If not I am sure someone can post the forum.

Good Luck!

Mark