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

Want dynamic map service layer to appear in layer list widget

$
0
0
I'm using Flex Viewer 3.0, and have built a geoprocessing service widget that invokes a geoprocessing service which in turn creates a map service on our server. The output from the geoprocessing service is the REST url of the map service. The widget takes the returned url string and adds the dynamic map service layer to the flex viewer map. This part all works fine. What I would like to have happen is that new dynamic map layer appear in the toc of the layerlist widget. Right now it's not showing up. I'm pretty much of a newbie when it comes to actionscript programming, so I don't know how this is to work. As best I can tell the layerlist widget is being driven by it's config xml file which currently has no operational layers listed. How do you get a layer to appear in the toc of the layerlist widget when that layer was added to the map via another widget? Thanks.

missing labels and pop-ups in feature services

$
0
0
I am starting a new thread since my issues have morphed since my original posting.

I am using Flex Viewer 2.4 (we won't have time to upgrade for a few months) and need to add a couple of ArcGIS Online feature services to our application. The features display in the viewer but there are three problems:

1. the labels (no scale dependency) don't display
2. xml pop-ups aren't active
3. no symbology appears in the TOC widget

Here are a couple different configurations I have experimented with on the two ArcGIS.com feature services:

<layer label="Top 50 Fish Barrier Removal Priorities" type="feature" visible="true" alpha="1" useamf="false"
url="http://services.arcgis.com/F7DSX1DSNSiWmOqh/ArcGIS/rest/services/WIFO_GBT_DUCK_RSX_TOP/FeatureServer/0">
<sublayer id="0" popupconfig="popups/RSX.xml"/>
</layer>

<layer url="http://services.arcgis.com/F7DSX1DSNSiWmOqh/arcgis/rest/services/WIFO_GBT_DUCK_RSX_OTHER/FeatureServer/0" visible="true" alpha="1.0" mode="onDemand" useamf="false" label="Other Surveyed Potential Barriers" type="feature"/>
<sublayer id="0" popupconfig="popups/RSX.xml"/>

Could someone kindly correct my code?

Thanks!

chart widget from esri not displaying chart

$
0
0
When I attempt to see the chart widget from the ESRI samples websites, the widget says "(name of layer) feature layer is either not visible of out of scale range". Am I doing something wrong?

Printing to Scale

$
0
0
I have operational layers based on a state plane coordinate system and I do not have a base map. I am trying to use 'export web Map' as a GP tool to export to pdf and then print with customized templates. The scale bar on the templates look good but the data in the map does not reflect the same ratio as the scale bar. (It is not true to scale or does not reflect the same scale as shown in the template). Any thoughts.....

Attribute table widget - Column Widths & Horizontal scroll bar

$
0
0
All,

I think the new attribute table widget is excellent for quickly making edits to attribute tables without having to use the edit widget. One small problem which I think lets the widget down is when you have numerous attributes the column widths just get smaller and smaller to fit them all in to the width of the containing panel.

Has anyone modified the code so that all the column widths adjust to their content and the user can use a horizontal scroll bar to view the whole table.

Regards

Anthony

Change Point Symbol

Pop Up Labels show no values for fields in joined table

$
0
0
Been struggling with this all day long. In my pop up window I get data displayed on the feature table but not on joined data. The join table exists in the same sde database as the feature layer. The table has privileges set for the ArcGIS user. I can also query the layer through rest services and get results using the fields in the join. Don't know what the answer is at this point.

My layer config:
<layer label="TAZs" type="dynamic" visible="false"
url="http://maps.sanbag.ca.gov:6080/ArcGIS/rest/services/TAZs/MapServer">
<sublayer id="0" popupconfig="popups/PopUp_Tier3Horizon.xml"/>
<sublayer id="1" popupconfig="popups/PopUp_Tier3Base.xml"/>
<sublayer id="2" popupconfig="popups/PopUp_Tier2.xml"/>
<sublayer id="3" popupconfig="popups/PopUp_Tier1.xml"/>
</layer>

One of my popup_config files:
<?xml version="1.0" ?>
<configuration>
<title>{sbgis.DBO.SBTAM_Tier3.ID_TAZ12c}</title>
<fields>

<field name="sbgis.DBO.SBTAM_2035SED_November12.POP" alias="Population" visible="true"/>
<field name="sbgis.DBO.SBTAM_2035SED_November12.HH" alias="Households" visible="true"/>
<field name="sbgis.DBO.SBTAM_2035SED_November12.K12" alias="K-12 Enrollment" visible="true"/>
<field name="sbgis.DBO.SBTAM_2035SED_November12.COLLEGE" alias="College Enrollment" visible="true"/>
<field name="sbgis.DBO.SBTAM_2035SED_November12.TOT_EMP" alias="Total Employment" visible="true"/>
<field name="sbgis.DBO.SBTAM_2035SED_November12.RET_EMP" alias="Retail Employment" visible="true"/>
</fields>

</configuration>

Cannot load a tiled map service

$
0
0
I am using Flex Builder 4.6 + flex viewer 3.0 + agslib-3.1.swc.

When I use the config.xml file (Attachment 22064) to load the included tiled map service, it is okay. But, when I replace the layer in the basemaps by using the below tiled map service on my own server:

<layer label="Demographics" type="tiled" visible="true" alpha="1.0"
url="http://141.117.248.106:6080/arcgis/rest/services/IceWaterLand/MapServer">
</layer>

I always got an error as shown below:

Attachment 22063

I got stuck for some time. Any of your comments and suggestions are highly expected! Thanks!
Attached Thumbnails
Click image for larger version

Name:	error.png‎
Views:	N/A
Size:	31.1 KB
ID:	22063  
Attached Files

Identify Widget X Arcgis 10.1 Raster Layer

$
0
0
Hi,

I am facing problems using Identify Widget in raster layer published in Arcgis 10.1.
When I use the widget in the raster layer all the fields appear, even though in the widget config I set only one field. Besides, the layer name doesn't appear.

It's strange because in the REST, the fields don't appear.

config.xml

Code:

<layer
        label="Mapa Hipso"
        type="dynamic"
        visible="false"
        alpha="1"
        url="http://abcdefgh/arcgis/rest/services/MAPA_HIPSO/MapServer" >                               
</layer>

IdentifyWidget.xml

Code:

<layer>
        <name>Mapa Hipso</name>
        <fields>
                <field name="ALTITUDE" />
        </fields>
        <links>
                <link includeinresults="false" field="" alias="" tooltip="">
                        <linkprefix></linkprefix>
                        <linksuffix></linksuffix>
                        <iconfield></iconfield>
                        <iconprefix></iconprefix>
                        <iconsuffix></iconsuffix>
                </link>       
        </links>
        <zoomscale>15000</zoomscale>
        <forcescale>true</forcescale>
</layer>

REST

Code:

{
 "currentVersion": 10.11,
 "id": 0,
 "name": "Mapa Hipso",
 "type": "Raster Layer",
 "description": "",
 "definitionExpression": "",
 "geometryType": null,
 "copyrightText": "",
 "parentLayer": null,
 "subLayers": [],
 "minScale": 0,
 "maxScale": 0,
 "defaultVisibility": true,
 "extent": {
  "xmin": 216895.100253414,
  "ymin": 6750646.30063446,
  "xmax": 764635.100253414,
  "ymax": 7129186.30063446,
  "spatialReference": {
  "wkid": 29182,
  "latestWkid": 29192
  }
 },
 "hasAttachments": false,
 "htmlPopupType": "esriServerHTMLPopupTypeNone",
 "displayField": "",
 "typeIdField": null,
 "fields": null,
 "relationships": [],
 "canModifyLayer": false,
 "canScaleSymbols": false,
 "hasLabels": false,
 "capabilities": "Map,Query",
 "supportsStatistics": false,
 "supportsAdvancedQueries": false,
 "supportedQueryFormats": "JSON, AMF",
 "ownershipBasedAccessControlForFeatures": {"allowOthersToQuery": true}
}

Any help would be appreciated.

fmaraschin

Enhanced Search issue

$
0
0
Here is the error message I'm getting: [RPC Fault faultString="invalid or missing input parameters. "faultCode="400" fault Detail=""]
Here are my expressions for the search.
Code:

            <expressions>
                    <expression alias="Parcel #" textsearchlabel="Search Parcel #:" isvaluerequired="false">
                            <values>
                                    <value prompt="No Dashes or Points needed!" isvaluerequired="false">State_ID like '%[value]%'</value>
                                          </values>                 
                    </expression>
                    <expression alias="Deeded Owner" textsearchlabel="Search Owner:" isvaluerequired="false">
                            <values>
                                    <value promt="Example: John Smith" isvaluerequired="false">Deeded_Own like '%[value]%'</value>
                            </values>
                    </expression>
                    <expression alias="Parcel Address" textsearchlabel="Search Parcel Address" isvaluerequired="false">
                            <values>
                                    <value prompt="Example: 222 W Monroe St" isvaluerequired="false">Street like '%[value]%'</value>
                            </values>
                    </expression>
                    <expression alias="Property Class" textseachlabel="Search by Property Class" isvaluerequired="false">
                            <values>
                                    <value prompt="Example: 510" isvaluerequired="false">Prop_Class like '%[value]%'</value>
                            </values>
                    </expression>
                    <expression alias="Neigborhood Code" textsearchlabel="Search by Neighborhood Code" isvaluerequired="false">
                            <values>
                                    <value prompt="Example: 902501" isvaluerequired="false">Neighborho like '%[value]%'</value>
                            </values>
                    </expression>
                    <expression alias="Section, Township, Range" textsearchlabel="Search by Section, Township, and Range" isvaluerequired="false">
                            <values>
                                    <value prompt="Section" isvaluerequired="false">Section like '%[value]%'</value>
                                    <value prompt="Township" isvaluerequired="false">Township like '%[value]%'</value>
                                    <value prompt="Range" isvaluerequired="false">Range like '%[value]%'</value>
                            </values>
                    </expression>
            </expressions>

Thanks in advance

Pop-Ups

$
0
0
My pop-ups in Viewer for Flex 3.0 are not working for some reason. I'm sure I'm overlooking something.
Maybe someone can spot what it is? Strange thing is, I also use the Application Builder (3.1) and they work fine in there. I've been comparing the configs for the past day now and can't find the difference.


Here's the main config xml version 3.0:

HTML Code:

<layer type="dynamic" label="Marketing" imageformat="png8" url="http://myserver/ArcGIS/rest/services/departmentname/MapServer" visible="true">
<sublayer id="0" popupconfig="popups/PopUp_1.xml"/>
<sublayer id="1" popupconfig="popups/PopUp_2.xml"/>
<sublayer id="2" popupconfig="popups/PopUp_3.xml"/>
<sublayer id="3" popupconfig="popups/PopUp_4.xml"/>
<sublayer id="4" popupconfig="popups/PopUp_5.xml"/>

It's exactly the same as in the App. Builder. The xml files are in the popup folder and the rest service is valid and working.
Should I maybe be using something like this instead:

HTML Code:

<configuration>
<description>
<![CDATA[Garage Maintenance Shops: <a href='{FILEPATH}' target='_blank'>{GRIDID}</a>]]>
</description>
<showattachments>true</showattachments>
</configuration>

Thanks for your time.

geometry can not have z value

$
0
0
Hi
I have a model that generate a 3d line by this steps: user draw a line, then model calculate 3d line from a DEM file.

Everything is ok in my model and I can run geoprocessing service by .Net web application, but when I run my geoprocessing service by flex viewer 3, it return this error:esriJob failed

I checked service log file and found this error message:
geometry can not have z value

Please help me.
Regards

returnZ

$
0
0
Hi
How can I enable returnZ in flex viewer 3.0 ?
Regards

returnZ+flex

$
0
0
How can I enable returnZ in flex viewer 3.0?

returnZ+flex

$
0
0
How can I enable returnZ in flex viewer 3.0 ?

Browser caching in Flex Viewer 3.1 Application

$
0
0
I have found a lot of solutions to prevent caching on the client side, but not for Flex Viewer 3.1. Does anyone know how to disable the client side caching in 3.1. We are creating an Application that the general public can use, but that I will need to make regular updates to. For those clients that may use the application repeatedly, I want to make sure that they are always seeing the updated version and not what is cached on their computers. Any help would be greatly appreciated!

Geoprocessor+upload+flex3+Rscheitlin

$
0
0
I,m working on a model that it has upload capability, but flex's geoprocessor has not browse capability. In flex's geoprocessor, client should add an address that start with "http". I think uploading a file to a http address isn't reachable for clients. Beside Rscheitlin wrote a widget that user can upload it's shape file. Is there any way to using this capability for geoprocessor too?
Regards

Robert's Route Widget - Best Sequence and Return to Start

$
0
0
Hello All/Robert,

Viewer 3.0, last release of Route widget for viewer. No customization done so far on widget.

I'm looking to customize the Route widget the Robert has made. What I would like to do is enable both the Best Sequence and Return to first Stop functions to recognize a duplicate location, and ensure it will be the first and last stop in the calculated route. Currently when both are selected the start location will also be the second location. This is probably because in order of time or distance, going from one location to the next, when in fact they are the same would be "best sequence".

I understand there are probably logic issues here. Trying to force the beginning and end stops, all while calculating the best sequence route is really asking for the start/stop location to be static, and the series of stops between them to be dynamic in order. I'm starting to confuse myself honestly.

Has anyone looked into this already? Does anyone even think it is possible?

Thank you for your thoughts!

Best,
Chris B.

Identify Widget 3.1.1 Hyperlink Icon

$
0
0
I'm trying to figure out how to change the icon for the hyperlink. The hyperlink opens a CAD file on our network. I can get this to work with the eSearch widget, but I can't seem to get it to recognize the icon that I want to replace the default play button with. In eSearch, I just use assets/images/ACAD_icon_9_48x48x32.png in the icon tag under layer / links link, so this is the same icon I want to use for Identify.

Here's my incomplete code. I think that iconsuffix should be .dwg because it's an AutoCAD file (?). I don't know how to format the path, as your example: http://myserver/icons/ confused me.

<link includeinresults="false" field="Hyperlink_Flex" alias="Open Tap Card" tooltip="Click here to open the tap card on your local machine.">
<linkprefix>http://SNEW-GIS/servicetaps/</linkprefix>
<linksuffix>.dwg</linksuffix>
<iconfield />
<iconprefix />
<iconsuffix />
</link>

Any help?

Thanks,

Nick

Identify Widget - Can you Disable the Popup?

$
0
0
I'd like to just get results in the results window, not the popup, so it functions as the eSearch widget does (I have no popups with that). Is this currently possible, and if so, would someone please tell me how?

Thanks

Nick McNamara
Viewing all 2097 articles
Browse latest View live