<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Edit / Add Features with an offline Geodatabase doesn't work in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/edit-add-features-with-an-offline-geodatabase/m-p/165645#M1525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you confirm that the service you generated this geodatabase from permits editing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, there are methods on AGSGDBFeatureTable that the popup consults to decide whether or not to show the edit/delete options to the user. These methods are canUpdateFeature: &amp;amp; canDeletateFeature: . They take into account the edit capabilities of the service (at the time the geodatabase was generated), and also any Ownership-based access control policies (for eg, can people edit only those features that belong to them, or can they edit other's features too)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2014 23:17:30 GMT</pubDate>
    <dc:creator>DiveshGoyal</dc:creator>
    <dc:date>2014-03-07T23:17:30Z</dc:date>
    <item>
      <title>Edit / Add Features with an offline Geodatabase doesn't work</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/edit-add-features-with-an-offline-geodatabase/m-p/165644#M1524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently stuck with the implementation of an offline map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My software uses an offline .geodatabase file to display features on the map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To do so it reads the tables from the database and adds them to as a layer to the map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;[self.mapView addMapLayer:[[AGSFeatureTableLayer alloc] initWithFeatureTable:fTable]];&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I had a look at the OfflineFeatureEditing sample code and added the source for adding new features in my application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So far viewing the popups is fine but I am not able to edit the data. This is how I create the popup with the desired data from the featuretemplate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
AGSGDBFeatureTable* fTable = (AGSGDBFeatureTable*)layer;
AGSGDBFeature* feature = [fTable featureWithTemplate:featureTemplate];
AGSPopupInfo *pi = [AGSPopupInfo popupInfoForGDBFeatureTable:fTable];
AGSPopup *p = [[AGSPopup alloc] initWithGDBFeature:feature popupInfo:pi];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
self.popupsVC = [[AGSPopupsContainerViewController alloc] initWithPopups:@&lt;P&gt; usingNavigationControllerStack:NO];
_popupsVC.delegate = self;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
_popupsVC.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:_popupsVC animated:YES completion:nil];

[_popupsVC startEditingCurrentPopup];
&lt;/P&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No matter what I tried (startEditionCurrentPopup, setEditing:animated:, ...) the popup viewcontrollers property "inEditingMode" is always false. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone has an idea please?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 07:59:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/edit-add-features-with-an-offline-geodatabase/m-p/165644#M1524</guid>
      <dc:creator>EikeLüders</dc:creator>
      <dc:date>2014-03-07T07:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Edit / Add Features with an offline Geodatabase doesn't work</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/edit-add-features-with-an-offline-geodatabase/m-p/165645#M1525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you confirm that the service you generated this geodatabase from permits editing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, there are methods on AGSGDBFeatureTable that the popup consults to decide whether or not to show the edit/delete options to the user. These methods are canUpdateFeature: &amp;amp; canDeletateFeature: . They take into account the edit capabilities of the service (at the time the geodatabase was generated), and also any Ownership-based access control policies (for eg, can people edit only those features that belong to them, or can they edit other's features too)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 23:17:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/edit-add-features-with-an-offline-geodatabase/m-p/165645#M1525</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2014-03-07T23:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Edit / Add Features with an offline Geodatabase doesn't work</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/edit-add-features-with-an-offline-geodatabase/m-p/165646#M1526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Divesh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed I noticed that the method "canUpdate" returns NO for the geodatabase tables. This fact confuses me, because I am able to edit the features when they are stored in a file geodatabase in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also the same geodatabase is editable through the Android SDK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I have a mistake in the creation process of the geodatabase?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I do this in ArcMap through the "Create Runtime Content"-tool as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select the tool from "Data management tools" -&amp;gt; "Package" -&amp;gt; "Create Runtime Content". Then I select the mxd which includes the file geodatabase and select an output folder on my disk. All other settings I leave to standard values. Then I copy the generated geodatabase to my XCode project and add it to my map like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;AGSGDBGeodatabase *geoDB = [[AGSGDBGeodatabase alloc] initWithPath:fullPath error:&amp;amp;error];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
if (error) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"ERR: %@", error);
}
for (AGSGDBFeatureTable* fTable in geoDB.featureTables) {
 if ([fTable hasGeometry]) {
&amp;nbsp; AGSFeatureTableLayer *featureTableLayer = [[AGSFeatureTableLayer alloc] initWithFeatureTable:fTable];
&amp;nbsp; NSLog(@"T: %d", fTable.canUpdate);
&amp;nbsp; featureTableLayer.visible = YES;
&amp;nbsp; featureTableLayer.delegate = self;
&amp;nbsp; [self.layers addObject:featureTableLayer];
 }
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/edit-add-features-with-an-offline-geodatabase/m-p/165646#M1526</guid>
      <dc:creator>EikeLüders</dc:creator>
      <dc:date>2021-12-11T08:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Edit / Add Features with an offline Geodatabase doesn't work</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/edit-add-features-with-an-offline-geodatabase/m-p/165647#M1527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Runtime geodatabases created through ArcMap are not meant to be editable. They are view-only. There are no tools to take a modified runtime geodatabase and pull its changes into a source geodatabase on the desktop or in a database.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 19:39:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/edit-add-features-with-an-offline-geodatabase/m-p/165647#M1527</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2014-03-18T19:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Edit / Add Features with an offline Geodatabase doesn't work</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/edit-add-features-with-an-offline-geodatabase/m-p/165648#M1528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Runtime geodatabases created through ArcMap are not meant to be editable. They are view-only. There are no tools to take a modified runtime geodatabase and pull its changes into a source geodatabase on the desktop or in a database.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that mean that even if i will create the geodatabase through the code, and then open it in the ArcMap , then i still won't be able to edit it, save the .geodatabse file, and open it again through the code for editing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Team Igal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 10:39:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/edit-add-features-with-an-offline-geodatabase/m-p/165648#M1528</guid>
      <dc:creator>teamIgal</dc:creator>
      <dc:date>2014-04-06T10:39:05Z</dc:date>
    </item>
  </channel>
</rss>

