Select to view content in your preferred language

Mobile AttributeInspector

1168
3
07-13-2012 07:02 AM
GerryWatson
Emerging Contributor
Hi,
Building a mobile app that shows and edits feature layer data.  It would be great to use the AttributeInspector, but as far as I can tell it uses certain mx components (DataField, TextArea, TitleWindow). Not the first time I've wanted to use an esri Component that is dependent upon components not availble in the mobile project (FlareSymbol depends on mx.effects.easing.Linear - there is a spark alternative when you get to this). And please understand - not griping or whining - I can understand the scope of your guys jobs in maintaining and updating this code base - can't do everything all at once!

So back to AttributeInspector - I have several attributes that have coded values and rather than write a giant array for say all provinces/states in Canada/US - I'd love to query the server and get this info. I haven't been able to find a clue to this in forum - if anyone can point me in the right direction I just need a link, some code, something to get me moving in the right direction.

Alternatively - Does anyone know how to get the uncompiled source of the 3.0 API library - does this exist? I can't find it but maybe I'm blind. My plan B would be to look under the hood of AttributeInspector and figure out how it does its thing.

Thanks for all the hard work.

gerr
Tags (2)
0 Kudos
3 Replies
GerryWatson
Emerging Contributor
Hi again,

Some fresh eyes and some lucky creative searching helped find part of the answer I needed. The FeatureLayer.layerDetails.fields property contains an array of Field objects related to the attributes of the service layer in question. The Field objects contain the coded values for those fields which can be used to build my select lists / relationships to the data tables. Hopefully this helps some others.

Cheers,

G
0 Kudos
HoomanMohammadpour
Deactivated User
Hey There!

I'm starting to build a mobile app for Flex to use with PlayBook. I am running in to the same issues where I can't use the esri:Editor and its attribute inspector. Adding the MX source to compiler also fails to successfully build the project if esri:Editor is present. I was going to ask you for some insight or code if you can share and to see how you came up with your solution.

Best Regards,
Hooman
0 Kudos
GerryWatson
Emerging Contributor
Hey There!

I'm starting to build a mobile app for Flex to use with PlayBook. I am running in to the same issues where I can't use the esri:Editor and its attribute inspector. Adding the MX source to compiler also fails to successfully build the project if esri:Editor is present. I was going to ask you for some insight or code if you can share and to see how you came up with your solution.

Best Regards,
Hooman


Hi Hooman - so sorry - this is probably too late for you but maybe someone else can use it. I hadn't been on in a while.

I ended up just building my own form elements and handled all the interactions with the feature layer manually - the same idea as handling an HTML form submission - grab the content from the inputs, amalgamate into submission object needed and submit to data source. I found the samples in the api docs helpful as a starting point for working with feature layers. see:
http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Edit_without_Editor/01nq00000043000...

How did you make out?

Gerr
0 Kudos