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

Sign in only when accessing Edit Widget

$
0
0
I have a secured map service with feature capabilities. I want all users to be able to see the service read-only when they visit the application and only be prompted for credentials if they click on the edit widget.

As it is now, when I add the service to the application builder as an operational layer, all users are prompted for credentials as soon as the page loads. Is there a way to set-it up as first described?

Thanks!

Search widget with hiperlink???

$
0
0
Hi everyone, i have a flex tempalte wirth the Searcg widget with this config:

<layer>
<name>Praias</name>
<url>http://cultura.cm-mafra.pt/ArcGISMafra/rest/services/FLEX/Flex_Turismo/MapServer/3</url>
<expression>NOME Like '%[value]%'</expression>
<textsearchlabel>Nome</textsearchlabel>
<titlefield>NOME</titlefield>
<linkfield>LINK<\linkfield>
<linkfield>QUALIDADE_AGUA<\linkfield>
<fields>
<field name="NAME" alias="Name"/>
<field name="ACESS" alias="Acess"/>
<field name="BA_field" alias="blue flag"/>
<field name="QUALITY" alias="quality"/>
<field name="VIGIL" alias="Vigilante"/>
<field name="BAR" alias="Bar"/>
<field name="OBS_LINK" alias="More info"/>
<field name="QUALITY_LINK" alias="Quality Info"/>
</fields>
<orderbyfields>NAME</orderbyfields>
</layer>



The last 2 fields contains already URL in the value. How can in configure this config to activate the last two fields with hiperlink???

many thanks

Why can't I apply edits on a featurelayer if i have edited attributes of my object?

$
0
0
Hi,

I am still getting to grips with editing functionality on featurelayers so I hope someone can help:

I have a graphic created at runtime that has some attributes attached to it. I want to publish that graphic as a feature to a feature layer in the operational layers of my viewer. This works brilliantly.

The issue is that my users may not wish to publish the graphic to the database but still need to generate it and consequently it's attributes as it may be saved away as a file and recalled at a later time (siilar to how Robert Scheitlins eDraw widget does it!).

But if publish option is selected, I need them to add some further detail (like dates and a comment) which will then be used to filter the feature layer when selecting from it later. This needs to be added as an extra couple of attributes which then also need to be written to the feature class.

If I add extra attributes before I apply the edits and add the feature, it doesnt save at all. I get no exceptions and it looks as though it worked, but the data is not in the feature class. I have no idea why!

Here is my code that works fine:

Code:

private function publishWDADetail():void

                  {

                        //need to be able to add the values from the controls to the attributes of the graphic in order to save information that

                        //is searchable by date to the feature class!
                        //this works but doesnt have form attributes in it
                        //publish the selected graphic by creating it as a feature and applying it as an edit to the feature layer for published traces

                        publishingFeatureLayer = map.getLayer("Traces") as FeatureLayer;
                      publishingFeatureLayer.applyEdits([ publishedTraceGraphic ], null, null);

This code below should work (i think!) - but doesn't. When I use the variables window to explore the attributes of the graphic object I can see the attributes have been added as expected!
Code:

                        addAttributesFromControls()

                        publishingFeatureLayer = map.getLayer("Traces") as FeatureLayer;

                        PublishingFeatureLayer.applyEdits([ publishedTraceGraphic ], null, null);

//here is the code I am using to add extra attributes to the publishedTraceGraphic Graphic object from my attribute widget.
                  private function addAttributesFromControls():void

                  {

                        publishedTraceGraphic.attributes["USER_TAG"] = txtUserTag.text;
                        publishedTraceGraphic.attributes["COMMENT"] = txtComment.text;
                        publishedTraceGraphic.attributes["TRAINING_AREA_NAME"] = ViewerContainer.getInstance().mapManager.trainingAreaName;
                        publishedTraceGraphic.attributes["RANGE_STATUS_ID"] = "4";
                        publishedTraceGraphic.attributes["FIRING_START_DATE"] = getDateTime("DateFrom").toString();
                        publishedTraceGraphic.attributes["FIRING_END_DATE"] = getDateTime("DateTo").toString();
                        publishedTraceGraphic.refresh();

                     

                  }


All ideas welcome! This one is keeping me up at night!

Move Up/Down Function in LayerList Widget is Acting Strange

$
0
0
Hello,

When I attempt to move a layer up or down in my LayerList Widget and also inside the "More.." button, the layer interacts very strangely.

Initially clicking move down will move the layer down one place. If I choose to move it down again it will jump about 4 places in the list, moving it up is no problem unless it has been moved up twice already and then it can go up no further.

the order of the list correctly alters the layer drawing order fine. But just the sporadic jumps in the list that baffle me.






Anyone have a similar scenario or solution?

Identify Widget 2.5

$
0
0
I am having an issue with the most recent version 2.5.8 of the Identify Widget.
I have only two layers I wish to define hyperlinks for.
When <layers onlythese="false"> the tool returns information for both.
When <layers onlythese="true"> the tool will return information and display hyperlinks for the wells (points) layer ONLY.
The Correlations layer (polyline) returns nothing.
Config.xml file attached.
I would be grateful for any assistance.
(Limited to using 2.5 version due to enterprise version of Flash)
Cheers
Attached Files

SwipeSpotlight 3.4 - Use with Group Layers

$
0
0
Hi,

I'm trying to use the SwipeSpotlight 3.4 widget on group layers. At the moment only the top level group layers are pulled through into the widget's drop down list, whereas ideally I would like the bottom level (ie actual data layers) to be used.

So, in the following example, currently the drop down list shows '5 Year Data' and '10 Year Data' whereas I really need it to show 'Layer 1, Layer 2, Layer 3...' etc.

> 5 Year Data
>> 100m Data
>>> Layer 1
>>> Layer 2
>> 500m Data
>>> Layer 3
>>> Layer 4

> 10 Year Data
>> 100m Data
>>> Layer 5
>>> Layer 6
>> 500m Data
>>> Layer 7
>>> Layer 8

(There are a lot of layers in the real webviewer, so listing them all out separately is not really a viable solution)

Are there any settings I can change to achieve this functionality, or is there a workaround of some description?

Many thanks!
Natalie

Compatibility with 10.2?

$
0
0
Are there any known issues with the latest and greatest Flex running on 10.2? I'm wanting to move my 10.1 server apps to 10.2, but I'm leery of the flex apps working in 10.2. I'm mostly using Robert S's Flex apps, with no custom code. Has anyone gone down this road yet?

Geoprocessing with multiple attributes

$
0
0
Hello,

I am facing the problem that i can't put more than one attribute in the GP Server when i want to execute a task,

Does anyone know the syntax how to seperate between a value or if this is possible,

Here's my code for one value:

Code:

var params:Object =
                {"Input_Event_Table": {"features":[{"attributes":{"Geocode":puntGeoWaarde,"KmVan":puntKmWaarde}}]}};
               
                            gp.execute(params);

But i need like: {"Geocode":puntGeoWaarde,"KmVan":puntKmWaarde} & {"Geocode":puntGeoWaarde,"KmVan":puntKmWaarde} next to eachother..

Thanks in advance,

David

Help Required with Adding Related Records Using Feature Service

$
0
0
Hello Everyone,
I want to store detail (in a Table) of the shop (feature classs). Both are related in composite manner using 1:M.
I have couple of questions:

1. Is there any way to insert data into detail table purely from code? I mean I want to insert data into detail table without user input.

2. After relating both (Feature Class + Detail Table), AttributeTable Widget throws an exception (cannot access property of a null object reference )in one of its component while adding data into related table. Is there anything wrong on my side?

3. In Flexviewer 3.3 however same Feature Service seems to work well but as I insert two records of detail in shop, Attribute Table inserts detail with object ID being increamented on each insert. When I refresh the page it says only one related detail of the shop but in DB, All the records are present.
Those remaining records are automatically associated by Attribute Table and Edit Widget for newly created Shops.

Please help.


I have a feature class related to a table.
I am using FlexViewer 3.4 and ArcGIS Server 10.1 with SQL Server 2012.
Thanks

3.4 Graphics & Flex

$
0
0
I'm sorry if I sound lame. I've used flex and ESRI before and it seemed simple. Today I downloaded 3.4... and I can't, for the life of me, figure out how to add a graphic to the map from a lat lng coordinate via AS3, or better yet, a group of lat lngs. I've been at it for an hour or two now. I think all the examples I'm finding online must be for previous libraries.... can someone help please.


Thanks,

Matthew

popup file for related table?

$
0
0
hi,

is it possible to configure a pop-up file for a related table?
(I want to rename some fields and hide the others)

I have created a pop-up configuration file for the feature layer and it work fine but I don't know how to do with the related table.
if it is possible to do this, do I have to call it in the main configuration file?

Vincent
AGS 10.1 / flex 3.4

Force eMapSwitcher to draw on top of other widgets

$
0
0
There seems to have been a behavior change after the 3.0 viewer release. In 3.0 and previous viewer versions the eMapSwitcher would draw over the top of any open widgets. In 3.1, 3.3, and 3.4, eMapSwitcher opens underneath any open widgets (see the attached image).

Is there an "index" setting I am missing that will force the eMapSwitcher to open above other widgets? I am using the source code if that allows for a fix.
Attached Thumbnails
Click image for larger version

Name:	eMapSwitcher.png‎
Views:	N/A
Size:	176.2 KB
ID:	26429  

Would like a sample code for searching two fields in Flex Viewer 3.4

$
0
0
I am having some trouble configuring the search widget to search for two fields, a block and lot field from a parcel feature. Any help or sample code would be greatly appreciated as I am new to configuring for Flex Viewer.

Here is how it looks so far, I just don't know how to enter for multiple fields:
<?xml version="1.0" ?>
<configuration>
<zoomscale>50000</zoomscale>
<shareresults>false</shareresults>
<layers>
<layer>
<name>Pin Number</name>
<url>http://masergis3.masergis.com/ArcGIS/rest/services/MiddletownNJPublic/MapServer/23</url>
<expression>mod4.Pin like '[value]'</expression>
<textsearchlabel>Enter Pin Number [Example: 32_10_10]</textsearchlabel>
<titlefield>mod4.Pin</titlefield>
<fields>
<field name="mod4.Pin" alias="Pin"/>
<field name="mod4.BLOCK" alias="BLOCK"/>
<field name="mod4.LOT" alias="LOT"/>
</fields>
<orderbyfields>mod4.Pin ASC</orderbyfields>
</layer>
</layers>
</configuration>

Thanks,
John

Design tab and Preview tab ERRORS

$
0
0
I am very new to Flex but have managed to publish a map to the Amazon Cloud and access the map layers through the Application Builder in ESRI Flex. The Map, Widget and Layout tabs work fine and I am able to see my layers in the Map Extent section of the Maps tab. However, when I get to the Design and Preview tabs, I get the following error:

Error: Invalid URL
Code: 400

I find this very suspicious since I have already seen a preview of my layers in the Maps tab so I have some confidence that my url is correct.

Any help is appreciated.

Eric

Configuration file questions!

$
0
0
Can you create two configuration file (e.g. config.xml(contain print widget) & config1.xml(without print widget)) to run same viewer application? For example, If user click a button to run print viewer application before loading viewer application then will use config.xml otherwise will use config1.xml. If so how do you modify the code on index.html file?

Thanks.

Viewer not locating Geographic Coordinates

$
0
0
I am on Flex Viewer 2.5 and the map is built on State Plane Coordinates.
The Locator / "Address Search" widget is not locating coordinates entered in Decimal Degrees correcty, but locates coordinates entered in SPC correctly. Any solutions for this, or must the map be in GCS?
Can I remove this search option from the widget? How?
Thanks
Lakshmi

LayerList Widget - Turn on Sublayers

$
0
0
Is there a way to turn on and off all sublayers within a group within the Layer List Widget when the group is checked or unchecked?

Printing v3.3 -

$
0
0
Hi everybody,

I have just create a map service but when i try to print it trough the flew viewer i receive only the result for bottom half of the page for this map service?

see the attachment.

Is there somebody that already had this problem?

A solution?

Thanks in advance

David
Attached Files

New Widget - User Configuration Selection Widget

$
0
0
Flex Viewer Enthusiasts,

Please find a new widget that allows the user to select which configuration file load the viewer against:

http://www.arcgis.com/home/item.html...b30d5c230713fb

This widget is a cut down version of the widget found on ESRIs Public Safety COP Viewer:

http://www.arcgis.com/home/item.html...14bd5178b6892f

The standard config.xml is stripped down just to show the selection widget; the xml file for the widget specifies the images to use within the splash screen and which config files are associated to each image. Sample config files are supplied in the download.

Regards

Anthony

Tiled Map Service Style Widget

Viewing all 2097 articles
Browse latest View live