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

3.3 Attribute Table feedback

$
0
0
Thanks for supporting map services without feature services in 3.3, I can turn my feature services back off now.
I have an application with many layers and tree-fulls of sub-layers and I've noticed the AttributeTable queries every single sub-layer at startup, regardless of visibility. It only takes 100ms or so, but when you have 500-odd sub-layers... Could it be made smarter so that these queries occur on demand when a layer is enabled?


It may be related, but my Attribute Table is working inconsistently. I can't seem to get it to work right in 3.3. I keep getting one of three scenarios.

1. The Attribute Table works fine and displays all layers, including my excluded layers.
2. The Attribute Table is blank. Opening the Search widget makes it load and then it works correctly.
3. The Attribute Table is always blank.

I'm trying to reproduce each behavior but so far it seems random.


And finally it's impossible to resize the last column if there's a horizontal scrollbar. Columns are sized using the first row's data, so if the last column of the first row happens to be null or something small the whole column is lost. An auto-size option could fix that.


Hope this feedback is helpful.

Text not clear when switching from Open Street Maps to Imagery basemap

$
0
0
When I switch to the Imagery basemap my text is hard to read. I made the imagery layer more transparent but then it starts getting difficult to see. Does anyone know how to make you labels more visible when in the imagery layer?

Geoprocessing Using Table Data Files

$
0
0
I am attempting to use a geoprocessing widget to upload or "append" tables to an existing SDE table, which works fine in desktop. I can not figure out how to use the upload feature correctly to get the process to run. I have uploads checked on the gpservice in Server Manager. When I use the input parameter type="GPDataFile" it fails with Error #1009, if I use type="datafile", it seems to upload but fails to run the process. Does anyone have any suggestions?

Code:

Execution Type: esriExecutionTypeAsynchronous

Parameters:

    Parameter: Input_Datasets
        Data Type: GPMultiValue:GPDataFile
        Display Name Input Datasets
        Direction: esriGPParameterDirectionInput
        Default Value:
        Parameter Type: esriGPParameterTypeRequired
        Category:

Code:

    <inputparams>
        <param name="Input_Datasets"
              label="Upload CSV Borings"
              required="true"
              type="GPDataFile"
              visible="true">
        </param>
    </inputparams>

One arraycollection for 2 widgets

$
0
0
I have 2 widgets that need to share an arraycollection. I want to create the collection once in which ever widget initializes first, and then store it for them both to use from that point forward. I've looked at DataManager and I can see how I would share data in an event driven way. What I don't see is a way to store data in DataManager when either widget initializes and 1) check for the data's existence when the second widget loads so I don't have to create it again, and 2) how I would retrieve the stored data in the second widget if I could check for its existence in DataManager.

For reference, the driving force here is that I have comboboxes in each widget that need to use the same data.

Can anyone explain how I would share a single collection of data between widgets that only gets initialized once?

Any help would be greatly appreciated.

Thanks,
Aaron

Apache Web Server version for reverse proxy

$
0
0
Is anyone using the more up to date version (2.4.4) of Apache Web Server as a reverse proxy (with ArcGIS Server 10.0 sp 4)?

We are running this configuration with no issues:
ArcGIS Server 10.0, SP4
Apache Web Server version 2.2

Thanks!

Word wrap in Header Controller, About Pop-up

$
0
0
Hello,

I am using ArcGIS Viewer for Flex 3.1 and my applications are being created using the Application Builder. I have added my own content to the About Pop-up within the the Header Controller, Links section. My content appears, however it does not word wrap. I copied my HTML from my previous version of the site I am working on which was Viewer 2.5, the content properly word wrapped there. My content is shown below, do I need to change something in the HTML to get it to properly word wrap? I have tried it without the paragraph tag just to see, but the same thing happens.

Code:

<p align='center'><img src='assets/images/about_logo.png' width='275' height='75' /></p>
                <br>
        <font size="16"><b>Welcome to the Gunnison's Prairie Dog Web Map</b></font>
        <br>
                <p>With support from the New Mexico Department of Game and Fish (NMDGF), Natural Heritage New Mexico (NHNM), compiled Gunnison's prairie dog (Cynomys gunnisoni) town field observations and photo-interpreted towns. The Gunnison's Prairie Dog Web Map was created by NHNM to allow access to this data. Data and support were provided by a number of individuals, agencies, non-profit organizations, and for-profit companies.</p>
               
        <br>For more information visit the links below:
        <textformat indent="25"><p>
                <br><a href="http://gis-web.heritage.unm.edu/gpd/GunnisonWebUserGuide_v5.pdf" target='_blank'><font color='#FFFF00'>Web Map User Guide</font></a>
        <br><a href="http://gis-web.heritage.unm.edu/gpd/metadata/gpdValidation.xml" target='_blank'><font color='#FFFF00'>Field Validation Metadata</font></a>
                <br><a href="http://gis-web.heritage.unm.edu/gpd/metadata/gpdPolygons.xml" target='_blank'><font color='#FFFF00'>Town Extent Metadata</font></a>
                <br><a href="http://nhnm.unm.edu/" target='_blank'><font color='#FFFF00'>Natural Heritage New Mexico</font></a>
        <br><a href="http://www.wildlife.state.nm.us/" target='_blank'><font color='#FFFF00'>New Mexico Game & Fish</font></a>
                </p></textformat>
                <p>Developed using ArcGIS Viewer for Flex 2.1. GPDWeb v1.0 Released 2011-02-16. Upgraded to ArcGIS Viewer to Flex 2.4 2011-10-27.</p>

Tokens on map services in the flex viewer expire

$
0
0
I'm using ArcGIS Server 10.1 secure map services in the Flex Viewer 3.3. I created a token for the web map service that was set to expire in a year and it worked great. I stopped the map service, then restarted it. Now the token on my map service doesn't work in the flex viewer and I'm being prompted to login. I've had this happen a few other times during development of my flex map. Why is this? Shouldn't the token be good on the map service for a year regardless of how many times I stop and start the service? Is this an issue with ArcGIS Server or the flex viewer?

Getting a null object refference error at PortalBasemapAppender

$
0
0
Hi

Getting an Error #1009: Cannot access a property or method of a null object reference
on the preload of the ArcGIS viewer 3.2. The error message is

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.esri.viewer.utils::PortalBasemapAppender/createBasemapLayerObject()[D:\Projects\FlexViewer3.2\src\com\esri\viewer\utils\PortalBasemapAppender.as:113]
at com.esri.viewer.utils::PortalBasemapAppender/portalItem_getJSONDataResultHandler()[D:\Projects\FlexViewer3.2\src\com\esri\viewer\utils\PortalBasemapAppender.as:95]
at mx.rpc::AsyncResponder/result()
at com.esri.ags.portal.tasks::PortalItemTask/dispatchResult()[C:\checkout\flex_api3\api\src\com\esri\ags\portal\tasks\PortalItemTask.as:324]
at com.esri.ags.portal.tasks::PortalItemTask/handleDecodedObject()[C:\checkout\flex_api3\api\src\com\esri\ags\portal\tasks\PortalItemTask.as:316]
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:728]
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()
=================================================================================================
I rectified it by checking
if(itemData.baseMap != null) in function createBasemapLayerObject(itemData:Object, item:PortalItem):void
and if(basemapObject != null) in function isDefaultBasemap(basemapObject:Object):Boolean
at com.esri.viewer.utils.PortalBasemapAppender.as

code snippet is
private function createBasemapLayerObject(itemData:Object, item:PortalItem):void
{
if (!itemData)
{
return;
}

if(itemData.baseMap != null)
{
var basemapObject:Object = itemData.baseMap;
var basemapLayerObjects:Array = basemapObject.baseMapLayers;
if (!(basemapObject && basemapLayerObjects))
{
return;
}

var title:String = basemapObject.title;
var iconURL:String = item.thumbnailURL;
var existingBasemapLayerObject:Object = findBasemapLayerObjectById(title);

if (existingBasemapLayerObject)
{
existingBasemapLayerObject.icon = iconURL;
return;
}
var basemapLayerObject:Object = basemapLayerObjects[0];
addBasemapLayerObject(baseMapLayerObjectToLayerXML(title,
basemapLayerObject,
iconURL));


var totalBaseMapLayers:int = basemapLayerObjects.length;
if (totalBaseMapLayers > 1)
{
basemapLayerObject = basemapLayerObjects[1];
addBasemapLayerObject(baseMapLayerObjectToLayerXML(title,
basemapLayerObject,
iconURL));
}
}
}

private function isDefaultBasemap(basemapObject:Object):Boolean
{
if(basemapObject != null)
var comparableBasemapObjects:Array = getComparableBasemapObjects(basemapObject);

return (ObjectUtil.compare(comparableBasemapObjects, comparableDefaultBasemapObjects) == 0);
}

Widget closed customization

$
0
0
In my project, I want to a couple widgets are being minimized always on the UI. It means the closed function should be changed to minimized. I tried the piece of code from Robert below:
for each (var widgetId:Number in ViewerContainer.getInstance().widgetManager.getAllLoadedWidgetIds()) {
if(widgetId != 2) {
var data:Object = {
id: widgetId,
state: WidgetStates.WIDGET_MINIMIZED
};
AppEvent.dispatch(AppEvent.WIDGET_CHANGE_STATE, data);
}
}
But it does not work. Please kindly provide your help if you can. Thanks.

google street view in flex api 3.2

$
0
0
Hi,

I try to use the google street view in the new sample viewer for flex api 3.2. But it dose not work.
Anyone knows hot to fix it? there is no erro messegs, but the bottom window dos not show up.

Thanks
Zhujing

Geoprocessing Widget Ouput Parameter

$
0
0
I am currently trying to make the geoprocessing widget output a table. I have published the geoprocessing service and when I set up the widget the way I think it is suppose to work I can hit run and it creates the table on the server ( I can see it if i remote in ). But it just throws an error in flex instead of downloading the dbf. I am not sure if I need to do something on the model side or the flex side.

XML output params
Code:

<outputparams>
        <param name="task_dbf"
              label="Output dbf file"
              required="true"
              type="datafile"
              visible="true"/>
    </outputparams>

I did notice that if I go to the service through a browser and look at the output param in rest services the type is "GPRecordSet". I don't know how to make the type "file" or even if that's what is causing the issue. I know its vague but any help where to start would be great! My goal is to download the dbf upon completion. Thanks

Editing Widget's new features are not showing there labels

$
0
0
Hello all,

I've made a application for assigning new addresses in my city using the ArcGIS Viewer for Flex - Application Builder it uses the editing widget to place the new address. The engineer I made it for mentioned that when he assigns a new address the label doesn't show up for it like the others. I went on and looked at it and saw that just a few other addresses are missing there label as well but just 3 or 4 and when I tried adding a address the label didn't show up.

Any ideas on what might be happening?

Thanks!

Chris

run stand alone jar file from flex

$
0
0
All,

I have a standalone database application that is a java *.jar file with a supporting library folder in the same directory.

This application is saved locally on most of my client computers, as well as can be executed across the net.

I would really like a link somewhere, preferably on the headercontroller, that will launch this application when clicked.

Is this possible? If so, any advice on how to make it happen?

Thanks,

R_

widgetTemplate (TypeError: Error #1009: 无法访问空对象引用的属性或方法。) -flexviewer

$
0
0
" protected override function partAdded(partName:String, instance:Object):void",that says:
TypeError: Error #1009: 无法访问空对象引用的属性或方法。
at managers::WidgetTemplate/partAdded()[G:\myProject\workspace\RuralCadastral\flex_src\managers\WidgetTemplate.as:272]
at spark.components.supportClasses::SkinnableComponent/findSkinParts()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:670]
at spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:635]
at spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:405]
at spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:368]
at spark.components::SkinnableContainer/createChildren()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:821]
at mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7349]
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7241]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3972]
at mx.core::Container/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2616]
at mx.core::Container/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2534]


how to solve the problem?

How to get the properties of the current widget?

$
0
0
How to retrieve the properties of the currently opened widget? Thanks.

Suggestion for Flashbuilder GitHub configuration for forked viewer and forked widgets

$
0
0
I am trying to decide how I want to setup my Flash Builder projects to deal with customizations to the viewer code and customizations to various widgets.

I'm familiar with Flash Builder enough that I've used it to customize versions of the viewer and build widgets in the past, but I'm new to GitHub. I've forked the 3.3 viewer and am going to make some changes to it. I want to download some widgets and make some changes to them as well as make some new widgets. It seems to me that the custom widgets and the viewer should be in their own flashbuilder projects so they can be debugged independently and changes can be managed in github independently as well since they are independent objects. I've only done this as one big project previously with my custom widgets and custom viewer as one project. I haven't found a good description yet of what a best practice would be for this.

Should I simplify it and leave it as one thing or break it up? If I break it up what do I need to do in flashbuilder to be able to debug only the source code of the widget, include a stock flexviewer with it?

Hide/ delete layer name for search enabled on Header Controller

$
0
0
Can you hide/ delete layer name on header controller search? Thank you.
Attached Thumbnails
Click image for larger version

Name:	hcsearch.png‎
Views:	N/A
Size:	15.7 KB
ID:	23996  

Attribute Table Date Format

$
0
0
Hi,

Anybody knows how i can change the Attribute Table (For Flex viewer 3.3) to format a date field to dd mmm yyyy (05 May 2013)?

Regards,
Rafael

Splash widget - Flex viewer 3.3

$
0
0
Hi!

I'm trying to update 3.1 to 3.3 and I when I run the application, the Splash page appears twice !
Have you had that problem too ?

Thanks for help !

Basemap icon location

$
0
0
I have a couple of widgets defined in the config as preload="minimized". These widgets' icons are below the BaseMap ixon that is at top="40". I want to move the Basemap icon next to the Navigation bar on the left. How can it be done? Thanks.
Viewing all 2097 articles
Browse latest View live