1. mike S
  2. PowerServer
  3. Thursday, 8 September 2022 19:45 PM UTC

PS 2020 had a function to get the cache directory:

AppeonExtFuncs
strRet = funs.of_GetCacheDir()

 

Does PS 2022 use a similar structure, and if so where/how to get it?

Or can i simply use the window temp directory?

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 9 September 2022 15:05 PM UTC
  2. PowerServer
  3. # 1

Hi Mike;

  In my STD Framework, I give the PB App two choices for temporary data, as follows:

Is this what you are looking for in your PB/PC/PS apps?

Regards ... Chris

Comment
  1. mike S
  2. Friday, 9 September 2022 15:11 PM UTC
for C/S I get the windows temporary directory. i also try several since it seems MSFT changes the environment variable every once in a while.



lcx_key.GetContextKeywords ('TMP', ls_values[])

lcx_key.GetContextKeywords ('TEMP', ls_values[])

lcx_key.GetContextKeywords ('USERPROFILE', ls_values[])

lcx_key.GetContextKeywords ('WINDIR', ls_values[])



I just wondered if i can be assured the PS app will have full access to this just like the C/S.

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 8 September 2022 19:53 PM UTC
  2. PowerServer
  3. # 2

Hi Mike;

  PowerClient and PowerServer based App EXE's are downloaded and executed by the CloudAppLauncher. Since they are "native" PB Apps basically, the GetCurrentDirectory() command on App Start-up would be where the App's resources are being cached (if I understand your question properly).  HTH

Regards ... Chris

Comment
  1. mike S
  2. Thursday, 8 September 2022 20:07 PM UTC
i am looking for that, but i'm also looking for a temp directory to store temporary files.



I assume since it is just a windows app, i have read/write access to the temp windows directory? Or does/could windows lock it down because it is an 'internet' app?
  1. Helpful
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.