|
POST
|
Ian, I am not too familiar with the GDAL library, but in general, You would be able to add custom javascript libraries (non-DOM oriented) such momentjs, etc by including the source code of the javascript library to the project folder, and still be able to run your app inside the AppStudio Player then make the build of your project using Cloud Make, which are few of the benefits of using AppStudio for ArcGIS to develop your apps. You would be able to add C++ custom libraries that are supported in Qt, but then you would need to set up your own Local Make environment in your machine(s) to run and build the app. See this doc on how to set up your own Local Make machine(s), https://doc.arcgis.com/en/appstudio/extend-apps/installdevtoolslocalmake.htm I hope this is helpful, Erwin.
... View more
05-28-2019
02:58 PM
|
1
|
0
|
638
|
|
POST
|
Looping in ArcGIS Runtime SDK for Qt to see anyone on this group could help answer this question.
... View more
05-28-2019
09:19 AM
|
0
|
0
|
1046
|
|
POST
|
Jay, you can run this inside the AppStudio Player on the mobile phone. I have sent you a direct message and email, I think we should consider taking this conversation offline (and possibly continue working with Esri Technical Support) and then report the finding in this thread.
... View more
05-21-2019
11:28 AM
|
0
|
1
|
552
|
|
POST
|
console log message can be accessed using the AppStudio Console window if you are running the app inside the AppStudio Player. This is just an example, my point is we just want to see the path of the file inside the SD card. This is weird that it is not showing on your end, I tested this on my end using the AppStudio Player and it is working, and it is showing the path of the file inside the SD card.
... View more
05-21-2019
10:38 AM
|
0
|
3
|
1398
|
|
POST
|
Jay, the text does not matter, it can printed in the console log. The idea is to show the path when we select a file that is inside the SD card and see the path given.
... View more
05-21-2019
09:15 AM
|
0
|
5
|
1398
|
|
POST
|
I found another possible “way” to find the path to the external storage of the Android device. It is by using the DocumentDialog plugin sample code posted below. Using this sample if you click on the button, it will open a “document dialog”, please navigate to the SD card, and then choose any file in the SD card. It will print that path to the file in the SD card, and let's see what that path says on your phone. I tried this on SM-G960U1 running Android 9. The path returns something like this, "/data/user/0/....." import QtQuick 2.7
import QtQuick.Controls 2.1
import ArcGIS.AppFramework 1.0
import ArcGIS.AppFramework.Platform 1.0
App {
id: app
width: 400
height: 640
Text {
id: fileProperties
anchors.centerIn: parent
text: "Default"
font.pointSize: 12
}
Button {
text: "document"
anchors.top: dbgText.bottom
onClicked: {
console.log("supported ", doc.supported)
if (doc.supported)
{
doc.open()
}
else
{
dbgText.text = "Not Supported"
}
}
}
Component.onCompleted: {
dbgText.text = app.info.title
}
DocumentDialog {
id: doc
onAccepted: {
console.log("***FILE SELECTED***", filePath)
file.path = filePath
fileInfo.filePath = filePath
process()
}
onRejected: {
console.log("Cancelled by user")
}
}
FileInfo {
id: fileInfo
}
File {
id: file
}
function process() {
var fileDetails = {
exists : {
FILE : file.exists,
FILEINFO : {
isFile : fileInfo.isFile,
path : fileInfo.filePath,
url : fileInfo.url,
lastModified : fileInfo.lastModified,
isReadable : fileInfo.isReadable,
isWritable: fileInfo.isWritable,
size: fileInfo.size + " bytes"
}
}
}
fileProperties.text = JSON.stringify(fileDetails, undefined, 2)
}
}
... View more
05-20-2019
01:45 PM
|
0
|
7
|
1398
|
|
POST
|
This is weird. The path seems good, what is the make and model of the phone you are testing? OS version?
... View more
05-20-2019
09:23 AM
|
0
|
11
|
1398
|
|
POST
|
Jay, The path to external storage card on every device and platform can be varied. The best way to get the path to the external storage card (if present, I am assuming Android?) is by using the StorageInfo plugin from AppStudio AppFramework. For example like this, StorageInfo {
id: storageInfo
}
Component.onCompleted: {
var path, fs, dev;
var mountedVols = storageInfo.mountedVolumes;
for (var i = 0; i < mountedVols.length; i++) {
fs = mountedVols[i].fileSystemType;
console.log("file system type: ", fs);
dev = mountedVols[i].device
console.log("device: ", dev);
path = mountedVols[i].path;
console.log("path: ", path);
}
} The path to the storage card normally starts with "/storage/..." or "/mnt/... Thank you, Erwin
... View more
05-16-2019
03:55 PM
|
1
|
14
|
2462
|
|
POST
|
Patric, What AppStudio app or template are you using? What version of AppStudio Desktop (Cloud Make) are you using? Technically, if you use Bluetooth related functionality and enable the Bluetooth capability in the setting or appinfo.json file, Cloud Make should pick this up, then add the necessary String including NSBluetoothPeripheralUsageDescription in the .plist file. Thank you, Erwin
... View more
05-15-2019
04:56 PM
|
0
|
1
|
2094
|
|
POST
|
Harris, The error when looking at the collected points in ArcGIS Online MapViewer is really weird, it is technically showing the features in the feature layer, just like any other feature layers. Do you see a similar issue with other feature layers? To show the points that other users have taken can be done by changing the Webmap id in the Setting Property of the Quick Report app, but first, you need to create a new Webmap that contains the feature layer(s) that are used in the point collection workflow. I hope this is helpful, Erwin
... View more
05-15-2019
03:48 PM
|
0
|
0
|
872
|
|
POST
|
Jay, Yes, at this point, it is best to work with Esri Technical Support on this issue, so that we can troubleshoot to see what is missing. Erwin
... View more
05-14-2019
02:19 PM
|
0
|
7
|
1939
|
|
POST
|
That's okay. On that section of the code, you can console log using Javascript console operation. var varWMA = selectedFeature.attributes.attributeValue("WMA");
console.log(typeof varWMA );
... View more
05-14-2019
01:42 PM
|
0
|
1
|
2620
|
|
POST
|
The "data" should be stored in the feature layer that is set in the setting page of the Quick Report template.
... View more
05-14-2019
12:58 PM
|
1
|
0
|
960
|
|
POST
|
I have a suspicion that the value returned from attribute "WMA" is null or undefined. Can you try console logging what value and what type of object varWMA is? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof Also, at this point, it may be better to get help from Esri Technical Support, as we will be able to help you troubleshoot and reproduce the issue for you via that channel.
... View more
05-14-2019
12:34 PM
|
0
|
13
|
2620
|
|
POST
|
I see the textbox but it is not populating the value of the WMA from the attribute value. The values on the ComboBox are coming from the model property which is "featAttributes", that is currently contains the domain value from damageType attributes
... View more
05-14-2019
09:58 AM
|
0
|
15
|
2620
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-07-2020 01:26 PM | |
| 1 | 10-27-2020 10:33 AM | |
| 1 | 12-06-2021 10:36 AM | |
| 1 | 10-01-2021 12:53 PM | |
| 1 | 08-24-2021 06:15 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-08-2021
03:08 PM
|