|
POST
|
As it turns out, the critical mistake I was making was that I had my OBJECTID variable typed as a string. This makes me wonder if it is actually possible to edit a hidden attribute as I had tried to do in my previous post which I referenced earlier in this thread. Once I finalize and deliver the project that I am working on, I will go back and test to see if you can actually update a hidden field or not. I will report back on the referenced post. Thanks, Tyler
... View more
10-10-2012
04:43 AM
|
0
|
0
|
344
|
|
POST
|
Greetings Everyone, This post is very similar to the one that I posted yesterday (http://forums.arcgis.com/threads/68525-featureLayer-applyEdits-Update-attributes-programatically-for-hidden-field). Since support let me know that I am not able to edit a hidden field, I redesigned my application�??s workflow but am now hitting up against a very similar problem. The redesigned workflow requires that I still edit a standalone table. However, I no longer need to edit a hidden field. Instead I just need to select and edit records in a standalone table. At this point I am unable to. The code that I am using to try to edit my table is: 1. First select a set of records from the standalone table using a custom text query class I created. var textQuery:TextQuery = new TextQuery(activitiesTable.url, ["OBJECTID","FKEY","ACTIVITY","COMMENT","DATE"],strWhereClause, false); textQuery.executeQuery(neighborhoodUpdataQuery); 2. Next loop over the records which were returned by my TextQuery class and perform the applyEdits method on the featureLayer: �?? private function neighborhoodUpdataQuery(event:CoreEvent):void { var featureSet:FeatureSet = event.data as FeatureSet; aryActivitiesAttributes = new Array; for each (var graphic:Graphic in featureSet.features) { var aryActivityValues:Array = new Array; var strOBJECTID:String = graphic.attributes.OBJECTID; var strFKey:String = graphic.attributes.FKEY; var strNeighborhood:String = graphic.attributes.NEIGHBORHOOD; var strActivity:String = graphic.attributes.ACTIVITY; var strComment:String = graphic.attributes.COMMENT; var strDATE:String = graphic.attributes.DATE; const updates:Object = { OBJECTID:strOBJECTID, FKEY:"TestValue", ACTIVITY:strActivity, COMMENT:strComment, DATE:strDate }; graphic.attributes = updates; var aryUpdates:Array = [ graphic ]; activitiesTable.applyEdits(null, aryUpdates, null); } } I can see no problem with my logic, yet I can achieve no updates to my table. Any direction will be graetly appreciated. Thanks, Tyler
... View more
10-09-2012
10:27 AM
|
0
|
1
|
858
|
|
POST
|
Turns out as I halfway expected that you can not update the values for a field that is hidden. Thanks, Tyler
... View more
10-08-2012
12:12 PM
|
0
|
0
|
347
|
|
POST
|
Greetigns, I am attempting to update attributes programatically for a hidden field. I am basically trying to exclude a field (PKEY) from the edit widget's attribute inspector. Instead of exposing the user to the PKEY field I would rather popuplate it on the fly since it is only used in a 1:M table relate. So far I have: const updates:Object = { NEIGHBORHOOD: graphic.attributes.NEIGHBORHOOD, PAC: graphic.attributes.PAC, PKEY: graphic.attributes.OBJECTID }; graphic.attributes = updates; var aryUpdates:Array = [ graphic ]; flBoundaries.applyEdits(null, aryUpdates, null); This is not upadting the PKEY field and I believe that I am either not applying edits to the featureLayer correctly or it is not possible to update a hidden field. Can anyone point me in the right direction? Thanks, Tyler
... View more
10-08-2012
06:49 AM
|
0
|
1
|
711
|
|
POST
|
I just checked my client caching and I already have it disabled. Hmmm... Thanks, Tyler
... View more
09-28-2012
04:48 AM
|
0
|
0
|
946
|
|
POST
|
Greetings Everyone, I ended up creating a MapPoint and setting it's x and y properties equal to the slightly adjusted center of the map's extent using the following chunk of code: var centerAt:MapPoint = new MapPoint; centerAt.x = map.extent.center.x; centerAt.y = map.extent.center.y -0.1;//slight adjustment Following that, I reset the map's centerpoint to the slightly adjusted centerpoint with the following line of code. map.centerAt(centerAt); By readjusting the maps centerpoint my featuerLayer is forced to redraw and my new feature auto-magically appears. While this works fine for my purposes, I can't help feeling like there is a better way. Any suggestions will be greatly appreciated. Thanks, Tyler
... View more
09-27-2012
09:50 AM
|
0
|
0
|
946
|
|
POST
|
Thanks for replying Ivan and Phillip, I believe that I may be venturing off into no person�??s land. I am trying my best to code my way toward an editing solution that has all of the functionality of the Edit widget but with the added value of attribute validation. There is currently no way to validate attribution for new or existing features using the Editor class. I have decided to move ahead and create a custom tool that utilizes the draw tool to create an initial graphic. Once the graphic is completed, I then popup an infoWindow that is used to enter (textInput) or select (comboBox) field attributes. Once the field attributes are entered and the user clicks the OK button, a number of validation checks are run before passing the drawn graphic and attributes to the featureLayer using the applyEdits method. This all works rather well but I still need to offer the user the ability to edit the attributes and geometries of existing features. To edit the attributes, I plan to use an attribute inspector. Though I have not yet implemented the attribute inspector I believe it will work well for my purposes but I cannot figure out a way to provide the user with the ability to alter the geometries of existing features. However, I cannot figure out a way to decouple the select/edit geometry functionality from the edit widget so that I can create features and validate attributes, update and validate attributes and edit geometry. I am looking for some kind of way that I can toggle my featureLayer�??s selectability on or off depending on if the user is creating a new feature. Any ideas or suggestions? Thanks, Tyler
... View more
09-27-2012
06:55 AM
|
0
|
0
|
899
|
|
POST
|
Greetings Everyone, I am editing a feature layer using the applyEdits and refresh methods like so: editFeatureLayer.applyEdits([ lastDrawnGraphic ], null, null); editFeatureLayer.refresh(); The new feature gets recorded in the database but does not show up in the map automatically. To get the new feature to show up I have to manually pan or zoom in a little. How do I get the new feature to display automatically? Thanks, Tyler
... View more
09-27-2012
05:54 AM
|
0
|
4
|
1304
|
|
POST
|
Greetings, I have a number of feature layers in an application that I would like to toggle selectability for. I am trying to mimic the functionality that is exhibited in the Edit widget. I would like have a set of feature layers selectable by default. However, when the user selects my widget's tool, I would like to toggle off the selectability of my feature layers until the user stops using my widget's tool. Could someone point me in the right direction? Thanks, Tyler
... View more
09-26-2012
06:32 AM
|
0
|
3
|
2963
|
|
POST
|
Again, after calculating on record's field with the field calculator, I was able to then manually update an individual field value for other records. This is really strange. The work around seems to be to use the field calculator for one record to reset the ability to update single attributes for individual records. Go figure.
... View more
09-14-2012
09:19 AM
|
0
|
0
|
815
|
|
POST
|
Actually, now it's doing it again. Strange. I'll report back if I can get it to behave normally again. Thanks, Tyler
... View more
09-14-2012
09:11 AM
|
0
|
0
|
815
|
|
POST
|
Alright, alright... now I know this sounds crazy but the issue has resolved itself. I'll go ahead and tell you what happened. I went ahead and started to calculate the fields one at a time and this seems to have resolved the issue. Now when I manually edit each field seperately, the edits take. I believe that this is some obscure bug that I may have come across while in the process of converting an excell workbook to dbf 5 in access and then converting to file geodatabase in arcmap. If I hadn't seen it with mine own eyes I wouldn't believe it either. Thanks, Tyler
... View more
09-14-2012
07:06 AM
|
0
|
0
|
815
|
|
POST
|
Greetings, Have a stand alone table that I intend to geocode. I loaded the table into a file geodatabase. About 10 of the addresses were not validated and are incorrectly entered with a '#' in the address. To remove these '#'s, I start an editing session and select the coresponding record, place the cursor in the address field, delete the '#' and more on to the next offending record. However, no matter what I do, my updates to not take. I neither want to go through the trouble of calculating each value seperately with the field calculator, nor do I want to write a python script or export to Excell, though thesse methods will all work. Is there some reason I can not update these handful of records manually in an editing session? What gives? Thanks, Tyler
... View more
09-14-2012
06:47 AM
|
0
|
3
|
1121
|
|
POST
|
Greetings, I have been struggling to get a JavaSript editing application up and running. I am unable to get the editing functionality to work because I cannot get the proxy.ashx file to cooperate with my ArcGIS Server proxy server. My proxy page will communicate with literally every other site on the www without a problem. However it will not recognize any of the services on our proxy server. I spoke with an ESRI Analyst, and we were both baffled. Finally we determined that it was no fault of the proxy page but rather our proxy server has a security setting that was preventing it from receiving traffic from the proxy page. Is there a permission that needs to be set on the proxy server to accept traffic from a proxy page? Has anyone ever dealt with an issue like this before? Thanks, Tyler
... View more
09-13-2012
11:17 AM
|
0
|
3
|
2546
|
|
POST
|
Greetings, I just set up my development environment to begin developing the ArcGIS Runtime SDK for Android. I am fixing to customize the Identify sample provided at the ARcGIS Resource site for the Andriod Runtime SDK http://resources.arcgis.com/en/help/android-sdk/concepts/index.html#/Identify_task_sample/01190000001w000000/ . However, the descrption provided at this page references an identify scenario that is completely different than the identify sample packaged up with the ArcGIS SDK. The description at the ArcGIS Resource Site describes an earthquake scenario while the sample packaged up with the actual SDK appears to explore a census scenario. Also, it appears that the sample scenario that I am testing is not accurate. For instance, when I identify the center of Nebraska, I get Colorado as a result. It also appears as if the extended IdentifyResuktsSpinnerAdapter does not display the results correctly. I expect that when I select one of the options in the spinner, a detailed list of that feature's attributes would be displayed. I do not have an Android phone and am using the Android Emulator. Could this be the problem? Any help will be greatly appreciated. Thanks, Tyler
... View more
08-31-2012
01:23 PM
|
0
|
2
|
2266
|
| 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
|