|
POST
|
Thanks for your reply. That was one of the first things I checked...Have a look below: define(['dojo/_base/declare', 'jimu/BaseWidget', 'dijit/_WidgetsInTemplateMixin', 'dijit/form/TextBox', 'dijit/ProgressBar', 'dojo/on', 'dojo/_base/array', 'dojo/_base/lang', 'dojo/_base/html', 'esri/layers/GraphicsLayer', 'esri/graphic', 'esri/graphicsUtils', 'esri/tasks/query', 'esri/tasks/QueryTask', 'esri/tasks/FindParameters', 'esri/tasks/FindTask', 'esri/tasks/FindResult', "esri/symbols/jsonUtils", 'esri/symbols/SimpleMarkerSymbol', 'esri/symbols/SimpleLineSymbol', 'esri/symbols/SimpleFillSymbol', 'esri/Color'], function(declare, BaseWidget, _WidgetsInTemplateMixin, TextBox, ProgressBar, on, array, lang, html, GraphicsLayer, Graphic, graphicsUtils, Query, QueryTask, FindParameters, FindTask, FindResult, symbolJsonUtils, SimpleMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol, Color)
... View more
05-03-2016
04:35 PM
|
0
|
2
|
1072
|
|
POST
|
I'm creating my first custom widget using the find task. I can retrieve and display the attributes of the returned records but I'm having issues adding graphics to the map. I've created a graphicsLayer called resultsLayer and added it to the map but I keep getting the following error: TypeError: Cannot read property '_graphicsLayer' of undefined. . Any help is appreciated. showFindResults: function(results){ console.log("showFindResults"); var markerSymbol = symbolJsonUtils.fromJson(this.config.symbols.simplemarkersymbol); var lineSymbol = symbolJsonUtils.fromJson(this.config.symbols.simplelinesymbol); var polygonSymbol = symbolJsonUtils.fromJson(this.config.symbols.simplefillsymbol); var resultItems = []; var result, attribs; array.forEach(results, function (result){ var graphic = result.feature; attribs = result.feature.attributes; resultItems.push("Compkey: " + "<b>" + attribs.COMPKEY + "</b><br>"); resultItems.push("Unitid: " + "<b>" + attribs.UNITID + "</b><br>"); resultItems.push("Layer Name: " + "<b>" + result.layerName + "</b><br>"); resultItems.push("<br>"); switch (graphic.geometry.type) { case "point": graphic.setSymbol(markerSymbol); break; case "polyline": graphic.setSymbol(lineSymbol); break; case "polygon": graphic.setSymbol(polygonSymbol); break; } this.resultsLayer.add(graphic); //this.map.graphics.add(graphic); });
... View more
05-03-2016
02:47 PM
|
0
|
4
|
2712
|
|
DOC
|
In my webmap, the popup window shows a hyperlink to show related records and when clicked, opens the attribute table widget and displays the related records. The 'Show Related Records' link in the panel doesn't seem to display. Any ideas? Thanks in advance.
... View more
04-20-2016
01:04 PM
|
0
|
0
|
9550
|
|
POST
|
I've created a secured service and enabled editor tracking. I'm using the default Edit Widget but added code to enable the IdentityManager. I enter my username/password when entering the website and add a feature. The issue is that the value for the CREATED_USER field that is being entered is esri_anonymous and not my username. Has anyone else had this issue or can tell me what is it that I'm doing wrong? Thanks in advance.
... View more
01-21-2014
07:01 AM
|
0
|
0
|
512
|
|
POST
|
Robert, I've downloaded the latest eSearch 3.1.12 widget and noticed a new revision to the hyperlinkaliastext attribute. This is a cool feature but I'm having trouble getting it to work. I'm trying to display the value for a field but also use it as an hyperlink, for example: <field name="JOB_NO" alias="Job No" linkprefix="http://server/blah/" linksuffix=".pdf" hyperlinkgridfield="true" hyperlinkaliastext="{JOB_NO}"/> I tried typing in a different field for the hyperlinkaliastext as a test and it worked so I'm assuming that it doesn't work if the same field is used for both the hyperlinkaliastext and field name. Is this correct? Thanks again for all the work you've done...
... View more
03-19-2013
02:37 PM
|
0
|
0
|
2090
|
|
POST
|
Were you able to resolve this as I am having the same issues...
... View more
10-19-2012
08:15 AM
|
0
|
0
|
1287
|
|
POST
|
Hi Robert, I downloaded the newest version and it still wasn't working for me, specifically, when I move a vertex on a polyline. Then I noticed in the calculatePolylineLengths function that the wkid I was using wasn't dealt with properly in the 'if else' statement. I got it working now... Regards, James
... View more
10-04-2012
10:54 AM
|
0
|
0
|
1320
|
|
POST
|
I've noticed if you don't select the 'Show Measurement' checkbox and you edit the graphic, the measurement in the contextmenu does not get updated. Can anyone confirm this? Thanks in advance.
... View more
09-28-2012
01:25 PM
|
0
|
19
|
2717
|
|
POST
|
Thanks Robert! Oops, I accidentally clicked the down arrow...This post was very helpful.
... View more
09-14-2012
09:30 AM
|
0
|
0
|
471
|
|
POST
|
I've created my own layout templates and have them working but I would like to add a parameter where one can add notes. There doesn't seem to be an element that one can add where users can input a couple lines of text. Any help would be appreciated.
... View more
09-14-2012
07:27 AM
|
0
|
3
|
2861
|
|
POST
|
Andrew, I'm having the same problems as mentioned above. However, it does work in firefox and google chrome. One interesting note, if you try the code examples from google's own website on IE, you'll notice the same behaviour. Regards, James
... View more
03-05-2012
12:17 PM
|
0
|
0
|
1574
|
|
POST
|
Hi Robert, Yes, that's correct the first layer does not have a description before I expand the node. I've noticed this behaviour on your site in the code gallery as well. When I click on it, the tooltip disappears but it looks like it disappears eventually after 10 seconds or so.
... View more
11-29-2011
06:26 AM
|
0
|
0
|
1073
|
|
POST
|
Hi Robert, I think I may have found a bug. It only happens when you expand the first item in the toc. The metadatatooltip pops up when it shouldn't or at least I think it shouldn't. Regards, James
... View more
11-24-2011
09:02 AM
|
0
|
0
|
1061
|
|
POST
|
Robert, I'm using the exact same version...what exactly does this error message mean?
... View more
09-29-2011
07:38 AM
|
0
|
0
|
1230
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-16-2018 10:40 AM | |
| 1 | 05-19-2016 10:43 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-09-2022
03:47 PM
|