1. John Murphy
  2. PowerServer Web
  3. Saturday, 21 April 2018 20:57 PM

Where is the mythical file fileservice object? The code below not compile because "fileservice" is undefined

. I also found in the docs

appeonfileservice lnv_ftp
lnv_ftp = create appeonfileservice

This looks better but "appeonfileservice" also does not exists.

Code from  documentation example.

long ll_re
string info

ll_re = fileservice.of_logonfileserver ("192.168.168.52", 80, "username=userA;password=userA") 

if ll_re = 0 then
 info = "Logon to file server is successful."
elseif  ll_re = 1 then
 info = "Failed to connect to the file server."
else
 info = "Failed to connect to the file server."
end if

Messagebox( "ll_re="+string(ll_re),info)
Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 23 April 2018 13:33 PM
  2. PowerServer Web
  3. # Permalink
0
Votes
Undo

Hi John;

 

 

The workarounds library should be located in your PowerServer installation area.

  For example:  C:\inetpub\wwwroot\appeon\developTempFile\appeon_workarounds

HTH

Regards ... Chris

Comment
Thanks, That was exactly where it was. 

  1. John Murphy
  2. Friday, 27 April 2018 18:36 PM
There are no comments made yet.
Pedro Vivanco Accepted Answer Pending Moderation
  1. Friday, 31 January 2020 22:14 PM
  2. PowerServer Web
  3. # 1
0
Votes
Undo

I am working with Trial Version and this option only works once. When I triy to do it again it does not work despite the parameter was set TRUE to rename .

Comment
There are no comments made yet.
Alfredo Aldama Accepted Answer Pending Moderation
  1. Sunday, 22 April 2018 23:46 PM
  2. PowerServer Web
  3. # 2
0
Votes
Undo

After configuring and deploying the Appeon File Server, you can follow the steps below to upload files to or download files from the Appeon File Server.

Step 1: Add Appeon Workaround PBL to your PowerBuilder project. 

Step 2: Define a variable and create an instance for the AppeonFileService object.

Step 3: Call of_logonfileserver to connect to the file server.

Step 4: Call of_appeonupload or of_appeondownload to upload or download files.

Step 5: Call of_logofffileserver to disconnect from the file server.

 

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.