|
POST
|
So the good news is this is likely fixed in a later WAB, the bad is Portal will always be behind in releases to WAB. I believe Portal 10.6 is currently deployed with 2.6. Not sure how tightly coupled WAB is with Portal and the options to upgrade it on the side. I'll reach out to ESRI support and see what they say. Thanks for everything Robert!
... View more
09-04-2018
12:50 PM
|
0
|
1
|
1054
|
|
POST
|
I removed all the code and left just two "add" layers both with hardcoded values (pasted below). Still having the problem. Tried the same code in the startup function too. Also created a new local scene in the Portal with no initial layers and set the web app to use that. I am using Portal 10.6, assuming you are using the stand alone WAB? applyButtonClicked: function () { layerOne = new FeatureLayer({ title: "one", url: "https://gisservices.domain.com/arcgis/rest/services/Global/Service1/FeatureServer", //Fudged the URL to hide id: "one", name: "one", _titleForLegend: "one" }); this.sceneView.map.add(layerOne); layerTwo = new FeatureLayer({ title: "two", url: "https://gisservices.domain.com/arcgis/rest/services/Global/Service2/FeatureServer", //Fudged the URL to hide id: "two", name: "two", _titleForLegend: "two" }); this.sceneView.map.add(layerTwo); }, Thanks for working through this one with me!
... View more
09-04-2018
12:15 PM
|
0
|
3
|
1054
|
|
POST
|
Hmm, the plot thickens. And you did that via "sceneView.map"?
... View more
09-04-2018
10:59 AM
|
0
|
5
|
2144
|
|
POST
|
After playing around with it some more I think it is a bug with the LayerList. I added a second button to the widget UI, and when that is clicked would remove the last layer from the map. After removing a layer, the next to last changes to "Untitled Layer". So its like the last is always going to be that. I'm thinking to open a support ticket with ESRI to confirm this is a bug. A workaround would still be nice though.
... View more
09-04-2018
10:13 AM
|
0
|
7
|
2144
|
|
POST
|
Tried adding that in a few different places, still no luck unfortunately . Thanks for the idea though!
... View more
09-04-2018
08:54 AM
|
0
|
0
|
2144
|
|
POST
|
Tried setting both "name" and "_titleForLegend" but same issue unfortunately. Thanks so much for the idea though!
... View more
09-02-2018
04:22 PM
|
0
|
2
|
2144
|
|
POST
|
Hi Robert Scheitlin, GISP, for sure, thanks a lot for the help. Here is the entire function (not fully tested or finished as trying to get past this issue): applyButtonClicked: function () { //Set expression on layers and add any missing layers for(i in this.config.layers) { configLayer = this.config.layers; //Get layer matching config layer layer = null //Get layer if already exists in map for(j in this.sceneView.map.allLayers.items) { currentLayer = this.sceneView.map.allLayers.items ; if(currentLayer.title == configLayer.title) layer = currentLayer; } //Create layer if it does not already exist if(layer == null) { layer = new FeatureLayer({ title: configLayer.title, url: configLayer.url, id: "TestLayer_" + i, //Doesn't seem to matter if this is set returnZ: true //Need to manually set as it is not pulled in from the service }); //Add new layer to map this.sceneView.map.add(layer); } //Clear any previous expressions layer.definitionExpression = configLayer.query; //Build expression //Set direct input values (currenlty must be filterType: = or like) if(configLayer.hasOwnProperty("inputIndexs")) { for(j in configLayer.inputIndexs) layer.definitionExpression = layer.definitionExpression.replace("{" + j + "}", document.getElementById(configLayer.inputIndexs + "TextBox").value); } //Set lookups from other layer values (currenlty must be filterType: in) else if(configLayer.hasOwnProperty("layerIndexs")) { for(j in configLayer.layerIndexs) { for(k in this.sceneView.map.allLayers.items) //Find the layer to query { currentLookupLayer = this.sceneView.map.allLayers.items ; //currentLookupLayer.refresh(); if(currentLookupLayer.title == this.config.layers[configLayer.layerIndexs .index].title) { query = currentLookupLayer.createQuery(); query.outFields = [configLayer.layerIndexs .field]; currentLookupLayer.queryFeatures(query).then(lang.hitch(layer, function(result) { valueList = "" for(l in result.features) { if(l > 0) valueList += ","; valueList += result.features .attributes[Object.keys(result.features .attributes)[0]]; } this.definitionExpression = this.definitionExpression.replace("{" + j + "}", valueList); })); break; } } } } } },
... View more
09-02-2018
09:40 AM
|
0
|
4
|
2144
|
|
POST
|
Running on the WAB built into Portal 10.6 (think that is WAB 2.6) and have a Local Scene added to an app. Used the GUI to create the app and add the widgets. Built out most the custom widget but have a few issues, one of which is with the Layer List not updating properly. So the custom widget is just adding in some new FeatureLayers and setting their definitionExpressions (example below). The Layer List seems to refresh fine for all the layers except for the last. I have tried a variable number of layers added and it is always only the last one. The last layer shows as "Untitled layer" in the list and the visibility toggle doesn't even work. The data from the layer shows up though. Any ideas? Example of adding a layer: layer = new FeatureLayer({ title: configLayer.title, url: configLayer.url, returnZ: true, //Need to manually set as it is not pulled in from the service definitionExpression: "ID = 66544" //This is actually set in code just below }); this.sceneView.map.add(layer); Things I have tried: making sure the layers were loaded: layer.load(); making sure the layers were refreshed: layer.refresh(); get an instance of the WidgetManager, find the LayerList and refresh() this.sceneView.extent = this.sceneView.extent; (saw this potential trick in another post) Add a dummy layer at the end and then remove after "layerview-create" FYI, the Ledged widget updates just fine with the layers title. Thanks a lot for any ideas!
... View more
08-30-2018
05:44 PM
|
0
|
14
|
3761
|
|
POST
|
Anyone have any luck running the latest 2.8.1 on Portal 10.6? I first tried copying "projection.js" and its dependencies "pe.js", "GeographicTransformation.js" and "GeographicTransformationStep.js" to the local widget folder. Changed all the define references to that local folder. But that errored in widget.js at the line "projection.load()" saying load was not a function and the debugger just said the projection object was a value of "3", odd. So then reset the references and copied the files to the Portal server. This got a step farther as the projection object seemed meaningful, but somewhat similar it gave an error that "g.load" is not a function. That was in "projection.js" this time. Any thoughts? Is trying to mash up JSAPI 3.22 with a few 3.24 bits a bad idea?
... View more
08-15-2018
03:50 PM
|
1
|
0
|
2156
|
|
POST
|
Have been running version 2.1.2 on Portal for ArcGIS 10.6. Several users have asked about the live measuring so was excited to see it support that now, thank you! Problem is Portal 10.6 runs on WAB 2.6 with JSAPI 3.22. Went ahead and tried it anyway but see it is missing projection.js. Can I just copy that file over to the Portal server? Or will it need much more than that? Thanks!
... View more
08-10-2018
02:40 PM
|
0
|
1
|
2156
|
|
POST
|
Made a script in a toolbox that updates about 8 different layers definition queries to keep in sync. The intention of the tool is to run while in a session of ArcScene. Calling arcpy.RefreshActiveView() at the end does not refresh the layers though. Can manually click refresh on each layer and it does. What's the trick to refreshing a scene layer? Example: lyr = arcpy.mapping.Layer("Test Layer") lyr.definitionQuery = NAME = '" + name + "'" arcpy.RefreshActiveView() #Doesn't refresh layers Thanks a lot!
... View more
07-31-2018
03:52 PM
|
0
|
0
|
497
|
|
POST
|
Trying to do this in Portal 10.6 (WAB 2.6) with the Launchpad Theme. Just want to add one additional placeholder on the right. I open "C:\Program Files\ArcGIS\Portal\apps\webappbuilder\stemapp\themes\LaunchpadTheme\layouts\layout2\config.json" and add: { "position": { "right": 20, "top": 250 } }, Adding that just under the same entry with a top position of 200. There is no attribute on the other 3 placeholders for "placeHolderIndex". After adding it acts a bit wonky, the Extent Navigation arrows take this new spot now. Feel like I a missing something simple... any ideas? Thanks a lot!
... View more
04-24-2018
06:24 PM
|
0
|
0
|
3278
|
|
POST
|
Just wanted to give a big thanks for this widget, has just about everything we needed. Saved me from having to build our own . Great job jeremie34! Two additional features we would love to see: Live measurements as drawing (mentioned by others) Ability to draw arrow shapes (have a few users that loved those in our old web map system)
... View more
04-24-2018
09:30 AM
|
1
|
0
|
3736
|
|
POST
|
We just federated our ArcGIS Server 10.6 with Portal 10.6 in preparation for rolling out Portal to the organization. When publishing a new service, the Portal item creates an icon based off the data. Not the prettiest icon, but its something. We have over 130 services that got federated and don't want to manually update each to get an icon... so hoping there is a way to trigger a Portal item (that references a service) to generate an icon? Thanks a bunch!
... View more
03-27-2018
02:49 PM
|
0
|
1
|
1034
|
|
POST
|
Bruce Harold wrote: The capability to read non-native data sources as connections within a project's Catalog pane is planned for ArcGIS Pro. That is great news as we didn't get that same impression when talking to other ESRI folks recently. I was playing with the "interoperability connections" in ArcMap and they seem like that could be the ticket when they come to Pro. I do need to figure out a few quirks, like it works fine until I save and close the map, then reopen and the join is gone and connection not working in Catalog. And the JDBC option gives an error when selecting the tables. Don't want to highjack this thread with those details though. Might need to work with support but will play with it some more. I also need to confirm what the refresh interval is. Seems like it is on map opening maybe. Thanks again Bruce as we now have some optimism this functionality is coming to Pro.
... View more
07-05-2017
10:53 AM
|
1
|
0
|
881
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-24-2023 10:43 AM | |
| 1 | 10-02-2023 02:23 PM | |
| 1 | 11-16-2016 02:05 PM | |
| 1 | 07-05-2017 09:30 AM | |
| 15 | 11-19-2010 08:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
05-01-2024
08:25 PM
|