|
POST
|
Thanks, but that still sorts it 001 010 011 002 I'll check out the dgrid next work day, but this is really for the last touch to an almost finished product - the next version I'll look at new stuff + making all AMD. The results are actually from a find results set. Is there any way that I can sort that object based on an attribute before it gets attached to the data grid? Cheers ACM
... View more
09-07-2013
04:35 AM
|
0
|
0
|
2623
|
|
POST
|
Hi I'm failing to sort a datagrid, that has results from a query task, numerically. There is a field, that the service has defined as an integer, however it gets sorted in the datagrid as text (so I get 1,10,11,12,2,21,22 rather than 1,2,10,11,12,21,22) I have tried adding a formatter on the grid like function PAOFormat(item) { var link = Number(item) + 0 ; return link; } But that fails - changing it to Number(item) + 100 does indeed add 100- to the number, so how do I tell it to be a number cell. I have seen there is a celltype property, but I can't find a full list of cell types the best I have found is cellTypeThe type of cell in the column. Allowable cell types include dojox.grid.cells.Bool dojox.grid.cells.Select Any ideas? ACM
... View more
09-06-2013
07:25 AM
|
0
|
9
|
6140
|
|
POST
|
Yep - you had to add a query statement for some reason in the layer, but 1=1 (ie everything) did the trick. I think build 2.4 did it. On the other hand if you had grouped lots of attribute, (say cad feature = Building, Garage, Shed) as one style, the TOC would break them out again.
... View more
09-06-2013
04:13 AM
|
0
|
0
|
2503
|
|
POST
|
Nianwei Liu - this may be a caching/IIS/IE thing but my users are mentioning that sometime the expand button (the little cross) vanishes from collapsed TOCs - I've yet to be able to repeat this, but when it does happen a clear of the IE cache seems to work. Has anyone else had these issues? Cheers ACM
... View more
09-06-2013
02:02 AM
|
0
|
0
|
2503
|
|
POST
|
🙂 Now why didn't anyone at Esri state the above - so, in Microsoft term, "This behaviour is by design" The "bug" should remain through, but be changed to say "make the documentation clear"
... View more
09-05-2013
02:31 AM
|
0
|
0
|
3589
|
|
POST
|
I gave it a good try, but for now defeated. I worked out my wkid issue was something to do with my local 3.5 - running it with esr 3.6 moved on to the next errors - a shed load of parser issues. So, I will put this aside for now, and concentrate on stuff my users are asking for - like a constrained Floatingpane 🙂 Thanks for the help so far - at least I have a better understanding. ACM
... View more
09-04-2013
05:18 AM
|
0
|
0
|
1893
|
|
POST
|
Yep - Hjelmeland has been PMing me with lots of suggestions - on the last go we took working code of his and dropped my map service in. It worked on his code. The only difference I can see is if I examine the map object, on the working code we have spatialReference: Object
latestWkid: 27700
wkid: 27700
__proto__: Object
updating: false
width: 1680
wrapAround180: fal On mine spatialReference: Objectwkid: 27700
__proto__: Object
updating: false
width: 1435
wrapAround180: false
for the SpatialReference object - you'll notice the additional "latestWkid" attribute. Cheers ACM Edit nearly there - my code was a horrid mix of legacy and AMD, and I had a new AMD style chunk basically doing the same stuff I'd inserted ages back. Removing this gives me an overview map (breaks loads of other stuff until I reinsert it al in the right place) Edit #2 No idea - a brief glimpse was lost again 😞 will still work on it.
... View more
09-03-2013
06:10 AM
|
0
|
0
|
1893
|
|
POST
|
OK - slowly making progress, but I am hitting (what I think) are scope issues. I am creating an overview map. I have the require and attribute all done - require(["esri/map", "esri/layers/ArcGISTiledMapServiceLayer",
"esri/layers/ArcGISDynamicMapServiceLayer",
"esri/geometry/Extent",
"esri/layers/FeatureLayer",
"agsjs/dijit/TOC",
"esri/symbols/SimpleFillSymbol",
"esri/symbols/SimpleLineSymbol",
"dojo/_base/Color",
"esri/dijit/OverviewMap",
"dojo/parser",
"dojo/domReady!"
], function (
Map,
ArcGISTiledMapServiceLayer,
ArcGISDynamicMapServiceLayer,
Extent,
FeatureLayer,
TOC,
SimpleFillSymbol,
SimpleLineSymbol,
Color,
OverviewMap,
parser
) { then I create the ovmap var overviewMapDijit = new OverviewMap({ map: map,
expandFactor: 2,
visible: true,
height: 230,
width: 230
}); but get Uncaught TypeError: Cannot read property 'wkid' of undefined As if the map doesn't exist - I have a "var map;" earlier of course - what I have, is, more or less the same as https://developers.arcgis.com/en/javascript/jssamples/widget_overviewmap.html cheers ACM
... View more
09-03-2013
04:06 AM
|
0
|
0
|
1893
|
|
POST
|
<lightbulb> (well, low energy, dimmer light bulb, that has occasional brown-outs) I'm sort of seeing it now. Gives me an excuse to totally re-structure my code as I move each bit over from my main init function
... View more
09-02-2013
05:33 AM
|
0
|
0
|
1893
|
|
POST
|
😉 Er, sorry for sounding silly, but aren't those two code blocks identical? I think I know what you mean. Ah I see it now, the Upper case M in the first one and no 'esri'. Doh! Anyway, it's Friday afternoon where I am, it is sunny and will remain so for the weekend, so I'm off home!
... View more
08-30-2013
07:25 AM
|
0
|
0
|
1893
|
|
POST
|
Thanks - that helps a bit- amazingly just having just the modules required and a minimal second arg it still allworks - I guess the rest still being old style just picks up. Any idea where the link should go to to show "preferred argument aliases for Esri modules" which I guess is the list I add to the second arg for all the modules I am referencing? ACM
... View more
08-30-2013
07:01 AM
|
0
|
0
|
2551
|
|
POST
|
Ok - with my major JSAPI project about to be fully live I thought I'd try to get my head around AMD, but failed, almost at the start. For example the link https://developers.arcgis.com/en/javascript/jsapi/argument_aliases-amd.html on this page https://developers.arcgis.com/en/javascript/jstutorials/ 404s , so I am strugling to work out what exactly the function inside the require is for <script>
require(["esri/map"], function(Map) { ... });
</script> For a simple map it seems only to define the map, but WTF is this all about? function(dom, domAttr, array, Color, parser, esriConfig, Map, Graphic, GeometryService, BufferParameters, Draw, SimpleMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol)
So, I'm giving up for now, and my code will be a horrid mix for a while. I may return later when there are better guides ACM
... View more
08-30-2013
06:46 AM
|
0
|
0
|
2551
|
|
POST
|
OK - update #2 - whilst the CSS .esriOverviewMap .ovwHighlight { border: solid 2px #004F00 !important;
background-color: transparent !important;
} LOOKS like it works in print preview - when it is actually printed out in IE8 the box is still solid. IE10 works fine, but alas, I am stuck to IE8 for the next 6 months ACM
... View more
08-27-2013
05:42 AM
|
0
|
0
|
703
|
|
POST
|
Hi I have a site that used dynamicMapServiceLayer.layerInfos[visibleLayers].copyrightText; To return the © text of a sublayer - I am sure it worked before. It is a minor part of my site but now it is broken. I was trying to find the old API reference pages to see if copyrightText was ever returned - it isn't listed as being returned, but I have a feeling it never was LISTED as being returned, but at some earlier version it was actually returned. I have had a quick try with a 1.6 sample I could find, and changing the API all the way to 2.8 and I can not find this ever working, yet I am convinced I got it working. Am I losing the plot here? ACM EDIT - I *think* I have removed a chunk of code on the init function of my site that used a loop to query the REST of each service to return details (I do this for descrioption) adding the returned value to layerInfos as a new attribute then gets it returned later on. I seem to recall cleaning up some code - I must have been over zealous.
... View more
08-27-2013
03:05 AM
|
0
|
0
|
710
|
|
POST
|
Hi Using the standard Print Widget you have three potential "things" to add your own text - I use them all, CopyrightText, authortext and titletext - the copyright and title I use for what they are supposed to be for. the author I use for user added comments/text. But there is no reason, say if you have a fixed title and copyright, to add these directly to the MXD in ArcMap and use those two things to hold extra user generated content. ACM
... View more
08-27-2013
01:43 AM
|
0
|
0
|
2585
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-28-2025 01:14 AM | |
| 1 | 12-01-2023 06:07 AM | |
| 2 | 11-29-2024 04:32 AM | |
| 1 | 05-28-2024 12:50 AM | |
| 1 | 03-16-2023 06:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|