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

Splash Screen font color

$
0
0
What is the syntax to set the font color for the Initial Splash Screen? I want the "text-test" to be a different color.

<p align='center' width='139' height='131'>
<img src='assets/images/globe.png'/>
<br/>
<br/>
<font size="+2"><b><a href="http://links.esri.com/flexviewer" target='_blank'>text-test
<br/>
ArcGIS Viewer for Flex</a></b></font>
</p>

Thank you.
Stew

Viewing attachments on related records

$
0
0
If you configure the pop-ups I know that you can view attachments, and I know that you can view related records- but does anyone know if there is a way to view attachments on related records?

Current Version: 10.04.

Thanks!

Enhanced Layer List Widget

$
0
0
All,

Here is my latest widget for Flex Viewer. It is the first 3.4 widget I have been able to publish due to some issues with ArcGIS.com.

This is my replacement to the TOC Widget

This widget provides an enhanced version of the Layer List Widget for the Flex Viewer. This enhanced version contains UI enhancements that are currently request for the OTB version, such as extended layer menu that contains collapse all, expand all, zoom to make visible, and changed behavior on the description option. The enhanced version also supports legends for CSVLayer and GeoRSSLayers as well a default legends for basemap rasters, annotation and raster catalogs.

It is recommended that you use this widget in Application Builder 3.4 as it has been fully integrated into the App Builder GUI and you will not have to deal with XML.

http://www.arcgis.com/home/item.html...934781d7234d18

Problem with minimizing widget window

$
0
0
Hello,
Something strange is happening with my widget window when I try to minimize it with minimize button.

This is the widget window before minimizing:
Attachment 26000

And this is when I click minimize button:
Attachment 26001

I don't know why this is happening, am I doing something wrong?

Here is the widget code:
Code:

<viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"
                                  xmlns:esri="http://www.esri.com/2008/ags"
                                  xmlns:s="library://ns.adobe.com/flex/spark"
                                  xmlns:mx="library://ns.adobe.com/flex/mx"
                                  xmlns:viewer="com.esri.viewer.*"
                                  creationComplete="creationCompleteHandler(event)"
                                  width="670"
                                  height="446"
                                  borderVisible="true"
                                  isResizeable="true"
                                  layout="absolute"
                                  widgetConfigLoaded="init()">
    <fx:Script>
    </fx:Script>
       
        <fx:Declarations>
                <!-- s:TraceTarget/ -->
                <esri:Query id="queryByGeometry" />
                <esri:DrawTool id="myDrawTool" drawEnd="drawEndHandler(event)"/>
        </fx:Declarations>
        <viewer:WidgetTemplate id="labelInfoWindowB"
                                                  left="0" right="2" top="0" bottom="4"                                       
                                                  closed="infoWindow_closedHandler(event)"
                                                  horizontalCenter="-1"
                                                  verticalCenter="-2"
                                                  height="400" width="600">
                <s:Form left="10" right="9" top="10" bottom="9">
                        <s:FormItem width="628" height="404" label="">
                                <mx:TabNavigator left="0" right="61" top="0" bottom="0" paddingTop="0">
                                        <s:NavigatorContent width="100%" height="100%" label="Селекция">
                                                <s:Label id="labelSelectedObject" x="10" y="10" paddingTop="2" fontSize="16" fontWeight="bold" text="No Selection"/>
                                                <mx:Tree id="treeSelection" x="383" y="30" width="214" height="320"
                                                                change="treeSelection_changeHandler(event)"
                                                                labelFunction="treeLabeling">
                                                </mx:Tree>
                                                <s:Button id="buttonZoomTo" x="383" y="10" label="Zoom to"
                                                                  click="buttonZoomTo_clickHandler(event)"/>
                                                <s:Button id="buttonPanTo" x="461" y="10" label="Pan to"
                                                                  click="buttonPanTo_clickHandler(event)"/>
                                        </s:NavigatorContent>
                                        <s:NavigatorContent width="100%" height="100%" label="Снимки">
                                        </s:NavigatorContent>
                                        <s:NavigatorContent width="100%" height="100%" label="Описание">
                                        </s:NavigatorContent>
                                </mx:TabNavigator>
                        </s:FormItem>
                </s:Form>
        </viewer:WidgetTemplate>
</viewer:BaseWidget>

---
Bogdan Hristozov
Pontech Bulgaria
Attached Thumbnails
Click image for larger version

Name:	widget01.png‎
Views:	N/A
Size:	92.4 KB
ID:	26000   Click image for larger version

Name:	widget02.png‎
Views:	N/A
Size:	239.2 KB
ID:	26001  

eSearch Widget- use a field for the hyperlinkaliastext and get Error #1090

$
0
0
Hi: I would like to use field values to show up in the data grid instead of the URL. I have a field (PLATIMAGE) that I would like users to click and links them to open up a plat image. Instead of the URL, the text I would like to use is the plat name, which comes from another field, PLAT_NAME. I am using version 3.3 and in the help PDF it says:

"The hyperlinkaliastext attribute is the text or a {field} to show instead of the url in the data grid If you
want to use a field for the hyperlinkaliastext then just specify the name of the field in curly braces (i.e.
{DESCRIPTION}). So if you have a long url or just don't want the url to show in the data grid then you specify
the alias that you do want to appear in the data grid using this attribute."

Here is my config file:
<field name="PLATIMAGE" alias="Plat" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext={PLAT_NAME} hyperlinkgridfieldonly="true"/>

I however get the following error when I try to launch the eSearch Widet:
"A problem occurred while parsing the configuration file widgets/eSearch/eSearchWidget_Layers.xml
Error #1090"

Is there something wrong with my xml file that I am missing?

Thanks!

Allison

Importing raster (TIF) in Enterprise Geodatabase

$
0
0
I'm try to import raster images to enterprise geodatabase to be used as part of a Flex application operational layer. But the import process gets hung up and well not finish. Can anyone help me with this?

EditWidget (Viewer for Flex 3.4) - Prepopulate fields by code ?

$
0
0
Hi,

I use the EditWidget of a viewer for flex 3.4.

In the editor, I try to prepolutate an address field by code.

For instance :
- getting x/y of the mappoint clicked by the user => OK
- reverse geocoding for this point => OK, address is found
- affect the address to the address field (seem OK)
=> editor.attributeInspector.activeFeature.attributes["address"] = "reverse geocoding address found";

The problem is the editor is opened BEFORE reverse geocoding is finished.

The value of the address field seem correctly changed (because if I validate, the record in database own the correct address), but the field display is not filled for the user.

I try a lot of things :

- bindable var for the address
- editor.attributeInspector.activeFeature.attributes["address"] = "reverse geocoding address found";
- editor.attributeInspector.activeFeature.validateNow();
- editor.attributeInspector.activeFeature.validateProperties();
- editor.attributeInspector.activeFeature.refresh();
- editor.attributeInspector.refreshActiveFeature();
- editor.validateNow();
- ...

Unfortunately, no way to refresh the display !!!

Do you have any idea to correct this point ?

In anticipation, thank you for help !

Guillaume

BUG 3.4 EditWidget (Editor/AttributeInspector) Undo

$
0
0
I found this bug trying to set up my own edit widget. Decided to double check in the default viewer to make sure I wasn't doing something wrong. Got the same result. Apologies in advance, this should probably be in the api forum.

1. Open Edit Widget
2. Check "San Francisco 3-1-1 Incidents"
3. Click feature on map to open inspector
4. Edit any attribute
5. Click Ok
6. Click Undo and receive the following error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.esri.ags.components::AttributeInspector/validate()[C:\checkout\flex_api3\api\src\com\esri\ags\components\AttributeInspector.as:1223]
at com.esri.ags.components::AttributeInspector/set activeFeatureIndex$()[C:\checkout\flex_api3\api\src\com\esri\ags\components\AttributeInspector.as:576]
at com.esri.ags.components::AttributeInspector/set activeFeatureIndex()[C:\checkout\flex_api3\api\src\com\esri\ags\components\AttributeInspector.as:567]
at com.esri.ags.components::AttributeInspector/refresh()[C:\checkout\flex_api3\api\src\com\esri\ags\components\AttributeInspector.as:1310]
at com.esri.ags.components.supportClasses::EditAttributesOperation/undoattributeInspector_editsCompleteHandler()[C:\checkout\flex_api3\api\src\com\esri\ags\components\supportClasses\EditAttributesOperation.as:136]
at mx.rpc::AsyncResponder/result()
at com.esri.ags.tasks::FeatureLayerTask/handleApplyEdits()[C:\checkout\flex_api3\api\src\com\esri\ags\tasks\FeatureLayerTask.as:311]
at Function/http://adobe.com/AS3/2006/builtin::call()
at com.esri.ags.tasks::BaseTask/handleResultEvent()[C:\checkout\flex_api3\api\src\com\esri\ags\tasks\BaseTask.as:736]
at mx.rpc::AsyncResponder/result()
at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()
at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at DirectHTTPMessageResponder/completeHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

3 Edit widget questions - Viewer3.3

$
0
0
Hi,

I got a couple of questions on the edit widget functionality i hope someone can help with.

1/ I have a date field as part of my feature class which I create via arc catalog (no date time data type available). Time is enabled on the service in the mxd I have used to publish it as a feature layer. My problem is when I create a new feature to add the database, how do i enter the time in the attribute screen? I only get a date picker with no time capability. It's really important my users can enter time as well as date as their day runs from 4am to 4am rather than midnight to midnight. This makes picking features that are in use on a given date a real pain unless I have a time attribute too! I can add time to this directly in SQL but if editing the class at run time I am struggling to work out how to do it via the attribute screen.

2/ Is there any way to get default values entered for some of the attributes when I am saving a feature to the database?

3/ Is there an easy way to create a graphic that has been created at runtime via an automated process after users enter some parameters into a feature I can save into the database? I am currently working round this by plotting the graphic and then digitising the feature in the edit widget by using snapping to make sure I have an accurate copy of the graphic polygon. But this is quite clunky!

Would really appreciate some pointers if anyone has any ideas.

thanks

Google Analytics Widget

$
0
0
I wonder if anyone knows an updated version (3.3 or 3.4) of Google Analytics Widget.
Thank you.

Labeling and Layers turned off by default

$
0
0
I am ArcGIS Server 10.1 and ArcGIS viewer for flex 3.4
What is the best way to accomplish labeling with a map service? In the web browser the labels do not appear, but in the REST service the labels do appear.
How do I have layers turned off by default, like in a MXD? I want to make layers available to users, but not have ALL of them on by default when a user accesses the map service in the browser.

Thank you
Jeff Godfrey
Chelan County IT

Is there a widget with Profile Graph Tool?

$
0
0
Hi!
I am looking for a widget that would give an option of making a profile graph. Is there any available. I have a application with different raster layers and I would like that users draw a line and get a profile graph.
Thank you for any advice!
Rok

Check if a user is authorized to a specific secured map service

$
0
0
I'm developing a widget that will make different queries to a specific secured map service. We have set up our ArcGIS server 10.1 to use Integrated Windows Authentication. I don't want the users that are unauthorized to see this service to think they can use the widget but then receive an error message (that they probably don't understand). So I want the widget to check if the user are authorized to see the map service and if not just display a message in the widget explaining that this widget only works for users that are authorized.

What I've come up with so far is to make a simple query to the map service, and if the query doesn't work and the faultString that is returned is equal to "Unable to get token service url from (http://servername/arcgis/rest/info) Version 10.01+ required." Then the user is not authorized otherwise the user is authorized. (Because that's the faultString that is returned when an unauthorized user try to query the service, doesn't even get a faultCode or something like that).

This actually works but I'm thinking there should be a better way to do this. For example, I guess this faultString I'm using could be caused by something else.
Any thoughts?
Hopefully I've missed something useful in the API...

WMS Legend

$
0
0
I'm attempting to incorporate services from http://nowcoast.noaa.gov. I've been able to work through my issues getting them to display. My question now is that I am able to view the graphics/polygons with no issue, but there's really no explanation as to what each means without having to do some research. is there a way to incorporate a legend that populates on the screen when the layers are activated? I've seen a few previous posts referencing use of the STATIC IMAGE widget, but in my experience, that image is always on the screen and not capable of being deactivaed.

Does anyone have any possible solutions for this? This seems like it should be relatively simple to fix, but I cannot find a solution.


Thanks

Problem formatting Output from Search Widget

$
0
0
I am just starting in Flex Viewer and am having trouble getting my Search Widget result features to be formatted the way I need them to be. Usually I just copy and edit code from elsewhere but have been unable to find any that changes the output of the Search Widget.
Seems no matter what I do, I still get the default red output color and alpha.
My code looks like this (top lines not shown):

<field name="DeedOut" alias="DeedOut"/>
<field name="LandType" alias="LandType"/>
<field name="NotesAll" alias="NotesAll"/>
</fields>
<orderbyfields>DateIn ASC</orderbyfields>
</layer>
</layers>
<symbols>
<simplefillsymbol>
color="0x99CCFF"
alpha="0.2"
</simplefillsymbol>
</symbols>

</configuration>

Can anyone help?
-Brian Hall

How do I customize the Hello World Widget to have a clickable URL

$
0
0
I need a widget that opens and has a URL which user can click to and it opens into a new browser/tab...

Thanks in advance!

Print Widget & custom layouts

$
0
0
Wondering if anyone has had problems with custom layout printing performance from the Flex Viewer. I have created a custom layout to use in the print widget. When I use it to generate a print page, it takes between 1 minute and 1.5 minutes to create the pdf. It did not do this at the beginning when I began creating the layout, it seemed that the more complicated I made the print layout in ArcMap, the worse the performance became when testing it.

Anyone have a solution to this problem?

Thanks!

Darryl

Costum Editor with toolbar

$
0
0
Hi ;)

I want to work with the ESRI Sample site : https://developers.arcgis.com/en/fle...th-toolbar.htm

I want to use this sample in a widget,My need is to create a widget that displays the editing tools in a single well-defined layer.

but the big problem I have is that the éditable layer is explicitly defined in the code:

<esri:FeatureLayer id="fireAreas" mode="snapshot" outFields="*" url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/2">

Please if you have an idea how to retrieve the FeatureLayer dynamically from the map or service.

Thanks a lot.

Publishing standalone tables

$
0
0
What is the best way to share standalone tables? I have tried a GP service and have been unsuccessful. Any thoughts.
Thanks

Flex 3.4 - Edit Widget - Update Attributes doesn't seem to work

$
0
0
Hello Users,

I have just upgraded to Flex 3.4 to enjoy the many new features. But I came across the problem of "Update Attributes", wich is part of the Edit Widget, not working. The other edit tool seem to work fine. But all I want to do is to let the user of my viewer update attribute information of existing features without changing the geometry. The application doesn't seem to let me select the existing feature and it also doesn't bring up the attribute window that lets the user view and change attribute information.

It seemed to work perfectly fine in Flex 3.0. Am I doing something wrong or is this a bug? If so - is there a work-around to make attribute editing work in 3.4?

Thanks and cheers,

Jana
Viewing all 2097 articles
Browse latest View live