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

Re: LayerList Widget null object error

$
0
0
Have you tracked it down to being a problem with the Secure services? Did everything work fine with the Secure services removed from the config file? If it did, maybe try leaving the Secured services turned on, but remove all of the pop-ups for the Secure services and see if you get the same error.

I'm not sure if my problem from a few months ago is the same as what you are experiencing, but it's worth a try. I was experiencing issues with the createChildren due to some kind of popup config related bug, and this is how I fixed it back then:


This is how I fixed this in the createChildren function in TocMapLayerItem.as found in Robert's TOC Widget v 3.3.0 (5/6/13) code here: /widgets/TOC/toc/tocClasses/TocMapLayerItem.as around line 912:

Code:

private function createChildren():void
            {
                children = null;
                var layerInfos:Array; // of LayerInfo
                var visibleLayers:Array;
                        var li:LayerInfo;
                if (layer is ArcGISTiledMapServiceLayer){
                    layerInfos = ArcGISTiledMapServiceLayer(layer).layerInfos;
               
                }else if (layer is ArcGISDynamicMapServiceLayer){
                                var arcGISDynamicMapServiceLayer:ArcGISDynamicMapServiceLayer = ArcGISDynamicMapServiceLayer(layer);
                               
                                if (arcGISDynamicMapServiceLayer.visibleLayers == null) { //Added if check for bugfix
                                        trace("found null");
                                }
                                else {
                                        arcGISDynamicMapServiceLayer.visibleLayers.addEventListener(CollectionEvent.COLLECTION_CHANGE, visibleLayersChangeHandler);
                                }
                               
                                _visibleLayersChangeWatcher = ChangeWatcher.watch(arcGISDynamicMapServiceLayer, "visibleLayers", visibleLayersChange);
                               
                                _dynamicMapServiceLayerInfos = arcGISDynamicMapServiceLayer.dynamicLayerInfos ? arcGISDynamicMapServiceLayer.dynamicLayerInfos : arcGISDynamicMapServiceLayer.layerInfos; //Added per commit on GH
                                   

                               
                                if (_isVisibleLayersSet){
....all code is the same for the rest of the createChildren function

[/QUOTE]


As shown in this post in Robert's retired TOC thread:
http://forums.arcgis.com/threads/184...l=1#post312248


If this doesn't fix it, can you post any further information on your error messages either in Flash Builder or the Flash Player Debug information popup? I notice that sometimes my Debug Flash Player Error Message is actually better at helping me track down the problem than the error message I get in Debug mode inside Flash Builder, although I have no idea why that happens.

Edit widget text box size; singleToMultilineThreshold value being reset to default

$
0
0
I am having an issue with the size of the text boxes in my editing widget that I had previously found the answer to with the singleToMultilineThreshold property, but now the issue is recurring after I have added more than one editable feature service.

When I first pop open the Edit Widget, my text boxes are all only one line as I want them. Then, if I switch the feature I am editing or close and reopen the Edit widget, the boxes revert back to their annoying default size. I set the singleToMultilineThreshold to 255 in the basewidget_creationCompleteHandler of the EditWidget.mxml. I also tried in the .xml setting the property for each sublayer individually.

Does anybody know where this property is getting reset to the default and where I need to override it so it is always 255? Thanks

Identify Widget configuration issue

$
0
0
I am attempting to configure your widget using the GUI and running to an issue early on. When I enter the service URL, include the layer id, enter the layer name and select browse it just keeps browsing and does not find the service. The service URL is copied and pasted from Server. The versions of Flex and widget are the same.

All of the data layers are located on the web server and no proxy server appears to be necessary.

Thanks
Newbie

Displaying AutoCAD DWG file In flex viewer

$
0
0
Hi,

Can we browse and display AutoCAD DWG file upon the BaseMap In flex viewer.

Any help will be appreciated .

Thanks,
Shabbir

Enhanced Search Dropdown list doesn't populate

$
0
0
OK, I have looked at this and looked at this... can you tell me any reason that this dropdown list (eSearch 3.5) won't populate?..no errors, it just doesn't pull in any values. it is a joined layer. Here is the rest end point field description:

Layer: Building (ID: 0)
FACLIB.FAC$OWN.structure_existing_area.Location ( type: esriFieldTypeString , alias: Location , length: 50 )

Here is the expression:
<expression alias="Location" textsearchlabel="Search by Location">
<values>
<value prompt="Choose from dropdown list:" uniquevalsfromfield="FACLIB.FAC$OWN.structure_existing_area.Location" isvaluerequired="false" >upper(FACLIB.FAC$OWN.structure_existing_area.Location) LIKE upper('%[value]%')</value>
</values>
</expression>

If I use a userlist, the list and search task work fine. Is the dropdown list creation unable to process this "join layer" field name or something? or could it be a limitation in the number of features from which it is able to process unique values?

Locate Widget Activate Layer Popup

$
0
0
Alright...
My webmap has a single layer, City Council Districts. That layer has a popup that displays 3 pieces of data from the layer source (Council District Number, Councilor Name, and an URL to link to the Council website for that Council District). I would like the Locate Widget to activate that popup instead of the usual returned window.

Desired workflow is as follows:
  1. User opens map
  2. Locate Widget pops up
  3. User enters their address
  4. The Locate widget locates their address and drops the LOCATE red dot on top of address
  5. AND activate the pop up from the underlying layer

I should add that I have Flash/Flex experience from about 6 years ago, I've spent the interim studying and working in GIS so my ActionScript / Flex dev skills are 'rusty.' Any help would be appreciated...

The old flex 3.3, is still show on the Web even if it is delete and new is uploaded

$
0
0
Updated for Arcgis viewer for Flex 3.6. The compiled code
The Updated flex viewer still shows the old flex even if it is delete, and a new one is built.

We use flex viewer 3.3 on our Windows 2008 r2, and have recently installed flex viewer 3.6 the compiled code on my pc. And built a new flex.
I've built it as usual, on my pc.
deleted the old in the wwwroot directory (flex viewers) on the server
then copied the new flex 3.6 over in root folder with the same name as the old one.
When we access flex Viewer, at www. From the client, we will have still the old flex, although the old are deleted.
Has deleted the cache on the client, and run Ccleaner and purged browser, which does not have any effect?
Should a cache in IIS 7.5 to be emptied,/restarted before the changes take effect and the new flex viewer is displayed.
We use ArcGis server 10.2
iis 7.5 on a Windows server 2008 r2

Edit Widget vs Attribute Table Widget & domains

$
0
0
I'm offering my users two ways to edit a single feature service with the edit widget or the attribute table widget. I have the field configuration setup the same for both. The Edit widget displays the description for both the subtype and a couple of domain'd columns with a drop down box for editing, but the Attribute table displays the description for the subtype only - for the other domain'd columns it displays the code number. So it displays 0 instead of NO and does not offer a drop down like the Edit widget does.

Does anyone know of an easy way to make the Attribute table behave like the Edit widget in this regard?

thank you,
-Adam

New User / Old Environment

$
0
0
Attachment 30476

I came into a new position and inherited a previously setup ArcGIS / Flex environment. I'm trying to get up to speed on Flex with ArcGIS and I wanted to generate a new environment. I walked through the ArcGIS API for Flex steps and create GISDev. TulsaDefaultMap was previously installed and setup.

As you can see... TulsaDefaultMap "HAS" the correct folders (widgets, popups, etc) but my new one doesn't.

What (am I doing/have I done) wrong here?
Any ideas?
Attached Thumbnails
Click image for larger version

Name:	2014-01-13_155730.png‎
Views:	N/A
Size:	7.4 KB
ID:	30475   Click image for larger version

Name:	2014-01-13_160040.png‎
Views:	N/A
Size:	10.2 KB
ID:	30476  

Edit Widget - Alias colors

$
0
0
I am hoping there may be a way to assign different colors to some of the field names / alias in the edit widget.
The reason I would like to do this is to visually "group" certain attributes such as all fields related to an address within the edit attributes dialog box.

I have tried vairous formatting ways to no avail.

<?xml version="1.0" ?>
<configuration>
<addfeatures>true</addfeatures>
<deletefeatures>true</deletefeatures>
<updategeometry>true</updategeometry>
<updateattributes>true</updateattributes>
<toolbarvisible>false</toolbarvisible>
<toolbarcutvisible>false</toolbarcutvisible>
<toolbarmergevisible>false</toolbarmergevisible>
<toolbarreshapevisible>false</toolbarreshapevisible>
<layersettings>
<layer name="Services">
<fields>
<field name="REVIEW_ACTION" required="false" useutc="false" <![CDATA[<font color="#FFFF00"> alias="Request Status" </font> ]]>/>
<field name="APPLICANT_NAME" required="false" useutc="false" alias="Applicant Name"/>
<field name="CONTACT_NUMBER" required="false" useutc="false" alias="Contact Number"/>
<field name="CONTACT_NUMBER_2" required="false" useutc="false" alias="Contact Number 2"/>
<field name="EMAIL_ADDRESS" required="false" useutc="false" alias="Email Address"/>
<field name="REPAIR_ADDRESS_L1" required="false" useutc="false" alias="Address"/>
<field name="SUBURB" required="false" useutc="false" alias="Suburb"/>
<field name="POSTCODE" required="false" useutc="false" color="#FFFF00" alias="Postcode"/>
<field name="COMPLETED_DATE" alias="Date Completed" >
<format precision="-1" usethousandsseparator="false" useutc="true" dateformat="D MMM YYYY"/>.....

Any help would be appreciated

Identify WMS Layer in ArcGIS Flex Viewer

$
0
0
Hello All,

I make a viewer with the Application Builder 3.6 and add a WMS Layer with the Operational Layeres tools, in the config the layer show like this:
<layer type="wms" label="Poligonos" url="http://www.snitcr.org/cgi-bin/wms?map=poligonos.map" skipgetcapabilities="true" version="1.3.0" wkid="900913" visible="true" visiblelayers="ZONAS_HOMOGENEAS" maximageheight="2050" maximagewidth="2050"/>

The viewer and the layer don´t have problems and error, my question is who I can enable the Identify functionality in a WMS layer. When I load this layer in ArcGIS for Desktop I can identify features and work very well. Does ArcGIS Viewer for Flex support identify WMS layers?

Thank you.

Print Widget overlabeling Dynamic Services

$
0
0
We are using the 3.4 print service widget (using our custom templates), and it appears as though it is "overlabeling" the dynamic services. My programmer told me it appears as though it is rendering the map in four quadrants, and labeling each quadrant separately, which is causing duplicate labels.

Has anyone else ran into this and is there a quick fix? I've attached a picture as an example (the precincts and commissioner names in yellow should only be labeling once...like they are in the actual web app) Thanks!
Attached Thumbnails
Click image for larger version

Name:	overlabeling.PNG‎
Views:	N/A
Size:	860.5 KB
ID:	30482  

Identify Widget 3.6.1 can not add layers,

$
0
0
Identify Widget 3.6.1 can not add layers,
When I try to add layers and inclueded all fields and hit add search button that was turned blue when the fields were added, which worked in version 3.5 if I press ok, it has not been saved indentify layer. and when checking the layer again in the Identify Widget is empty.
If I add a exclude layer, I can save, but the next thing I try to edit the widget, I get the error "Error # 1010"

Is someone who can help
I use the compiled version 3.6.
Identify Widget version 3.6.1 for Flex Viewer 3.6

Attachment 30487
Attached Thumbnails
Click image for larger version

Name:	Error_identify widget 3.6.1 .GIF‎
Views:	N/A
Size:	6.2 KB
ID:	30487  

minimized preloading of multiple widgets

$
0
0
I have multiple Legend widget and I would like to have two of them open on startup as minimized. I have set two of them with: 'preload="minimized"' (see config.xml section below), but only the one that has preload="minimized" first in the config file is shown. Can we not open multiples? In my XML below, "Pipe Facilities" will open minimzed, but LWC Regions will not. If I remove the preload tag from 'Pipe Facilities', then 'LWC Regions' will open. I can see this in the WidgetManager.mxml code:
Code:

if (preload == "open" || preload == "minimized")
                                        {
                                                preloadArray.push(configData.widgets[i]);
                                        }

and that would seem to indicate to me that multiples could be opened on preload....
/////////////////

Code:

        <widgetcontainer  layout="vertical" top="0"> <!--horizontal(default)|float|vertical|fix-->
                <!-- ADDITIONAL MAP LAYERS -->
            <widget label=        "Pipeline Details"
                                config=        "widgets/Legend/Pipeline.xml"
                                icon=        "components/LWCHeader/assets/images/pipe.png"
                                url=        "widgets/Legend/LegendWidget.swf"
                                theme=        "theme1"/>
            <widget label=        "Pipe Facilities"
                                preload="minimized"
                                config=        "widgets/Legend/PipeFacility.xml"
                                icon=        "components/LWCHeader/assets/images/pipe_line.png"
                                url=        "widgets/Legend/LegendWidget.swf"
                                theme=        "theme2"/>
            <widget label=        "MSD Facilities"
                                config=        "widgets/Legend/MSDFacilities.xml"
                                icon=        "components/LWCHeader/assets/images/manhole.png"
                                url=        "widgets/Legend/LegendWidget.swf"
                                theme=        "theme3"/>
            <widget label=        "Contours"
                                config=        "widgets/Legend/Contours.xml"
                                icon=        "components/LWCHeader/assets/images/map_app1.png"
                                url=        "widgets/Legend/LegendWidget.swf"
                                theme=        "theme4"/>               
            <widget label=        "LWC Regions"
                    preload="minimized"
                                config=        "widgets/Legend/LWCRegions.xml"
                                icon=        "components/LWCHeader/assets/images/maps.png"
                                url=        "widgets/Legend/LegendWidget.swf"
                                theme=        "theme5"/>
              <widget label=        "Municipal Boundaries and Zones"
                                config=        "widgets/Legend/MunicipalBounds.xml"
                                icon=        "components/LWCHeader/assets/images/zonemap.png"
                                url=        "widgets/Legend/LegendWidget.swf"
                                theme=        "theme6"/>

Question on output directory for print

$
0
0
Hello All,
I able to view my print in pdf format when you use print widget internally. Do you have any ideas or best way for public to view your print that store under arcgisserver/directories/arcigsoutput?
So public can see your url externally.
e.g.
http://internalservername/agsGIS101/...b11c0cc730.PDF

Any input will help. Thank you.

print widget very slow

$
0
0
I'm finding that the OOTB print widget takes too long to generate the print. A letter-sized takes around 10 seconds and a tabloid-sized takes 20-25 seconds. When I create my own template, which has more map area on the print, it takes about 35 seconds for a tabloid-size. 10 seconds seems acceptable but anything more and it seems like there's something wrong from the end-user standpoint.

I've been unable to find what might cause it to be so slow. Is everyone seeing their prints take this long? If not, what factors might be causing such a thing on my end?

thanks

Geoprocessing Tool Tif output to Map Service does not work

$
0
0
I have a simple geoprcessing tool running the Minus tool with a .tif output. In the output parameters of the service if I leave the View result as a Map Service unchecked it runs fine and gives me back a link to the result .tif as show here.
Attachment 30526

But I want the output to the map. But when I check the View result as a Map Service box I get a error in Flex and in the server logs as show here. The server is yelling about the inputs but it works fine not as a map service.
Attachment 30527
Attachment 30528

I have tried every kind of option check and uncheck I can think of. I think my settings are correct on the Desktop side and the model side since it does work as a link. But still i tried all types of parameter and output vars and settings with no luck. It does not have to be a tif out but even when i give a grid as output it still gives me a tif anyways. I have also tried the View as Output checkbox in the Flex Geoprocessing widget on and off.

These layers are part of a raster catalog connected to the time slider if that makes any diff (but again the link works fine).

Any input would be great, i am out of ideas. No the map is not public, I can not do that.

I am using 10.2 Desktop and Server and Flex 3.6. Using the app builder for this simple test.

Thanks a lot
Attached Thumbnails
Click image for larger version

Name:	Works as Link.PNG‎
Views:	N/A
Size:	64.1 KB
ID:	30526   Click image for larger version

Name:	Flex Error.PNG‎
Views:	N/A
Size:	47.9 KB
ID:	30527   Click image for larger version

Name:	Log Error.PNG‎
Views:	N/A
Size:	12.3 KB
ID:	30528  

Thematic Widget

$
0
0
I'm configuring the Thematic Widget to work with a parcel polygon layer. I'm receiving the error message that says: "Service does not support dynamic layers, please enable dynamic layers on the service.

The strange thing is, I've enable dynamic layers and verified by looking at the map service properties.

The thematic widget .xml config looks correct.

Any ideas?

Thanks,
Greg

eLayerList and width tag

$
0
0
I decided to move a couple of my applications to the latest 3.6 viewer but noticed that the width tag in the eLayerList is not honored in the main config file. If I adjust my width tag and then load the application it will initially stretch to the desired width, but than auto size itself back to the default width. Anyone else seeing that behavior? I jump from 3.4 to 3.6 so I am not sure if the same happens with 3.5, but all was working fine at 3.4.

Thanks,

Matt

Swapping location of the logo

$
0
0
I'm working on setting up a Flex project for our county. I have a logo that I would like to use for the project, but I think it would appear better if it were moved to the right of the title rather than being at the default location to the left of the title Is it possible to easily swap the location of the logo so that it's to the right of the map title?

If anyone has an ideas it would be greatly appreciated.
Viewing all 2097 articles
Browse latest View live