Hi Esri Team!
I'm trying to customize a quick report application to have users be able to pick or take multiple photos inside of the quick report. I am trying to do this inside of AppStudio for Desktop in QML through Qt Creator. Is there any sample QML code that I may be able to look at to design this functionality into my quick report? Please let me know by contacting me back at firstname.lastname@example.org or by responding here. It would benefit me tremendously! Sathya Prasad or if you know of anyone else that would be more qualified to help.
I am currently re-writing quick report app w.r.t UI/UX and feature functionality. One of the new functionality is support for multiple photos. Timeline would be mid June, if you can wait I would recommend. If you cannot wait, then you will have to look at two places in code:
1. Add UI and functionality to select more than one photo in AddPhotoPage.qml.
2. IN QuickReportApp.qml inside of the "addAttachments" function currently it only looks for one file. After the changes for Step 1. you will have an array of file urls, so in this function loop though and add attachment for each photo.
Hi Sathya Prasad,
Thank you very much for your response. This is not of urgent need currently and will be able to wait until mid-June for the release. After it is released will I have to go back and recreate my quick report? or is it just a process of updating my app in the AppStudio website? Please let me know.
Hi Sathya Prasad. I am checking back in to see what the status was on the multiple photos functionality of quick report? Please let me know if it has been released and how I can go about implementing it into my current quick report application. I would like to do that as soon as possible as we expect a high volume of users for this app during the next 3-4 months. I look forward to hearing from you.
Hi Sathya Prasad,
I was just wondering if there was an update to implementing the multiple photos option in quick report apps? Above you mentioned mid June but I noticed that it was not implemented in the AppStudio update. Please let me know how this is going and if there is a place I can follow updates on the status of this implementation. Thank you.
Dustin Baumbach, here is some code that I have used to implement multiple photo capture.
import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtMultimedia 5.5
import ArcGIS.AppFramework 1.0
import ArcGIS.AppFramework.Controls 1.0
property var filesArray: fileFolder.fileNames()
filesArray = fileFolder.fileNames();
var d = new Date();
var formattedPhotoName = app.photoPrefix + "_" + d.getHours() + d.getMinutes() + d.getSeconds() + ".jpg"
focus : visible // to receive focus and capture key events when visible
radius: width * 0.5
width: parent.width * 0.75
camera.imageCapture.captureToLocation( fileFolder.path )
text: fileFolder.fileNames().length == 0 ? "no images yet" : filesArray.length
Let me know how yo go.
I put together some code to get the add multiple images or files as attachments to work with the quick report template. I am in a process of doing some final testing. I'll upload it here sometime early next week.