AnsweredAssumed Answered

onActionFormDialog WIndow not showing fields.

Question asked by unknown-user on Sep 17, 2015
I have defined a custom action in share-config-custom.xml using onActionFormDialog. The
problem is that when I click the link for this action, the form window appears with
the "OK" and "Cancel" buttons, but no fields.

I would appreciate any suggestions.

share-config-custom.xml:

   <config evaluator="string-compare" condition="DocLibActions">
      <actions>
         <action id="deploy-image-library-qa" type="javascript"
            label="Deploy image library to QA" icon="deploy-qa">
            <param name="function">onActionFormDialog</param>
            <permissions>
               <permission allow="true">Write</permission>
            </permissions>
            <param name="itemKind">action</param>
            <param name="itemId">deploy-image-library-qa</param>
            <param name="mode">create</param>
            <param name="destination">{node.nodeRef}</param>
            <param name="successMessage">message.deployment-success-qa</param>
            <param name="failureMessage">message.deployment-failure-qa</param>
            <evaluator>evaluator.doclib.action.isImageLibrary</evaluator>
         </action>
                </actions>

      <actionGroups>
         <actionGroup id="folder-browse">
            <action index="500" id="deploy-image-library-qa" />
         </actionGroup>
         <actionGroup id="folder-details">
            <action index="500" id="deploy-image-library-qa" />
         </actionGroup>
      </actionGroups>
        </config>

   <config evaluator="string-compare" condition="deploy-image-library-qa">
      <forms>
         <form>
            <field-visibility>
               <show id="cm:name" />
            </field-visibility>
            <appearance>
               <field id="cm:name" />
            </appearance>
         </form>
      </forms>
   </config>

service-context.xml:

   <bean id="deploy-image-library"
      class="com.sam.imagelibrary.DeployImageLibrary"
      parent="action-executer">
      <property name="nodeService">
         <ref bean="NodeService" />
      </property>
      <property name="contentService">
         <ref bean="ContentService" />
      </property>
      <property name="fileFolderService">
         <ref bean="FileFolderService" />
      </property>
   </bean>

   <bean id="deploy-image-library-qa"
      class="com.sam.imagelibrary.DeployImageLibraryQA"
      parent="deploy-image-library">
      <property name="publicAction">
         <value>true</value>
      </property>
   </bean>

Outcomes