cancel
Showing results for 
Search instead for 
Did you mean: 

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

ranj
Champ on-the-rise
Champ on-the-rise
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>
1 REPLY 1

mitpatoliya
Star Collaborator
Star Collaborator
You just need to add the cm:name property along with the heading property.
This should solve your problem.