DivyaDya
25th September 2018, 09:46
I want to browse file in a folder(Server and local)and how to get a full path of the file?
giggty
27th September 2018, 16:32
To open a client-side file browser you call client.upload.file(string dest) (for LN UI, available from TIV level 1900) or client2server (http://www.baanboard.com/programmers_manual_baanerp_help_functions_client_file_access_client2server)("", string dest, boolean text.mode) (for BW).
Server-side file browser is only available in LN UI using FileManager.selectFile([string i.root.path], string i.start.path, string i.mime.filter, ref string o.file) (available from TIV level 2200).
mark_h
27th September 2018, 17:53
See this http://www.baanboard.com/baanboard/showthread.php?t=59217&highlight=browse in the code and utilities session and see if it helps in anyway.
I do not use a file browser of any sort like what was posted. I typically just ask the user to provide the full path and file name. Then I just try to open it(I think it is like seq.open.local). If I do not find it then I give them and error saying something like file not found. If I do find the file, then I close where I found it, use client2server to move it up to the temp directory for baan. Then I open that file and read thru it to process it.