1. Devang Modi
  2. PowerBuilder
  3. Thursday, 12 April 2018 11:40 AM UTC

Hi Team,

 

We have existing code in PB application for ImportFile from .csv file. Now when we deploy this application in Web, this statement is returnning -5. 

Where should I select those files as part of deployment? in INI Files or External Files ? 
Do we need to handle it differently ? 

 

Thanks & Regards,

Devang Modi.

Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Friday, 13 April 2018 22:17 PM UTC
  2. PowerBuilder
  3. # 1

Hi Devang,

 

You can find what Chris said at page 9 of this document.

 

 

Regards,

Comment
  1. Devang Modi
  2. Tuesday, 17 April 2018 13:44 PM UTC
Thanks a lot Ronald & Chris.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 12 April 2018 13:49 PM UTC
  2. PowerBuilder
  3. # 2

Hi Devang;

  In the PowerServer (PS) Web world, the file could be in the main App's work folder or a sub-folder of that (or whereever you manually deployed it). The path for the Web App's working folder is normally something like ...

  • C:\Users\\AppData\Roaming\appeon\_

  If you have deployed the CSV file as part of the PS Web App's deployment profile, the path to the file would be for example ...

  • C:\Users\\AppData\Roaming\appeon\_\plugin

  To get the Web App's actual working path, use the of_getcachedir ( ) method in the Appeon External Functions object.

Note: The ImportFIle and ImportString commands have a slightly different behaviour in the Web & Mobile world vs native PB. Please read the PS Help for more details.

HTH

Regards ... Chris

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.