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

Blocking .xml files from being visable in web dubugger programs ie: Fiddler

$
0
0
I am curious if there is any way to block the visibility of .xml files when tracking web traffic in programs such as Fiddler. Attached is a screen shot showing the situation. For instance, I can see the config.xml file for my application in Fiddler which can than be opened. Once opened, the tokens used to pass the secure services through the FlexViewer become visible. I am not using a reverse proxy setup, but not sure if that would resolve the issue. Any thoughts would be greatly appreciated.

Matt
Attached Thumbnails
Click image for larger version

Name:	Fiddler.jpg‎
Views:	N/A
Size:	138.5 KB
ID:	24596  

Unique Value Renderer

$
0
0
I currently have a viewer using Flex 2.5. I am trying to work with the source code for 3.0 to improve my current product. However, I'm unable to locate the lines of code in the MapManager.mxml that refer to using a server that publishes REST services using a version less than 10.0. Has this functionality been moved to another location, or been removed all together?

Thanks for any assistance.

Editing a Flex Viewer Application Using Flash Builder

$
0
0
Hi, I have recently acquired this ArcGIS project from a co-worker who was editing the Flex files using the Flex Viewer application. She can no longer make the changes that we need through the Flex Viewer (version 3.3). I have downloaded the ArcGIS Flex API (version 3.3) and Flash Builder (version 4.6). I also can view the data from the Flex Viewer on my local machine as well. Is there any way to edit the files created by the Flex Viewer (found in the inetpub/wwwroot folder) using Flash Builder?

Internet Browsers and Esearch

$
0
0
Hi,
The esearch 3.3.1 Build 5/10 works just fine in Application builder preview, but not in any other browser.
We have three values in the expression to search by, all of three values is reading the given field attribute using uniquevalsfrom to get the attributes to populate in the drop down list. In Chrome, Explorer and firefox we can’t get the attributes to populate in the UI dropdown list. Graphical search works fine. Here is the partial code, if anyone can help:

<expressions>
<expression alias="D12 Major Projects" textsearchlabel="Search Major Projects:" isvaluerequired="true">
<values>
<value prompt="Example: Route Number" uniquevalsfromfield="rte" isvaluerequired="true" autosubmit="false">rte= '[value]'</value>
<value prompt="Example: Funding Type" uniquevalsfromfield="Funding" isvaluerequired="true" autosubmit="false" operator="AND">Funding= '[value]'</value>
<value prompt="Example: Phase" uniquevalsfromfield="Phase" isvaluerequired="true" autosubmit="false" operator="AND">Phase= '[value]'</value>
</values>
</expression>

Thank you in advance.
Al

Ability to turn off all base mapping in flex viewer 2.5

$
0
0
Hello.

I have a request from a user that would like to be able to switch all base mapping off completely. In order to view one of the dynamic layers on its own.
Is there a button or widget I can add to the viewer to turn all layers shown in my map switcher off completely so that I just get white space?
I am using version 2.5 of the viewer, ArcGIS Server 10 and compiled code.

I know it is a bit of a strange request but if anyone can help me I would appreciate it.

Harriet

Issues compiling FlexViewer 3.3 - edit widget errors

$
0
0
I just loaded the source code for FV 3.3 into Flash Builder 4.6 and ran a compile. It listed the following errors for the Edit widget.

Any ideas why this might be happening?



Code:

1045: Interface ICodedValueDomainField was not found.        CodedValueDomainField.as        /FlexViewer/src/widgets/Edit/fieldClasses        line 41        Flex Problem

1045: Interface IDateField was not found.        CalendarField.as        /FlexViewer/src/widgets/Edit/fieldClasses        line 41        Flex Problem

1045: Interface IDoubleField was not found.        DoubleField.as        /FlexViewer/src/widgets/Edit/fieldClasses        line 47        Flex Problem

1045: Interface IFieldRenderer was not found.        IntegerField.as        /FlexViewer/src/widgets/Edit/fieldClasses        line 45        Flex Problem

1045: Interface IFieldRenderer was not found.        MemoField.as        /FlexViewer/src/widgets/Edit/fieldClasses        line 53        Flex Problem

1045: Interface IFieldRenderer was not found.        StringField.as        /FlexViewer/src/widgets/Edit/fieldClasses        line 46        Flex Problem

1045: Interface IFieldRenderer was not found.        TextField.as        /FlexViewer/src/widgets/Edit/fieldClasses        line 45        Flex Problem

1045: Interface ILabelField was not found.        LabelField.as        /FlexViewer/src/widgets/Edit/fieldClasses        line 30        Flex Problem

1045: Interface ITypeField was not found.        TypeField.as        /FlexViewer/src/widgets/Edit/fieldClasses        line 39        Flex Problem

eTime Widget problems with rasters

$
0
0
Hello,

I am trying to display time enabled rasters in my flex app using the eTime widget. When doing this, the raters don't display correctly in and don't show particular colors, leaving holes or in some cases replacing the color with the another color.

I can publish a single raster as a service with the same symbology and it displays correctly. Does anyone know what might be causing this through the eTime widget?

Thanks,

Justin

is there a way to Combine Search and edit widget

$
0
0
I have a web editing map stored on my organizations Arc Server box. The editing widget works with some glitches which I am currently working on fixing. But the one thing I would like to see work is a seamless connection between the search and edit widgets. I would like to search for a feature and then edit it without selecting the edit widget and re-selecting the feature. I want to mention that I have many features standing on top of one another, so when I select a particular record within my search, is there a way to edit either spatial or attribute information without selecting a second widget?

Attachment 24621
Attached Thumbnails
Click image for larger version

Name:	Search Record.jpg‎
Views:	N/A
Size:	145.7 KB
ID:	24621  

How to add a script block to the index.mxml Viewer code

$
0
0
Hi all,

I am trying to convert a working MXML application with a custom mapclick handler and an attribute table into the Flex Viewer so that I can take advantage of the better interface and widget capabilities--particularly the collapsable aspect of the attribute table widget.

My question is, what is the best practice for this to be done? Do I add a script block into the index.mxml part, or is it something I should be changing in configuration files? In my first attempt to add my script into the index.mxml file, I realized this wouldn't work because I had variables in my script referencing drop down lists in my control bar, etc.

Is it possible to get this to work correctly in the viewer?

Thank you so much for your advice.

-David


FYI I am working with Flash Builder 4.6, Flex Api 3.3, and ArcGIS Server 10.

My script is:
Code:

<fx:Script>
                <![CDATA[
                        import com.esri.ags.Graphic;
                        import com.esri.ags.tasks.supportClasses.Query;       
                        import mx.collections.ArrayCollection;                       
                        import spark.events.IndexChangeEvent;
                        import com.esri.ags.Map;
                       
                       
                        //Create labels for drop down list data provider
                        [Bindable]
                        public var myDP:ArrayCollection = new ArrayCollection(
                                [ {timeframe:"Last 2 Weeks"},
                                        {timeframe:"Last Month"},
                                        {timeframe:"Last 6 Months"},
                                        {timeframe:"Last Year"}]);
                       
                        //Create string variable assigned initially to definition expression for last two weeks
                        [Bindable]
                        public var updateDefExp:String = "TIME_FRAME = 'TWO WEEKS'";
                       
                        //Create functions to update definition expression in drop down list
                        private function doQuery0():void
                        {
                                var defExp0:String = "TIME_FRAME = 'TWO WEEKS'";
                                updateDefExp = defExp0;
                        }
                        private function doQuery1():void
                        {
                                var defExp1:String = "TIME_FRAME = '1 MONTH'";
                                updateDefExp = defExp1;
                        }
                        private function doQuery2():void
                        {
                                var defExp2:String = "TIME_FRAME = '6 MONTHS'";
                                updateDefExp = defExp2;
                        }
                        private function doQuery3():void
                        {
                                var defExp3:String = "TIME_FRAME = '1 YEAR'";
                                updateDefExp = defExp3;
                        }
                       
                        //Create function to update the updateDefExp variable to the correct timeframe
                        private function updateSelection(e:IndexChangeEvent):void
                        {
                                if(myDDL.selectedIndex == 0)
                                {
                                        myFeatureLayer.clearSelection();
                                        doQuery0();
                                        myMap.extent=myExtent;
                                }
                                else if (myDDL.selectedIndex == 1)
                                {
                                        myFeatureLayer.clearSelection();
                                        doQuery1();
                                        myMap.extent=myExtent;
                                }
                                else if (myDDL.selectedIndex == 2)
                                {
                                        myFeatureLayer.clearSelection();
                                        doQuery2();
                                        myMap.extent=myExtent;
                                }
                                else if (myDDL.selectedIndex == 3)
                                {
                                        myFeatureLayer.clearSelection();
                                        doQuery3();
                                        myMap.extent=myExtent;
                                }
                        }
                       
                       
                        protected function myMap_clickHandler(event:MouseEvent):void
                        {
                                if (event.target is Graphic || event.target.parent is Graphic)
                                {
                                        var graphic:Graphic = event.target is Graphic ? Graphic(event.target) : Graphic(event.target.parent);
                                        var query:Query = new Query;
                                        query.objectIds = [ graphic.attributes[myFeatureLayer.layerDetails.objectIdField]];
                                        myFeatureLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW);
                                        myMap.zoomTo(graphic.geometry);
                                        myMap.scale = 1000;
                                }
                                else
                                {
                                        myFeatureLayer.clearSelection();
                                }
                        }               
                ]]>
        </fx:Script>

answer quick please

$
0
0
hi
I would like to put a button in the header of the page that contain a link to another page

xml variables in different environments

$
0
0
Hi,

I hope I can make this clear. We use xml files for each widget, some contain server information that has to be changed when migrating between environments Test->Stage->Prod. is there a way to have variables used for these values that would get the correct information from an external file of some type?? this would save a lot of time and possible error when missing a change.

thanks so much

removes memory widget

$
0
0
Hello Guys I'm from Brazil sorry if any typo;
must remove widget, take the memory, the ArcGIS API for Flex Viewer v: 3.0 My funsao that opens a popup widget and ... How should I proceed?

popup mouse sensitivity

$
0
0
Hello,
I publish a feature service with objects (polylines) which symbology is a line of 1 point width.
Api Flex 3.3 is great but when I tried to point an object with my mouse, it is quite difficult to get the popup. The sensitivity is too high...
The trouble is the width of the objects or is there something somewhere to parameter ?

Thanks,

L.T

Blank Page

$
0
0
I've installed the Flex Viewer application Builder on a couple of PC's but I have never had this issue. When I go to the preview pane I do not see any layers. What I did was try and create a simple test page to make sure everything was working ok. Even when I go to the application URL it is blank.

I can pull up other pages from another server so I know the pages will load. So I don't think it is a software issues.

I tried just a simple mape with throwing in some basemaps and tried to save it. Just a blank preview and web page. What did I forget to do? Everything else looks as it should in the builder.

Cluster Flare Popup on Mouseover

$
0
0
Does anyone know how to get the infowindow popup for a cluster's flare from a mouse over event rather than a click event?

I'm guessing it has something to do with FlareMouseEvent.FLARE_OVER, but I've had no success implementing a listener for that.

Thanks,
Aaron

Still having date format issues even with Flex Viewer 3.3

$
0
0
I have a map service that has a date field with no time in it whatsoever but when I create the map in the Flex viewer it adds 5:00pm to every record in the pop up window. I have upgraded to 3.3 but still have this problem. I have tried adding formatting tags in the pop up xml file:

<field name="DATE" alias="PURCHASE DATE" visible="true"/>
<format dateformat="shortDate"/>

Doesn't work.

I have tried this:

<field name="DATE" alias="PURCHASE DATE" visible="true"/>
<format dateformat="shortDate"/>
</field>

I get a parsing error in the preview and it won't draw my layer.

Any help would be appreciated.

Possible Bug in Flex Viewer 3.3, Editing and Searching

$
0
0
Open the flex viewer. Open the edit widget. You can edit.
Open the flex viewer. Open the search widget. You can search.
Open the flex viewer. Open the edit widget. Open the search widget. You can edit. You can search.
Open the flex viewer. Open the search widget. Open the edit widget. Edit widget is broken.
Open the flex viewer. Open the search widget. Do a search. Open the edit widget. You can edit.

I am using the uncompiled flex viewer 3.3 pulled from GitHub. I haven't merged changes for a couple weeks.

It appears to be an issue with a feature layer being added to the viewer by the search widget that is totally null in it's attributes until a search is completed. The edit widget makes it though this section of code gracefully, but returns without going through all the layers since the first one it finds is null (url=null, loaded=null, loadfault=null).

Code:

                    var layer:Layer = arrLayers[index] as Layer;
                    if (layer.loaded)
                    {
                        if ((layer is FeatureLayer && layer.name.indexOf("hiddenLayer_") == -1) && FeatureLayer(layer).isEditable && !FeatureLayer(layer).featureCollection)
                        {
                            layer.removeEventListener(FeatureLayerEvent.SELECTION_COMPLETE, featureLayer_selectionComplete);
                            layer.addEventListener(FeatureLayerEvent.SELECTION_COMPLETE, featureLayer_selectionComplete, false, 1);
                            featureLayers.push(layer);
                            arrFinalLayers.push(layer);

                            index++;
                            getAllFeatureLayers(index, featureLayers);
                        }
                        else if (layer is ArcGISDynamicMapServiceLayer && layer.name.indexOf("hiddenLayer_") == -1)
                        {
                            createFeatureLayersFromDynamicMapService(ArcGISDynamicMapServiceLayer(layer), index);
                        }
                        else
                        {
                            index++;
                            getAllFeatureLayers(index, featureLayers);
                        }
                    }
                    else if (layer.loadFault)
                    {
                        index++;
                        getAllFeatureLayers(index, featureLayers);
                    }
                    else
                    {
                        // listen for load
                        layer.addEventListener(LayerEvent.LOAD, layerLoadHandler);
                    }

Can anyone else duplicate this behavior? I noticed it because I have a custom search widget that gets loaded during the initial load app the app (preload=open) and just added the edit widget to my viewer and it broke my workflow.

If this is a problem my personal suggestion would be to fix this in the edit widget so that it can continue on past this bad layer. My first attempt at a quick fix is to add one more else if block to continue checking layers if you still have more to go. Not sure if it fits the logic, but works with very preliminary testing.

Code:

                                        else if (index < arrLayers.length-1)
                                        {
                                                index++;
                                                getAllFeatureLayers(index, featureLayers);
                                        }

Generate a PDF report from an Identify Result or Address Search Result

$
0
0
Using the Viewer for Flex, I want to deploy a custom widget to generate a .pdf report from an Identify Result or Address Search
Result . I want the user to be able to search by address, or identify an x, y point on a map, return all of the operational layers this x,y intersects. Then make a call to an xml or JSON which contains text blocks and populate a .pdf. The operational layers would be
indexed by a number that would link the results and make the call to these text blocks (that are in an .xml, or JSON format). We
have thought about using Python to generate the report, but unsure of how to link the Result to Python.

Can someone point to the right class in the flex api to begin building the code?

Complied Flex API does not display images

$
0
0
I am unable to view any of the icons for my widgets in my Flex app.

Map services shows up fine in the app. I am able to navigate to the location of the icons without any issues. I tried using Fiddler, but it does not give me any error messages ?

Any thoughts on how I can troubleshoot this issue ?


Thanks!

Phoebe
Attached Thumbnails
Click image for larger version

Name:	Flex.png‎
Views:	N/A
Size:	194.1 KB
ID:	24873  

Locate Widget: configure to default City and State

$
0
0
Hello,

I'm trying to default the City and State to the Locate widget but I have not had any luck with results. ANy suggestion on what maybe incorrect on this config.

Thanks

<?xml version="1.0" ?>
<configuration label="U.S. Geocoding">
<usesingleline>true</usesingleline>
<locator>http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Streets_US_10/GeocodeServer</locator>
<fields>
<field name="City" defaultvalue="orange"/>
<field name="State" defaultvalue="ca"/>
</fields>
<minscore>40</minscore>
<zoomscale>10000</zoomscale>
</configuration>
Attached Thumbnails
Click image for larger version

Name:	Find address.JPG‎
Views:	N/A
Size:	17.8 KB
ID:	24918  
Viewing all 2097 articles
Browse latest View live