POST
|
Hi boss182, Welcome! I think you'll find plenty to get you started by going to the developer page and exploring the samples. There's a sample that demonstrates how to do queries on a feature class here https://developers.arcgis.com/en/javascript/jssamples/fl_paging.html for example, and there are others. Please take a look at that and see if that gets you going! The main sample page with the query samples can be found here: https://developers.arcgis.com/en/javascript/jssamples/#query_and_select Good luck! ken.
... View more
09-17-2013
01:24 PM
|
0
|
0
|
420
|
POST
|
Hehe. I've done that so many times, like I said. I think that whole loader pattern is one of the weaknesses of the whole AMD motif. Requires too much maintenance and so easy to mess up! Take care, ken.
... View more
09-17-2013
07:09 AM
|
0
|
0
|
336
|
POST
|
Hi ionara_wilson, The problem appears to be that the require statements don't all have corresponding variables in the function. Perhaps the dijit requires were added to the former but not the latter. So instead of: require([
"esri/map", "esri/dijit/BasemapGallery", "esri/arcgis/utils",
"esri/toolbars/edit",
"esri/layers/ArcGISTiledMapServiceLayer",
"esri/layers/FeatureLayer",
"esri/tasks/query", "esri/tasks/QueryTask",
"esri/symbols/SimpleMarkerSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/dijit/editing/Editor",
"esri/dijit/editing/TemplatePicker",
"esri/config",
"dojo/i18n!esri/nls/jsapi",
"dojo/_base/array", "dojo/parser", "dojo/keys",
"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/TitlePane",
"dojo/dom", "dojo/on",
"dojo/domReady!",
], function(
Map, BasemapGallery, arcgisUtils, Edit,
ArcGISTiledMapServiceLayer, FeatureLayer,
Query, QueryTask,
SimpleMarkerSymbol, SimpleLineSymbol,
Editor, TemplatePicker,
esriConfig, jsapiBundle,
arrayUtils, parser, keys,
dom, on
) { You should add in those corresponding variables in the function signature: require([
"esri/map", "esri/dijit/BasemapGallery", "esri/arcgis/utils",
"esri/toolbars/edit",
"esri/layers/ArcGISTiledMapServiceLayer",
"esri/layers/FeatureLayer",
"esri/tasks/query", "esri/tasks/QueryTask",
"esri/symbols/SimpleMarkerSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/dijit/editing/Editor",
"esri/dijit/editing/TemplatePicker",
"esri/config",
"dojo/i18n!esri/nls/jsapi",
"dojo/_base/array", "dojo/parser", "dojo/keys",
"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/TitlePane",
"dojo/dom", "dojo/on",
"dojo/domReady!",
], function(
Map, BasemapGallery, arcgisUtils, Edit,
ArcGISTiledMapServiceLayer, FeatureLayer,
Query, QueryTask,
SimpleMarkerSymbol, SimpleLineSymbol,
Editor, TemplatePicker,
esriConfig, jsapiBundle,
arrayUtils, parser, keys,
borderContainer, contentPane, titlePane,
dom, on
) { I've done that SO many times. take care! ken.
... View more
09-17-2013
07:03 AM
|
0
|
0
|
336
|
POST
|
Here's the url you're looking for. https://developers.arcgis.com/en/javascript/jshelp/ags_proxy.html ken.
... View more
09-11-2013
06:58 AM
|
0
|
0
|
208
|
POST
|
Good morning VinayBa, It is considered good form to search the forums before posting a question since often someone else has already asked and answered your question. In this case, I found Kelly Hutchins answered this question just a few months ago: http://forums.arcgis.com/threads/82208-esri.config.defaults.io.proxyUrl-is-not-set Take a look at her answer. Best wishes! ken.
... View more
09-11-2013
06:55 AM
|
0
|
0
|
193
|
POST
|
Hi Jose, ArcGIS Online gives you a lot of features without even having to write any code. You can put together maps using a variety of services and share them with others. You can even consume services in ArcGIS Online maps from your own ArcGIS server. You'd want to host your own application (javascript or otherwise) when you have requirements that ArcGIS doesn't meet. For example, we're building a custom javascript application to manage our Department of Natural Resources data and it integrates geolocation information from our ArcGIS server services. That's pretty custom. We also find ourselves extending ESRI templates to do new and different things, which means we need to customize and host ourselves. So ArcGIS Online can get you pretty far and unless your requirements extend beyond its capabilities, it is a great choice. But when you need custom code, you need custom code. 🙂 I hope that helps somewhat. Best wishes! ken.
... View more
09-10-2013
06:52 AM
|
0
|
0
|
117
|
POST
|
nidhinkn, Thanks for the post! This thread is a blast from the past. 🙂 We ended up building our system as a (more or less) single-page javascript application (go dojo!) that consumes a variety of services, some arcgis server services (for storing and consuming location information) and others for project and dataset tracking. The latter we built in ASP Web API (c#) against a stand-alone database (non-geodatabase). We have a relationship table whereby we can connect data to any feature in any feature class. Anyhow, it seems to be meeting our needs at this point. Thanks for your thoughts and interest in an old thread! kindest regards, ken.
... View more
09-10-2013
06:42 AM
|
0
|
0
|
180
|
POST
|
Hi Jessica, Perhaps you could post your code for us all to look at? Make sure to remove any sensitive information. I have been able to use the basemap gallery successfully cross-browser, so maybe looking at your code will help see what's up. Thanks! ken.
... View more
09-09-2013
06:49 AM
|
0
|
0
|
206
|
POST
|
Hi, There is now a JSLint.VS2012 extension that you can install from the Extension Manager. (I'm using the pro version, but I'm assuming the express still has the extension manager?) I installed it that way and it worked fine for me. Javascript is a first-class language in VS2012, so afaik there isn't anything special you have to do in order for the intellisense to "just work" (wow, I can't believe I said that about an aspect of a Microsoft product!). I am writing arcgis/dojo javascript apps with VS2012 and it is working nicely. Good luck! ken. [ATTACH=CONFIG]27271[/ATTACH]
... View more
09-06-2013
07:19 AM
|
0
|
0
|
211
|
POST
|
Hi, Assuming you're referring to this sample: https://developers.arcgis.com/en/javascript/jssamples/widget_identitymanager_client_side.html you might uncomment and tweak the console log message in the loadCredentials function to see if the problem is in the presence of or parsing of the idJson. Might could be something is up with the cookie (disabled or security setting?). And if there's another template or something you're referring to, maybe using this simple javascript sample would help you reduce variables and narrow down the issue. Good luck! ken.
... View more
09-05-2013
07:13 AM
|
0
|
0
|
262
|
POST
|
What I tend to do is just append the token to the end of my service urls: http: // data.yourdomain.com/arcgis/rest/services/SomeMapService/MapServer/0?token=AREALLYLONGSTRING This works fine, but with the down-side that said url (and token) will be available to view from the client. However, when I generate my token, I use the http referrer method, which means the token is useless unless coming from my own server folder. But as John said above, the proxy method works great, too (and is required when doing things like feature editing). ken.
... View more
09-05-2013
06:50 AM
|
0
|
0
|
405
|
POST
|
Once I learned this is a known bug with ESRI, we came up with a klugy work-around. Since we only needed to print secure services within our building, our solution was to: 1) Add specific DENY rules to our external firewall for the services we needed to print. 2) Using the siteadmin app, unsecure the services we needed to print. 3) Now printing works fine. The firewall rules make it so only users inside the building can get to the services. Since that is true, we can unsecure them so that printing will work from inside the building. That meets our requirements. ken.
... View more
07-15-2013
08:00 AM
|
0
|
0
|
289
|
POST
|
After all the stuff we tried and researched, it seems that editing foreign table data in ArcGIS Desktop is not supported in 10.1. I read somewhere that it might be supported in 10.2. I did find that if I create the database table from ArcGIS desktop I can edit it. I can also (and don't try this at home) add the table manually to the geodatabase metadata that tracks tables then I could edit it. But since that would be a very unsupported scenario, we didn't want to go down that road. So we're solving our editing via a web application. Hope that helps! ken.
... View more
07-15-2013
07:53 AM
|
0
|
0
|
499
|
POST
|
We have this same problem with printing from our (customized) Tax Parcel Viewer web app (haven't tried with others). I have a note to look into it but haven't yet. The urls that come back from the server linking to the generated pdf will have a guid-like string of characters, with the last digit incrementing sequentially. It seems like there is a session timeout mis-match or something, where the user who prints a couple of maps and then waits a bit and then goes to print another, will find themselves getting the first map they printed. The next time they try the process, they get the second print. And it increments along until they get back to the actual map they were trying to get! If you manually guess and change the last digit, sometimes you can find the one you're after faster by the ol' trial and error method. Hope that gives a tiny bit more info as to what is happening. I would love to know a better workaround or better yet, a fix! Thanks, ken.
... View more
06-20-2013
12:08 PM
|
0
|
0
|
540
|
POST
|
We've been struggling with this for awhile, too. I followed the instructions here: http://resources.arcgis.com/en/help/main/10.1/#/Printing_maps_that_contain_secured_services/0154000005q3000000/ and I can print from our webapp if I turn off security, but if it is turned on, I get the error as mentioned in the original post. I'm thinking of controlling access from our web server or firewall so that I can turn off security for internal users, which would be fine for us in this case. Does anyone have the ESRI bug id for this? thanks, ken.
... View more
05-09-2013
08:29 AM
|
0
|
0
|
657
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|