cancel
Showing results for 
Search instead for 
Did you mean: 

how to customize the property edit page in share

forrest43
Champ in-the-making
Champ in-the-making
We want to create an aspect in share, the aspect type likes the Object ArrayList in Java.
so we created the aspect as followed:

<aspect name="erry:signHistory">
         <title>sign history</title>
         <properties>
            <property name="erry:signDatetime">
               <title>sign datetime</title>
               <type>d:datetime</type>
               <multiple>true</multiple>
            </property>
            <property name="erry:signAdvice">
               <title>sign advice</title>
               <type>d:text</type>
               <multiple>true</multiple>
            </property>
            <property name="erry:signPersionId">
               <title>sign persionId</title>
               <type>d:text</type>
               <multiple>true</multiple>
            </property>
         </properties>
</aspect>

config in share as followed:

   <config evaluator="aspect" condition="erry:signHistory">
      <forms>
        <form>
          <field-visibility>    
            <show id="erry:signAdvice"/>
            <show id="erry:signDatetime"/>
            <show id="erry:signPersionId"/>    
           </field-visibility>
           <appearance>
                 <set id="nuclear-set" template="/org/alfresco/components/form/3-column-set.ftl" appearance="title" label="sign history" />
                  <field id="erry:signAdvice" set="nuclear-set"/>
                  <field id="erry:signDatetime" set="nuclear-set"/>
                  <field id="erry:signPersionId" set="nuclear-set"/>
         </appearance>
        </form>
      </forms>
   </config>

we added this aspect to some documents and viewed the properties in detail page,we found the property display format as followed:

sign advice: advice1,advice2    sign datetime:  2012 12:12:00,  2012 13:39:41   sign persionId: persion1,persion2


but I want to show like this:

sign advice:                 sign datetime              sign persionId
advice1                     2012 12:12:00                 persion1
advice2                     2012 13:39:41                 persion2

the property edit page display as followed:

sign advice: advice1,advice2   sign persionId: persion1,persion2

the one I want in the property edit page like this:

sign advice:                 sign datetime              sign persionId
advice1                     2012 12:12:00                 persion1
advice2                     2012 13:39:41                 persion2
how to do that?

One more question:
I want some buttons to add or delete the column as followed:

sign advice:                 sign datetime              sign persionId
advice1                     2012 12:12:00                 persion1
advice2                     2012 13:39:41                 persion2
                             button_add_column   button_delete_column
how to do that?any idea?
1 REPLY 1

erikwinlof
Confirmed Champ
Confirmed Champ
Hi,

Take a look at http://wiki.alfresco.com/wiki/Forms#control and read the section about "controls" and pay extra attention to the "template" attribute.
It will make it possible for you to "opt in" your custom control that can display the values as you wish.

Cheers and good luck, Erik