1. John Murphy
  2. PowerServer Web
  3. Saturday, 21 April 2018

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 Accepted Answer Pending Moderation
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
There are no comments made yet.
  1. Monday, 23 April 2018
  2. PowerServer Web
  3. # Permalink
Alfredo Aldama Accepted Answer Pending Moderation
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.
  1. Sunday, 22 April 2018
  2. PowerServer Web
  3. # 1
  • Page :
  • 1


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