AnsweredAssumed Answered

Custom form for custom type not used by form engine

Question asked by orichaud on Jan 27, 2011
Latest reply on Feb 16, 2011 by jperilla
I have defined my own form for a model type to play with the FDK I successfully installed (I can access the form console).

I use Alfresco Enterprise 3.4RC1?

Here is my model:

<model name="perfs:model" xmlns="">
   <description>Perfs Model</description>
   <author>Olivier Richaud (AHP)</author>

      <import uri="" prefix="sys" />
      <!– Import Alfresco Dictionary Definitions –>
      <import uri="" prefix="d" />
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="" prefix="cm" />

      <namespace uri="acm-perfs.model" prefix="perfs" />

      <type name="perfs:PerfType">
         <title>Type PerfType</title>
            <property name="perfs:p1">
            <property name="perfs:p2">
            <property name="perfs:p3">
            <property name="perfs:p4">
            <property name="perfs:p5">
            <property name="perfs:p6">
            <property name="perfs:p7">
            <property name="perfs:p8">
            <property name="perfs:p9">
            <property name="perfs:p10">
            <child-association name="perfs:children">

In alfresco/web-extension I have crated the sahre-config-custom.xml file and I can say that the file is laoded since I was able to set the client-debug tag to true which pops up the javascript log4j console:

   <!– Global config section –>
   <config replace="true">
         <!– Developer debugging setting to turn on DEBUG mode for client scripts in the browser –>

         <!– LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift). This flag automatically activates
            logging on page load. –>

   <config evaluator="node-type" condition="perfs:PerfType">
         <form id="perfs-form">                                      
            <edit-form template="/fdk/templates/tab-edit-form.ftl" />
               <show id="perfs:p1"/>
               <show id="perfs:p2"/>
               <show id="perfs:p3"/>
               <show id="perfs:p4"/>
               <show id="perfs:p5"/>
               <show id="perfs:p6"/>
               <show id="perfs:p7"/>
               <show id="perfs:p8"/>
               <show id="perfs:p9"/>
               <show id="perfs:p10"/>
               <set id="tab1" label="Tab 1" />
               <set id="tab2" label="Tab 2" />
               <field id="perfs:p1" set="tab2" label="perfs:p1"/>
               <field id="perfs:p2" set="tab1" label="perfs:p2"/>
               <field id="perfs:p3" set="tab2" label="perfs:p3"/>
               <field id="perfs:p4" set="tab1" label="perfs:p4"/>
               <field id="perfs:p5" set="tab2" label="perfs:p5"/>
               <field id="perfs:p6" set="tab1" label="perfs:p6"/>
               <field id="perfs:p7" set="tab2" label="perfs:p7"/>
               <field id="perfs:p8" set="tab1" label="perfs:p8"/>
               <field id="perfs:p9" set="tab2" label="perfs:p9"/>
               <field id="perfs:p10" set="tab1" label="perfs:p10"/>

I have create a dummy model and store instacnes of the custom type into the repository in a space just under the company_home. With share, I use the repository button to navigate to my instance and I can see it. I checked with the explorer's node browser that the node is of the correct type.

I do not see any error in the logs.

I am wrong somewhere and any help would be great.