Hot answers tagged

7

Key column is a value, that is saved to the field and replaces previous value. The idea is that each key corresponds to value, that you see in the drop-down menu. EDIT: Imagine a simple table: Key | Value 1 | Apple 2 | Pear 3 | Passion fruit Value relation enables you to select "apple" in a drop-down, but save value "1" (the key) to the field. As ...


4

Not in the current version (3.0), but the next version (3.1) will support showing related records. Update: version 3.1 was released in December 2012 and supports editing related records. This functionality is provided by the RelationshipInspector component which is also part of the AttributeTable and PopUpInfo classes. http://resources.arcgis.com/en/help/...


4

You are going to add the basemap gallery code to your existing. You will need to modify portions of your code in the index.html by adding the following HTML: <div id="basemapGallery"></div> in the spot you want the gallery to be located Then in the map.js file you will need to add the widget code by first adding dojo.require("esri.dijit....


4

The widget types Value Relation and Relation Reference have a large overlap. Certain functionality - like (chained) filtering which you are using here - is only implemented for one of the two. So yes, this is a valid/reasonable approach. There is no simple way (yet) but it wouldn't be much effort to hide this button with an option in the widget configuration ...


4

This problem has quite a simple solution, which is not so obvious at first sight. I found it by studying the documentation to QgsVectorLayer in detail. This has a method setDisplayExpression(). The solution is that the display expression is not a property of the child layer for which the relation reference is set up, but for it's parent layer (the 1 in the 1:...


4

I believe this should solve your problem. See comments in the code below. var lon = ui.Textbox({ value: 1.0, placeholder: 'Enter longitude here...', onChange: function(value) { // set value with a dedicated method lon.setValue(value); return(value); } }); print(lon); var lat = ui.Textbox({ value: 1.0, placeholder: 'Enter latitude ...


3

I am not really sure if you mean ASP.NET, or really a .NET Desktop or even mobile Application, but I assume you mean the latter ones, as you already will have a clue how to insert a Leaflet Map into a ASP.NET application. If you don't have a commercial framework like ESRI's ArcEngine or mapdotnet.com available, one possible option is SharpMap. There are ...


3

I'm sure someone will correct me if I'm wrong but I'm not sure you can do this with the OpenLayers api. You can only have three different types of controls with OpenLayers: OpenLayers.Control.TYPE_BUTTON OpenLayers.Control.TYPE_TOGGLE OpenLayers.Control.TYPE_TOOL (see http://dev.openlayers.org/docs/files/OpenLayers/Control-js.html) and none of ...


3

Unless I am misunderstanding something, the situation shouldn't be that complicated. Create a number of web maps which all refer to the same datasets that are stored in ArcGIS Online. Give edit permissions to the staff, and allow them to make changes. Something like this: These changes will automatically be seen in all webmaps which refer to those ArcGIS ...


3

I got an email response from an Esri representative. Copied below: "BasemapGallery doesn't have any events. If you would like to execute custom behavior whenever the active basemap changes, or the source of the BasemapGallery changes, then this can be handled by setting up a watch on the appropriate property. https://developers.arcgis.com/javascript/latest/...


2

My guess is although you've added additional classes to your require statement, you haven't added additional references to map them to meaning that they are mismatched. Each class you require maps to the reference you specify at the same position, so, the first required class maps to the first reference, the second to the second and so on. I'm guessing the ...


2

Change map.addLayer(layer); to map.addLayers([layer]);


2

What is shown in the layer properties / Fields tab in the column Edit widget is not defined by the .ui file (like you seem to assume as you are saying "recognized"). Instead, it is a configuration that needs to match your .ui-file. You can open it and change the edit widget to Check Box and configure it to your needs. To set these values with python you can ...


2

Close and Open Widget http://forums.esri.com/Thread.asp?c=158&f=2421&t=277136 to share data in between widgets you can use Creating a local SharedObject


2

To start with your custom widget, you need ArcGIS for Flexviewer3.6 source code ArcGIS API 3.6 for Flex. You can download Flexviewer3.6 source code from GitHub. AcrGIS API 3.6 for Flex from esri under ArcGIS API for Flex section. Steps to import the source code to Flash Builder: Flash Builder -> File -> Import Flash Builder Project. Browse to ...


2

you aren't using the appropriate mixed casing for 'outFields' in your AMD FeatureLayer constructor. layer = new FeatureLayer(json, { ... outFields: ["*"], ... }); this is what is causing the problem you noticed in your AMD application downstream.


2

I did a test by saving a simple text file in 4 different encoding formats: ANSI Unicode Unicode big endian UTF-8 I then took the above text files, imported them into Microsoft Excel (by dragging the text file), saved these as .csv files and tried to load them into the Value Map widget. Interestingly, only the data from the ANSI and the Unicode csv files ...


2

The modules in your require are not matching with the variables in the function. You need to move the modules dijit/layout/BorderContainer, dijit/layout/ContentPane, and dijit/TitlePane to after esri/symbols/SimpleFillSymbol.


2

3.1 allows viewing and editing of related tables, they have to be in table format and not a layer.


2

A similar function has been introduced recently It requires the possible values to be grouped on the related layer and is slightly more involved in setup. If you have a layer Plots Name class (foreign key to Classes:pk) And a layer Classes pk Type [Agriculture/Forest] Plant [Pines/Olives/Corn/Wheat] You will need to add a new relation in Project ...


2

why not just set 'scope' as the LayerSwipe widget's "type"? var swipeWidget = new LayerSwipe({ type: "scope", // options are 'vertical' (default), 'scope' and 'horizontal' map: map, layers: [swipeLayer] }, "swipeDiv"); swipeWidget.startup(); (live example here)


2

By following the example in this video, I was able to get the widget to refresh automatically when a new record was added to the parent layer, and saving the parent layer is not required for the refresh. (Note, updates to an existing record in the parent layer still aren't automatically refreshed in the widget list. However, this does not really matter, ...


2

I created a workaround to get the results I needed. I basically created a vector version of the raster: Converted a raster to points which gave me the points with elevations Run "Add XY Coorinates" tool to add the XY so I had points with X,Y,Z coordinates. I needed the same raster as polygon cells identical to the input raster so to get around the ...


2

Just found an answer on my own (monday mornings...). I just did not see that setWidgetType() wants the field ID as input, not the field name, so I have to >>> iface.activeLayer().fields().indexFromName('text_x') 7 iface.activeLayer().editFormConfig().setWidgetType(7, u'Hidden') or using setEditorWidgetV2() directly on the layer: iface.activeLayer(...


2

Yes. Think of markup as simply another hosted feature layer. You can create a 'Map Notes' layer from a default template within My Content. Add the editing tool to AppBuilder. You can also make use of editor ownership to ensure markup is not editable by other users. Alternatively, make use of the draw widget and save session widget.


2

With your layer already loaded into the QGIS TOC (the layer that contains all the possible values), you should go to properties > attributes form > Widget type and select a «Value Map type». Then, click on Load Data from Layer button and on the upcoming window, you should select the layer as well as the column where to get the possible values from. Then, ...


2

You will need to build an attribute expression in the Filter widget: So basically: <<YOUR_USERNAME_FIELD>> is *USERNAME* The custom code below will replace *USERNAME* with the currently logged in user's username. You will need to alter two of the functions in Filter/Widget.js. These lines in PostCreate() will get the current Portal username: ...


1

import arcpy fcout = r'C:\Hydrants_test01.shp' url = 'http://agis21.frankfort.ky.gov/ArcGIS/rest/services/Hydrants/MapServer/0/query?text=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&objectIds=&where=1%3D1&time=&returnCountOnly=false&returnIdsOnly=false&...


1

From a quick glance, your configuration looks correct. You can omit the geometry property for the query but that should not influence the success or failure. The most common reason for the query not executing and not receiving an error message is that the url for the query is wrong or cannot be determined from the layer using layerID and sublayerID. I ...


1

The expression you provided: expression: '(TESTDATE LIKE \'[value]%\')' will not work. As an example, if the user enters in 2012 for the search value, it would create a where clause of (TESTDATE LIKE '2012%') which will not provide any results. First off, a "LIKE" operator cannot be used with a date field so you'd have to use comparison operators such ...


Only top voted, non community-wiki answers of a minimum length are eligible