November 14, 2012, 9:03 am
I'm trying to use the IdentityManager class to get the role of the logged in user. At the very least the user name.
code snippet:
private var identifyManager:IdentityManager = IdentityManager.instance;
var name:String = identifyManager.credentials[0].userId;
The API keeps telling me IdentityManager.credentials doesn't exist. Is it possible to get any information out of the IdentityManager? Has anyone had any success with this?
Thanks in advance.
↧
November 14, 2012, 12:33 pm
Hello all,
I am using the Search Widget to look up information about my parcels but its currently not working. When I do a search it identifies the parcel and the pop up with the zoom button appears but but neither window shows attributes for the parcel.
The only thing I have changed since this broke was updating my buildings layer in the mxd of the service that contains parcels. When I updated the buildings I accidentally changed the order of the layers in the table of contents. So I thought this was my problem and fixed the order to how it originally was. That fixed a few small things but it didn't fix the search functionality.
does anyone have any suggestions?
thanks!
Chris
↧
↧
November 14, 2012, 4:54 pm
Since I don't have 10 AGS I cannot publish services a feature services, so it is my understanding that the default OTS chart widget requires a feature service.
Anyone out there have a simple widget using the 3.0 api/flex viewer that works with 9.3 map services?
I would like to build a bar chart widget to display monthly energy usage data by building.
Thanks.
-Will
↧
November 15, 2012, 6:55 am
I am trying to use the eDraw widget (v3.0.2). When I enable show measurements only the point measurements are displaying. Line & polygon measurments are not 'drawn'. The only change I have made is changing the spatialref in the xml to reflect my base map/layers (26986).
I feel like the answer is painfully obvious, and that I will be apologizing for being so stupid, but I have tried a number of things to get this working with no luck.
Any thoughts?
↧
November 15, 2012, 9:01 am
Sometimes I got an error message on OverviewWidget. See the attached file. I defined layer on OverviewWidget.xml and didn't use any basemap. Does anyone know why the message will show up?
Thanks.
↧
↧
November 15, 2012, 12:08 pm
Greeting everyone,
I am currently using the Data Extract Widget and have exposed its corresponding geoprocessing tool. I works as intended when I select a reasonably small area with the selection tools the widget makes available. Executing the tool executes the process and outputs the zip file. Unfortunately, whenever I select a larger region when I download the file to my local computer...it doesn't store it. I have preset the configuration of the geoprocessing tool to output a shape file rather than a file geodatabase. I don't know what is the issue.
Server
I presume it's because the dataset is too big or something of the sort. I have taken a look at the jobs folder in the arcgis directory and it seems that the resulting zip files is 0Kb.
I don't know why is it that it works for a small selection and not a larger one...Does this warrant the use of an ArcSDE? I just want to make sure I have tweaked all things possible before proceeding installing ArcSDE.
Thanks in advance!
- Jorge
↧
November 15, 2012, 8:56 pm
Hi! I'm new to SFV development and am trying to add a save session feature. So far I have been able to save the map extent, layer visibility and visibility of open widgets. I'm trying to add widget positioning and size to this, but am having a hard time figuring out how to access the x and y position. Any help would be greatly appreciated. Thanks!
↧
November 15, 2012, 8:57 pm
Is it possible to get the state of the Overview Map? I need to know whether the widget is open or closed but it is returning a state of null.
Also, is there a way to programmatically open the Overview Map Widget like other widgets?
I've tried this with no luck:
AppEvent.dispatch(AppEvent.WIDGET_RUN, overviewMapWidgetId);
Thanks!
↧
November 16, 2012, 6:27 am
Robert,
Thanks for keeping updating the Identify Widget. I like the new feature which enables users to delete the identified records. While I am using the latest version (3.0.1f) of Identify widget, I found that an error message of "Invalid layer ID specified" was displayed and then disappeared quickly. But, I can still got the right results. I checked with the source code and found that the code segment of processing Dynamic Map Service Layer in "identifyFeatures" function should check if all the Layer IDs array is empty, i.e., all the feature classes in a map service are invisible. If that array is empty, the aboved mentioned error will occur. One of our Flex Viewer applications has several map services with all the feature classes being invisible by default. It is some kind of difficult to notice that quickly disappearing error message.
↧
↧
November 16, 2012, 7:35 am
We recently updated to 10.1 and our server admin decided to use an alias for the machine name... Basically, instead of using machinename:6080/arcgis/rest/services, he has changed it to machinename/xygis/rest/services.
But when I use that connection to add my services to the web app, the identify widget does not identify any of the layers. Even if I tell it to identify all layers. So I am quite sure it is not an issue with the name of the layer.
Any ideas whats wrong and how to fix it?
Thanks
Chris
↧
November 16, 2012, 10:06 am
I'm having an issue with data being passed with one Widget to another. The function sharedDataUpdated never seems to fire. After reading numerous posts on widget communications I have currently set up:
In widget A
Code:
var paramArray:Array = new Array();
paramArray.push(centerPt.x);
paramArray.push(centerPt.y);
paramArray.push(rad);
paramArray.push(layerList);
var paramArrayCollection:ArrayCollection = new ArrayCollection(paramArray);
addSharedData("searchParams", paramArrayCollection);
var id:Number = ViewerContainer.getInstance().widgetManager.getWidgetId("Search Data Results");
AppEvent.dispatch(AppEvent.WIDGET_RUN, id);
In Widget B
Code:
private function init():void
{
if (configXML) // checking for valid content in the configuration file
{
AppEvent.addListener(AppEvent.DATA_PUBLISH, sharedDataUpdated);
}
}
public function sharedDataUpdated(event:AppEvent):void
{
var data:Object = event.data;
if(data.key == "searchParams")
{
Alert.show("DATA", "DATA PASSED", mx.controls.Alert.OK);
}else{
Alert.show("NO KEY", data.key, mx.controls.Alert.OK);
}
}
Any thoughts on what could be preventing sharedDataUpdated() from being fired would be appreciated. Thanks
Ron
↧
November 16, 2012, 11:42 am
Hello,
My question is how can I expand the bottom of the graphical search box. The part that says Buffer Graphic is cut in half.
Thank you,
Tina
↧
November 16, 2012, 3:41 pm
I'm trying to move and resize a widget based on saved state information but I can't seem to do both at the same time.
Here is my code:
Code:
this.width = 500;
this.height = 500;
this.wTemplate.width = 500;
this.wTemplate.height = 500;
this.setXYPosition(100, 100);
This code will set the height and width of the widget but it will not move the widget to the correct XYPosition. If I comment out the width and height lines, the widget will move to the correct position. What am I doing wrong?
Thanks!
↧
↧
November 16, 2012, 4:56 pm
I am trying to reset the colormap of my mosaic dataset based on the minimum and maximum pixel values for the current extent. I know that I can apply a colormap using one of the chain functions. Is there a way to do this? To create a new colormap (on the fly) and apply the created colormap to the mosaic dataset?
↧
November 17, 2012, 11:28 am
hi
I am writing a widget using flashbuilder 4.6 , I want to return a Boolean value as result of this widget operation which will be used by other widjet in the application. how to return a value from a customized widget. can we create a property of the widget to return the value.
regards
nadeem
↧
November 17, 2012, 4:24 pm
What is the best approach for printing data contained inside a widget? I am looking at the print widget, but I am under the impression it only prints maps and map data.
Thanks,
Ron
↧
November 17, 2012, 6:26 pm
I have the following code:
Code:
for each (var fieldInfo:PopUpFieldInfo in popUpInfo.popUpFieldInfos)
{
if (fieldInfo.visible && fieldInfo.fieldName == "ID")
{
var imgx:String = "http://localhost/fv30/photos/" + formattedAttributes[fieldInfo.fieldName] + ".JPG";
IOErrorEventHandler(imgx);
}
if (validJpgInfos == "false"){
validMediaInfos = null;
}
Do the rest of function
from here down....
}
private function IOErrorEventHandler(imgx:String):void {
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.BINARY;
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
var request:URLRequest = new URLRequest(imgx);
loader.load(request);
}
private function ioErrorHandler(event:IOErrorEvent):void {
validJpgInfos = "false";
}
private function httpStatusHandler(event:HTTPStatusEvent):void {
if (event.status == 404){
validJpgInfos = "false";}
}
The first if statement creates a url string and passes it to the IOErrorEventHandler() function.
This function attempts to load the url and I have listeners on it for error and HTTP status. If I get an http status 404, I want to assign validJpgInfos="false". (could use the IOErrorHandler instead, but would prefer to base it on status code).
Anyway, the problem I am having, is the when the first if statement evaluates to true, it runs the handler, then returns back to the next if statement above and finishes the rest of the function, then it executes the ioErrorHandler and httpStatusHandler functions.
How do I get it to immediately run the handler function(s) "before" returning back to the original calling function? Basically, the second if statement is dependent upon the result of the httpStatus, so I need a way to pass that back to it.
Sure it's got to be simple, but sure isn't coming to me today..
thanks for any ideas,
R_
↧
↧
November 16, 2012, 10:00 am
I wish to put Facebook, Twitter and Pinterest 'share' buttons on a flex based web mapping application that I am building. Do I need a special widget for that, or can I use code from places like sharethis.com, or addthis.com?
I do not want to do anything other than allow the user to click the button for the social media platform they want, and share/pin/tweet the link to the website on their wall.
↧
November 18, 2012, 10:17 am
Is it possible to make a model in model builder in arc map 10.1 and the publish that model as a service for Arc GIS Server 10.1,
and can i use published model in flex viewer 3.0 as widget or some other service???
Please help me if any respectable member knows about it.
↧
November 19, 2012, 7:49 am
I'm trying to create a Basemap Group for our Aerial Imagery, but I'm having some difficulties with all the coding in the ConfigManager.as file. I'm trying to create something similar to the <operationallayer> tag, where all the aerials would be listed in a drop-down list (by year).
I've tried to find some samples or examples online, but I didn't find anything. I'm sure I'm not the only one who has tried to accomplish this. Can anyone point me to the right direction?
↧