Hi David
Can you clarify how the data is to be saved and where you are saving it to?
The standard SSA editing functionality, which uses the XML Edit Templates described here
https://support.pb.com/help/analyst/2018.2/admin_guide/en/appendix/appendixE.html, would not support customisation or the ability to store photos in a field (as text or blobs)
The extensibility sample Monica has, implements a custom template (written not generated from the template designer) which calls a simple Spectrum dataflow, exposed as a REST service, to save the image. On the server side the dataflow saves the image to the file system and the populates the path of the image into a TAB file. The path is accessible to the web, so when reading the image, the path is used to show the image in the form of the custom template.
- The user flow in SSA would be as follows
- User adds a new record using the SSA functionality to add a new record
- User then clicks the record to see the custom template
- User can populate the fields and add a photo to the form (browse or using device camera on mobile devices)
- The update button then saves the updated data using the dataflow as described above
We can share this with you if it helps?
Alternatively, if you need to save the image itself in text form (such as base 64) into the data table itself, then you could presumably convert that image to base 64 in the custom template (using typescript/JavaScript) and then save that back to your data source? You would need the custom template to convert and show the base 64 as an image again, but it should be feasible to do this.
------------------------------
Mustafa Ismail
Product Architect
Pitney Bowes
London UK
------------------------------
Original Message:
Sent: 10-18-2019 01:25
From: David Murphy
Subject: Take and Save Photos with SSA Mobile Device
Hello all,
I have recently created an SSA mobile solution for staff to add properties and/or edit attributes during field inspections using a tablet or mobile phone. Previous we have used Trimble Nomad devices with GBM Mobile software which allowed users to also take photos which were associated via attributes with the dataset objects. Is there a way this functionality can be emulated in SSA mobile editing?
------------------------------
David Murphy
GIS Officer
Swan Hill Rural City Council
Swan Hill
------------------------------