AnsweredAssumed Answered

Update using 'ALF_CRUD_UPDATE' throwing Error while submitting Form

Question asked by satheeshkumar on Apr 9, 2015
Latest reply on Apr 13, 2015 by lementree
Hi All,

When I try to submit my Form for updating one of my custom content model
, through

I am getting the below ERROR,

<CODE>2015-04-09 11:10:04,997 [ERROR] org.springframework.extensions.webscripts.AbstractRuntime.executeScript( Exception from executeScript - redirecting to status template error: 03090003 Script url /api/type/hccm:productTypeFolder/formprocessor does not support the method PUT
org.springframework.extensions.webscripts.WebScriptException: 03090003 Script url /api/type/hccm:productTypeFolder/formprocessor does not support the method PUT
        at org.springframework.exten</CODE>

When I browse I came to know like,
FormProcessor doesn't support PUT method.

The below tutorial says that,

But I am not able to do the Update using "ALF_CRUD_CREATE", as per the instructions given in the above link, can someone let me know how I can use this "ALF_CRUD_CREATE" to do the update of my custom content type.

Here is my form widget detail,

var editForm = {
   name : "alfresco/forms/Form",
   config : {
      okButtonLabel : "Update",
      okButtonPublishTopic : "ALF_CRUD_UPDATE",
      okButtonPublishGlobal : true,
      okButtonPublishPayload : {
         url : "api/type/hccm%3AproductTypeFolder/formprocessor",
         alf_destination : alfDestination,
      okButtonPublishGlobal : true,
      showCancelButton : false,
      widgets : [ /*All my form widgets goes here */]