|
POST
|
Thanks for the documentation! I corrected my syntax and am getting the same error. Hmmm.... I'll post back if I find a solution. Thanks, Tyler
... View more
08-19-2014
07:15 AM
|
0
|
0
|
1321
|
|
POST
|
Hi Robert, I couldn't find any documentation describing the syntax necessary for the excludelayerfromlegend tag. I assumed it was: <excludelayerfromlegend>http://domain/ArcGIS/rest/services/SharedMaps/editlayer/FeatureServer/0</excludelayerfromlegend> but the problem persisted. When you tested the Edit Widget and the Print Widget, did you have to exclude your feature service from the print widget? If so how did you exclude it?" Thanks, Tyler
... View more
08-19-2014
06:13 AM
|
0
|
2
|
1321
|
|
POST
|
Greetings, I am creating a flex application that has both an edit widget and a print widget. Each of these tools work well independent of each other. However, when I integrate them into the same application, the print widget fails because of the feature layer that the edit widget is used to edit. the error I get is: Error executing print task: [RPC Fault faultString="Unable to complete operation." faultCode="400" faultDetail="Error executing tool.: Layer "Easements": Failed to create layer from service at http://myDomain/ArcGIS/rest/services/SharedMaps/editLayer/FeatureServer/0. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task)."] The feature service that causes the error does not need to be printed. How do I exclude the error inducing feature service from the print widget at runtime? Thanks, Tyler
... View more
08-18-2014
02:05 PM
|
0
|
6
|
4580
|
|
POST
|
You have to POST the URLRequest and assign the variables using URLVariables. What I really needed to do is something like this: private function addGraphicToEasementLayer(graphic:Graphic):void { var easementJSON:Object = graphic.toJSON(); var easmentString:String = "["+JSONUtil.encode(easementJSON)+"]"; trace("the Easement is " + easmentString); var request:URLRequest = new URLRequest('http://yourdomain/ArcGIS/rest/services/SharedMaps/GreenwayEasementsTest/FeatureServer/0/addFeatures'); var urlVars:URLVariables = new URLVariables(); urlVars.f = "json"; urlVars.features = easmentString; urlVars.gdbVersion = ""; urlVars.rollbackOnFailure = true; request.data = urlVars; request.method = URLRequestMethod.POST; var loader:URLLoader = new URLLoader(); loader.load(request); } Works like a charm! Hope this helps someone else. Thanks, Tyler
... View more
08-13-2014
06:20 AM
|
0
|
0
|
1161
|
|
POST
|
Greetings, I am attempting to add features from a Flex application using the REST API addFeature call. I pieced together a function from various sources But it doesn't seem to do much: private function addGraphicToEasementLayer(graphic:Graphic):void { var easementJSON:Object = graphic.toJSON(); trace("the Easement is " + easementJSON); var httpService:HTTPService = new HTTPService(); httpService.url = 'http://domain/ArcGIS/rest/services/SharedMaps/GreenwayEasementsTest/FeatureServer/1/addFeatures?f=json&features=easementJSON'; httpService.send(); } This function runs and does not produce an error. However, it also does not add my easement feature.Has anyone tried adding JSON Features to a featureService using both the Flex and REST APIs? Any tips, tricks, points or general information will be greatly appreciated. Thanks, Tyler
... View more
08-12-2014
07:27 AM
|
0
|
1
|
4123
|
|
POST
|
I need to be able to add a button and some instructional text to the popup. Basically, I want to create an 'Add' button to the popup so that I can kick off a function that will add the graphic to a feature layer. Something like the ZoomTo button would be great but I would have to be able to attach my function to the onClick event. Thanks. Tyler
... View more
08-11-2014
12:28 PM
|
0
|
2
|
1300
|
|
POST
|
Greetings Everyone, I would like to create a PopUpRenderer with a button as it's content. I'm not seeing any clear way to add a button that run's it's own function when clicked. Any forwarded insight will be greatly appreciated. Thanks, Tyler
... View more
08-11-2014
11:39 AM
|
0
|
4
|
2996
|
|
POST
|
Thanks Andreas, I'm just getting back to this project after clearing my plate of some other work. The requirements for this application demand that the schemas be slightly different. The pasteLayer will only have one additional field. Otherwise they are the same. Thanks, Tyler
... View more
05-23-2014
04:58 AM
|
0
|
0
|
621
|
|
POST
|
Greetings Everyone, I plan to extend some editing capabilities to a application that I created. The user will be adding parcel features to a parcel feature layer that is derived from out master parcel layer. Rather than have the user digitize a new parcel when they add the feature, I would like to give them the ability to select a parcel from our master parcel layer and use it's geometry for the new feature. I can get the parcel graphic from the master parcel layer just fine. However, is it possible to use this graphic to create a new feature in a separate feature layer? I'm trying to do something similar to the Edit-->Copy and Edit-->Paste functionality in ArcGIS Desktop. Thanks, Tyler
... View more
04-02-2014
05:48 AM
|
0
|
2
|
1108
|
|
POST
|
Greetings Folks, I am upgrading my applications to 3.x. A few segments of my code rely on the ol' ArcGISDynamicMapService.defaultVisibleLayers() property. Does anyone have any ideas on how to alternatively get a map service's default visible layers? Thanks, Tyler
... View more
03-14-2014
11:18 AM
|
0
|
2
|
935
|
|
POST
|
Greetings, I am just getting started with the Android SDK and am working through some of the samples. I have gotten to the Identify sample and am a little bit confused about what I am working with. I subsequently have a couple of questions that would help me in my mission. Am I working with the correct version of the Identify sample? I am working with the samples that I downloaded with ArcGIS for Android 2.0.0. The help files for this sample (http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/#/Identify_task_sample/01190000001w000000/) describe a scenario that explores recent earthquakes. However, when I build and run my sample I get a map of the 50 states. Is the earthquake scenario the most up to date and if so where do I get a working copy of the code for the earthquake scenario? When I run the Identify sample and click on a state, the popup spinner always lists a state that is different than the state I clicked on. For instance, If I click on Texas, I get New Mexico in my popup. When I click on the spinner dropdown, I get a list with Texas and all of the nearby states. Is this the intended result? Is there any way to make the identify point more accurate? I would like to have only one result returned when I click on a state. Lastly when I swap out the sample map service with a parcel service of my own, I am unable to get any results in the popup. I am swaping out the URLs in the following locaitons: In onCreate:
ArcGISTiledMapServiceLayer layer = new ArcGISTiledMapServiceLaye("http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Average_Household_Size/MapServer");
map.addLayer(layer);
and in onPreExecute: mIdentifyTask = new IdentifyTask("http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Average_Household_Size/MapServer"); My service supports the Identify as a supported opperation. Is there something I am missing? Any hints, tips or nudges in the right direction will be greatly appreciated. Best Regards, Tyler
... View more
11-29-2012
05:07 AM
|
0
|
6
|
1534
|
|
POST
|
Thanks for the informaiton Ivan. This is exactly what I needed to get the attributes at the time of creation. THis is very helpful. I also need to be able to query my newly created records in a standalone table so that I can create a report. However, I am finding that when I create a new record I am unable to query that feature later on. If I restart the application, I can query the records and createn the report just fine. How do I refresh the data for the client without restarting my application? I am creating my table records like this:
const recordAttributes:Object = {
fkey: selectedNeighborhood,
DATE: new Date(myDateChooser.selectedDate.fullYear, myDateChooser.selectedDate.month, myDateChooser.selectedDate.date, 0, 0, 0, 0),
DATE_STRING:new Date(myDateChooser.selectedDate.fullYear, myDateChooser.selectedDate.month, myDateChooser.selectedDate.date, 0, 0, 0, 0).toDateString(),
ACTIVITY: strActivity,
COMMENT: strComment
};
const record:Graphic = new Graphic(null, null, recordAttributes);
activitiesTable.addEventListener(FeatureLayerEvent.EDITS_COMPLETE, activitiesTable_editsCompleteHandler);
private function activitiesTable_editsCompleteHandler(event:FeatureLayerEvent):void
{
activitiesTable.removeEventListener(FeatureLayerEvent.EDITS_COMPLETE, activitiesTable_editsCompleteHandler);
activitiesTable.refresh();
updateNeighborhoodActivities(selectedNeighborhood);
}
Later, when I try to create the report, I run the following query to get the records to create a report:
private function testButtonClick(event:MouseEvent):void
{
activitiesTable.refresh();
var query:Query = new Query();
query.returnGeometry = false;
query.outFields = activitiesTable.outFields;
query.where = "FKEY = '" + strName + "'";
var qTask:QueryTask = new QueryTask(activitiesTable.url);
qTask.showBusyCursor = true;
qTask.useAMF = false;
qTask.execute(query, new AsyncResponder(testOnResult, testOnFault));
function testOnResult(featureSet:FeatureSet, token:Object = null):void
{
for each (var graphic:Graphic in featureSet.features)
{
trace(graphic.attributes.FKEY);
trace(graphic.attributes.OBJECTID);
}
}
function testOnFault(info:Object, token:Object = null):void
{
Alert.show(info.toString(), "Text Query Problem");
}
}
However, when I click the test button, none of the records that I created during runtime are returned. If I reload the application and click the test button, all of the records are returned. How do I update the data for the clientso that my report reflects all of the data? I need to report on data that was creatind during runtime as well as all of the data that has already been created. Thanks, Tyler
... View more
10-22-2012
07:25 AM
|
0
|
0
|
829
|
|
POST
|
Greetings, I have created an editing application and am able to add, update and delete features from a featureLayer. Whenever I create a new feature, I need to also update a number of different arrays which a number of components in my application are dependent upon. How do I access the attributes of my new features? I am finding that after I create a feature and refresh the featureLayer, I am not able to access it's attributes by looping over the features in my featureLayer and calling the graphic.attributes.FIELDNAME property as I usually do. Though my new graphic is recognized as I loop over the features in my featureLayer, the graphic.attributes.FIELDNAME property resolves to null. The only way that I can access the attributes of the new feature is to refresh my entire application. How do I access the attributes of a newly created feature without refreshing the entire application? Thanks, Tyler
... View more
10-17-2012
05:27 AM
|
0
|
3
|
3370
|
|
POST
|
Hi. Did you ever find a solution to this? I am trying to do something simelar to see if I can use something like this to popup and populate the editor.attributeInspector in the Editor Widget. I plan to use this to help validate attributes in the editor's attribute inspector. If the attributes do not pass the checks, I plan to just pop up the editor.attributeInspector again with a generated map click. Not sure if a generated map click event will do this though.
... View more
10-12-2012
05:11 AM
|
0
|
0
|
732
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-28-2016 03:05 PM | |
| 5 | 09-20-2017 11:37 AM | |
| 2 | 01-28-2019 12:21 PM | |
| 1 | 10-16-2017 12:56 PM | |
| 1 | 10-07-2014 07:04 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|