1. Olivier THEVENIOT
  2. PowerServer Mobile (Obsolete)
  3. Friday, 14 December 2018 15:01 PM UTC

In mobile app, after a download with File Service, how can i open easily the plugin folder or open a file downloaded.

Currently i display a messagebox showing the plugin path. But it's not practical.

Olivier THEVENIOT Accepted Answer Pending Moderation
  1. Wednesday, 19 December 2018 08:54 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 1

Hi Chris,

HyperLinkToURL works with web app only for me. Even with File:/// command.

Can you show me your code please ?

Regards,

Olivier

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 19 December 2018 15:09 PM UTC
Hi Olivier;

I do not have an example currently. However, I have done this before in the past.

Regards ... Chris
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 18 December 2018 17:16 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 2

FYI:  HyperLinkToURL ( ) works for me on various file formats on both iOS and Android devices. You can even embed the File:/// command in the URL to get files displayed from the local PlugIn folder ...

Comment
There are no comments made yet.
Olivier THEVENIOT Accepted Answer Pending Moderation
  1. Tuesday, 18 December 2018 13:40 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 3

Hi ZhaoKai,

Thanks a lot, you've perfectly answer to my question.

Regards,

Olivier

Comment
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 18 December 2018 00:35 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 4

Hi Olivier,

Please try webview.of_loadlocalfile().
https://www.appeon.com/support/documents/appeon_online_help/2017/workarounds_and_api_guide/ch01s04s16.html#d0e25241

In iOS, the following file types can be loaded and displayed: PDF, TXT, XML, Word, Excel, and PPT. Android supports fewer file types as it can only support text types such as TXT, XML, and HTML. Android does not support loading the PDF file, therefore you will not be able to load the local PDF file in Android, but if you put the PDF file on a Web site accessible via Internet, and allow the mobile device to connect with the Web site and Google Docs (docs.google.com), then Appeon can parse the PDF file online via Google Docs (docs.google.com) and then load the PDF file into the Android device, for example, if you put the PDF file online as http://demo.appeon.com/AEM/appeon_mobile_2013R2_datasheet.pdf, then Appeon mobile app will automatically display the online PDF file via URL http://docs.google.com/gview?embedded=true&url=http://demo.appeon.com/AEM/appeon_mobile_2013R2_datasheet.pdf.


On Android, you can try run function.
https://www.appeon.com/support/documents/appeon_online_help/2017/features_help_for_appeon_mobile/ch06s01s01.html#System_Functions_System___Environment_Functions

This function is supported in Android only, and unsupported in iOS.

Run ( string {, windowstate } )

The string parameter can only be the full path of the file name; it cannot be a program name, or a file name without a path. The windowstate parameter is unsupported; the program window will be maximized by default when run in Android.

Supported syntax:

Run ("/storage/emulated/0/android/data/com.appone.mobile/files/626342311/plugin/test.pdf")

This will give control to Android, and Android will decide whether to prompt the user to select a program to open the PDF file (if there is more than one PDF viewer program installed on it), or directly open the PDF file if only one PDF viewer program is detected or a default PDF viewer program is set before. Then the Appeon mobile app will be switched to run in the background, and the PDF viewer program will be running at the foreground.

Unsupported syntax: Run ("Clock", Minimized!)


Regards,
ZhaoKai

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 18 December 2018 17:03 PM UTC
Hi Guys;

FWIW: On my mobile devices, I use the PB iNet object's HyperLinkToURL() method to load PDF, Test, Word, Excel, etc type files. This works great for my Apps in both O/S's!

Regards ... Chris
  1. Helpful
  1. Kai Zhao @Appeon
  2. Wednesday, 19 December 2018 00:26 AM UTC


Hi Chris,



HyperLinkToURL work with file on server but not file on local device.



Regards,

ZhaoKai
  1. Helpful
There are no comments made yet.
Olivier THEVENIOT Accepted Answer Pending Moderation
  1. Monday, 17 December 2018 15:32 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 5

Hi ZhaoKai,

How can i open a file downloaded (pdf, word, excel...) ?

HyperlinkToURL works with web app but not with mobile app.

Regards,

Olivier

Comment
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Monday, 17 December 2018 00:50 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 6

Hi Olivier,

We don't have a feasible workaround for this currently. But we will record it as a requirement in our CR pool, I will get back to you once we have a plan to support this feature.

Regards,
ZhaoKai

Comment
There are no comments made yet.
Olivier THEVENIOT Accepted Answer Pending Moderation
  1. Friday, 14 December 2018 17:42 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 7

Hi Chris,

I'd like to open the plugin folder to see all files have been downloaded.

Regars

Olivier

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 14 December 2018 17:35 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 8

Hi Olivier;

   I guess the first big question in my main is (after the download completes) ... what do you want to do with the file?

Regards ... Chris

Comment
  1. Chris Pollach @Appeon
  2. Friday, 14 December 2018 18:15 PM UTC
Unfortunately, the DirList() command is not supported on the Mobile platform. The Device object class does not have any file related methods and no Cordova objects for file handling either. The only thing close file handling is a an "openalbums " method on the Camera object class - but, I do not think that this would work for non-image files.



Looks like maybe an enhancement request is n order to me at this point.

  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.