Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all 2097 articles
Browse latest View live

Make Hyperlinks in Related Records

$
0
0
Hi,

In the "Attribute Table widget" of FlexViewer 3.3, if a Uniform Resource Locator (URL) exists as a field value in the Related Records, it is displayed as plain text string not as a hyperlink.

Does anyone know or can anyone give me some directions how to make the URL field as a hyperlink?

Thanks a lot in advance

Rose

Viewer 3.2 Server 10.1 Export Web Map Task Error 2032

$
0
0
We have been using Flexviewer 3.2 to serve out our services and everything has been working fine. We were using an older print widget and we decided to try and take advantage of the new advanced printing capabilities on our ArcGIS Server 10.1 SP1. We entered our URL:

http://fwbgis/arcgis/rest/services/U...b%20Map%20Task

and we have also tried:

http://fwbgis:6080/arcgis/rest/servi...b%20Map%20Task

Both URLs work in the print widget when we view our flex app in either Firefox or IE. The problem is that we get the following error pretty often, more often in IE than Firefox. It seems like the more we display on the map the more printing fails.

Quote:

Error executing print task:

[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://fwbgis:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute"]. URL: http://fwbgis:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute"]
We added the .swz to the mime types in IIS. We have our config.xml file setup properly. Has anyone else ran across this type of behavior?

Thanks,

Luci

Enhanced Time Slider

$
0
0
Hello,

Have a question about ETime Slider, Is it possible to show popups while time slider is playing?

Thank you,

Viewing and editing secured services

$
0
0
Hello.

I'm trying to make flex viewer application, which is based on secured services. All my secured services are for authenticated users. Security stores (users and roles) are on Microsoft SQL Express 2012. All works ok when I'm using ArcGIS Server Manager default applications.

But during basemaps' selection, I'm trying to login to secured services. Login window appears, I'm filling by credentials and then next login window appears. This time it's windows forms login window.

Can anyone tell me why do I have to first give my credentials from SQL express and then from server?
Are credentials from sql express not enough?

Activating layers with .setVisible, and how to update legend widget

$
0
0
I am building a new Flex API widget in FlashBuilder to turn on and off groupings of layers. My App also uses the standard legend widget.

In my widget, I am using 'map.getLayer("MyLayer").setVisible(true);' to turn on the layers I want.

But this doesn't update the legend widget layer display. Can someone give a few pointers please. I have the map object, but cant figure out how to get to the legend from there. Thanks

TOC - parent layer chekcbox

$
0
0
I'm working with Flexviewer 3.1 with mapservices that have quite complex hierarchy with group layers and subgroup layers e.g.:

x Mapservice
--o Group Layer 1
----o Subgroup Layer 1
------o Map Layer 1
------o Map Layer 2
----o Subgroup Layer 2
------o Map Layer 1
------o Map Layer 2
--o Group Layer 2
----o Subgroup Layer 1
etc.

By default only the mapservices are ticked as defined in the config.xml (visible=true). I would want all the layers to be turned off by default (this i can control by the mapservice publishing process), but when user ticks on the checkbox of a subgroup layer or map layer down in the hierarchy, the layer would be visualized on the map. This would require that all the parent layers are ticked off automatically. It would be much more user friendly and create less confusion (users ticking on layers but not seeing them on map).

So the question is: How should I modify the TOC so that the parent layers are automatically turned on when any of their child group layer or map layer check box is ticked?

I guess that it needs to be implemented under src/com/esri/viewer/components/toc/tocClasses/TocMapLayerItem.as but I'm puzzled on how to implement it by code. I searched for some related threads but could not come up with a working solution.

Any help would be much appreciated.

- Joni Kaitaranta

Attribute Table "Selection" Problem

$
0
0
Using Flex Viewer 3.3, ArcGIS Server 10.0

I have two tables. Table 1 has "Point" data, and Table 2 has "Polygon" data. When I select rows from the Attribute Table 1 it highlights the selected row in blue, puts the "glow" around the item and I can zoom to the location. However, when I select a row in Attribute Table 2 (Polygons) that the row gets highlighted in blue, but the item does not get selected and I can't zoom to it.

Is this a documented "feature" and I just haven't found it, a configuration error on my part or a bug?

Main Configuration File:
<layer label="People" type="dynamic" visible="False" alpha="1.0" <<-- Point data
url="http://usa03:83/arcgis/rest/services/WFS/People/MapServer">
</layer>
<layer label="Spend" type="dynamic" visible="False" alpha="1.0" <<--Polygon data
url="http://usa03:83/arcgis/rest/services/WFS/Geography/MapServer">
</layer>

Query widget creates list, but doesn't zoom to map

$
0
0
I'm trying to figure out the Query widget, but I'm fairly new to this stuff. It will create the list from the query, but when I click on a list item, nothing happens. I'm guessing I'm not including something, but what?

Thanks,
Harry

Zoom To in Layer List Does Not Work v.3.3

$
0
0
Hi All,

Anyone know if there is a bug in the v3.3 Layer List that disables the Zoom To feature? I have not had issues with previous versions and since upgrading to 3.3 the feature does not work for me.

Any info appreciated,
PW

Modify dynamic layer symbology inside my web aplication

$
0
0
From doing some background reading I understand that a Symbology can be altered for dynamic layers?
Is there any current widgets that allows me to do this from inside my server/web application?

The ArcGIS Viewer for Flex Thematic Widget: http://www.arcgis.com/home/item.html...b056cdcbdc9ad0
Has some of the customisations I am looking for, however I don't want to just alter the symbology for the attributes, or have to make a classification.
I guesse what I'm looking for is the same functionality of the symbology tab in arcmap in my web app.

Is this possible, are there any current widgets with similiar outcomes?

Auto Search text box

$
0
0
Does anyone know how to perform a search just like Robert has on his own gis site able to show some autocomplete search information for users. It is a very nice feature. For example, you can just type couple numbers or alpahbets then text box will show you some remaining choices with your input.
Thank you.
Attached Thumbnails
Click image for larger version

Name:	searchauto.gif‎
Views:	N/A
Size:	17.0 KB
ID:	24506  

ESRI basemaps display scales

$
0
0
I am just curious if there is a way to only have ESRI basemaps turn on at a certain scale? My map opens up at the 577,xxx scale, but don't want the imagery to turn on until I get moved in closer. Is there any way to do this using the basic Flexviewer application?

Thanks,

How to limit the number for the seleted records in Graphic search for Esearch Widget

$
0
0
Roblert,

Another question for the Graphic search in Eseach widget. Where I can modify the code to only allow 50 as the maxium selcted results?
For instance, if the user use polygon the select the parcels, I only like to let user get the first 50 records in the grid result. I do not like user got all the parcels.

Thanks
Zhujing

Heat Map Widget - Time functionality

$
0
0
I've succesfully imported and set up the Heat Map for the ArcGIS Viewer for flex here:

http://www.arcgis.com/home/item.html...752da1340aeb40

However, I am unable to get the time functionality to show up. Any ideas on why it wouldn't show up at all? I'm not sure where I change the code to point it to the date field as well.

Attachment 24546

Here is my code:

<configuration>
<layers>
<layer>
<name>Part I Offenses HeatMap</name>
<url>http://server1:6080/arcgis/rest/services/Map/Op_Crime_All_Dynamic_SP/MapServer/0</url>
<outFields>addtime,Category</outFields>
<useproxy>false</useproxy>
<useamf>true</useamf>
<defaultquery>1=1</defaultquery>
<querytemplate>Category = REPLACE_STR</querytemplate>
<types>'Aggravated Assaults','Arson','Burglary','Homicide','Larceny/Theft','Rape','Robbery','Stolen Vehicles'</types>
<type_descs>Aggravated Assaults,Arson,Burglary,Homicide,Larceny/Theft,Rape,Robbery,Stolen Vehicles</type_descs>
</layer>
</layers>
<ui>
<widget_dimensions>
<width>410</width>
<height>206</height>
</widget_dimensions>
<icons>
<base_url>widgets/HeatMap/assets/images/</base_url>
<main_icon>i_rainbow.png</main_icon>
<main_label>Main Panel</main_label>
<settings_icon>i_options.png</settings_icon>
<settings_label>Settings Panel</settings_label>
</icons>
<refresh_label>Refreshing Layer...</refresh_label>
<query>
<comp_label>Part I Offenses:</comp_label>
<heatmapquery_prompt>All Offenses</heatmapquery_prompt>
<featurecount_label>Features Contained</featurecount_label>
</query>
<timeslider>
<loop>true</loop>
<thumbcount>2</thumbcount>
<thumbmovingrate>1200</thumbmovingrate>
<dateformat>MM/DD/YYYY</dateformat>
</timeslider>
<transparency>
<comp_label>Transparency:</comp_label>
<defaulttransparency>0.8</defaulttransparency>
</transparency>
<density>
<comp_label>Heat radius:</comp_label>
<defaultdensity>15</defaultdensity>
</density>
<symbol>
<comp_label>Colors:</comp_label>
<defaulttheme>CUSTOM</defaulttheme>
<customtheme>0xEBED95,0xEDB019,0xD24F0B,0xD21813,0xBA5B6D</customtheme>
</symbol>
</ui>
</configuration>
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG‎
Views:	N/A
Size:	22.0 KB
ID:	24546  

Trying to Get the GeoProcessing Widget to Work

$
0
0
Attachment 24551Attachment 24552Attachment 24553Attachment 24554Hello,

I am trying to run a Python script tool via the Geoprocessing widget in the Viewer for Flex 3.2 software.

On my first attempt last week everything seemed to run well, however instead of overlaying the results of the GP tool onto the screen, the widget provided me a link to download the results instead. While this was nice, its not what I am trying to do.

I am using Python stand alone code to process 4 tif files via the Weighted Suitability Overlay tool. The intial output file data type is a raster file.

Can the GP widget overlay a resulting raster file or do I need to convert it to a polygon?

Everything seems to work fine on my desktop, however its not playing happy in the widget. The error I am currently getting is the "400" fault code "Unable to complete operation".

Also, I seem to always get promoted to log in when I click on my GP widget. Why is this happening, can I turn it off or do I need to supply the end users with a generic code?

I have plenty of screenshots and code to submit if needed. Was hoping someone might have a simple answer.

Thanks,

Haskett
Attached Thumbnails
Click image for larger version

Name:	signInError.PNG‎
Views:	N/A
Size:	21.7 KB
ID:	24551   Click image for larger version

Name:	gui.PNG‎
Views:	N/A
Size:	41.1 KB
ID:	24552   Click image for larger version

Name:	results.PNG‎
Views:	N/A
Size:	75.7 KB
ID:	24553  
Attached Files

Query results degrade panning performance

$
0
0
I have an operational layer with about 20,000 points coming from a sublayer of a map server:

http://myserver/ArcGIS/rest/services...ta/MapServer/0

I also have a custom widget that will run a query against that same feature layer and add the returned features as graphics to a graphics layer that is created when the widget initializes. Technically the user could ask the widget to give them back all 20k points. If they do this, or even get back 5k records, the panning performance is incredibly degraded.

The question:
Why can I have all 20k features visible from the operational layer with normal panning, but adding even a quarter of them as query results degrades panning to an almost unusable state?

Here is the code that creates the graphics layer:
Code:

                        private function init():void
                        {
                                // build the layer to hold the graphics
                                graphicsLayer = new GraphicsLayer();
                                graphicsLayer.visible = false;
                                graphicsLayer.renderer = new SimpleRenderer(mySymbol);
                                map.addLayer(graphicsLayer);

                                // get output fields from the config file
                                popupfields = configXML.popup.fields.field;
                                popuptitle = configXML.popup.title;
                               
                                // get counties starts the init chain of events to populate dropdownlists
                                getCounties();
                        }

This is the code that puts the query results on the graphics layer:
Code:

                        // handle normal response from the server
                        private function onDoQueryResult(featureSet:FeatureSet, token:Object = null):void
                        {
                                // check for no records returned
                                if (featureSet.features.length == 0){
                                        // tell the user no records matched the query
                                        Alert.show("No records matched the query.");
                                }
                               
                                // set the extent of the map to the extent of the graphics
                                var graphicsExtent:Extent = GraphicUtil.getGraphicsExtent(featureSet.features);
                                if (graphicsExtent)
                                {
                                        map.extent = graphicsExtent;
                                }
                               
                                // assign a popup to each graphic
                                for each (var graphic:Graphic in featureSet.features)
                                {
                                        var infoWindowRenderer:ClassFactory = new ClassFactory(PopUpRenderer);
                                        infoWindowRenderer.properties = {popUpInfo: configurePopUpInfo()};
                                        graphic.infoWindowRenderer = infoWindowRenderer;
                                }
                               
                                // make sure the graphics layer is visible
                                graphicsLayer.visible = true;
                               
                                // set the graphic content to the query results
                                graphicsLayer.graphicProvider = featureSet.features;
                               
                                // query is complete so enable the controls
                                enableControls();
                        }

For reference this is configurePopUpInfo():
Code:

                        // configure the popup for a graphic
                        private function configurePopUpInfo():PopUpInfo
                        {
                                var popupFields:Array = [];
                                var popUpInfo:PopUpInfo = new PopUpInfo();
                               
                                popUpInfo.title = "{" + popuptitle + "}";
                               
                                for each (var field:Object in popupfields){
                                        var popupFieldInfo:PopUpFieldInfo = new PopUpFieldInfo();
                                        popupFieldInfo.fieldName = field.name;
                                        popupFieldInfo.label = field.alias;
                                        popupFieldInfo.visible = true;
                                        popupFields.push(popupFieldInfo);
                                }
                               
                                popUpInfo.popUpFieldInfos = popupFields;
                               
                                return popUpInfo;
                        }

Any input or guidance would be greatly appreciated.

Thanks,
Aaron

Map Services widget for 3.2? or 3.3?

$
0
0
Does anyone have updated compiled code for the Map Services widget for version 3.2 or 3.3? I am interested in adding it to a viewer, but the code posted for v3.1 does not seem to work with my v3.2 viewer. I can select a layer from the list, but it just chugs and chugs and never adds the service to the map. I am assuming it is because of the incompatible versions, but of course not entirely certain since I'm a newbie at Flex. Thanks in advance for any help.

Here is link to Map Services widget:
http://www.arcgis.com/home/item.html...f3f501fee02b76

Search and Query widgets can't work without ArcGIS Server?

$
0
0
Hello

In our organization we don't have ArcGIS Server.
I need to create a simple web map application that allows to search/query features in shapefiles.

Can I search/query the features through Flex Viewer without having ArcGIS Server? The widgets ask to enter the "search URL address of the searchable layer", the "layer URL for the layer in which you wish to query". These layers can only be hosted on an ArcGIS Server?

Thank you

FlexViewer 3.2 Arc Server 10.1 Popup bug

$
0
0
Hi,

I am not sure if it is a bug but I was going through and cleaning up our map services on our 10.1 server. Under "Capabilities" I was unchecking Data. This should only prevent someone from being able to modify the Data. But, in our Flexviewer 3.2 app using the 3.2 api, clicking on the map resulted in no popups after the change. I went back and allowed the Data capability and the popups once again showed up. In our Javascript app the popups worked whether Data was checked or not, which is how it should be. Query is the only thing that should affect a popup right? Anyone else experience this and is this fixed if I use the new api? Is the new api compatible with the 3.2 version of flexviewer?

Thanks,

Luci

Operational layer clustering vs. esri:WeightedClusterer

$
0
0
I have an operational layer that is clustered as follows:
Code:

            <layer type="feature" label="Sites (Grouped)" url="http://myserver/ArcGIS/rest/services/MyData/MapServer/0" popupconfig="popups/PopUp_Sites.xml" mode="snapshot" visible="true" >
                <clustering mingraphiccount="1" sizeinpixels="80">
                    <clustersymbol type="flare" alphas="0.7,0.7,0.7,0.7,0.7" bordercolor="0x996600" colors="0x00FF00,0xFFFF00,0xFF9900,0xFF6600,0xFF0000" flaremaxcount="30" size="30" sizes="30,45,60,75,90" textcolor="0x000000" textsize="14" weights="30,50,100,500,25000"/>
                </clustering>
            </layer>

I've built a widget that is running a query and clustering the returned graphics as follows:
Code:

                        // this function called when the widget's configuration is loaded
                        private function init():void
                        {
                                // build the layer to hold the graphics
                                graphicsLayer = new GraphicsLayer();
                                graphicsLayer.visible = false;
                                graphicsLayer.renderer = new SimpleRenderer(mySymbol);
                                graphicsLayer.clusterer = clusterer;
                                map.addLayer(graphicsLayer);
                                ...

Code:

        <fx:Declarations>
                <text:TextFormat id="tf" font="Arial" size="14" color="0x000000" />
                <esri:FlareSymbol id="flareSymbol" backgroundAlphas="[0.7,0.7,0.7,0.7,0.7]" borderColor="0x996600" backgroundColors="[0x00FF00,0xFFFF00,0xFF9900,0xFF6600,0xFF0000]" flareMaxCount="30" sizes="[30,45,60,75,90]" weights="[30,50,100,500,25000]" textFormat="{tf}" />
                <esri:WeightedClusterer id="clusterer" symbol="{flareSymbol}" sizeInPixels="72" minGraphicCount="1" />
                ...

The operational layer clusterer apparently has a click event that is not being implemented on the esri:WeightedClusterer used by my graphics layer in the widget. When you click an operational layer non-flared cluster symbol you get an infowindow that lets you click through all the info for the graphics contained in that specific non-flared cluster symbol. I need that same behavior on my clustered graphics layer's non-flared cluster symbols.

I've tried assigning a renderer to the whole layer, but that didn't seem to work. I'm assigning an infowindow to each graphic like this, but this only seems to affect the flared graphics:
Code:

                                // assign a popup to each graphic
                                for each (var graphic:Graphic in featureSet.features)
                                {
                                        var infoWindowRenderer:ClassFactory = new ClassFactory(PopUpRenderer);
                                        infoWindowRenderer.properties = {popUpInfo: configurePopUpInfo()};
                                        graphic.infoWindowRenderer = infoWindowRenderer;
                                }

So, I'm getting the infowindow for flared symbols, but does anyone know how I can get the infowindow to show for the non-flared cluster symbols too using esri:WeightedClusterer?

Thanks,
Aaron
Viewing all 2097 articles
Browse latest View live