NGDesktopFile Plugins problem

Forum to discuss the new web client version of Servoy.

NGDesktopFile Plugins problem

Postby dev-ws-011 » Wed Jan 06, 2021 3:13 pm

Hi All,

I am working with NG Desktop client, I have used plugins.ngdesktopfile.writeFile() method to create file at client side but it is also creating file at server. Also, if I use plugins.ngdesktopfile.openFile() method, it does not open file at client side instead open the file at server side.

Here is my code sample, consider theFilePath is the path of file & byteArray is byte array to be written to file:
Code: Select all
plugins.ngdesktopfile.writeFile(theFilePath,byteArray);
plugins.ngdesktopfile.openFile(theFilePath);


Any help will be appreciated.

Thanks and Best Regards
Servoy Developer
dev-ws-011
 
Posts: 73
Joined: Fri Oct 21, 2016 8:23 am

Re: NGDesktopFile Plugins problem

Postby jcompagner » Wed Jan 06, 2021 3:22 pm

This sounds really impossible
so you are saying that you have a server "http://myserver/"
that you have somewhere where the servoy app server runs (war is deployed)

then on a client machine you have the ngdesktop installed that has that url as there server and when pressing a button you do:

plugins.ngdesktopfile.writeFile(theFilePath,byteArray);
plugins.ngdesktopfile.openFile(theFilePath);

where the file path is something valid at the client side and that is then really stored at the server and really it opens (how does it do that what happens here?) it also on the server?

are you sure you also don't have older stuff running there like plugins.file.File.writeFile and/or application.executeProgram() ?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: NGDesktopFile Plugins problem

Postby mvid » Wed Jan 06, 2021 4:31 pm

Hello,
This is highly unusual situation, I need to establish exactly your testing configuration. Can you provide some details, please?
Where is your server installed (where you've deployed the war file)? On your local machine or remote? Where is running your ngdesktop client (local, remote) and how you're using it?

Thanks
Marian Vid
Servoy
mvid
 
Posts: 9
Joined: Mon Apr 01, 2019 7:08 pm
Location: Romania


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 2 guests