AnsweredAssumed Answered

how to customize the property edit page in share

Question asked by forrest43 on Nov 8, 2012
Latest reply on Nov 9, 2012 by erikwinlof
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?

Outcomes