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

Error #2036

$
0
0
I'm getting the 2036 error when loading widgets, specifically the search and print widget. Legend widget loads fine. Looking through the other forums suggest this error is a result of an incorrect path or a file that no longer exists. I've tripled checked and the paths are correct and the files are available. Spelling of file names match.

I'm using version 3.4 of the builder and the widgets are 'out of the box'.
Header and map switcher widgets load fine and are fully functional.
The data is hosted on our arcgis.com organization account, but all the layers load fine.
The viewer runs on Windows Server 2008.

Note: as I was writing this, I restarted the server and the now everything works fine, expect for on IE. I get the #2036 error before anything loads, whereas before, I was getting the error just when I tried loading the search or print widget.

I appreciate any help!

Complete map service data not drawing

$
0
0
I have a map service which is a point layer with approximately 50,000 points which I am having trouble viewing in my Flex viewer application. When I look at the small preview window of this service in the ArcGIS Server Manager all looks well. If I view the service with the ArcGIS JavaScript API all looks well. Once I open my Flex viewer application though, only a small portion of the points are drawing. In the service properties under "Parameters", I tried changing the Maximum Number of Records Returned by Server from 1,000 to 50,000. Not sure if this is related, but when I made this change non of my points draw in the Flex viewer. The service in question is a secured service on ArcGIS Server 10.1, Flex viewer 3.1.

Any thoughts on trouble shooting this are appreciated, thank you.

Time slider with feature count

$
0
0
Hi,

I'm using the time slider with a time-aware dynamic map service and am trying to figure out how to get the feature count as well as all the features information as the time slider is playing. I'm trying to listen to the event LayerEvent.Update_End, it fires everytime the slider moves, but could not get the count correctly - the numGraphics always show the total number of features in the layers.

Any help pointing me to the right direction to get this is much appreciated.

Time-lapse widget

$
0
0
Hi guys,

I was just wondering if the time-lapse widget can be used to show progression/change through time for multiple variables at once (through the same time frame, if needed)? I have seen multiple examples of the time-lapse widget, but all of them show only one time-enabled layer.

Also, can the time-enabled layer be a polygon or line, not necessarily a point feature?


Thanks a lot!

Simple list widget with url

$
0
0
I am trying to convert some legacy Flexbuilder 3 code to Flash 4 api 3.4. A user will click on the desired Legislator in a list widget. I get the widget to come up but no list.
Here is the code:

<?xml version="1.0" encoding="utf-8"?>
<!--
///////////////////////////////////////////////////////////////////////////
// Copyright (c) 2010-2011 Esri. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
///////////////////////////////////////////////////////////////////////////
-->
<viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:viewer="com.esri.viewer.*"
widgetConfigLoaded="init()">
<fx:Script>
<![CDATA[
import flash.net.navigateToURL;
//this function called when the widget's configuration is loaded
private function init():void
{
if (configXML) // checking for valid content in the configuration file
{
lbl.text = configXML.content || getDefaultString("helloContent");
}
}
import com.esri.ags.events.GenerateRendererEvent;
import com.esri.ags.renderers.Renderer;
import com.esri.ags.tasks.supportClasses.GenerateRendererParameters;

import flash.events.Event;
import flash.net.URLRequest;

private var u:URLRequest;

// Event handler to open URL using navigateToURL().
private function handleClick(eventObj:Event):void {
u = new URLRequest(data.webPage);
navigateToURL(u);
}
import mx.core.ClassFactory;

public function initCellEditor():void {
// myList.itemRenderer=new ClassFactory(RendererState);
myList.itemRenderer=new ClassFactory(Renderer);
}
]]>
</fx:Script>
<viewer:WidgetTemplate id="LegislatorList"
width="300" height="300">
<viewer:layout>
<s:VerticalLayout horizontalAlign="center" verticalAlign="middle"/>
</viewer:layout>

<s:Label id="lbl"
width="100%"
fontSize="18"
fontStyle="italic"
fontWeight="bold"/>
<mx:VBox label="Pick Your Legislator" styleName="WidgetCanvas">
<mx:List id="myList" variableRowHeight="false" height="475" width="180" alpha="0">
<mx:dataProvider>
<fx:Object label="1"
data="Al Krupski"
webPage="http://legis.suffolkcountyny.gov/do/do01/do01.html"/>
<fx:Object label="2"
data="Jay H. Schneiderman"
webPage="http://legis.suffolkcountyny.gov/do/do02/do02.html" />
<fx:Object label="3"
data="Kate M. Browning"
webPage="http://legis.suffolkcountyny.gov/do/do03/do03.html"/>
<fx:Object label="4"
data="Tom Muratore"
webPage="http://legis.suffolkcountyny.gov/do/do04/do04.html"/>
<fx:Object label="5"
data="Kara Hahn"
webPage="http://legis.suffolkcountyny.gov/do/do05/do05.html"/>
<fx:Object label="6"
data="Sarah Anker"
webPage="http://legis.suffolkcountyny.gov/do/do06/do06.html"/>
<fx:Object label="7"
data="Robert Calarco"
webPage="http://legis.suffolkcountyny.gov/do/do07/do07.html"/>
<fx:Object label="8"
data="William J. Lindsay"
webPage="http://legis.suffolkcountyny.gov/do/do08/do08.html"/>
<fx:Object label="9"
data="Ricardo Montano"
webPage="http://legis.suffolkcountyny.gov/do/do09/do09.html"/>
<fx:Object label="10"
data="Tom Cilmi"
webPage="http://legis.suffolkcountyny.gov/do/do10/do10.html"/>
<fx:Object label="11"
data="Thomas F. Barraga"
webPage="http://legis.suffolkcountyny.gov/do/do11/do11.html"/>
<fx:Object label="12"
data="John M. Kennedy, Jr."
webPage="http://legis.suffolkcountyny.gov/do/do12/do12.html"/>
<fx:Object label="13"
data="Lynne C. Nowick"
webPage="http://legis.suffolkcountyny.gov/do/do13/do13.html"/>
<fx:Object label="14"
data="Wayne R. Horsley"
webPage="http://legis.suffolkcountyny.gov/do/do14/do14.html"/>
<fx:Object label="15"
data="DuWayne Gregory"
webPage="http://legis.suffolkcountyny.gov/do/do15/do15.html"/>
<fx:Object label="16"
data="Steve Stern"
webPage="http://legis.suffolkcountyny.gov/do/do16/do16.html"/>
<fx:Object label="17"
data="Lou D'Amaro"
webPage="http://legis.suffolkcountyny.gov/do/do17/do17.html"/>
<fx:Object label="18"
data="William Spencer"
webPage="http://legis.suffolkcountyny.gov/do/do18/do18.html"/>
</mx:dataProvider>
</mx:List>
<mx:LinkButton id="webPage" label="LD {data.label} {data.data}"
click="handleClick(event)"/>
</mx:VBox>

</viewer:WidgetTemplate>
</viewer:BaseWidget>

Attribute table styling--where to do it? MXML attribute widget, xml, or CSS?

$
0
0
Hello,

I am trying to match the design of an application I created using the Flex API, not the Viewer. I have attached an image with each application side by side, with the one I am trying to mirror on the left. Specifically, the changes I still need to make are:

In the header controller:
--How to change the color of the background of the geocoder only, not the entire header
--How to change the "Enter address..." text in the geocoder

In the attribute table:
--How to make the background color white and the text black (more basic looking)

Attachment 26705

I am pretty sure I can figure out how to make these changes--I just need some direction on where to look!


Thanks in advance for your help!

David
Attached Thumbnails
Click image for larger version

Name:	flex_apps_comparison.png‎
Views:	N/A
Size:	197.7 KB
ID:	26705  

Writing Expressions in Search widget: How to write?

$
0
0
How do I write expression to let user search a field..?

Any tips and tricks..?

what type of data should it be? String? Float? Double?

Different expression for different data type?

Field_A like '[value]' ?

Thanks in advance!

Any reference websites is good too, I can't really do it by referring to this site:
http://resources.arcgis.com/en/help/...0000002t000000

Hyperlink in a pop up

$
0
0
I have a really silly question and it’s probably something simple, but I haven’t encountered it before.

The problem is essentially I have a hyperlink field within the attributes of a feature class which open to google maps/Street View correctly from ArcMap, however they fail to open correctly when the service has been published and added to the Flex Viewer. I have no idea where I can add a Google API key, which I think is the issue but not sure. Any help would be appreciated.

Thanks a lot,

John

error #2036

$
0
0
I'm in the process of building a new application in the application builder when I go to the design or preview tab I'm getting this widgetmanager error #2036. Can anyone help me with is?

How to change the basemap of arcgis-viewer-flex-3.4

$
0
0
Hello all,
I am learning the arcgis-viewer-flex-3.4 recently,and i want to know how to change the default basemap.
I have tried to add <basemap> in the config.xml,but the dafault basemaps were still exist.
Is there anyone can help?
Thanks in advance!

Search widget and secured services

$
0
0
I am using secured services in my Flex viewer application and running into an issue. I am generating a token for my secured services using the HTTP referer method. Even though I generate it for a year something happens where a few days after implementing it, the service stops passing the token through and I have to login to the map service when accessing the application. Though the token isn't actually expired because I can login in successfully, it just isn't being passed through.

When the token is being passed through, when attempting to use the search widget (the Esri one, not the enhanced search widget) I am prompted to login to the service. I should not have to login for the search widget. There is no place in the search widget configuration to put the token. When the token isn't passed through and I have to login to the service to get it to draw, then the search widget works and does not prompt me to login to the service.

Any thoughts on what might be going on are appreciated.

Closest Facility Widget not working in Flex Application Builder

$
0
0
Hi All,

I downloaded Closest Facility Widget for Flex Viewer Application Builder and I am able to import it successfully. It works fine while using sample ESRI Network Service.

I tried embedding my Network Service into the widget but it failed. I even tried importing my custom Closest Facility widget which is working fine using Flash Builder but no success.

Below is the Error :

Input field [sh_name] was not mapped to a field in the network analysis class "Facilities". Input field [DTNAME11] was not mapped to a field in the network analysis class "Facilities". Insufficient number of valid locations in "Facilities" or "Incidents".

Where is it actually I am going wrong for my NA service for Application Builder as the same NA service works fine for my customized Flex application.

Please help.

Thanks,

Map Manager Error - Fault Code 400 - Invalid URL

$
0
0
I've been chasing this problem for a couple of weeks now, and can't seem to figure it out.

A couple of times a day, users receive the following error:

MapManager
MY LAYER failed to load: Fault code:400
Fault info: Unable to complete operation
Fault details: Invalid URL

When the user reloads the site, all works just fine. There are many services running and called in this SFV (v2.5 with Server 10.0) and the errors are not consistent with just one service. Some days no errors, other days some errors, but a reload of the site always fixes the issue.

Any thoughts on how to eliminate this error or what is causing it.

Thanks
Matt Shetzer

Labeling issue in Flex viewer

$
0
0
I have a layer in an application that I'm trying to label. In my MXD the label is working properly. In the configure window for the layer in application builder the field I want labeled is checked, but when I view the map in preview or in a browser there is no label. But when I open it ArcGIS JavaScript out of the ArcGIS REST Services Directory or in arcgis.com the label is there. What's going on?

Point Buffer Widger default values?

$
0
0
Is it possible to configure default values in the Point Buffer Widget? We have the need to make the following defaults to start with: Point Size 10, Buffer Properties to be "1, 2""Miles", "Yellow" fill color, Opacity = 0.1. Is this possible?

Thanx!

problem in Edit widget

$
0
0
Hi every body ,


On Esri tutorial website in edit widget there is save option .. when I tried to use it in my local machine the save button is not appear

Note : my service feature service editable (when I create publish service editable ) .

georeferencing image

$
0
0
hi,

I've done some georeferencing image and need to add it into flexviewer application and i'm thinking to use add shapefile widget. It's possible to do that?

thank.

Identify Widget 3.4

$
0
0
I'm using the Identify Widget 3.4 inside the Application Builder. I keep having the issue where the url is adding a 4 at the end. I also notice when I look at the widget config file, the proper layer id is being added to the url which is incorrect. I'm able to fix the issue by editing the config file but the behavior of the widget when edited by the Application Builder seems to be off a bit.

hyperlink in simple popup

$
0
0
how do I make the htmllink field so it is a hyperlink in a simple popup (not through any widget). Can I?

<title>Photos</title>

<fields>
<field name="date_photo" alias="Photo Year" visible="true">
<field name="htmllink" alias="HTML Path" visible="true"/>
</fields>

Loading widget programmatically fails in IE 8&9

$
0
0
Hi !

I need to load one of widgets dynamically (as a response to certain URL parameter).
I decided that the most suitable place to do it is HeaderControllerWidget:
Code:

                                if ((ViewerContainer.urlConfigParams.street != null && ViewerContainer.urlConfigParams.house != null) )
                                {
                                        var addrWidgetID:Number;
                                        var addrWidget:IBaseWidget;
                                        addrWidgetID = ViewerContainer.getInstance().widgetManager.getWidgetId(addrWidgetLabel);
                                        addrWidget = ViewerContainer.getInstance().widgetManager.getWidget(addrWidgetID,true);
                                        return;
                                }

It works fine in IE10, Chrome and FF, but in the IE8/9 the widget is never loaded and cursor stays in the busy state. System is waiting, and when I load this widget manually - it continues to function properly.
Here is the link:
Test link
When cleaning the IE cache, the first run is successful, but only once. I tried to play with cache definitions without any success.

Can somebody please shed light on this strainge behavior ?

Thanks in advance.
Regards,
Gennady
Viewing all 2097 articles
Browse latest View live