|
POST
|
Hi Dan, I am appending into an edit version of our production schema. Python and Toolbox both produce the same results. In a final Python script I create proper field map objects, but when I see odd results I test the pants off of Toolbox. I have worked around the issue by delete all fields in my sources that have the same name as a target field, if I'm trying to avoid that field in the source. This is all after the fact and looking for an explanation of field mapping 'under the hood'. I would like to report a bug, but would like some more opinions.
... View more
07-20-2016
03:29 PM
|
0
|
1
|
1501
|
|
POST
|
Hello, I'm getting some odd results from my FieldMappings and am wondering if it can be explained. Using Append, I'm combining five FCs into one existing FC using Delete Feature and Append. All FCs are in a different geographic area so there are no features overlapping. The Target FC contains a field Asset_ID. All five sources also have Asset_ID, but I don't want to use one of them, instead I'm trying to map to eg. SomeOtherID for one of the sources The Append still seems to be trying to use the Asset_ID field for all sources. I've noticed that if a Asset_ID value is NULL, it then reverts to the SomeOtherID. That made me think about the Merge rule, so I switched to Last, and it worked fine. so.... is the merge rule referring to the order of fields in my source tables?.. This is not what I thought the rule was for, why would it even still consider the Asset_ID when I've told it to go to another field? It feels like it takes either the target field and looks for it in all the sources by default, or maybe it takes each of the mappings and tries to look for them in all the sources?.... if anyone has some time to test a scenario like this it would be greatly appreciated. 10.2 and 10.4 Thanks, Dave
... View more
07-20-2016
11:57 AM
|
0
|
5
|
3454
|
|
POST
|
Thanks I got it working! it should be mentioned that the above attributes need to go into a 'properties' element {........ "properties":{ "inPanel": false, "hasUIFile": false, "hasStyle": false, "openAtStart": true } } Thanks again, your help and contributions to the forum are invaluable and very appreciated! Dave
... View more
05-04-2016
08:30 AM
|
0
|
0
|
4569
|
|
POST
|
This is great, I'm 95% there, but the button will only appear if the widget has been previously opened (understandable). I've read some of your other answers regarding loading a widget at start-up but keeping it invisible. I also started with an in-Panel widget (Print) but I don't need the UI anymore. where can I initiate the widget to allow the popupHandler to initialize? I've tried this but to no success. "widgetOnScreen": { "widgets": [{ "uri": "widgets/PrintDemo/Widget", "position": { "relativeTo": "map" }, "version": "1.4", "id": "widget_PrintDemo", "name": "PrintDemo", "label": "Print Demo", "config": "configs/PrintDemo/config_PrintDemo.json", "visible": true }, { any other suggestions?....
... View more
05-03-2016
12:42 PM
|
0
|
2
|
4569
|
|
POST
|
Lovely, I will need to learn both or else I'll be stuck in 1.3 until I do. Let's start with 1.3 for now. Is the 2.0 technique significantly easier, or just different?
... View more
05-03-2016
08:39 AM
|
0
|
8
|
4569
|
|
POST
|
very similar question to this Is there a widget or set a serivce on Arc Server to download selected feature from WAB pop-up window? I have created a Property Report widget (it is just a watered down Print widget using the Export Web Map) but now I'm looking for a simple way to present this to the user. If I could find where the 'Zoom To' comes from I'm sure I can add my own Property Report button in the same fashion. It would be ideal to place this in the pop-up. In doing so I assume I will have access to the feature's attributes to pass them to my Print code for the customTextElements. Thanks for any possible help...
... View more
05-02-2016
03:08 PM
|
1
|
15
|
8989
|
|
POST
|
thanks, looks simple in concept, but it returns def before return or error are ever reached. is this not the concept? launchQuery: function () {
var stepOneSuccess = this.getEvacGeom(selAreaName, selStatus);
if (stepOneSuccess) {...}
},
... View more
04-22-2016
01:25 PM
|
0
|
1
|
809
|
|
POST
|
curious how to return a Boolean within the lang.hitch environment. I would like to : call query and return true or false so I know to continue or not I am currently using lang.hitch for the query's return function and just chaining my next query within that, I would like to call the second query from outside of this. something like: var pass = Query1(); if (pass) Query2 here is some code // Step 1
getEvacGeom: function (area, status) { //, order, alert, recind) {
var pass = false;
var queryTask = new QueryTask(this.EvacLayer);
var query = new Query();
query.returnGeometry = true;
query.outFields = ["*"];
query.outSpatialReference = this.map.spatialReference;
query.where = "AreaName = '" + area + "' and Status = '" + status + "'";
queryTask.execute(query, lang.hitch(this, EvacGeom_returned), lang.hitch(this, EvacGeom_error));
function EvacGeom_returned(results) {
if (results.features.length > 0) {
for (var i = 0; i < results.features.length; i++) {
var feature = results.features;
if (feature.attributes["EvacType"] == "Order")
feature.setSymbol(symbolOrder);
else if (feature.attributes["EvacType"] == "Alert")
feature.setSymbol(symbolAlert);
else if (feature.attributes["EvacType"] == "Recind")
feature.setSymbol(symbolRecind);
_glEvacs.add(feature);
};
// call Step 2 OLD WAY
//this.getParcelsByEvacExtent(evacExtent);
// NEW ATTEMPT
pass = true;
// ? return pass;
}
}
function EvacGeom_error(e) {
busyList.hide();
alert(e.message)
};
return pass; // this just returns the original false......
},
... View more
04-22-2016
10:41 AM
|
0
|
3
|
2688
|
|
POST
|
Hi, I've created a Hosted Feature Service that needs to have public read-only access, but needs to be edited by a certain group. This HFS was previously left open to the public to edit, but that is obviously not a good idea. I've followed the technique from this article but now realize that this is for access through ArcGIS.com only,.. Hopefully not because I've create a WebApp to provide editing capability. Question is can I use this technique to restrict editing of public layers, and yet edit the layer through my WebApp ....is the highlighted the only way to edit if I follow this suggestion? ....are there any other ways to provide public read-only access, yet still have the HFS editable? Thanks, Dave
... View more
03-18-2016
04:36 PM
|
0
|
1
|
2213
|
|
POST
|
so, this isn't so much a solution, but a workaround to avoid the 'map data not available' tiles. this code will force the print service to draw at the last available scale of the basemap. you must find the last scale for your specific area. World_Topo_Map (MapServer) For my area, the basemap quits at Level 20, so I set the scale to 847 which is just barely past halfway between Level 19 (1128) and Level 20 (564) so the end user does not get the exact scale that they see on the screen, but they also don't get the dreaded 'map data not available' tiles. this is in the Print Widget's Print.js about line 270 (V1.3). I added the else statement. printDefInspector: function(printDef) {
//do what you want here then return the object.
if (this.preserve.preserveScale === 'force') {
printDef.mapOptions.scale = this.preserve.forcedScale;
}
else if (printDef.mapOptions.scale < 847) {
printDef.mapOptions.scale = 847;
}
return printDef;
},
... View more
02-02-2016
02:25 PM
|
2
|
0
|
1411
|
|
POST
|
Hello, Is there any way to force the BaseMap to draw at its minimal scale, instead of receiving 'Map data not available' tiles. I guess JavaScript is allowing the BaseMap to draw past the last scale but the Print Service does not?..... Very tough to explain to a public user that what they see is NOT what they get.
... View more
02-01-2016
02:35 PM
|
0
|
3
|
3452
|
|
POST
|
Thanks a million, I should have seen that. here are the four steps I took to enlarge the icon, enlarge the image within, move one over, and change the panels open position.
... View more
01-22-2016
03:05 PM
|
1
|
5
|
4172
|
|
POST
|
hello, I'm sure the developers are probably tired of us mucking in their code, but I really want to make my on-screen icons bigger. I found where to change the size of the image within the icon, but not the icon itself, it gets overwritten from the 'Inline style' this is in ~\jimu.js\css\jimu.css /*css for PreloadWidgetIcon dijit*/
.jimu-widget-onscreen-icon{
width: 105px; /*added*/
height: 105px; /*added*/
position: absolute;
cursor: pointer;
border-radius: 4px;
}
.jimu-widget-onscreen-icon img{
width: 80px; /*changed*/
height: 80px; /*changed*/
margin: 10px;
} if there is some easy code to change, please let me know, thanks.
... View more
01-22-2016
09:57 AM
|
0
|
19
|
9909
|
|
POST
|
or... back to my original code at top, I just realized you can add a new attribute directly using... var feature = new Graphic(results, symbol, inPoints.attributes);
feature.attributes["new_att"] = "new_value";
... View more
11-20-2015
08:18 AM
|
1
|
1
|
2869
|
|
POST
|
Thanks, yes, I was trying to add to an existing attribute stack. I got it working with this. atts = inPoints.attributes;
atts["new_att"] = "new_value";
var feature = new Graphic(results, symbol);
feature.setAttributes(atts); thanks again.
... View more
11-19-2015
09:06 AM
|
0
|
2
|
2869
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-02-2016 03:08 PM | |
| 2 | 02-02-2016 02:25 PM | |
| 1 | 03-08-2017 09:24 AM | |
| 2 | 05-23-2018 11:24 AM | |
| 1 | 09-24-2020 05:58 PM |
| Online Status |
Offline
|
| Date Last Visited |
02-08-2023
06:01 PM
|