1. Andrew Davis
  2. PowerServer 2020 or older (Obsolete)
  3. Monday, 5 October 2020 18:36 PM UTC

Hi

Can anyone help, I am sending a pdf via email from a powerbuilder app, this all works fine as i create a temp directory within the app directory - create the file - attach it - send and then delete -all good

however when i run the powerserver web - this does not work as the app directory does not exist. 

Can someone tell me where i should save the file so i can then attach - is there a recommended path etc

 

thanks in advance

Andrew

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 5 October 2020 19:08 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # Permalink

Hi Andrew;

   You should create the PDF where the Web Browser allows the Web App to save files in it's temporary work area. You can get this information by using the "appeonextfuncs" object's "of_getcachedir()" command. That object class is located in the "Appeon_Workarounds" PBL.

   Have a look in the PS "Help" for more information on this folder and also what entity(ies) are stored in sub-folders of the parent directory.

HTH

Regards ... Chris

Comment
  1. Andrew Davis
  2. Wednesday, 7 October 2020 16:40 PM UTC
thanks again



your help is always appreciated
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 7 October 2020 16:52 PM UTC
You are most welcome Andrew!
  1. Helpful
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Friday, 9 October 2020 00:18 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi Andrew,

You can also use the function appeongetcachedir() directly to get the cache directory that is used by the current application, appeongetcachedir() is call appeonextfuncs.of_getcachedir().
https://docs.appeon.com/ps2020/workarounds_and_api_guide/Appeon_Client_Functions_wag.html#AppeonGetCacheDir_function

Regards,
ZhaoKai

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.