|
POST
|
OK I see in the example here that they are referencing the layerOptions....was was leaning towards this potentially being a solution.... Although not sure how to proceed....would this be the area that I implement that....and what would be the syntax if I work it in below is this done before the download occurs? how would I add a date range and created_user = 'user1' would it be something like this? layerOption2 ???? Again I am using the base template in appstudio for GenerateGeodatabase onLoadStatusChanged: {
if (loadStatus === Enums.LoadStatusLoaded) {
var idInfos = featureServiceInfo.layerInfos;
for (var i = 0; i < idInfos.length; i++) {
// add the layer to the map
var featureLayerUrl = featureServiceInfo.url + "/" + idInfos[i].infoId;
var serviceFeatureTable = ArcGISRuntimeEnvironment.createObject("ServiceFeatureTable", {url: featureLayerUrl});
var featureLayer = ArcGISRuntimeEnvironment.createObject("FeatureLayer", {featureTable: serviceFeatureTable});
map.operationalLayers.append(featureLayer);
// add a new GenerateLayerOption to array for use in the GenerateGeodatabaseParameters
var layerOption = ArcGISRuntimeEnvironment.createObject("GenerateLayerOption", {layerId: idInfos[i].infoId});
var layerOption2 = ArcGISRuntimeEnvironment.createObject("GenerateLayerOption", {whereClause: "created_user = 'law' "});
generateLayerOptions.push(layerOption);
generateLayerOptions.push(layerOption2);
generateParameters.layerOptions = generateLayerOptions;
}
}
}
... View more
01-06-2020
12:34 PM
|
0
|
8
|
2270
|
|
POST
|
Thanks for your thoughts... I can set up a definition expression after the fact but would like to include the limitation of records before the download occurs. That make sense? As the dataset gets larger I want to be able to limit the records downloaded by date range and user. Then do the download.....
... View more
01-06-2020
10:32 AM
|
0
|
10
|
2270
|
|
POST
|
I am going to use the Generate Geodatabase Example in App Studio.
... View more
01-06-2020
07:02 AM
|
0
|
0
|
1837
|
|
POST
|
I am using the template example in appstudio to test downloading a geodatabase. Its working as it seems it should but I have a question that maybe someone can help answer In the example it is setting up some Geodatabase Parameters. One of these is the Bounding box that the user specifies and as such all features within this box are downloaded to the Geodatabase. My question. Can I add w where clause anywhere in there? // create the generate geodatabase parameters
GenerateGeodatabaseParameters {
id: generateParameters
extent: generateExtent
outSpatialReference: SpatialReference.createWebMercator()
returnAttachments: false
} I tried this but getting errors... QueryParameters {
id: params
whereClause: "created_user = 'Law'"
}
// create the generate geodatabase parameters
GenerateGeodatabaseParameters {
id: generateParameters
extent: generateExtent
outSpatialReference: SpatialReference.createWebMercator()
returnAttachments: false
QueryParameters: params
}
... View more
01-06-2020
06:18 AM
|
0
|
12
|
3075
|
|
POST
|
If I could find examples on these two areas of interest I think I would be good to go. This is how I am envisioning this: 1. User clicks a button to download/sync a. If there it downloads and syncs new data b. if not there it creates a geodatabase file and then downloads and syncs 2. Repeat each time button is clicked.
... View more
01-03-2020
10:27 AM
|
0
|
0
|
2304
|
|
POST
|
I guess my question is am I syncing or simply removing and adding all the points to the geodatabase each time. I assume this does not bring down the attributes? Trying to wrap my head around this....any examples?
... View more
01-03-2020
09:32 AM
|
0
|
0
|
2304
|
|
POST
|
OK it appears that you can (with a lite license) create and download download updates.... I see there is a "Generate Geodatabase" from the samples in AppStudio I can populate from Service as stated above but this is ONLY temporary and gets removed if you leave the page. I can use the Generate Geodatabase as mentioned above but creates a new geodatabase every time you hit the button...dosent look like that option works for syncing to the same geodatabase. Does anyone know of an example out there that looks for a Geodatabase, if not creates one, and then allows the user to store this geodatabase when they leave the page or app. But also allows then to click a button and update/sync any new features that were created since they last downloaded it. (NOT creating a new geodatabase each time?) Generate a mobile geodatabase from a sync-enabled feature service Download updates from a sync-enabled feature services to a mobile geodatabase
... View more
01-03-2020
09:28 AM
|
0
|
1
|
2304
|
|
POST
|
Does this require additional licencing above a basic licence?....I don't have 40k laying around to simply populate a geodatabase on a mobile device.
... View more
01-03-2020
06:42 AM
|
0
|
4
|
2304
|
|
POST
|
I am also looking at this snip of code and am thinking that I might be able to go get a file from my AGOL account? All I am after is grabbing the newest file from the server and replacing the one on the phone. a simply .geodatabase file Not sure how to proceed with this ....anyone have any thoughts? Again I am simply trying to allow a user to download and replace a .geodatabase file on their mobile device. Component{
id: networkRequestComponent
NetworkRequest{
id: networkRequest
property var name;
property var callback;
method: "GET"
ignoreSslErrors: true
onReadyStateChanged: {
if (readyState === NetworkRequest.DONE ){
if(errorCode != 0){
fileFolder.removeFile(networkRequest.name);
loadStatus = 2;
} else {
loadStatus = 0;
if(hasOfflineMap()) fileFolder.removeFile(itemId);
fileFolder.renameFile(name, itemName);
hasOfflineMap();
callback();
}
}
}
function downloadFile(name, url, path, callback){
networkRequest.name = name;
networkRequest.url = url;
networkRequest.responsePath = path;
networkRequest.callback = callback;
networkRequest.send();
loadStatus = 1;
}
}
}
... View more
01-03-2020
06:27 AM
|
0
|
1
|
1837
|
|
POST
|
I am looking at this example: QFtp Class | Qt 4.8 It shows it connecting to a FTP site url and then I think Changes directory to "qt"? then looks for file "INSTALL"? My file would always be the same name. Just want a button to: 1. Go to the FTP site 2. Find the file 3. Download it to a Specific location 4. close First time doing this and quite confused. Where do I specify credentials? This has to be secured.
... View more
01-02-2020
10:59 AM
|
0
|
2
|
1837
|
|
POST
|
I am looking for a simple example of how to connect to and download a file using QML/Qt anyone have any examples or thoughts?
... View more
01-02-2020
10:28 AM
|
0
|
3
|
2004
|
|
POST
|
OK great...yea wanted to know if it follow standard SQL....looks like it does....Cheers
... View more
12-27-2019
09:32 AM
|
0
|
0
|
1829
|
|
POST
|
From my app i can run the below code and it reads my service and puts the points in m my map. But if I leave the page and come back they are gone as they are temporary featureTable0.populateFromService(params, true, ["*"]); I can create a geodatabase file, put that on the mobile device and reference that in my map and that works fine as well... My question is how do I read the data from a service and write those records to a .geodatabase file that is on the mobile device. I am doing this outside the sync functionality that comes in examples. 1. Delete all records in the Geodatabase File 2. Query the Feature Service 3. Write those new records with geometry into my Geodatabase File. Any ideas?
... View more
12-27-2019
08:52 AM
|
0
|
7
|
2401
|
|
POST
|
I am trying this but no luck This is trying to query the created_date that is created automatically var startdate = "12/18/2019 1:30:10 AM"; Points.definitionExpression = "created_date >= " + " ' " + startdate + " ' "; Does a .geodatabase file follow SQL standards? preferably I would simply like to query for a specific year.... i.e. show me the records for 2018 or 2019
... View more
12-27-2019
06:57 AM
|
0
|
2
|
1829
|
|
POST
|
Does this look correct? Seems like I could make this look nicer but this seems to work. "created_user = " + "'" + credentialUsersNameNew + "'" + " AND PublicPrivate = 'public'";
Last question....any idea how to query between specific dates?
... View more
12-26-2019
12:20 PM
|
0
|
3
|
1829
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2018 11:09 AM | |
| 1 | 09-10-2018 06:26 AM | |
| 1 | 09-15-2022 11:02 AM | |
| 1 | 05-21-2021 07:35 AM | |
| 1 | 08-09-2022 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-19-2022
09:23 PM
|