POST
|
Thank you so much, this was in fact exactly the issue.
... View more
06-14-2023
09:10 AM
|
0
|
0
|
324
|
POST
|
I've realized that users cannot select any date on Saturday. If we set up a default date in the widget, we can see Saturdays: However, we have it set to ask the user for values for the date. When they select a date, they see this: This is a pretty significant issue for us, as our users need to be able to select the last day of the month to get accurate results. Is there something here I'm missing?
... View more
06-13-2023
12:59 PM
|
0
|
2
|
340
|
POST
|
Unfortunately this doesn't address the issue. This is how to create a simple hyperlink based on the feature, true. But I need to look for all records related to this one and grab each of them; for some features that maybe 1 record, for some it may be 6. And then for each and every one of those records, dynamically create a separate link in the popup. So I can't go in and hard code each field name in the popup. For now, we've simply created one link that actually references a Flask app we've built on another server, to serve up a table with all the matching records from the table, with hyperlinks.
... View more
05-12-2023
11:35 AM
|
0
|
1
|
286
|
POST
|
I have a feature layer of lines. There is a related table with a 1:M relationship; one line can have multiple records. Each related record has a drawing number as an attribute; I can build a URL from this attribute. (So, "http://www.domain.com/property=drawingnumber") What I'm trying to do is create a line in the popup for each record that is a hyperlink. I have been able to create an expression that adds a new line for each record, and I can get those urls in the popup as text... but not as hyperlinks. The only way I can seem to do a hyperlink is by creating individual expressions per record, which isn't feasible. If I could get the URL paths in the attribute table to be clickable, that would be an acceptable workaround, but so far I can only see it as plaintext. Does anyone have any suggestions?? Thank you!
... View more
03-06-2023
02:21 PM
|
0
|
3
|
391
|
POST
|
I have a feature layer of lines. There is a related table with a 1:M relationship; one line can have multiple records. Each related record has a drawing number as an attribute; I can build a URL from this attribute. (So, "http://www.domain.com/property=drawingnumber") What I'm trying to do is create a line in the popup for each record that is a hyperlink. I have been able to create an expression that adds a new line for each record, and I can get those urls in the popup as text... but not as hyperlinks. The only way I can seem to do a hyperlink is by creating individual expressions per record, which isn't feasible. If I could get the URL paths in the attribute table to be clickable, that would be an acceptable workaround, but so far I can only see it as plaintext. Does anyone have any suggestions?? Thank you!
... View more
03-06-2023
02:20 PM
|
0
|
0
|
230
|
POST
|
I have a layer of assets. I want to be able to filter by the status of the asset and it's due date, OR between a user-selected date range. So, I want it to automatically show all assets that aren't complete and were due before today, and ALSO all assets with a due date between a user selected date range. Basically, this sql query: (IsComplete = "N" AND DueDate < today) OR DueDate is between date1 and date2 I can't seem to make this work. When I create a set with the first (set to match all expressions) and then add the last date expression, it gives everything the AND operator. It seems that everything must be one or the other, i can't mix and match operators. Is there any way to make this work?
... View more
02-05-2023
02:46 PM
|
0
|
0
|
301
|
POST
|
We're able to log in to our portal successfully via script, no problem there. The error we get is once we attempt to run the stat tool, and it's the super generic "arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid." We presume this is because we're inputting a service and it expects a table/feature class. I know we could export the data and run, but we're trying to figure out how to export the service. In your example, you're using the item ID from the portal. That's an option, but is there any way to do this using the rest endpoint url instead, as in my code example above? Doing it by item ID would presumable export the entire service, which is more than we need; we only want one layer (in this case, layer id 3) to be exported. Thanks!
... View more
12-31-2019
07:59 AM
|
0
|
1
|
1094
|
POST
|
I'm not quite sure where this should go, so cross posting. We have an on premise portal with a feature service published. We're trying to write a python script that will run a geoprocessing tool against this service. Right now it's extremely simple; authenticate to portal, look at the service, and run arcpy.Statistics_analysis against it. All we want to do is get an output table of statistics. Now, if I do this in python directly against the database, no problems. But when running it against the service... it SEES the service, but it fails on the analysis. Can anyone help?? def run(self): self._sign_into_portal() #self._build_scratch_fgdb() lines = arcpy.SearchCursor( "https://gisgas03dv.devl.scana.com/arcgis/rest/services/DENC/Yanceyville_UN/FeatureServer/3" ) for line in lines: print(line.getValue("OBJECTID")) stats_table = "C:/temp/services_test.gdb/stats_out" # stats_table = self.config.get("scratch_fgdb_path") # print(stats_table) stat = [["st_length", "SUM"]] arcpy.Statistics_analysis(lines, stats_table, stat)
... View more
12-16-2019
07:55 AM
|
0
|
5
|
1397
|
POST
|
I'm not quite sure where this should go, so cross posting. We have an on premise portal with a feature service published. We're trying to write a python script that will run a geoprocessing tool against this service. Right now it's extremely simple; authenticate to portal, look at the service, and run arcpy.Statistics_analysis against it. All we want to do is get an output table of statistics. Now, if I do this in python directly against the database, no problems. But when running it against the service... it SEES the service, but it fails on the analysis. Can anyone help?? def run(self): self._sign_into_portal() #self._build_scratch_fgdb() lines = arcpy.SearchCursor( "https://gisgas03dv.devl.scana.com/arcgis/rest/services/DENC/Yanceyville_UN/FeatureServer/3" ) for line in lines: print(line.getValue("OBJECTID")) stats_table = "C:/temp/services_test.gdb/stats_out" # stats_table = self.config.get("scratch_fgdb_path") # print(stats_table) stat = [["st_length", "SUM"]] arcpy.Statistics_analysis(lines, stats_table, stat)
... View more
12-16-2019
07:55 AM
|
0
|
0
|
260
|
POST
|
I'm not quite sure where this should go, so cross posting. We have an on premise portal with a feature service published. We're trying to write a python script that will run a geoprocessing tool against this service. Right now it's extremely simple; authenticate to portal, look at the service, and run arcpy.Statistics_analysis against it. All we want to do is get an output table of statistics. Now, if I do this in python directly against the database, no problems. But when running it against the service... it SEES the service, but it fails on the analysis. Can anyone help?? def run(self): self._sign_into_portal() #self._build_scratch_fgdb() lines = arcpy.SearchCursor( "https://servername/arcgis/rest/services/DENC/Yanceyville_UN/FeatureServer/3" ) for line in lines: print(line.getValue("OBJECTID")) stats_table = "C:/temp/services_test.gdb/stats_out" stat = [["st_length", "SUM"]] arcpy.Statistics_analysis(lines, stats_table, stat)
... View more
12-16-2019
07:54 AM
|
0
|
0
|
176
|
POST
|
In Pro, I can add a group subtype layer. If I publish this to portal as a map image layer, it honors it and I have no issues. If i publish as a feature service however, it publishes successfully - but that group subtype layer simply doesn't exist. Layer id's will jump from 3 to 15 and skip over that group subtype layer. If I try to publish as a webmap instead, it says it doesn't support that data type, error 24078. Is publishing feature services with group subtype layers simply not allowed, or am I missing something?
... View more
10-29-2019
07:06 AM
|
0
|
1
|
343
|
POST
|
I've found and tried with that example. However, the issue is that the services and such are secured. Portal is federated. When I try to access the webmap using just the esriConfig.portalUrl, I get a 401 error saying unauthorized; i'm assuming i need to somehow generate and use a token for this, but I can find zero examples. To be clear, I only get that 401 error when I try to access it in code; if i simply put the url into my browser directly, it allows me to access it.
... View more
07-01-2019
01:02 PM
|
0
|
1
|
451
|
POST
|
I'm trying to access a webmap from our on-premise portal in a javascript app. Unfortunately, all of the examples in esri documentation are to access ArcGIS Online data. They say "You can also do this with onpremise portals" but there's exactly zero documentation or examples on how to do so. Does anyone have any code examples? I'm tearing my hair out trying to figure it out, but nothing I'm trying is working.
... View more
07-01-2019
11:51 AM
|
0
|
3
|
568
|
POST
|
I am currently pulling in a map service as a MapImageLayer. I'm using the IdentifyTask to display results in a popup; however, I'm having a few issues: I've noticed that if I have any custom actions in the popup, it no longer shows that action neatly next to the "Zoom To" action as though there's not room. It hides it behind the "..." menu. In order to have the custom actions shown directly in the popup and not have to click through, I have to set overwriteActions to true and get rid of "Zoom To" entirely. Is there an option somewhere i can change, so that both can show? When using the popup to show results of the identify task, it won't show the feature (list) menu. There are still arrows so that I can cycle through results, but there's no longer the hamburger menu style button to show me a list of features to choose from. If i set featureMenuOpen to true in the popup template, it IS there when I first click on something; but once I choose a feature, it disappears and I'm back to arrows only. Any ideas on why that is, or how to re-enable the feature menu? For some of the layers in my MapImageService, when I click on the feature, it won't show a popup for it... unless i zoom in very, very close. The layer itself shows up when I'm zoomed out, but when I click, it returns nothing. One in particular is a polygon layer (parcels) and I can click in the middle of a very large one, so pixel tolerance shouldn't be an issue. However, I still have to zoom in very close in order to get a popup for it. Any suggestions on how to get popups to show for these without having to zoom in? It doesn't matter if I have the layer options set to "visible" or "all", the behavior remains the same. Relevant code snippets: mapView = new MapView({ container: app.containerMap, map: map, center: app.center, zoom: 9, padding: app.viewPadding, popup: { highlightEnabled: true, featureNavigationEnabled : true } }); var tLayer= new MapImageLayer({ url: "https://server/arcgis/rest/services/tViewerr/tLayers/MapServer" }); map.add(tLayer) mapView.on("click", executeIdentifyTask); function executeIdentifyTask(event){ identifyURL = tLayer.url; identifyTask = new IdentifyTask(identifyURL); identifyParams = new IdentifyParameters(); var identifyActions = []; identifyParams.tolerance = 15; identifyParams.returnGeometry = true; identifyParams.layerIds = [2,3,4,5,6]; identifyParams.geometry = event.mapPoint; identifyParams.mapExtent = mapView.extent; identifyTask.execute(identifyParams).then(function(response){ var results = response.results; return results.map(function(result){ var feature = result.feature; identifyActions = createIdentifyActions(result); var layerName = result.layerName; feature.popupTemplate = { title: layerName, content: "{*}", overwriteActions: true, actions: identifyActions }; return feature; }); }).then(showPopup); function showPopup(response){ if (response.length > 0) { mapView.popup.open({ features: response, location: event.mapPoint }); mapView.popup.on("trigger-action", triggerPopupActions) } } Thank you!
... View more
03-09-2019
08:09 PM
|
1
|
2
|
771
|
POST
|
Since the feature table widget isn't ready yet, I'm using dgrid to display results of a query, as show in the "highlight features by geometry" example. However it only works when I do a unique search. If I do a search and it brings back feature 1, 2 and 3, then the grid shows. I can do a second search, and it bring back features 3, 4 and 5, and the grid shows. But if I redo the first search, and it gets the same result set - features 1, 2 and 3 - then it fails, and gives the error "TypeError: Cannot read propery 'element' of undefined, at _StoreMixin.js:2; which implies the error has to do with the datastore. I've tried resetting the datastore, setting it to a blank array then back to the result set, etc; nothing works. Does anyone have any ideas? Code below: function populateResultGrid(resultArray){ document.getElementById("gridDisplay").style.display = "block"; document.getElementById("featureCount").innerHTML = "<b>Showing attributes for " + resultArray.length + " features</b>" require([ "dgrid/OnDemandGrid", "dojo/store/Memory", "dstore/legacy/StoreAdapter", "dgrid/Selection" ], function(OnDemandGrid, Memory, StoreAdapter, Selection){ var dataStore = new StoreAdapter({ objectStore: new Memory({ idProperty: "AssetID" }) }); dataStore.objectStore.data = resultArray; var grid = new(OnDemandGrid.createSubclass([]))({ columns: getColumns() }, "grid") grid.set("collection", dataStore); grid.refresh(); }) }
... View more
12-22-2018
12:02 PM
|
0
|
1
|
1046
|
Title | Kudos | Posted |
---|---|---|
1 | 03-09-2019 08:09 PM | |
1 | 07-03-2012 09:19 AM | |
1 | 05-30-2018 07:52 AM | |
1 | 05-03-2012 10:23 AM |
Online Status |
Offline
|
Date Last Visited |
10-31-2023
02:28 PM
|