The java 10.2.4 SDK has an excellent sample on how to edit features from a online feature service but I have not been able to do the same on a local feature from a .geodatabase. The trouble I run into is creating a graphics layer from the local feature. I can get the hit test to work but not any kind of attribute editing. The goal is to edit a local layer and then have it sync up to the cloud. Because of the areas where this application is running, I had to develop the application to be "offline first" and much of the example code is the opposite, but I am slowly and shurely getting there.
Any ideas or direction?
I have added a simple code file. If you change the geodatabase path the code should render the 0 layer. The line I am having a problem with is:
//contentPanel.setFeature(damageLayer, (GeodatabaseFeatureTable) damageLayer.getFeatureTable(), hitFeature);
More specifically, the setFeature method has an error when I put the hit feature argument in. What is wrong?