POST
|
Hi Shwu-jing, Thanks for that information. Is there a time frame established yet for the release of the next version?
... View more
10-13-2020
03:29 PM
|
0
|
1
|
452
|
POST
|
Does or will the survey123 module for python enable a parameter for the selection to 'Merge' multiple reports in a single file? In other words, in the survey.generate_report parameters can or will one be able to specify 'merge' to merge multiple reports into a single file?
... View more
10-13-2020
01:12 PM
|
0
|
3
|
494
|
POST
|
It seems that this issue could be solved at least for some use cases if the survey123 module for python could accommodate the selection to 'Merge' multiple reports in a single file. In other words, in the survey.generate_report parameters one would be able to specify merge. I don't suppose it could be easily 'hacked' in _survey.py, but if so, it would help some folks to know.
... View more
10-12-2020
09:28 AM
|
1
|
0
|
739
|
POST
|
I am having an issue with Arcade fetching related records when using a FeatureServer layer in the WebMap. The code: var tbl = FeatureSetByName($datastore,"Raptor_Protection_Repeat"); var code = $feature.GUID; var sql = "GUID = '" + code + "'"; Console(code); Console(sql); var related_data = Filter(tbl, sql); var cnt = Count(related_data); Console(cnt); var result = cnt + " related records"; if (cnt > 0) { // loop through related records for (var row in related_data) { // read some data and create the line you want var line = TextFormatting.NewLine + " - " + row.PROTECTION; // add the line to the result result += line; } } else { result = "No related records:"; } // return the result return result; This works as expected if the layer in the Map is https://myserver.com/arcgis/rest/services/Raptor_Protection/Raptor_Protection/MapServer/0 But for this application, I need https://myserver.com/arcgis/rest/services/Raptor_Protection/Raptor_Protection/FeatureServer/0 When I try the above code as an arcade expression on the FeatureServer layer, I get the following error: Execution Error:Feature Not Found The console produces the count and sql as expected. It seems to fail on loop, specifically "var row in related_data". In Dev tools (chrome) I see the following error: /portal/jsapi/jsapi4/:346 [esri.tasks.support.optimizedFeatureSet] convertToFeatureSet:unknown-geometry [object Object] Any insight here would be greatly appreciated! Thanks, Jim Faron
... View more
03-09-2020
11:03 AM
|
0
|
0
|
392
|
POST
|
Awesome, thank you!! This is extremely helpful, There aren't too many examples of this sort that I could find. Jim Faron
... View more
02-20-2020
10:27 AM
|
0
|
0
|
855
|
POST
|
Robert, I see what you are referring to regarding the esubs array having the OID. I can loop through the features in the FeatureLayer with update-end event, and apply the queryAttachmentInfos method in the loop (this stumped me for a while, as I never had occasion to use that event). For this project, I only have one attachment, but I guess if I had more than one I would have to create an additional field in the grid? Thanks again for the help. Jim Faron
... View more
02-20-2020
06:58 AM
|
0
|
2
|
855
|
POST
|
Robert, I did see that being used in on click functions for use in popups, but I haven't found a sample, or I'm not wrapping my head around how to iterate through the feature layer to get the oids without an event that triggers it such as click. I guess I could work with "on("load"....), but I don't see how to get to the actual data with that event.
... View more
02-19-2020
01:44 PM
|
0
|
1
|
855
|
POST
|
I'm working with api 3.31. I have an app that loads an onDemandGrid via a datastore that is loaded by a querytask. It works fine, except that I need to get attachments that exist in the source data, and put the attachment into a column that is added in the createGrid function: queryAttachmentsInfo does not seem to be available via the QueryTask. So I wonder if anyone has dealt with this problem of getting attachments into a datagrid, and perhaps any suggestions as to how I could populate the attachments column in this application's grid. Here is the code that creates the grid: function createGrid() { var egrid = declare([ Grid, Keyboard, Selection]); this.gridlist = new egrid({ selectionMode: 'single', columns: { NAME: "Name", LIFE_CYCLE_STATUS: "Status", HIGH_SIDE_VOLTAGE: "High Side Voltage", OWNERSHIP_CODE: "Ownership", ADDRESS: "Address", CITY: "City", COUNTY: "County", STATE: "State", Attachments: { label: "Attachments", formatter: makeLink} }, showHeader: true, collection: this.store, minRowsPerPage: 200, queryOptions: { sort: [{ attribute: "NAME" }] }, store: new Memory({data: [], idProperty: "id"}) }, "grid"); this.gridlist.startup(); And this is where I create the store: function loadSubstations () { var queryTaskSubstations = new QueryTask(facilityLayer.url); var query = new Query(); query.returnGeometry = true; query.outFields=["OBJECTID","NAME","CODE","HIGH_SIDE_VOLTAGE","LIFE_CYCLE_STATUS","OWNERSHIP_CODE","ADDRESS","CITY","COUNTY","STATE"]; query.where = "1=1"; queryTaskSubstations.execute(query, lang.hitch(this, showResults)); function showResults (results) { var resultFeatures = results.features; var featureCount = results.features.length; for (var i = 0; i < featureCount; i++){ var features = results.features; esubs.push(features); } var subs = arrayUtils.map(esubs, function (feature) { return { "id": feature.attributes["OBJECTID"], "NAME": feature.attributes["NAME"], "LIFE_CYCLE_STATUS": feature.attributes["LIFE_CYCLE_STATUS"], "HIGH_SIDE_VOLTAGE": feature.attributes["HIGH_SIDE_VOLTAGE"], "OWNERSHIP_CODE": feature.attributes["OWNERSHIP_CODE"], "ADDRESS": feature.attributes["ADDRESS"], "CITY": feature.attributes["CITY"], "COUNTY": feature.attributes["COUNTY"], "STATE": feature.attributes["STATE"], "shape": feature.geometry }; }); subdataStore = new Memory({data:subs, idProperty:"id"}); this.gridlist.set("store", subdataStore); this.gridlist.set("collection", subdataStore); } } Thanks, Jim Faron
... View more
02-19-2020
12:35 PM
|
0
|
7
|
957
|
POST
|
I have set up a rather lengthy popup configuration in a Web Map, ArcGIS Enterprise 10.6.1, that uses html display inline attributes with an arcade expression, as described in this forum link as well as others. It works fine, but after I save the map, close it and reopen it (or just reload the Web Map in the browser after saving it), all of the inline display attributes are gone, leaving only the expressions. Below is a snippet of the html in the popup, with the inline attributes and expressions: <b>Inspector:</b> {INSPECTOR}<br /><b>Date:</b> {INSPECTION_DATE} <br /><b>Structure #:</b> {STRUCTURE_NO}<br style="display:{expression/expr5}" />{expression/expr0}<br style="display:{expression/expr6}" />{expression/expr1} <br style="display:{expression/expr7}" />{expression/expr2}<br style="display:{expression/expr8}" />{expression/expr3}<br />Voltage: {VOLTAGE}<br />Structure Type: {STRUCTURE_TYPE} And here is what is left after saving and then reloading the map: <b>Inspector:</b> {INSPECTOR}<br /><b>Date:</b> {INSPECTION_DATE} <br /><b>Structure #:</b> {STRUCTURE_NO}<br />{expression/expr0}<br />{expression/expr1} <br />{expression/expr2}<br />{expression/expr3}<br />Voltage: {VOLTAGE}<br />Structure Type: {STRUCTURE_TYPE} All of the inline style="display:{expression/expr*} " are just not there on re-load. An example of a display expression: if(isEmpty($feature["CIRCUIT_1"])){ return "none" }else { return "inline"; } Is there something that I am missing or doing wrong? Or is this a software limitation? Thanks, Jim Faron TEP Unisource Energy
... View more
09-16-2019
09:11 AM
|
0
|
1
|
450
|
POST
|
After upgrading to 10.7.1 from 10.6.1, Enterprise sites on the Portal Home page do not open to the site itself, but to the Portal Item. In 10.6.1 the site opens to the site endpoint as expected. Note that the Featured Sites group is set as the Featured Content group in the portal settings page in both versions. To clarify, the proper endpoint for the Sites application looks as follows: https://myserver.myorg.com/portal/apps/sites/#/mysite The item endpoint of the site application looks as follows: https://myserver.myorg.com/portal/home/item.html?id=a75db83a85b5488daf6b1f90fa2c63eb Is this a bug perhaps, or has the configuration method changed from 10.6.1 to 10.7.1? It would be a little hard to understand why this would be by design. Thanks, Jim Faron Unisource Energy
... View more
07-15-2019
11:43 AM
|
0
|
0
|
247
|
POST
|
Hi Xander, Thank you for the response, and for your previous blog posts, they are very helpful. The PARENT_ID field data is equal to the TRANSFORMER_ID field in the related feature class. I don't know if it's gremlins on the internet, or more likely a caching issue in the browser, but when I tried it this morning after reopening the application, it works as expected! I guess I'll do more developing in incognito window to eliminate that issue going forward, although I will also keep testing to see if there is any latency issue at work. The console was accurate, but the Popup was not, as described in my initial post, so it does seem pretty strange. Thanks! Jim Faron
... View more
07-10-2019
08:44 AM
|
0
|
1
|
735
|
POST
|
I am implementing a custom expression which gets the result, a sum where applicable (i.e.when there are more than one results). The expression tests successfully in the expression editor, but the popup only returns the first result, i.e. does not get the sum of multiple results. The following expression yields a result of 24 when Test is clicked in the Expression editor, but the popup yields only the first of the three (in this case) results, the number 8 in this case (three results with the value of 8 each). Here is the code, followed by a screenshot of the test result, and then the popup on the map (the attribute in question is the last line (Total kW on Applications). var fc = FeatureSetById($map, /* PowerClerk Application Approved */ "DG_Transformer_Availability_Popup_test_2658") var code = $feature["PARENT_ID"] //var pizza = 26712474; var sql = "TRANSFORMER_ID = " + code; //var sql = "TRANSFORMER_ID = " + pizza; //var sql = "TRANSFORMER_ID = 12157630" Console(sql); var applications = Filter(fc, sql); var cnt = Count(applications); Console(cnt); var getAppKW; var sumAppKW = 0; if(cnt > 0){ Console(cnt); for (var application in applications){ sumAppKW += application.APPLICATION_KW_AC } getAppKW = sumAppKW }else{ getAppKW = "N/A" } if (IsEmpty(getAppKW) || (getAppKW == NULL)){ getAppKW = "No Data" } Console(getAppKW); return getAppKW The line in the popup configuration (custom attribute display) is 'Total kW on Applications: {expression/expr5}', where expr5 is the expression quoted above. This is on Portal for ArcGIS, 10.7.1. It seems that the Popup does not wait for the loop to complete, or there is an error or flaw in the code? Thanks, Jim Faron Unisource Energy
... View more
07-09-2019
04:20 PM
|
0
|
3
|
1043
|
POST
|
For what it's worth, I implemented a temporary fix (if you have developer edition). Probably the easiest way is to go the Attribute Table widget in the server/app/%your app number%, and on line 451 of the util.js, input the following below the method declaration: if(!ofields){ return } So that the code block is as follows: exports.arcade.appendArcadeExpressionsToFields = function(ofields, layerInfo) { if(!ofields){ return } var arcadeExpressions = exports.arcade.getExpressionInfosFromLayerInfo(layerInfo);............ I believe this works because the function that calls the method is looping through tables and fields and sending null values before it actually sends an arcade expression, and the null value destroys the method function. It's been working for me, and I may just move it to a custom Attribute Table widget or just do this in stemapp, unless Esri publishes a fixed version. Hope this helps someone. Jim Faron
... View more
05-30-2019
03:18 PM
|
0
|
0
|
910
|
POST
|
I am using WAB 2.8 on Portal 10.6.1. Related records do not show up in the Attribute Table widget. This is I believe related to an ArcGIS Online bug 'bug-000114004', which was fixed for ArcGIS Online, but apparently not for Portal 10.6.1. Is there a work-around available for this problem? I am using Dev Edition as well, version 2.8, and I assume that I am bound to using 2.8 dev edition as long as I have Portal 10.6.1. The error in console is 'no activeLayerInfo!, in the _getQueryTableInfo function in the Widget.js of the WAB Attribute Table. Thanks, Jim Faron
... View more
05-20-2019
10:23 AM
|
0
|
1
|
346
|
POST
|
Hi Dave, We run Portal on Windows 2012 R2. We use Active Directory for our identity provider. Thanks! Jim
... View more
10-24-2018
08:32 AM
|
0
|
0
|
585
|
Title | Kudos | Posted |
---|---|---|
1 | 03-09-2023 07:05 AM | |
1 | 06-25-2021 08:54 AM | |
1 | 06-25-2021 08:35 AM | |
1 | 06-27-2022 02:18 PM | |
7 | 06-24-2021 03:26 PM |
Online Status |
Offline
|
Date Last Visited |
04-13-2023
10:27 AM
|