I am developing a NGClient solution. That said I want have users choose either the NgClient browser approach or the NgDesktop approach.
I have been through all the documentation and the webinars relating (that I could find in Servoy).
My main issue at the moment is which method to use in which case:
- Code: Select all
plugins.file.showFileOpenDialog
or
- Code: Select all
plugins.ngdesktopfile.showOpenDialog
I assumed that I could use the application.getApplicationType() but it only returns APPLICATION_TYPES.NG_CLIENT( which I guess is intentional).
My higher level objective is to send an email with a file attached - hence the selection of a file dialog.
Should I be ONLY using the plugins.file.showFileOpenDialog (which I have tested for file selection and it works in both cases)? This usage will popup a dialog where the file is selected and then the user must invoke the upload.
For the NgDesktop the email file attachment is on their own desktop (local file system).
{Apologies for the naivete of the question - still learning...}.
Tom