AnsweredAssumed Answered

error in activity.post.json.js after inline editing

Question asked by ranj on Apr 2, 2012
Latest reply on Apr 4, 2012 by mitpatoliya
Hi,
I created a new model xyz:sample with a context file. the model has a type xyz:mytype with a  property xyz:heading.
In the share config custom.xml, i have included the property xyz:heading in the inline edit form removing the default cm properties.
After logging in, i change the type of the content to xyz:mytype.
The inline edit form shows my custom property xyz:heading.
But after editing when i click the save button, an error pops up saying "org.springframework.extensions.webscripts.WebScriptException: 03020006 Wrapped Exception (with status template): 03020055 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/activity.post.json.js': 03020054 JSONObject["fileName"] not found."

This is the share config custom.xml
<config evaluator="node-type" condition="xyz:mytype">
      <forms>
         <form>
               <field-visibility>
     <show id="xyz:heading" />
               </field-visibility>
            <appearance>
                <set id="" label-id="fdk.tab.label.details" />
                <field id="xyz:heading" />
           </appearance>
       </form>
        
         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
                     <show id="xyz:heading" />
             </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
         </form>
        
         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>
                   <show id="xyz:heading" />
             </field-visibility>
         <appearance>
               <field id="xyz:heading" />
        </appearance>
         </form>
      </forms>
   </config>

Outcomes