1. Simone Olianti
  2. PowerServer Mobile (Obsolete)
  3. Tuesday, 9 June 2020 10:35 AM UTC

Hello, is there a simple way to emulate a getfileopenname on a mobile application? in particular i would like to show a system dialog box to let the user select a local image file (for example a screenshot) and get in return the path where it is located.

tia,

   simone

Accepted Answer
Simone Olianti Accepted Answer Pending Moderation
  1. Friday, 12 June 2020 11:11 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # Permalink

just in case someone else need it this is how i solved this case:

found out the useful "of_openalbums" method of the object eon_mobile_cameraex which opens a dialog to let the user select a local image of the android device and returns the full path

eon_mobile_cameraex  leon_camera        
leon_camera = create eon_mobile_cameraex
eon_camera.of_openalbums( is_fullname )
destroy leon_camera
           
   

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 9 June 2020 18:07 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 1

Hi Simone;

   Unfortunately at this time, PowerServer Mobile and thus AWS, do not support mobile App "file" functionality like you have in native PB Apps.

  The only way I know of at the moment to achieve this would be to use a Cordova plug-in (which PS does support). For example:

https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file

  Note that this Cordova plug-in example above is not built-in to AWS, so you would need to use the "Solution 2" approach as described in your PS Help (just search on the keyword "Cordova").

HTH

Regards ... Chris

Comment
  1. Simone Olianti
  2. Wednesday, 10 June 2020 06:38 AM UTC
thank you Chris, will have a look at it
  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.