|
POST
|
I was able to successfully hit the JSON from my client; where is it supposed to be changed in my JS or HTML? Thanks for your help Robert. Is there a better way to configure this so I don't encounter this issue again? On Fri, Jul 15, 2016 at 8:46 AM, Robert Scheitlin, GISP <geonet@esri.com>
... View more
07-15-2016
08:52 AM
|
0
|
3
|
1213
|
|
POST
|
1. I did download app director and put it in my Inetpub folder. Configured IIS with .json and application/json MIME settings 2. This is not publicly available, but is available on the organization network, i.e. I can hit GISDEV01 from any machine that is on this network. (However the app via AGOL is public) 3.I have the app in a folder called LifeSupportApplication and the index.html is in there. On Fri, Jul 15, 2016 at 8:36 AM, Robert Scheitlin, GISP <geonet@esri.com>
... View more
07-15-2016
08:40 AM
|
0
|
5
|
1213
|
|
POST
|
The site should be made public via arcgis online, correct? Error below
... View more
07-15-2016
08:27 AM
|
0
|
7
|
3646
|
|
POST
|
I just tried, same error, I am using IIS6. So something is not correct on my configuration, do I need a proxy as suggested? Use proxy—Web AppBuilder for ArcGIS | ArcGIS
... View more
07-15-2016
07:50 AM
|
0
|
1
|
3646
|
|
POST
|
Hi Robert, Thanks for your insight; I used AGOL to create the app. I was using my.org.maps.arcgis as a placeholder bc I didn't want the org address to be public, but I mistakenly left that in there. Do you mind removing it from your message?
... View more
07-15-2016
07:38 AM
|
0
|
3
|
3646
|
|
POST
|
I am reeving a 404 error that my config.json cannot be found, I have added the JSON mime type to my IIS configuration at the site and server levels and have restarted IIS. This error appears as so in my console with other errors which I think are caused by the initial 404 of the config.json. What other steps can be taken to remedy this? Additionally when I hit the index.html I receive an "Unexpected token < in JSON at position 0" error GET http://gisdev01/LifeSupportApplication/LifeSupportApplication/jimu.js/css/fonts/c4352a95-7a41-48c1-83ce-d8ffd2a3b118.woff
main.js?wab_dv=2.1:1521 jimu.js init...
init.js:140 GET http://gisdev01/LifeSupportApplication/LifeSupportApplication/config.json?wab_dv=2.1 404 (Not Found)h @ init.js:140_tryLoadConfig @ main.js?wab_dv=2.1:236loadConfig @ main.js?wab_dv=2.1:227loadConfig @ main.js?wab_dv=2.1:11f.initApp @ main.js?wab_dv=2.1:1522(anonymous function) @ init.js:200ia @ init.js:28(anonymous function) @ init.js:28ja @ init.js:28ga @ init.js:28b @ init.js:29f @ init.js:151d @ init.js:152
init.js:113 TypeError: Cannot read property 'portalUrl' of undefined(…) "TypeError: Cannot read property 'portalUrl' of undefined
at _addDefaultPortalUrl (http://gisdev01/LifeSupportApplication/LifeSupportApplication/jimu.js/main.js?wab_dv=2.1:32:492)
at _addDefaultValues (http://gisdev01/LifeSupportApplication/LifeSupportApplication/jimu.js/main.js?wab_dv=2.1:31:416)
at .<anonymous> (http://gisdev01/LifeSupportApplication/LifeSupportApplication/jimu.js/main.js?wab_dv=2.1:11:456)
at http://js.arcgis.com/3.17/init.js:63:209
at h (http://js.arcgis.com/3.17/init.js:107:279)
at k (http://js.arcgis.com/3.17/init.js:107:205)
at g.resolve (http://js.arcgis.com/3.17/init.js:109:280)
at a (http://js.arcgis.com/3.17/init.js:108:148)
at h (http://js.arcgis.com/3.17/init.js:107:419)
at k (http://js.arcgis.com/3.17/init.js:107:205)
----------------------------------------
rejected at a (http://js.arcgis.com/3.17/init.js:108:174)
at h (http://js.arcgis.com/3.17/init.js:107:438)
at k (http://js.arcgis.com/3.17/init.js:107:205)
at g.resolve (http://js.arcgis.com/3.17/init.js:109:280)
at a (http://js.arcgis.com/3.17/init.js:108:148)
at h (http://js.arcgis.com/3.17/init.js:107:419)
at k (http://js.arcgis.com/3.17/init.js:107:205)
at g.w.reject (http://js.arcgis.com/3.17/init.js:109:488)
at a (http://js.arcgis.com/3.17/init.js:108:174)
at h (http://js.arcgis.com/3.17/init.js:107:452)
----------------------------------------
Error
at then.c.then (http://js.arcgis.com/3.17/init.js:110:97)
at loadConfig (http://gisdev01/LifeSupportApplication/LifeSupportApplication/jimu.js/main.js?wab_dv=2.1:11:361)
at Object.f.initApp (http://gisdev01/LifeSupportApplication/LifeSupportApplication/jimu.js/main.js?wab_dv=2.1:1522:55)
at http://gisdev01/LifeSupportApplication/LifeSupportApplication/init.js:200:24
at ia (http://js.arcgis.com/3.17/init.js:28:3)
at http://js.arcgis.com/3.17/init.js:28:256
at ja (http://js.arcgis.com/3.17/init.js:28:125)
at ga (http://js.arcgis.com/3.17/init.js:28:198)
at b (http://js.arcgis.com/3.17/init.js:29:177)
at f (http://js.arcgis.com/3.17/init.js:151:195)"
... View more
07-14-2016
03:38 PM
|
0
|
15
|
7790
|
|
POST
|
Should the PIN be unique per feature? My PK and FK is STRUCTURENAME and there are many features which have the same value for STRUCTURENAME. My use case is that I have several customers which are related to one structure, I would like to return each customers info that is related to a particular vale of STRUCTURENAME.
... View more
06-28-2016
03:10 PM
|
0
|
2
|
3000
|
|
POST
|
Got it, can you provide a service exposed to the public aside from these so I can see the functionality on my end? var dynamicLayer = new DynamicMapServiceLayer("https://ags/arcgis/rest/services/ParcelsRelate/MapServer"); map.addLayer(dynamicLayer); parcelFeatureLayer = new FeatureLayer("https://ags/arcgis/rest/services/ParcelsRelate/MapServer/0", { mode: FeatureLayer.MODE_ONDEMAND });
... View more
06-23-2016
01:53 PM
|
0
|
1
|
3000
|
|
POST
|
The thing is however, I don't want to find an exact objectID match, for instance objectID 1 of my feeders can have objectIDs 1,20,59,100 for the customers, so that is where I am thrown off with the logic of using objectID. Like I said in my original iteration I used objectID and it was just a 1-1 match between objectIDs of both feature classses, i.e. I'd click OID 1 for feeder and the related feature was OID1 for customers when there should be several OIDs related to this one feeder. I will take a look at this though. Thanks, Jake.
... View more
06-23-2016
12:15 PM
|
0
|
0
|
3000
|
|
POST
|
Hi Jake, This REST service is not exposed to the public. When creating the relationship class, should it be N-M? My original was 1-M. Can you please explain the logic in the code which relates one feature to many related records? That is what I am missing here, as when I click on one feeder, the returned record is the customer site with the same objectID.
... View more
06-23-2016
07:04 AM
|
0
|
2
|
3000
|
|
POST
|
I am using this example https://developers.arcgis.com/javascript/3/jssamples/fl_query_related.html to develop an application which queries related features. I have two feature classes and have created a N-M relationship class. The objective is to click on an electric feeder and query the related customers. There are 26 electrical feeders and over 400 customers. My relationship class was based on the OBJECTIDs being the primary keys and the foreign keys being the "feederID" that the structures have and the that the customers are assigned to. Ideally, I'd expect to see several customers per feeder, but based on my logic in this code sample, I am only returning the matching ObjectIDs per feeder. What should be changed to return each customer which shares the same feeder? function findRelatedRecords(evt) { var features = evt.features; var relatedTopsQuery = new RelationshipQuery(); relatedTopsQuery.outFields = ["*"]; relatedTopsQuery.relationshipId = 0; relatedTopsQuery.objectIds = [features[0].attributes.OBJECTID]; wellFeatureLayer.queryRelatedFeatures(relatedTopsQuery, function(relatedRecords) { console.log("related recs: ", relatedRecords); if ( ! relatedRecords.hasOwnProperty(features[0].attributes.OBJECTID) ) { console.log("No related records for ObjectID: ", features[0].attributes.OBJECTID); return; } var fset = relatedRecords[features[0].attributes.OBJECTID ]; var items = array.map(fset.features, function(feature) { return feature.attributes; }); //Create data object to be used in store var data = { identifier: "OBJECTID", //This field needs to have unique values label: "OBJECTID", //Name field for display. Not pertinent to a grid but may be used elsewhere. items: items }; //Create data store and bind to grid. store = new ItemFileReadStore({ data:data }); grid.setStore(store); grid.setQuery({ OBJECTID: "*" }); }); }
... View more
06-22-2016
04:34 PM
|
0
|
10
|
7323
|
|
POST
|
I have 2 feature point layers which are intersected by a line feature layer. One point layer is called "feeders", the other is for demo purposes, is called "customers". The line feature layer connects the feeders and the customers. I would like to write logic so that when a feeder is clicked the extent of the map is moved to the customers that are intersected with the line features. How can this be done with ArcGIS JSAPI? There are approximately 111 feeder features and 400 customers.
... View more
06-21-2016
08:37 AM
|
0
|
1
|
1582
|
|
POST
|
My organization has a legacy system which uses the Google Maps API to make a call to a Oracle database based on queries which are accessible on the client via drop down menus. Once the query is made, several options are returned which meet the conditions. Once one option is chosen a point on the appears with a link to a .pdf which is hosted in Filenet. Is there a way to do this with Esri Maps for Sharepoint, WebAppbuilder, or JavaScript API? The work flow is really straight forward, and our goal is to move away from Google Maps to a more enterprise solution in one of the above mentioned packages.
... View more
05-11-2016
02:04 PM
|
0
|
1
|
1350
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-16-2017 02:33 PM | |
| 1 | 01-18-2022 07:40 AM | |
| 1 | 04-28-2021 09:29 AM | |
| 1 | 10-24-2016 12:07 PM | |
| 1 | 04-28-2016 09:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
01-18-2022
03:08 PM
|