{"id":489,"date":"2018-02-09T10:22:15","date_gmt":"2018-02-09T10:22:15","guid":{"rendered":"http:\/\/www.exploreax.com\/blog\/?p=489"},"modified":"2018-02-09T10:22:15","modified_gmt":"2018-02-09T10:22:15","slug":"allow-non-editable-table-fields-to-be-modified-via-aif","status":"publish","type":"post","link":"http:\/\/www.exploreax.com\/blog\/blog\/2018\/02\/09\/allow-non-editable-table-fields-to-be-modified-via-aif\/","title":{"rendered":"Allow non editable table fields to be modified via AIF."},"content":{"rendered":"<p><strong>Requirement<\/strong>: Allow requests made via AIF to modify fields with the table field property &#8220;AllowEdit&#8221; set to <strong>NO<\/strong>\u00a0to be modified. By default\u00a0if you modify a field in a service call that is non editable no errors occur but the field is not updated.<\/p>\n<p><strong>Solution:<\/strong>\u00a0On your AXD service contract class, right click on the class , click\u00a0&#8220;Override method&#8221; choose method &#8220;<em>initFieldAccessOverrides&#8221;\u00a0<\/em>to override. Append the following line to the method<\/p>\n<p>this.overRideFieldAccess(<b>tableNum<\/b>([YourTable]), <b>fieldNum<\/b>([YourTable], [YourField]), AxdFieldAccess::AllowEdit, NoYes::Yes);<\/p>\n<p>Note: This can also be used to override the &#8220;editOnCreate&#8221; property of a table\u00a0field for AIF usage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requirement: Allow requests made via AIF to modify fields with the table field property &#8220;AllowEdit&#8221; set to NO\u00a0to be modified. By default\u00a0if you modify a field in a service call that is non editable no errors occur but the field is not updated. Solution:\u00a0On your AXD service contract class, right click on the class ,&hellip;<a href=\"http:\/\/www.exploreax.com\/blog\/blog\/2018\/02\/09\/allow-non-editable-table-fields-to-be-modified-via-aif\/\">Read more <span class=\"screen-reader-text\">Allow non editable table fields to be modified via AIF.<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[105,2,5,106,7,4],"tags":[],"_links":{"self":[{"href":"http:\/\/www.exploreax.com\/blog\/wp-json\/wp\/v2\/posts\/489"}],"collection":[{"href":"http:\/\/www.exploreax.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.exploreax.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.exploreax.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.exploreax.com\/blog\/wp-json\/wp\/v2\/comments?post=489"}],"version-history":[{"count":1,"href":"http:\/\/www.exploreax.com\/blog\/wp-json\/wp\/v2\/posts\/489\/revisions"}],"predecessor-version":[{"id":490,"href":"http:\/\/www.exploreax.com\/blog\/wp-json\/wp\/v2\/posts\/489\/revisions\/490"}],"wp:attachment":[{"href":"http:\/\/www.exploreax.com\/blog\/wp-json\/wp\/v2\/media?parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.exploreax.com\/blog\/wp-json\/wp\/v2\/categories?post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.exploreax.com\/blog\/wp-json\/wp\/v2\/tags?post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}