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

Format coordinate output in coordinate widget flex viewer 3.6

$
0
0
I use the standard coordinate widget in the flexviewer application builder 3.6. This works, the coordinates are displayed when I move the cursor in the map.
What is rather frustrating, is that utm-coordinates are displayed with an accuracy of 10 decimals. Is it possible to get only the meter-accuracy (e.g. no decimals).
You can see how this works in this client:
http://nordlandsatlas.no/flexviewers/plan

Printing - Legend to only Show Extent items

$
0
0
Fairly new to the Flex platform - so forgive me if this sounds weird ..

When adding a layout to the print - obviously you want a legend of items .. however, the box to check to only show items in the current extent is grayed out .. I can't find any answer as to where this option can be changed ..

Any help would be appreciated ..

Thanks in advance.

selecting features using already selected feature set in ArcGIS FLEX API

$
0
0
Hello,

I am currently creating selection widget based on my needs. One of the thing I wanted to do is to select features first and then display them on the map and next, I want to select features from already selected features by adding using the where clause to filter it.
I would like to see the result of the second query(the features) on the map highlighted.

I got the option of :
MODE_ON_DEMAND
MODE_SELECTION
MODE_SNAPSHOT
SELECTION_ADD
SELECTION_NEW
SELECTION_SUBTRACT
How can I select features from already selected feature set and highlight them on the map?

anyone who has idea, I will be really thankful :)

Beza

eDraw and Draw Widget Bug?

$
0
0
The resize of the pop up window is not done when <measure>true</measure>

This "true" setting means the Show Measurements Box is checked. But, the window does not resize based on setting the Width and Height in the Widget Container in the Config.xml. To resize the window, in the viewer, you must manually uncheck the "Show Measurements" box and then check it again. Doing this will then resize the window based on the Width and Height set in the Config.xml.

Could this be a bug?


<?xml version="1.0"?>
<configuration label="Draw and measure (default)">
<layername>Draw Features</layername>
<!-- <autoloadgraphics zoompercent="1.6" autozoom="true">http://gis.calhouncounty.org/FlexViewer3.0/SavedGraphics.txt</autoloadgraphics> -->
<spatialref>102003</spatialref>
<addhalototext>true</addhalototext>
<measure>true</measure>
<distanceunits>
<distanceunit id="ft"/>
<distanceunit id="yd"/>
<distanceunit id="mi"/>
<distanceunit id="m"/>
<distanceunit id="km"/>
</distanceunits>
<areaunits>
<areaunit id="sq ft"/>
<areaunit id="ac"/>
<areaunit id="sq yd"/>
<areaunit id="sq mi"/>
<areaunit id="sq km"/>
<areaunit id="ha"/>
<areaunit id="sq m"/>
</areaunits>

Exclude Legend from Print Widget

$
0
0
Is there a way to exclude the Legend in the Print Widget? I know you can export MAP_ONLY, but this option also excludes the scale. I only want to exclude the Legend.

Time widget Issue

$
0
0
Hi,

I am using the time widget to display time enabled data to end users. I seem to be running into an issue where the ArcGIS for flex app is displaying an event that occurred on Jan 2 as Jan 1. The data is coming from SDE and is in a datetime field. The data shows up correct in the SQL data base and in ArcGIS for desktop through an SDE connection. However when that data is published to ArcGIS for server it displays as the next day?

I tested in the flex viewer and in AGO and it displays as the next day in both web applications which leads me to believe it is a problem with my service.


Has anyone run into this issue before?

Thanks.
Andrew

eSearch issue.

$
0
0
I'm having a terrible time getting the Relate to work with a Table entry.

I have a table (non spacial) Meter with the customer name on it.
I have a Feature Class (Service Location) that has a spacial reference.
There is a relate from Meter to Service location: Layer: xxxx.METER (ID: 84) Relationships: Service Location (0)

I'm trying to do a search on customer name and end up at a service location.

I get no errors, and it is attempting to do the join, but I never receive any data.

Thanks in advance. It's probably something stupid, but I just can't see it.

Key Config section:
<relate id="0" label="Service Location" enableexport="true"icon="widgets/eSearch/assets/images/i_relate.png">
<fields all="true" />
<zoomscale usegeometry="true" zoompercent="1.6" />
</relate>
Key Service def ref:
Service Location (0) -- Related To: De-Energized Service Locations (8)


Here is my config:
<tables>
<table>
<name>Customers</name>
<token/>
<definitionexpression></definitionexpression>
<enableexport>true</enableexport>
<url>http://gisweb:6080/arcgis/rest/services/detailed/MapServer/84</url>
<expressions>
<expression alias="Location Code" textsearchlabel="Search Service by Location Code [ Example: 232410901 ]:" isvaluerequired="true">
<values>
<value prompt="Example: 232410901" isvaluerequired="true" >LOCATION_CODE = '[value]'</value>
</values>
</expression>
<expression alias="Customer Name" textsearchlabel="Search Customer by Customer Name [ Example: FROST ]:" isvaluerequired="true">
<values>
<value prompt="Example: FROST" isvaluerequired="true" >upper(CUSTOMER_NAME) LIKE upper('[value]%')</value>
</values>
</expression>
<expression alias="Billing Acct #" textsearchlabel="Search Customer by Account # [ Example: 487788 ]:" isvaluerequired="true">
<values>
<value prompt="Example: 487788" isvaluerequired="true" >ACCOUNT_NUMBER = '[value]'</value>
</values>
</expression>
<expression alias="Service Street Address" textsearchlabel="Search Customer by Street Address [ Example: 850 COMMERCE RD ]:" isvaluerequired="true">
<values>
<value prompt="Example: 850 COMMERCE RD" isvaluerequired="true" >upper(SERVICE_ADDRESS_1) = upper('[value]')</value>
</values>
</expression>
</expressions>
<titlefield>CUSTOMER_NAME</titlefield>
<fields all="false">
<field name="LOCATION_CODE"/>
<field name="ACCOUNT_NUMBER" gridfield="true" />
<field name="CUSTOMER_NAME" gridfield="true" />
<field name="SERVICE_ADDRESS_1" gridfield="true" />
<field name="SERVICE_ADDRESS_2" gridfield="true" />
<field name="SERVICE_CITY_STATE_ZIP" gridfield="true" />
<field name="HOME_PHONE" gridfield="true" />
<field name="ACCOUNT_STATUS" gridfield="true" />
</fields>
<links/>
<relates>
<relate id="0" label="Service Location" enableexport="true"icon="widgets/eSearch/assets/images/i_relate.png">
<fields all="true" />
<zoomscale usegeometry="true" zoompercent="1.6" />
</relate>
</relates>
</table>
</tables>

And my Service def:

Layer: xxxx.METER (ID: 84)
Name: xxxx.METER
Display Field: CUSTOMER_NAME
Type: Table
Geometry Type: N/A
Description: null
Definition Expression:
Copyright Text: N/A
Default Visibility: false
MaxRecordCount: 1000
Supported Query Formats: JSON, AMF
Supports Advanced Queries: true
Supports Statistics: true
Extent:
Drawing Info:
N/A
HasZ: false
HasM: false
Has Attachments: false
HTML Popup Type: esriServerHTMLPopupTypeNone
Type ID Field: null
Fields:
OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID )
LOCATION_CODE ( type: esriFieldTypeString , alias: Location Code , length: 30 )
METER_NUMBER ( type: esriFieldTypeString , alias: Meter Number , length: 30 )
CUSTOMER_NAME ( type: esriFieldTypeString , alias: Customer Name , length: 40 )
ACCOUNT_NUMBER ( type: esriFieldTypeString , alias: Account Number , length: 20 )
ACCOUNT_STATUS ( type: esriFieldTypeString , alias: Account Status , length: 10 )
BILLING_ADDRESS_1 ( type: esriFieldTypeString , alias: Billing Address 1 , length: 40 )
BILLING_ADDRESS_2 ( type: esriFieldTypeString , alias: Billing Address 2 , length: 40 )
BILLING_CITY_STATE_ZIP ( type: esriFieldTypeString , alias: Billing City, State, Zip , length: 40 )
SERVICE_DESC ( type: esriFieldTypeString , alias: Service Description , length: 40 )
SERVICE_ADDRESS_1 ( type: esriFieldTypeString , alias: Service Address 1 , length: 40 )
SERVICE_ADDRESS_2 ( type: esriFieldTypeString , alias: Service Address 2 , length: 40 )
SERVICE_CITY_STATE_ZIP ( type: esriFieldTypeString , alias: Service City, State, Zip , length: 40 )
HOME_PHONE ( type: esriFieldTypeString , alias: Home Phone Number , length: 40 )
SUBDIVISION ( type: esriFieldTypeString , alias: SUBDIVISION , length: 40 )
BLOCK_NUMBER ( type: esriFieldTypeString , alias: Block Number , length: 10 )
LOT_NUMBER ( type: esriFieldTypeString , alias: Lot Number , length: 10 )
APARTMENT ( type: esriFieldTypeString , alias: Apartment Number , length: 10 )
SUITE ( type: esriFieldTypeString , alias: Suite Number , length: 10 )
ON_DATE ( type: esriFieldTypeDate , alias: ON_DATE , length: 36 )
SECTION_ID ( type: esriFieldTypeString , alias: Line Section ID , length: 20 )
PRIMARY_METER ( type: esriFieldTypeString , alias: Primary Meter? , length: 1 , Coded Values: [N: No] , [Y: Yes] )
SERVICE_LOCATION_ID ( type: esriFieldTypeInteger , alias: Service Location ID (Foreign Key) )
CAYENTA_LOC_REC_NO ( type: esriFieldTypeString , alias: CAYENTA_LOC_REC_NO , length: 20 )
ROUTE_NO ( type: esriFieldTypeString , alias: Route No , length: 10 )
SEQ_NO ( type: esriFieldTypeString , alias: Sequence No , length: 10 )
CYCLE_NO ( type: esriFieldTypeString , alias: Cycle No , length: 10 )
JDE_WO_ID ( type: esriFieldTypeString , alias: JDE_WO_ID , length: 20 )
DATE_INSERVICE ( type: esriFieldTypeDate , alias: Date Inservice , length: 36 )
WIRE_COUNT ( type: esriFieldTypeInteger , alias: Wire Count )
SERVICE_STATUS ( type: esriFieldTypeString , alias: Service Status , length: 10 )
LOCATION_CLASS ( type: esriFieldTypeString , alias: Location Class , length: 10 )
LOCATION_SUBCLASS ( type: esriFieldTypeString , alias: Location Subclass , length: 10 )
METER_BILL_CODE ( type: esriFieldTypeString , alias: Meter Bill Code , length: 10 )
KW_DEMAND ( type: esriFieldTypeString , alias: KW Demand , length: 20 )
KWH_CONSUMED ( type: esriFieldTypeString , alias: KWH Consumed , length: 20 )
READ_DATE ( type: esriFieldTypeDate , alias: Read Date , length: 36 )
BILLING_CYCLE_DAYS ( type: esriFieldTypeString , alias: Billing Cycle Days , length: 10 )
CRITICAL_LOAD ( type: esriFieldTypeString , alias: Critical Load , length: 7 )
SPOT_LOAD ( type: esriFieldTypeString , alias: Spot Load , length: 5 , Coded Values: [N: No] , [Y: Yes] )
METER_TYPE ( type: esriFieldTypeString , alias: Meter Type , length: 15 )
METER_MULTIPLIER ( type: esriFieldTypeString , alias: Meter Multiplier , length: 5 )
TAX_DISTRICT ( type: esriFieldTypeString , alias: Tax District , length: 5 )
METER_COMMENTS ( type: esriFieldTypeString , alias: Meter Comments , length: 100 )
WORKREQUESTID ( type: esriFieldTypeString , alias: Work Request ID , length: 20 )
DESIGNID ( type: esriFieldTypeString , alias: Design ID , length: 20 )
WORKLOCATIONID ( type: esriFieldTypeString , alias: Work Location ID , length: 20 )
WORKFLOWSTATUS ( type: esriFieldTypeInteger , alias: Work Flow Status , Coded Values: [0: None] , [1: In Design] , [2: Pending Approval] , ...5 more... )
WORKFUNCTION ( type: esriFieldTypeInteger , alias: Work Function , Coded Values: [0: In-Service] , [1: Install] , [2: Remove] , ...5 more... )
HOUSE_NO ( type: esriFieldTypeString , alias: House Number , length: 18 )
STREET_PFX_DIR ( type: esriFieldTypeString , alias: Street Prefix Direction , length: 5 , Coded Values: [E: East] , [N: North] , [NE: North East] , ...5 more... )
STREET_NM ( type: esriFieldTypeString , alias: Street Name , length: 40 )
STREET_NM_SFX ( type: esriFieldTypeString , alias: Street Name Suffix , length: 6 , Coded Values: [ALY: Alley] , [ANX: Annex] , [ARC: Arcade] , ...196 more... )
STREET_SFX_DIR ( type: esriFieldTypeString , alias: Street Suffix Direction , length: 5 , Coded Values: [E: East] , [N: North] , [NE: North East] , ...5 more... )
SEC_ADDR_ID ( type: esriFieldTypeString , alias: Secondary Address (unit) , length: 5 , Coded Values: [APT: Apartment] , [BLDG: Building] , [BOX: Box] , ...12 more... )
SEC_ADDR_RANGE ( type: esriFieldTypeString , alias: Secondary Address Range , length: 18 )
SPECIAL_DIRECTIONS ( type: esriFieldTypeString , alias: Special Directions , length: 50 )
BAD_DOG ( type: esriFieldTypeString , alias: Bad Dog , length: 10 )
TECH_SERV_MULTIPLIER ( type: esriFieldTypeString , alias: Tech Services Multiplier , length: 10 )
FLEXNET_ID ( type: esriFieldTypeString , alias: FLEXNET_ID , length: 20 )
Relationships:

Service Location (0) -- Related To: De-Energized Service Locations (8)

Supported Operations: Query Query Related Records Generate Renderer Return Updates

Modify Map Contents Window

$
0
0
I am using Robert's eLayerList Widget. It works great. But, I was wondering if it is possible to make the changes shown in the attached image:

- Move the items inside the red box (labeled 1) to "Water Process Streams" (labeled 3).

- Delete "Water Assets" (labeled 2)

I face a rather unusual situation in that I have 92 Layers spread out in 24 MXDs. In each MXD, the Layers are in Groups and Sub-Groups.

One option is to create around 92 or so MXDs, one MXD per layer. But, this would overwhelm the RAM on my server machine resources.

Here is how each MXD is "constructed"; using "Water Assets" as an example -

"Water Process Streams" is the name of the MXD.

"Water Assets" is the Layer Group in the MXD

Under "Water Assets" are the following Layer "Sub" Groups: No.1 Water, No.2 Water, No.3 Water, No.4 Water, and 6 more Layer "Sub" Groups. Each sub-group corresponds to a completely different piping system, each with their own valves and other assets completely independent of each other.

Inside each Layer "Sub" Group are the Layers associated with each as shown by example in the attached image.

My users want the ability to turn each layer on and off. But, they also want to reduce the "nesting" shown in the attached image. Having to expand/compress, check/uncheck Layer Groups - Layer Sub-Groups - Layer SubSub Groups can be a bit confusing.

Any ideas anyone has to assist me in organizing this data inside a Map Contents Window with or without the eLayerList Widget would be appreciated.
Attached Thumbnails
Click image for larger version

Name:	Legend_Change.png‎
Views:	N/A
Size:	295.8 KB
ID:	31714  

How to Edit Widget Window Starting Position

$
0
0
I know some real basic Flex API, have Flash Builder. While I use Flex Viewer (v3.6), I do all the edits and configuration through flash builder.

Anyway, I am wondering if there is a way to define where, more or less the window for a widget opens up at. Either at the start or when a user clicks on the widget. For example I have a Web Map that opens with the legend and bookmarks justified at the top left. I would prefer to have one open up at the bottom right.

Can someone please point me to a helpful link or anything? Thanks.

Configuration of Flex viewer and Blazeds

$
0
0
hello everyone

how can I configure my project flex viewer with BlazeDS .

Thank you for your help

Minimum Scale

$
0
0
Hello All,

I was wondering if there is a way to be able to zoom in farther on the viewer using the out of box base maps?

I have some florr plan operational layers and can not seem to get in as close as I would like


Thanks

Eric

Directions Widget

$
0
0
Is there an easy workaround to get this widget working without having an ArcGIS organizational account?

All I am looking for is a route service url that can be put in the simple config file. Not looking for anything that needs coded in house.

Thanks!

Identify Widget 3.6.4 hyperlink only works in app builder preview

$
0
0
Running Server 10.1 with Flex 3.6.

I created a virtual folder in IIS that points the network folder of my .jpg's. In my preview in application builder, the links work. I click a point and the picture pops up. I click the picture and a separate web page opens with the picture as well.

However, when I launch the application URL and try the same sequence, the picture does not show and I get a 404 Not Found error when I click on symbol where the picture should be to open it in a separate tab.

Am I missing something a step?

Dan

Sublayers pulling from separate REST services

$
0
0
Is it possible to call on two separate REST services within the same layer?
Let's say I want to make a main layer labeled "Severe Weather" and have two sublayers, one that pulls NOAA Hurricanes from one web service and one that pulls USGS's Active Tornado's from another service.
Can I do this? I don't see any documentation that supports this and have given it a shot, without luck.
My viewer looks silly with a long list of various web services and I want to adjust the main config file to better organize them in some parent layers.
Thanks!

Attribute Table

$
0
0
I was looking in the API to see where the code is for the development of the attribute table that is used in flexviewer, so it can be modified to allow for more options in the dropdown menu. I could not find the the widget template that establishes the dropdown options. The example in the flex api does not provide many clues either.

Any suggestions?

Thank you.

Change mouse cursor on creating new feature in Edit Widget

$
0
0
Hello,
what I want to do is to change cursor to cross image when I draw new feature using Edit Widget. And after saving feature to change it back to arrow style.
Probably I should change it with:
Code:

map.cursorManager.setCursor(myCursor, CursorManagerPriority.MEDIUM, -6, 0);
But I do not know where in the code to call it.

I'm using source code of ArcGIS Viewer for Flex 3.0.

Thank you,
Andrzej

Trying to find a way to add a tiled feature to the Flex Viewer Identify Widget

$
0
0
I have a flex viewer application which contains two dynamic services (one being a point layer and the other a polygon feature).
The application also contains 7 separate tiled services which are all .tif rasters and which I cached when publishing as separate services to Arc Server.

I added the Identify tool (3.6.4) to my application.
I couldn't add my tiled services but added the two dynamic service features and chose the fields I wanted shown from these.
I set 'Only These Layers' to 'Off'.

When I preview my application I have one of the dynamic services turned on and one of the raster tiled features turned on.

The problem I have is shown in the attached image where I receive an error message that the requested operation is not supported by this service. I'm assuming that this error is in relation to the tiled feature. Even if I could find a way to manually get rid of this error message in the final application I would still prefer to have the ability to edit my field name alias and fields order for all of the rasters.
Attached Thumbnails
Click image for larger version

Name:	Error Message.jpg‎
Views:	N/A
Size:	59.3 KB
ID:	31771  

Esearch not pulling all records in for search

$
0
0
I have a parcel viewer located at: http://gis.crookcounty.wy.gov/parcelViewer/ I recently noticed that when I am searching by any of the "Parcel" fields it isn't pulling in all the unique values. I have 5916 unique parcel records but the tool is only showing 2700 unique records. If I go all the way down my list and select "all" it will select all the parcels, but it won't let me search for roughly half of my records by attribute. I have two other layers that I search by "Addresses" and "Subdivisions" that populate correctly.

Any ideas as to what could be causing this issues would be GREATLY appreciated.

Thank you,

Max Masters
Geographic Innovations

URL links getting blocked

$
0
0
Hello All,

Just thought I would ask the forum about some linked images I cannot get to work
I would like an image to appear in the popup window when opened.

I have been testing this by using a simple png image that I have.

I created a image folder on the server and have shared and opened up completly.

When I copy and paste the URL into a browser it opens right up, however when I put that same URL in the media tags, nothing.

I also tried this:
I created two fields in the point service called URL and IMAGE and populated it with the URL and in the IMAGE field I put the file path for the image which I moved to the Assets/image folder in the viewer.

So when I configured the popup for this I turned on the URL field and well as set the IMAGE field in the media tags

Image appeared as I expected but when I clicked on the URL link it opened with the standard 404 error

So for some reason the link is getting blocked

Has anybody dealt with this or have any ideas of what might be the problem?

Thanks

Eric

Featurelayers not visible in 3.6 Viewer

$
0
0
I am working on migrating from AGS10.0 with a 2.5 Flex Viewer to AGS 10.2 with a 3.6 Flex viewer. When I recreated my services that were to be used in the edit widget, I enabled feature access as usual and pretty much copy and pasted the entry from my 2.5 viewer config.xml as the service names are still the same. It may just be something stupid because I am tired, but the Featureserver layers do not show up in the 3.6 viewer. The featureserver layers can be previewed in ArcCatalog though. Obviously the edit widget does not work either without the feature layers. The mapserver layer with the same name is visible in the Flex viewer, just not the featureserver portion. According to the edit widget documentation, it should be compatible with ArcSDE 10.0. Is that incorrect?

Thank you
Viewing all 2097 articles
Browse latest View live