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

Filter layer names as user types in the keyword

$
0
0
Hello all,
I am quite new to the Flex API. I am working on already built MapServices Widget. I am adding a text box where a user types a desired layer out of the long list. The idea is as user types in... the layers matching the keywords should only become visible. the rest should be hidden...

I have searched a lot but couldn't find something similar.

Can anybody guide me to the right path, please.

Cheers
A.
Attached Thumbnails
Click image for larger version

Name:	layerfilter.png‎
Views:	N/A
Size:	50.4 KB
ID:	22677  

Error #2046 when going to my flex viewer

$
0
0
Hello all,

I've recently upgraded desktop and server to 10.1 While I was trying to get new service's to work I started getting this error on my viewer #2046 I Googled it for a bit and it looks like its maybe some adobe/flex error not really sure.

Has anyone gotten this before and fixed it?

here is the link to my map http://radfordgis.radford.va.us/flex...wer/index.html

Thanks,

Chris

WMS layer - visiblelayers with space character in name

$
0
0
Hi!

I'm trying to use a wms layer as basemap in my Flexviewer 3.1 project.

Everything works great when my layer name has no space character.

As soon there's a space in only one name, wms service doesn't work anymore.

<layer type="wms" label="SCO wms" imageformat="jpg"
skipgetcapabilities="true"
visiblelayers="Maurice,CMQ,CMM,Centre du Quebec"
version="1.1.1"
url="http://xx.xx.xxx.xxxx/lizardtech/iserv/ows?" visible="true"/>

I've tried to replace space character with %20, _, %. no result...
I've tried to use the ids visiblelayers="1" no result...

Alex

eSearch compile error

$
0
0
I am using Robert's Enhanced Search Widget (eSearch) and continue to get a compile error. I have not edited the xml code, just loaded the widget, edited the properties of the project (added the module) and I continue to get this error in Flash Builder (4.6):
1046:Type was not found or was not a compile-time constant: SearchWidgetRelateFloatDG.

When I run the application I get the WidgetManager Error#2036.

My config file (from ArcGIS Viewer for Flex v2.5) has reference to the widget:

Code:

        <widget label="Enhanced Search" left="60" top="400" preload="open"
                icon="assets/images/i_search.png"
                config="widgets/eSearch/eSearchWidget.xml"
                url="widgets/eSearch/eSearchWidget.swf"/>

Any insight/ideas on this error?

Related records does not function in Enhanced Search Widget version 3.1.12

$
0
0
I have a feature Layer: RoadCenterline_Ground_and_Above_1K (ID: 10) and a related table Layer: Route_ID (ID: 148). Within a file geodabase a1:1 relationship exists between the two using the ROUTE_IDENT field, and inspecting the relationship works flawlessly in ArcMap. Standing up
Code:

  <url>http://grsmgis.nps.gov/arcgis/rest/services/Base/Base/MapServer/10</url>
using a Flex Viewer also works fine. As soon as I add
Code:

  <relates>
    <relate id="148" label="Route_ID" enableexport="true" enableprintgrid="true"
    icon="assets/images/i_flag.png" printtitle="Routes">
    <fields all="false">
      <field name="ROUTE_IDENT" />
      <field name="RTE_NAME" />
    </fields>
    </relate>
  </relates>

the search results indicate related records but the related record datagrid does not populate, nor does clicking on the related record icon return anything. Yes, I have confirmed that there is indeed a related record for each feature. This is on Arc GIS Server 10.1, SP1, Flex 3.1.
Attached Files

Issues with Attribute Widget

$
0
0
I've been working with the attribute widget and have noticed the following bizarre behaviors.

I was hoping someone could confirm these results.

1. When a date field is in the grid, you click on the column header, the field does not sort correctly. It does do a sort, but not by date.
2. When using the <excludelayer> in the AttributeTableWidget.xml , the layer excluded is removed from the Edit widget as well, just as if the <excludelayer> was used in that widget.


Needless to say, I want the Date field to sort correctly, and the Attribute and Edit configs to control just that widget.

Thanks for your input.

Matt Shetzer
American Mapping Solutions.

New 10.1 Server and now popups do not work in Flex

$
0
0
Hi,

We have a new server that has ArcGIS Server 10.1 SP1, Desktop 10.1 (no SP1), SQL 2008 R2, and Windows Server 2008 R2, IIS7, and Esri Web Adaptor installed on it. We created our maps, registered the data with Server and published the maps as services. We have the "Site (root)" directory security set to "Public, available to everyone". We can see the REST endpoints at http://fwbgis/arcgis/rest/services so the Web adaptor is working. (No, the site is not open to the general public, only to those on our network)

I tested our old version of FlexViewer 3.0 that was configured to work with our 10.0 services on our old server. Changed all of the rest http://.... to point to the new server and everything works EXCEPT popups. All of the services are Dynamic.

I downloaded the uncompiled FlexViewer 3.1 and started from scratch. Everything works EXCEPT popups. I just get a small spinning clock that quickly dissappears.

I have also tried the eSearch widget and cannot select a parcel to buffer - I receive "[RPC Fault faultString="Requested operation is not supported by this service." faultCode="400" faultDetail="The requested capabiliity is not supported."]

Any ideas?


This is a sample of one of the popup.xml files that are in the popups folder in the Flexviewer app that works on the old system but not on the new system:
Quote:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<title>City Address</title>
<fields>
<field name="SITE_ADDR" alias="Address" visible="true" />
<field name="LOCID" alias="Location ID" visible="true" >
<format usethousandsseparator="false"/>
</field>
<field name="CAD" alias="CAD" visible="true" />
<field name="XCoord" alias="XCoord" visible="true" />
<field name="YCoord" alias="YCoord" visible="true" />
<field name="EMS_DIST" alias="EMS" visible="true" />
<field name="FIRE_ZONE" alias="FIRE" visible="true" />
<field name="STRAP" alias="STRAP" visible="true" />
</fields>
<showattachments>FALSE</showattachments>
</configuration>
Thank you!

Luci

Change Map Projection on the Fly

$
0
0
I have a tiled service and a dynamic service in one projection (wkid 2245 ) . I want to bring bring in a portal basemap in a different projection ( web mercator - 102100 ) and replace the existing basemap and have the dynamic service be reprojected on the fly . I am trying to accomplish this by switching the map projection on the fly.

The flex viewer adds the portal layers but does not take into account basemaps in a different projection that have already been added to the map.

I read through the forums and changing the map extent seems to be the common suggested solution but its not working for me This is what I have tried

map.initialExtent = new Extent(-9693000, 4713900, -9551000, 4775800, new SpatialReference(102100);
map.extent = new Extent(-9693000, 4713900, -9551000, 4775800, new SpatialReference(102100);
trace(map.spatialReference.wkid);

All that this is doing is changing the extent to the new extent in the existing map projection. The spatial reference itself is not being changed. The trace gives the same 2245 result . Am I missing something completely obvious here or is this not possible. I am not worried about any graphics layers or anything like that at this time just getting the basemap to switch would be the first step.

Thanks in advance.

Layer labels won't display in Flex App

$
0
0
I am currently using ArcGIS 10.1 Desktop and Server. The MXD I am currently working on is very simple and has shape layers with the Labels feature enabled, and the labels are showing correctly in the MXD. I published this MXD as a service to my ArcGIS Server and then used ArcGIS Viewer for Flex to create a new application and then reference all of the feature layers from the service I just deployed. When I view the Flex App in the browser, the issue I am having is that all of my labels have disappeared and there is no way in ArcGIS Viewer for Flex to enable the label text to display.

I had the same issue with opacity when I made my layers 50% transparent in the MXD but this would not translate over to the Flex App after deployment, but then discovered an easy way to set the transparency of the layers in the Application Builder. So how would I get these layer labels to appear in my Flex App? Any ideas would greatly help.

Thanks,
Igor

PopUps in Flex Viewer 3.1

help with ConfigManager

$
0
0
help with configManager.as
* configService_resultHandler private function (event: ResultEvent): void
**** {
******** try
******** {
************ / / parse main config configuration file to create data object
************ configdata configdata = new ();
************ var configXML: XML = XML (event.result);
************ configData.configXML = configXML;

I have a question regarding the value var configXML receiving the XML (event.result) that value is or where it gets?

that begins later assigned to another avariables

Bug in Search Widget for 3.1 or just me?

$
0
0
I have Flex Viewer 3.0 installed on a server running 10.1. I added a web service to a web app in this 3.0 Flex Viewer. Then I added the search widget, and I can select features using the geometry selection tools just fine. The selected features and attributes show up in the results.

I then install 3.1, and upgrade this application. The search tool no longer works. There are no changes to the service or anything else I can imagine. Furthermore, as a test, I uninstalled the Flex Viewer, deleted the flexviewers folder completely from inetpub/wwroot. Then I freshly installed Flex Viewer 3.0 and re-set up the application same as before, and the search by geometry works. Then I install 3.1 and again, the search no longer works. It just doesn't select anything. A bug?

Also, in both cases (3.0 and 3.1) the "Select by Attribute" icon doesn't exist in my Search widget. Everywhere in the forums and Help, I see screenshots of it (Select Features and Select Attributes) but I don't see it in my installation. Anybody else seen this?

Problem with Pictures in Query Widget

$
0
0
Hello, I have some problem with query widget.
I try to put a picture/photo in it using a URL link from attribute table. Everything look allright, there is a link to photo on server, but I want to see this photo on query window but now I have only empty frame (like in a picture below). Can anybody help with this?
Attachment 22811
Attached Thumbnails
Click image for larger version

Name:	Bez*tytułu.png‎
Views:	N/A
Size:	143.9 KB
ID:	22811  

Custom Cursor for identify

$
0
0
How to add a custom cursor for identify widget? See attached identify cursor. Thank you.
Attached Images
 

eSearch on XYevent return only 1 result.

$
0
0
Hi
Probably another small thing to resolve, but I can't figure out what's the problem...

I have a XY Event layer base on a SQL Server 2008 R2 table. Connection made by OLE DB.

The geometry of that layer is based on two fields (WebMercatorX , WebMercatorY)

Of course, there's no OBJECTID for that Layer.

With the "out-of-the-box" search widget, i get multiple results. ("Graphical Search" or "Text Search")

But with the Enhanced Search widget 3.1.12 (compile version), I only get 1 result every time. (I think the first row in the table)
"Graphical Search" or the "Text Search"
uniquevalsfromfield doesn't work. The dropdownlist isn't filling up

Is the Enhanced Search Widget design to deal with XY Event layer?


I'm using FlexViewer 3.1 with Enhanced search widget 3.1.12, ArcGIS server 10.0


Alex Lavoie
Quebec city

Code:

<layer>
            <token/>
            <definitionexpression/>
            <enableexport>true</enableexport>
            <name>BDMT</name>
            <url> xxx /rest/services/WMAS/BDMT3WMAS/MapServer/0</url>
            <expressions>
                <expression alias="dossier number" textsearchlabel="Search by # dossier" >
                    <values>
                        <value prompt="Exemple: 3366114 or 3366" isvaluerequired="true">#Dossier LIKE '%[value]%'</value>
                    </values>
                </expression>
                <expression alias="MRC" textsearchlabel="Search by MRC:" isvaluerequired="true">
                    <values>
                        <value prompt="Exemple: " isvaluerequired="true" uniquevalsfromfield="MRC" autosubmit="true">MRC = '[value]'</value>
                    </values>
                </expression>   
                <expression alias="Municipalite" textsearchlabel="Recherche par Municipalite:" isvaluerequired="true">
                    <values>
                        <value prompt="Exemple: Nicolet" isvaluerequired="true" uniquevalsfromfield="Municipalite" autosubmit="true">Municipalite = '[value]'</value>
                    </values>
                </expression>
            </expressions>
            <graphicalsearchlabel>Use one of the graphical search tools to select Zoning</graphicalsearchlabel>
            <spatialsearchlayer>true</spatialsearchlayer>
            <titlefield>#Dossier</titlefield>
            <fields all="false">
                        <field name="#Dossier"/>
                        <field name="dossier_id" alias="ID Dossier" visible="true" gridfield="true"/>
                        <field name="Municipalite" alias="Municipalité" visible="true" gridfield="true"/>
                        <field name="MRC" alias="MRC" visible="true" gridfield="true"/>
            </fields>
            <links/>
            <zoomscale usegeometry="true" zoompercent="2"></zoomscale>
            <autoopendatagrid>true</autoopendatagrid>
            <queryattachments>false</queryattachments>               
        </layer>


ArcGIS Viewer 3.2 for Flex released March 21, 2013 !!!

$
0
0
Today we've released version 3.2.

Read the details in the What's New:
http://resources.arcgis.com/en/help/...0000011000000/

Notable features in 3.2 include:
  • There is a new Directions widget
  • Six new locales: Danish, Estonian, Hebrew, Latvian, Lithuanian and Portuguese (Portugal) - for a total of 22 supported locales.
  • Application Builder supports adding WMS, WMTS, and Web Tiled layers.
  • Swatches (symbols) displayed as part of the TOC ("More...") in Map Switcher widget, and in Layer List widget.
  • Lots of other things

ErrorWindows

$
0
0
that it serves the function?

convertToTextFlow private function (value: String): TextFlow
************ {
**************** if (value)
**************** {
******************** return null;
**************** }
**************** value.replace value = (/ \ n / g, "<br>") / / replace newlines
**************** TextConverter.importToFlow return (value, TextConverter.TEXT_FIELD_HTML_FORMAT);
************ }

I would give an example?

Bing Service

$
0
0
Bing Aerial and Hybrid are no longer listed in my ArcGIS Online list of basemaps!!

Identify Widget target features are shifted

$
0
0
When I identify features with the Identify widget, I have to click up and to the left of the feature I am identifying if I use the point, and when the identified feature highlights on the map, you can see that it is shifted up and to the left. I just tell people to use the rectangle tool instead of the point because it is hard to grab a point feature with a single click, but this shouldn't happen. Any ideas why it might be? A sample of is attached. the pink is the area I clicked on, and the blue is the actual result polygon.

Otherwise the tool works fine.
Attached Thumbnails
Click image for larger version

Name:	IdentifyResult.JPG‎
Views:	N/A
Size:	20.2 KB
ID:	22897  

Legend for widget ideas or help

$
0
0
Hello all,

I have a custom widget that runs a geoprocess off my server and displays the results in my viewer.

I am looking for a way to display some sort of information about the results and/or a legend of the features being displayed.

The legend widget displays base layers and operational layers but I am not sure if there is anything for the widgets or their results.

I am looking for any suggestion on this topic and maybe some help on implementing those ideas.

Thanks

Eric
Viewing all 2097 articles
Browse latest View live