Hiba_t
15th April 2008, 09:21
Hi all,
I wrote a program that uses the server2client and client2server functions. When I run this program on webtop (on Baan4c4 or LN6), while it's working a small window with a progress bar pops up for each call of these functions.
This popup window says downlaoding while server2client is working, and uploading while client2server is working.
Is there a way to avoid these popup windows? I need to be able to run my program without having these popup windows... How can I do that?
Thanks in advance,
Hiba_t
NPRao
15th April 2008, 09:50
Hiba,
Check your function arguments that the progress indicator option is false.
SSA ERP LN 6.1 Programmers Guide
server2client()
--------------------------------------------------------------------------------
Syntax
long server2client( string source, string dest, boolean text.mode [, boolean progress.window] [, boolean read.only] )
progress.window
Use this optional argument to specify whether a progress indicator must be displayed to indicate the progress of the copy action:
true progress indicator is displayed
false progress indicator is not displayed
long client2server( string source, string dest, boolean text.mode [, boolean rm.file] [, boolean progress.window] )
progress.window
Use this optional argument to specify whether a progress indicator must be displayed to indicate the progress of the copy action:
true progress indicator is displayed
false progress indicator is not displayed
Hiba_t
15th April 2008, 10:12
Thanks for your quick response
I already tried this but I still get the progress bar.
Do you have any other suggestion?
Hiba_t
15th April 2008, 10:59
This is a sample of one of the server2client function calls that I have in my program
server2client(BSE.DIR$()&"\tmp\tmp.dat", "C:\temp\tmp.dat", 1, false)
Attached also a screenshot of the progress bar window that pops up with each of this function calls, how can I avoid this popup window?
Marioth
15th April 2008, 11:31
Change the 1 into a 2 then it should be working.
Old: server2client(BSE.DIR$()&"\tmp\tmp.dat", "C:\temp\tmp.dat", 1, false)
New:server2client(BSE.DIR$()&"\tmp\tmp.dat", "C:\temp\tmp.dat", 2, false)
Hiba_t
15th April 2008, 11:42
I tried it on webtop on baan4 and on LN6. On both of them I still get the progress bar window.
Any other suggestions?
Han Brinkman
15th April 2008, 12:03
Not sure but what I remember these functions are not supported in combination with webtop.
Regards,
Han
Hiba_t
15th April 2008, 12:08
Not sure but what I remember these functions are not supported in combination with webtop.
Regards,
Han
But I'm already using them with webtop and they are working in both Baan4 and LN6.
Hiba
NPRao
15th April 2008, 19:17
Hiba,
My code has: e = server2client(fpath, local.path, false, true)
The third parameter is "boolean progress.window" so the values should be true/false in LN/7.6 Tools.
I checked that the function prototype has "long progress.window" in the Reger 7.3 tools release.
BaanERP Programmers Guide
server2client()
--------------------------------------------------------------------------------
Syntax
long server2client( string source, string dest, long text.mode, [long progress.window] )
progress.window
Use this optional argument to specify whether a progress indicator must be displayed to indicate the progress of the copy action:
<>0 progress indicator is displayed
0 progress indicator is not displayed
Based on your current Baan version you have to set the correct parameter.
Marioth
16th April 2008, 11:48
Maybe this will help you.
SSA ERP LN 6.1 Programmers Guide
server2client()
--------------------------------------------------------------------------------
Syntax
long server2client( string source, string dest, boolean text.mode [, boolean progress.window] [, boolean read.only] )
Description
This copies a specified file from the server to the client.
Arguments
source: The source file name, on the server.
dest: The destination file name, on the client. When this is an empty string, this function will show the file save-as dialog through which the user can select an existing file or enter the name of a new file on the client. The function get.local.filename() can be used afterwards to retrieve the actual filename on the client to which the file was copied. The dest parameter may include the string ${BSE_TMP} which indicates the ${BSE}\tmp directory in case of Baan Windows or Windows temp directory in case of Webtop.
text.mode: This argument specifies whether the file is to be copied in text or binary mode:
true text mode
false binary mode
progress.window: Use this optional argument to specify whether a progress indicator must be displayed to indicate the progress of the copy action:
true progress indicator is displayed
false progress indicator is not displayed
read.only: When creating a file on the client side, this attribute can be used to set the file attributes to readonly mode after the file has been transferred.
true file is set to readonly mode
false file remains in read/write mode
Notes:In order to use a progress indicator, you must first create it with create.progress.indicator(). When you want the progress indicator to start with another value then 0, you must use change.progress.indicator() to change its initial value. If you specify the PROGRESS.STOP and/or PROGRESS.CANCEL modes when creating the indicator, the user can stop or cancel the copy operation before it has completed. In both cases, the destination file is deleted.
Return values
0 File copy success.
1 Error. File copy canceled by the user.
<0 Error. Source file not copied to the destination file.
Example:create.progress.indicator("Title", PROGRESS.BAR + PROGRESS.STOP)
server2client(bse.tmp.dir$() & "/test1.txt", "C:\Program Files\Test.txt", false, true )
Regards,
Mario
Hiba_t
16th April 2008, 12:17
I'm not talking about the progress indicator created by create.progress.indicator.
When I use server2client in WEBTOP I get the attached window. But when running the same program from BW this window is not generated. It is only generated in webtop.
I'm looking for a way to disable this window from popping up when running my program, anyone can help me?
Regards,
Hiba
david7
2nd February 2009, 09:20
Is there a solution for these pop-up windows? I tried my version of server2client and disabled the progress bar argument but they still pop-up!
I am thinking maybe there is and option in webtop's setting to disable such pop-ups.
Does anyone has a solution for this?
-D7
Hiba_t
5th February 2009, 16:42
I still didn't find a solution for this issue.
If anyone knows the solution, please post it so we can all benefit from it.
- Hiba