Hi all,
My question in short is whether there is a way to access the pictures stored in the phone through NAV using the Camera dotNET variable or any other alternative suggested method.
We have added an action to the location card to be able to capture pictures from the camera directly into it (to a new picture field). For that we use the Camera.RequestPictureAsync function (.NET variable: Microsoft.Dynamics.Nav.Client.Capabilities. CameraProvider.'Microsoft.Dynamics.Nav.ClientExtensions'). This works fine, more or less what described here:
https://community.dynamics.com/nav/b/sauravdhyanimicrosoftdynamicsnav/archive/2016/06/06/microsoft-dynamics-nav-2016-implement-the-camera-in-c-al
However we would like to have another option that allowed the users to select the pictures that are already stored in their phones (instead of taking the picture through the camera). So they take the picture(s) first and later, from the location card, select "Upload Pictures" and browse through the pictures/files in the phone and select them for uploading (ideally several pictures at a time, as we have several "picture" fields).
I have done an experiment using the File Management, openFileDialog function, but it does not work (The operation cannot complete beacuse it uses a feature that is not supported (.NET framework interoperability).
gteFileName := FileMgmt.OpenFileDialog('Select File','',Text50001);
That is expected, it is described in the client limitations:
https://msdn.microsoft.com/en-us/library/hh168959(v=nav.90).aspx#General
Any suggestion would be appreciated.
Thanks,
Tomigs
My question in short is whether there is a way to access the pictures stored in the phone through NAV using the Camera dotNET variable or any other alternative suggested method.
We have added an action to the location card to be able to capture pictures from the camera directly into it (to a new picture field). For that we use the Camera.RequestPictureAsync function (.NET variable: Microsoft.Dynamics.Nav.Client.Capabilities. CameraProvider.'Microsoft.Dynamics.Nav.ClientExtensions'). This works fine, more or less what described here:
https://community.dynamics.com/nav/b/sauravdhyanimicrosoftdynamicsnav/archive/2016/06/06/microsoft-dynamics-nav-2016-implement-the-camera-in-c-al
However we would like to have another option that allowed the users to select the pictures that are already stored in their phones (instead of taking the picture through the camera). So they take the picture(s) first and later, from the location card, select "Upload Pictures" and browse through the pictures/files in the phone and select them for uploading (ideally several pictures at a time, as we have several "picture" fields).
I have done an experiment using the File Management, openFileDialog function, but it does not work (The operation cannot complete beacuse it uses a feature that is not supported (.NET framework interoperability).
gteFileName := FileMgmt.OpenFileDialog('Select File','',Text50001);
That is expected, it is described in the client limitations:
https://msdn.microsoft.com/en-us/library/hh168959(v=nav.90).aspx#General
Any suggestion would be appreciated.
Thanks,
Tomigs