1. John Murphy
  2. PowerServer 2020 or older (Obsolete)
  3. Saturday, 21 April 2018 20:57 PM UTC

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 UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # Permalink

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
  1. John Murphy
  2. Friday, 27 April 2018 18:36 PM UTC
Thanks, That was exactly where it was. 

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 1 June 2020 18:28 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi CJ;

   Ignore the code in the Appeon_WorkArounds.PBL. The basic method signature is only provided so that the PB Compile (aka Full Build) will work. However, when you deploy this code to PowerServer, the PS Toolkit will add the necessary jScript to make it actually work at run time (Web and/or Mobile). Just pay attention to each method's argument(s) and return value(s) in your calling PowerScript.

HTH

Regards .. Chris

Comment
  1. CJ Lai
  2. Monday, 1 June 2020 18:37 PM UTC
Thanks, Chris! I'll give it a shot
  1. Helpful
There are no comments made yet.
CJ Lai Accepted Answer Pending Moderation
  1. Monday, 1 June 2020 17:21 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

Is it just me or those functions in the uo appeonfileservice such as of_logonfileserver, of_appeonupload, and of_appeondownload all have no script but a return value? (see attached screenshot)

Or, should those be called ONLY in CloudPro with PowerServer and not in 'regular' Powerbuilder?

I am thinking if there is nothing in the script but a return value, it doesn't matter where and how those functions are called. They only return a value without going through any process.  ¯\_(ツ)_/¯

Attachments (1)
Comment
There are no comments made yet.
Pedro Vivanco Accepted Answer Pending Moderation
  1. Friday, 31 January 2020 22:14 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 3

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 UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 4

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.