|
POST
|
Yea I think that's where I am having my problem...do I create a match table every instance of adding an attachment? Or one table that I reference each time I add an attachment?
... View more
02-05-2020
04:45 AM
|
0
|
1
|
3766
|
|
POST
|
My Service is in ArcGIS Server not portal....can I still do this?
... View more
02-04-2020
01:33 PM
|
0
|
0
|
3766
|
|
POST
|
I would like to take a pic on my phone and store that pic on the phone. Then fire off a GPService that is running a python script that adds the image to a Geodatabase. So I would have to upload the image and add it to a geodatabase. I would have the Features Global ID and Object ID I would have the image I just need to pass the image somehow and Add the Attachment to the gdb
... View more
02-04-2020
01:20 PM
|
0
|
3
|
3766
|
|
POST
|
Not sure if I can do this....I would have to pass the image to the server...not sure how to do that.... Any thoughts would be appreciated.
... View more
02-04-2020
12:43 PM
|
0
|
0
|
3766
|
|
POST
|
I am trying to research how to add attachments via Python. I see something about Generating an Attachment Match Table and then Add Attachment. I eventually want to run this python script via a service Can I pass the service the local parameters to the image, identify the gdb etc from a mobile environment??? Where does this Match table come into play? Would it reside on the mobile device? PC? Server? I am not sure how this all plays together?
... View more
02-04-2020
12:39 PM
|
0
|
11
|
6350
|
|
POST
|
Dang just got it....ahahhaah THANKS Although I like yours better: myFeaturelayer.setRenderer(new SimpleRenderer(pictureMarkerSymbolexample)); Saves me a line..... var pictureMarkerSymbolexample = new PictureMarkerSymbol('http://static.arcgis.com/images/Symbols/NPS/npsPictograph_0061b.png', 51, 51);
var pictureMarkerSymbolRENDERER = new SimpleRenderer(pictureMarkerSymbolexample);
HospitalPoints.setRenderer(pictureMarkerSymbolRENDERER);
... View more
01-13-2020
01:06 PM
|
0
|
0
|
1661
|
|
POST
|
Something like this? var pictureMarkerSymbolexample = new PictureMarkerSymbol('http://www.esri.com/graphics/aexicon.jpg', 51, 51);
myFeaturelayer.setRenderer(pictureMarkerSymbolexample );
map.addLayer(myFeaturelayer);
... View more
01-13-2020
12:14 PM
|
0
|
2
|
1661
|
|
POST
|
I am accessing a Feature service that I have no control over the symbol point. Looking to convert/render those points with a hospital symbol... Is there a list of symbols that I can apply to those points in 3.x javascript api
... View more
01-13-2020
11:51 AM
|
0
|
4
|
1661
|
|
POST
|
I see this for api 4.14 Esri Web Style Symbols (2D) | ArcGIS API for JavaScript 4.14 Is there something like this for 3.x api? I need a few symbols and need help finding out how to find them
... View more
01-10-2020
11:34 AM
|
0
|
5
|
1736
|
|
POST
|
The big problem for me is trying to figure out how ESRI wants the format to look to search its date field. The syntax that is. As I stated above I can get the date format correct for the DefinitionExpression but the same format does NOT work for the GenerateLayerOption... If I can figure out how ESRI wants the date to appear and can get that working I can reverse engineer the date field and variable from there....why does one syntax work for the DefinitionExpression and not work for the GenerateLayerOption?
... View more
01-08-2020
10:04 AM
|
0
|
0
|
570
|
|
POST
|
So like this? whats the "new" for ? var startDate = new Date(2019-03-24); or this var startDate = new Date( ' 2019-03-24 ' );
... View more
01-07-2020
01:54 PM
|
0
|
2
|
570
|
|
POST
|
Yea I have been referencing that blog from another post...still something weird going on... I am successful in creating a definitionExpression on a Feature layer as such: ALL THREE examples below including the DATE greater than and between work just fine... //DATE VARIABLES
var exactdate = "2020-01-04";
var startdate = "2019-12-01";
var enddate = "2019-12-30";
// USER NAME
//featurelayer.definitionExpression = "created_user = 'Esri_Anonymous'";
// AFTER DATE
//featurelayer.definitionExpression = "created_date >= DATE'" + startdate + "'";
// BETWEEN DATES
//featurelayer.definitionExpression = "created_date BETWEEN DATE'" + startdate + "' AND DATE '" + enddate + "' "; I try and use this same logic and syntax to create a GenerateLayerOption and I get varied results This example works just fine....it grabs only the rescords with the created_user = Esri_Anonymous var userWhereClause = "created_user = 'Esri_Anonymous' "; BUT when I try and use the DATEs it blows up and dosent work properly... IT works in the DefinitionExpression but the same syntax on the same dataset does not work????? var userWhereClause = "created_date BETWEEN DATE'" + startdate + "' AND DATE '" + enddate + "' "; 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);
// QUERY DATES
//DATE VARIABLES
var exactdate = "2020-01-04";
var startdate = "2019-12-01";
var enddate = "2019-12-30";
// WHERE CLAUSE
//var userWhereClause = "created_user = 'Esri_Anonymous' ";
//var userWhereClause = "created_date BETWEEN DATE'" + startdate + "' AND DATE '" + enddate + "' ";
// add a new GenerateLayerOption to array for use in the GenerateGeodatabaseParameters
var layerOption = ArcGISRuntimeEnvironment.createObject("GenerateLayerOption", {layerId: idInfos[i].infoId, whereClause: userWhereClause});
generateLayerOptions.push(layerOption);
generateParameters.layerOptions = generateLayerOptions;
}
}
}
... View more
01-07-2020
07:16 AM
|
0
|
4
|
2269
|
|
POST
|
Maybe someone can help with the where clause... This seems to work var userWhereClause = "created_user = 'Esri_Anonymous' ";
BUT I cannot get the date ranges queries to work....thoughts on syntax? //DATE VARIABLES var startdate = "2020-1-03"; var enddate = "2020-1-20"; // WHERE CLAUSE //var userWhereClause = "created_date BETWEEN DATE '" + startdate + "' AND DATE '" + enddate + "' "; // var userWhereClause = "created_date >= DATE ' " + startdate + " ' ";
... View more
01-06-2020
01:43 PM
|
0
|
6
|
2269
|
|
POST
|
I think i got it with this testing now... var layerOption = ArcGISRuntimeEnvironment.createObject("GenerateLayerOption",
{layerId: idInfos[i].infoId, whereClause: "created_user = 'law' "});
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, whereClause: "created_user = 'law' "});
generateLayerOptions.push(layerOption);
generateParameters.layerOptions = generateLayerOptions;
}
}
}
... View more
01-06-2020
01:14 PM
|
0
|
7
|
2269
|
| 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
|