eric.dizon
19th December 2013, 20:58
I have an issue with server to client where in it works and copy the file from bse.tmp to the selected file location in Worktop but not in Web UI.
g.ret = seq.open.dialog.local(
false,
l.filename,
"",
"Text File(*.csv, *.txt)|*.txt;*.csv", |string filter,
t.file.path)
ret = server2client(bse.tmp.dir$() & "/" & l.filename, t.file.path, true)
If have to debug and checked the vaule of t.file.path it is "C:\\Users\ericd\\Documents\\Mailing List.csv". As I've mentioned it is fine in Worktop but not in WebUI.
I am using Web UI 10.9 EL0046. Is it a permission issue or Web UI version bug?
bhushanchanda
20th December 2013, 06:02
Hi,
Have you tried changing path? Try to save it in folder like C:\temp\ on your local machine. And make sure, you set full permissions to this folder for everyone.
Also try this code snippet:-
if dir.select.dialog.local(path) = 1 then
path = path&"\"&"My_Report.xls"
exec_dll_function( "ottdllbw" , "server2client" , ret, file.path, path, 0 )
if ret < 0 then
message("Error during transfer of file to local machine.")
else
message("File transfered successfully at your Machine")
seq.unlink(file.path)
endif
endif
Here file.path is C:\temp\file_name.csv on Server.
eric.dizon
21st December 2013, 01:27
Yes, i tried just hard coding the path still same issue. I haven't tried your snippet yet.
What is the difference any way?
bhushanchanda
23rd December 2013, 08:15
Hi,
I guess not much difference. But, it works for me for Webui.
Also, try replacing you line with :-
ret = server2client(bse.tmp.dir$() & "/" & l.filename, FALSE, FALSE) may be progress indicator usage is causing something wrong.
mark_h
23rd December 2013, 17:29
I can't say for LN, but for 4c4 it has problems with spaces in the path or file names. Maybe try it without the space in the file name - but then again we all know I don't know jack about LN.
bhushanchanda
23rd December 2013, 18:47
Hi Mark,
LN hasn't faced such problem yet, you can add spaces in the file names. A few days back I faced a problem for a report where the user was trying to move the report to his desktop.
What happened is, the file name was a bit longer and the path was like
C:\Documents & Settings\.......\Desktop\Report_Name.
But, shorter report names (with/without spaces) and shorter paths always do work with LN.
May be he can just change the parameters to it and just try again & off course check the permissions to $BSE\tmp & local folder too. Giving full rights to Everyone is a straight and easy way.
eric.dizon
23rd December 2013, 21:48
The code snippet worked for me above. Thanks bhushanchanda.
BeznaWarrior
24th November 2014, 13:59
Hello,
I've used the code of bhushanchanda and i get -1 error code to exec_dll_function line
...
retx = 4
if retx<>4 then |#20141124.sn
mutat = server2client(fisier.server, fisier.local, false)
if mutat=0 then
|sterg fisierul de pe server
mutat= file.rm(fisier.server)
message("Fisier(ele)ul local(e) " & fisier.local & " a(u) fost creat(e).")
else
message("S-a creat fisierul pe server: " & fisier.server)
endif
else
exec_dll_function( "ottdllbw" , "server2client" , x, fisier.server , fisier.local , 0 )
message("x = %d", x)
if x < 0 then
message("Error during transfer of file to local machine.")
else
message("File transfered successfully at your Machine")
seq.unlink(fisier.server)
endif
endif
where retx keeps the value returned by get.ui.mode() function. For testing purpose I've made it 4 in order to run it with debugg in bw. The exec_dll_function line works perfect into bw and fails miserably in webtop. :(
bhushanchanda
25th November 2014, 09:23
Hi,
You can check these threads:-
Thread 1 (http://www.baanboard.com/baanboard/showthread.php?t=66360)
Thread 2 (http://www.baanboard.com/baanboard/showthread.php?t=67004)
Some new functions for WebUi/Ming.le.
BeznaWarrior
26th November 2014, 10:17
First of all...thanks alot bhushanchanda
2nd Is there any workaround in order to emulate the start.application.local in UI?
bhushanchanda
26th November 2014, 13:55
Correct, there is no direct way supported to start an application on the client. That's really a bad lack of functionality in HTMLUI compared to the "old" interfaces, since this functionality is used by many Infor customers for various integration scenarios. I can only urge every customer to file incidents with Infor on that subject, so that they have the pressure to fix it.
best regards
Uli
Please follow this.