|
POST
|
With some clearer thinking my issues with aspect seem to be that it isn't in Dojo 1.6 and therefore the ArcGIS javascript api. http://dojotoolkit.org/reference-guide/1.6/dojo/aspect.html goes to nothing. Without replacing anything and using a local api it looks like I can't use that. The suggestion did lead me to the watch method which has let me build a series of five cascading Comboboxes which get their values from a rest service providing the valid values for the previously selected Combobox!
... View more
07-10-2015
01:01 PM
|
1
|
2
|
1295
|
|
POST
|
That looks exactly like what I'm looking for. I haven't gotten it to work. Looking at this sample Avoiding onChange on ComboBox when chaning selection dynamically - JSFiddle I've blended that into my code. The ON seems to get overwritten just like the regular onChange which I'd expect, the WATCH looks great and I may be able to get the behavior I need from it, the AFTER bombs with a "TypeError: Unable to get property 'after' of undefined or null reference". I've placed the dojo/aspect in my define block at the top of the widget, and included aspect in the function declaration of the widget. It seems that it 'should' be fine... Have I missed a concept somewhere? The code below is in my onOpen function of the Edit widget. I've tried a variation of it in the getLayers sections of the code as well. this.assetCodeComboBoxDijit = new dijit.form.ComboBox({
store:this.assetStores.codeStore
});
console.log(this.assetCodeComboBoxDijit);
//this.assetCodeComboBoxDijit.on("change", function(value) { console.log("on:", value); });
//this.assetCodeComboBoxDijit.watch("value", function(name, oldValue, newValue) {console.log("watch:", name, oldValue,newValue);});
aspect.after(this.assetCodeComboBoxDijit, "onChange", function(duno, value) {
console.log("onChange:", value);
});
... View more
07-03-2015
02:43 PM
|
0
|
3
|
1295
|
|
POST
|
This is a followup to https://community.esri.com/message/532305#532305 I have two fields using custom Dijits that are pulldowns populated from a store object. The behavior I'd like to see is that when I change one of the pulldowns I hook onto that event and change the contents of the store for the other pulldown. It is the same behavior you would see in ArcGIS desktop with changing a subtype and getting a new domain assigned to a field (except subtypes / domains are bugged in feature services and I want to chain together five of these fields in sequential pulldowns). I've been fiddling with the onchange event of the dijit. I can set it to be a function of my choosing. The problem is that the viewer wants to replace the function I've assigned with the function it wants to assign as part of the out of the api. function(){var h=g._toArray(arguments),e=c?(a||b.global) :f;return e&&e.apply(a||this,d.concat(h))} When I watch the requests being sent to the server this function is related to the applyedits method being called to write the new value to the server. If I'm unable to override the onchange event of the dijit, is it going to be possible to have dijits that influence each other? Is there another potential direction I could take to achieve this behavior?
... View more
07-03-2015
09:17 AM
|
0
|
5
|
4184
|
|
POST
|
That works perfectly, and I see it populated in the console once I've run setGDBVersion(). I notice it's not in the documentation at https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#properties I'm going to try using delete theLayer.gdbVersion; to remove the set version property and return it back to the default when necessary. I assume since it doesn't exist in the original state that having it there an null would cause problems.
... View more
07-02-2015
12:57 PM
|
1
|
2
|
929
|
|
POST
|
I'd like to check to see which version has been specified for a feature layer, but haven't found the property or method to identify this. Does anyone know where it is? Thanks Tim
... View more
07-02-2015
09:58 AM
|
0
|
4
|
3681
|
|
POST
|
I've tried using the customField property and put a keyword into the string there. I'll identify the keyword and swap the string for the dijit object (yay dynamic typing). I'll likely have a couple fields with different names that I want to put the same behavior onto. This should work quite nicely! Thanks. if (layerInfos.fieldInfos .customField == "phoneTextBox"){
layerInfos.fieldInfos .customField = this.phoneTextBoxDijit;
}
... View more
06-30-2015
11:18 AM
|
1
|
0
|
1327
|
|
POST
|
I'm attempting to enhance the editing functionality found in the JavaScript Viewer produced by the Web App builder (Developer Edition). A simple version of what I am attempting would be creating a way to force the validation of an web address into a text box when editing a feature service. From the research I've done so far it appears that I need to set the customField property within the layerinfo section config_edit.json for the appropriate field. When I do put something in there I'm unsure if it's correct because I'm not sure where it is ending up. It looks like it gets passed right through the editor widget.js code (it runs right throughh the getLayers function) and that the popup doesn't know what to do with it (other fields come in fine while my custom field has only a label and a blank spot where my custom dijit should be), but haven't found where to sort that out. I haven't found the spot in the api or a widget's code that looks like where the infowindow/popup get built and would need to reference a custom dijit. For testing I've been trying to assign the URLInput dijit found within the default viewer to a generic text field. If that can work I'll change it out to have different validation. Most of what I've read through the forum talks about doing this sort of thing on generic viewers, but not about attempting it within the web app builder template code. Any help would be appreciated! Thanks. Addition: Clearer version of what I'm attempting. Multi-select input for text field in javascript attribute inspector I haven't figured out referencing a dijit in the out of the box editor config that can be used by the attribute inspector. I want to make what is happening in the linked discussion function in the Web App Builder Widget Framework. I don't require the GUI config, straight to the code is fine. Message was edited by: Tim Dine Message was edited by: Tim Dine
Attachment with some progress using a string in the config that is detected in widget.js and replaced with a phone number validator dijit.
... View more
06-29-2015
11:26 AM
|
0
|
2
|
3843
|
|
POST
|
Curves Curves were the issue. If I create a copy of the source of the feature class and densify the curves into straight segments, locate features along those routes, then transfer the event table to routes built from the FC with curves still in it I`m good. Curves seem to be supported fine by linear referencing, they are not supported by the locate features along routes tool.
... View more
02-04-2015
11:48 AM
|
0
|
0
|
2625
|
|
POST
|
if "CANC" is in row[0], row[2] will always equal "Y" because row[0] = "CANC" or (something that doesn't matter, first option is already true). The only way that row[2] could = "N" is if row[0] is not "CANC" and row[1] has a date in it. I think I've got my Y/N mixed up in the samples below, but these should give results similar to what you're looking for. You've got your checking for a date code right and the script is doing what you're asking, it's your AND/OR logic that looks wonky. ##------------------------ if "CANC" in row[0] and row[1] is None: row[2] = "Y" elif "CANC" in row[0] and not (row[1] is None): row[2] = "N" else: print "Probably PARC" ##--------------------------- if "CANC" in row[0]: if row[1] is None: row[2] = "Y" else: row[2] = "N"
... View more
01-15-2015
06:24 AM
|
0
|
2
|
4936
|
|
POST
|
Do you have any other datasets in your geodatabase that are not "Feature Datasets"? Many types of things are in the high level group called Dataset. I've tested the code on 10.2.1 and the last items that are displayed are "raster datasets" which if you change the code slightly to print "Adding:", dataset, arcpy.ListFeatureClasses(feature_dataset=dataset) you should be able to prove. If you run ListFeatureClasses on a Raster Dataset there will be none and you'll get an empty list. If you're getting an error is it possible yet another dataset type that is not in my test dataset does not fail quite so gracefully when you run ListFeatureClasses on it. Try changing your ListDatasets line to be for dataset in arcpy.ListDatasets("*", "Feature"): ArcGIS Desktop ListDatasets
... View more
01-13-2015
11:57 AM
|
0
|
1
|
790
|
|
POST
|
That looks great. I'm going to give that a shot. It took rereading the Summary Statistics step to get what was happening there, but that is a slick work around! This is being used as part of a data cleanup and migration task. The only catch I see is the possibility that we're going to modify some of the routes in GIS and they'll be different than the line segments coming from Pavement Management. I may need to split the Pavement Management lines with the endpoints of the new routes before creating events so that the PM lines each only land on one route. I should be able to do that with the same verticies to points tool after dissolving my new routes. Thanks for the help!
... View more
11-19-2014
05:51 AM
|
0
|
1
|
2625
|
|
POST
|
I'm attempting to convert some line data about pavement condition to dynamic segmentation events. I have my routes created and I have lines for the pavement condition. I believe I have the routes setup correctly because I can run the "Locate Features Along Routes" tool for a number of point layers without any trouble. I get my events perfectly. I can also take a polygon feature class and get line events perfectly. I can't get lines to create line events. I can buffer my pavement data and convert that to line events, but I get extra bits at the end of the buffers that I don't want. I can run the tool succesfully on any empty line feature class. I can take my pavement condition FC, delete all the features, and the tool runs successfully and an empty event table is created. If there is a single line anywhere in the source FC the tool bombs with a "Table not found" error, no event table is created. Is there something wonky with this tool? Is there an alternative? Can anyone else confirm that the tool works for them? I'm using ArcGIS 10.2.1 without any SP.
... View more
11-14-2014
01:13 PM
|
0
|
3
|
8166
|
|
POST
|
Are there any samples out there of a custom attribute editor dialog? I'm looking for something that shows how you can hook into the dialog (or replace it) and fire custom events when users want to change attribute (before they commit the change, just making the change in the dialog). Thanks
... View more
10-08-2014
12:48 PM
|
0
|
0
|
2834
|
|
POST
|
Chris, Brian: Regarding these comments: Actually, almost all of the GDBT geodatabase administrative functionality was added to core ArcGIS Desktop in 10.1. Please review this help topic, What's new for geodatabases in ArcGIS 10.1 (look under the section titled New ArcGIS tools to administer enterprise geodatabases) The only thing missing from the GDBT is the "state tree viewer" functionality. Hope this helps, A google search trying to find a way to view the state tree in ArcGIS 10.1 brought me here... I had hoped it would be a solution rather than other people looking for the same answer. I'm still searching for a way to find this. I've used that state tree lots of times for various troubleshooting situations.
... View more
02-25-2014
05:09 AM
|
0
|
0
|
2228
|
|
POST
|
I am troubleshooting some poor performance and am starting witht the SDEIntercept log. I've been parsing that and have been looking for time delays and the command before and after that delay. The typical situation I am seeing with 1s or longer delays between commands is pairs of 'CloseStream' and 'StreamSetState' commands. What do these commands do? Is there a problem that is typical of these commands taking a long time between them? Is there something other than long delays between commands that I should be looking for in that log? Thanks!
... View more
10-15-2013
10:51 AM
|
0
|
4
|
4910
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-04-2019 09:22 AM | |
| 1 | 07-10-2015 01:01 PM | |
| 1 | 06-30-2015 11:18 AM | |
| 1 | 01-29-2019 01:43 PM | |
| 1 | 01-25-2019 10:04 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|