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

Edit Widget that Would Auto-Increment the Unique ID

$
0
0
Hi there,

Does anyone know if there is an edit widget out there for ArcGIS Viewer for Flex that would create a new feature with the unique ID automatically incremented (from the last ID number) each time the user adds a new feature through the widget?

I currently use the Edit Widget in a map application, but it does not add a value for the unique ID column when the user adds a new feature.

Please advise.


Thanks,

Thanh

eSearch Widget - Search then Join with out "Related records"

$
0
0
I wanted to float something by the community before I set out down this path.

My customer has a need to search one non-spacial table and then "ZoomTo" a related record in a spacial table.

They don't like the related record functionality.

We attempted to setup a view containing both tables but have been thwarted by many complications surrounding not being able to compress the DB currently creating large Add/Delete recs in the Default/Base data set.

So.....

I'm thinking - modify the code to search on the table (just as its doing now) but.. once the recs are down, I re-query the spacial table for the matching recs - then send to the result list.

Thoughts?

Edit Widget attachment files portability from server to server?

$
0
0
Hi,
We want to start using attachments on a file with the edit widget. The question is, if this file is moved to another server (say during an upgrade), will the attachment files move with it as one export? Or are the attachments lost? We are using ArcGIS Server 10.1 with SQL Server 2008 R2.
Thanks,
Janie

Re-sizing the Space Between Items in the Identify Widget (see picture)

$
0
0
Hello,

Forgive me if there is an easy fix in the code, but I can't find out where to change the spacing between items in a few of the widgets..most notably the "Identify Widget" - items become bunched together. Anyone know how I could go about doing this? Look at the picture for a better idea of what I'm talking about.

Thanks!

Jesse
Attached Thumbnails
Click image for larger version

Name:	Identify_Widget.JPG‎
Views:	N/A
Size:	36.6 KB
ID:	32026  

add layers features or operational layers

$
0
0
Dear My Friends,

How can add layers features or operational layers on the small Screen Viewer in Flex ?? , and how can do it ???

you can see attached to understand my Question..


thanks for helping
Attached Thumbnails
Click image for larger version

Name:	Scrren Viwer.jpg‎
Views:	N/A
Size:	131.7 KB
ID:	32067  

PopUpRenderer error

$
0
0
Hi everyone,

I've just upgraded computers and am now receiving this error on a 3.1 viewer I've been working on. I've looked through several files within FlashBuilder and can not seem to find where this issue is arising. Can anyone provide any guidance?

Here's the error I'm receiving: component PopUpRenderer is defined more than once in this namespace. Remove the mapping to com.esri.ags.portal:PopUpRenderer or com.esri.ags.webmap:PopUpRenderer


Thanks in advance!

Ashley

Attribute Table Widget Field sum

$
0
0
Is it possible to add code in Attribute Table widget that when adding a layer, would populate a numerical field by the sum based on multiple records of another field in same layer?

Print error from sampleserver6.arcgisonline.com

$
0
0
Sampleserver6 is giving this error when attempting to use the print widget:

Attachment 32081
Attached Thumbnails
Click image for larger version

Name:	PrintError.png‎
Views:	N/A
Size:	733.1 KB
ID:	32081  

Autorefresh Attribute Table Widget

$
0
0
Hello,

We have a table that refreshes every 5 minutes, and I would like to push those updates to the user in the attribute table widget so that they data updates while the table is open in the flex viewer.

If that isn't possible, can it at least be designed where the widget hits the table each time it closes and reopens, rather than only when the map extent changes. It seems like the data in the table is cached until the extent changes.

Currently at release 3.3 and Server 10.1.

Any help would be appreciated.

Thanks,

Justin

Search Widget Case Sensitive For One Layer But Not Another

$
0
0
Making a simple WebMap for users in the company to look at. In the search widget, I added two layers (Leases & Wells). For the lease layer expression, I have; LEASENO like ('%[value]%') or LESSOR like ('%[value]%') or LESSEE like ('%[value]%') - this works fine. Upper/Lower doesn't matter. The table data is in caps and when entering 'miller' as a search item, it returns everything with 'MILLER' just fine.

Now for my wells layer expression, I have; WellName like ('%[value]%') - however, when testing it out, it only returns any results if the search value is entered as all caps, as the data in the table is.

I've made sure that my field names are correct and still cannot come up with any reason why one layer will work correctly but the other won't.

I'm sure it's something simple - but would appreciate any feedback/help you may provide.

Thanks.

trouble adding layer to viewer

$
0
0
This is a pretty basic question, but I'm new to ArcGIS Viewer for Flex so hoping for some guidance. I'm having trouble getting a layer from MarineCadastre.gov to display. The server url is:

http://www.csc.noaa.gov/ArcGISPUB/re...tion/MapServer

Specifically, I'm trying to get the Aids to Navigation Layer to display. I've tried various combinations of attributes within the layer tag, but can't get it working. Can anybody offer advice?

Thanks

Current Release list of Widgets

$
0
0
Is there a reference site or document listing all the current releases versions and dates for the widgets offered on Esri and/or GitHub? Most coincide with the Viewer version (3.6 released 12/17/2013), but I have found two exceptions. Identify Widget 3.6.5 3/2/2014 and ESearch Widget 3.6.4 3/3/2014. I just wonder if there are more.

Question for getLocateGra() function in eSearch

$
0
0
When you get the graphic(s) of the eLocate widget, can you use those to do a graphical search with 100 feet buffer? So the current layer will have bigger boundary.

Thanks.

Problem:help,help,help!Arcgis flex api bug in directions modul?please help me!

$
0
0
I use arcgis flex api to develop a function about route direction.everything is ok,but the route isn't along the road,then i debug the code and found this issue:
var routeResult:RouteResult = event.routeSolveResult.routeResults[0];
directionsFS = routeResult.directions;
//var route:Graphic=routeResult.route;
route=routeResult.route;
//map.defaultGraphicsLayer.add(new Graphic(directionsFS.mergedGeometry, routeSymbol));
//edit by lizeping
map.defaultGraphicsLayer.add(new Graphic(route.geometry, routeSymbol));
the sample code use directionsFS.mergedGeometry and the route isn't on the road but if change it to route.geometry it's ok!
now i have a problem: when i want to show the segment of the route,the geometry that from the directionsFS.features all show tow point,when highlinght the segment it's also cannot along the road,some one can help me?thx!

How to make default Pop-up width wider

$
0
0
Trying to make the default pop-up wider - i think i need to edit the PopUp_4.xml file - but am unsure of the code to make it happen.

Thanks for any suggestions!

Running a function in a widget from a child component

$
0
0
I have a widget (widget.mxml). When it loads I have a title window (CustomTitleWindow.mxml) that opens that gives the user two options Yes or No. When they press 'Yes' I want it to run a function saveYes in the widget.mxml and when they press 'No' I want it to run a function saveNo in the widget.mxml. I haven't quite got to grips with how to do this. I have the following code, it closes the CustomTitleWindow but doesn't run the saveYes function. Where am I going wrong?

The code in my widget.mxml is

Code:

private function showWindow():void
                        {
                                        var popUp:IFlexDisplayObject = PopUpManager.createPopUp(parent, CustomTitleWindow, true);
                                        PopUpManager.centerPopUp(popUp);
                                        popUp.addEventListener("evtYes", saveYes);
                        }
                       
                        private function saveYes():void
                        {
                                Alert.show("The Yes requested has been pressed");
                        }

The code in my CustomTitleWindow.mxml is

Code:

<?xml version="1.0" encoding="utf-8"?>
<s:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
                          xmlns:s="library://ns.adobe.com/flex/spark"
                          xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"
                          title="Custom Window"
                          skinClass="widgets.myWidget.TitleWindowSkin"
                          cornerRadius="8"
                          close="PopUpManager.removePopUp(this);">
        <s:layout>
                <s:VerticalLayout verticalAlign="middle" horizontalAlign="center" />
        </s:layout>
       
        <fx:Metadata>
                [Event(name="evtYes", type="flash.events.Event")]
        </fx:Metadata>
       

        <fx:Script>
                <![CDATA[
                        import mx.managers.PopUpManager;
               
                        private function clickYes(event:Event):void
                        {
                                var myEvent:Event = new Event ('evtYes');
                                dispatchEvent (myEvent);
                                PopUpManager.removePopUp(this);
                        }
                ]]>
        </fx:Script>
        <s:Label text="Are you sure?"/>
        <s:HGroup horizontalAlign="center" verticalAlign="middle" gap="5" width="100%">
                <s:Button id="btnYes" label="Yes" click="clickYes(event)"/>
        </s:HGroup>
</s:TitleWindow>

Thanks!

Min & Max Instances

$
0
0
Could someone help me understand the need for min and max instances when publishing services?

We only have one dedicated GIS Server - but we have quite a few users who will be accessing the data at any given time.

Currently we have min set at 2 and max 10 - but it seems that as the day goes on - we experience a major lag time from our users with data on various layers not drawing at all.

Should we be publishing our services with a max of closer to the number of total users we have?

Thanks in advance.

Does a Query Widget exist allowing multple queries?

$
0
0
The current standard Query Widget allows a single query. Does anyone know of a widget allowing for more than a single query? Like the Bookmarks widget but with a list of Queries?

How to make flex viewer print widget can export chinese Title well.nogarbled charact

Can you copy text input from one Geocoder text to another one?

$
0
0
I create two Geocoder compenent. One use my own geocode locator service and another one use ESRI. See my attachment file. I want to use a text I type in header controller widget and show it on search widget so won't need to retype it. Just like copy and paste it manually. Is there possible?
Hope someone can help.
Thanks.
Attached Thumbnails
Click image for larger version

Name:	GeocoderInput.gif‎
Views:	N/A
Size:	94.3 KB
ID:	32185  
Viewing all 2097 articles
Browse latest View live


Latest Images