egrishin
3rd February 2014, 20:57
Hello,
i have a DLL function where i create file on the server side
target.file.name = bse.tmp.dir$()
target.file = creat.tmp.file$(target.file.name)
target.id = seq.open(target.file, "wt")
...
e = seq.close(target.id)
file is exist.
after this i whant to copy the file to chared filder to anuther server(\\someserver\some_directory).
for copy of file i use server2client(target.file,local.file, 0 ).
what is my problem?
when i run it by my self - file can be copy to shared folder
but if dll function runing by ION file is not copy.
My question is why?
bhushanchanda
3rd February 2014, 21:21
but if dll function runing by ION file is not copy.
Hi,
What do you mean by this? Please post your code to copy the file. What is ION file?
egrishin
4th February 2014, 10:23
Hi,
What do you mean by this? Please post your code to copy the file. What is ION file?
ION it is integration platphorm of infor.
code in the end is easy
long _e
_e = server2client(s.file,d.file, 0 )
günther
4th February 2014, 10:26
Hi,
the function server2client() is located in ottdllbw. That means, you need a running BW client to use this function.
Regards
Günther
bhushanchanda
4th February 2014, 10:34
Hi,
Yes. I am aware of it. Was just confirming about what you mean about ION "file".
Anyway, if its just a file transfer try this:-
long ret
exec_dll_function( "ottdllbw" , "server2client" , ret,"D:\temp.txt", "\\bgl005\d$\test\temp.txt", 0 )
Make sure users have full right permission to the folder.
egrishin
4th February 2014, 11:04
Hi,
the function server2client() is located in ottdllbw. That means, you need a running BW client to use this function.
Regards
Günther
ION not use BW client?
is it possible to run it in Application Connection Point of ION?
egrishin
4th February 2014, 12:37
Hi,
Yes. I am aware of it. Was just confirming about what you mean about ION "file".
Anyway, if its just a file transfer try this:-
long ret
exec_dll_function( "ottdllbw" , "server2client" , ret,"D:\temp.txt", "\\bgl005\d$\test\temp.txt", 0 )
Make sure users have full right permission to the folder.
unfortunatly it does not work too.
i think it would be problem of permissions rights too.
but for me it is not so clear which permissions?
user of ION(service is running) has permission on this shared folder.
bhushanchanda
4th February 2014, 13:10
Hi,
If you are on Windows, give Full Rights to Everyone for this folder and try again. Generally, the bsp user should have full rights to the folder. But, its always better to put everyone in the list.
george7a
4th February 2014, 13:22
unfortunatly it does not work too.
i think it would be problem of permissions rights too.
but for me it is not so clear which permissions?
user of ION(service is running) has permission on this shared folder.
1) What is the value that ret= server2client returns?
2) Does the local directory exist on this client?