AnsweredAssumed Answered

Añadir Aspecto Personalizado

Question asked by ajss on Mar 24, 2008
1º) He añadido este codigo al customModel.xml de la carpeta extension (Tomcat):

<aspects>

          <aspect name="custom:CustomerDetails">
      <title>CustomerDetails</title>
      <properties>
         <property name="custom:CustomerName">
            <title>Customer Name</title>
            <type>d:text</type>
         </property>
         <property name="custom:CustomerContactName">
            <title>Customer Contact Name</title>
            <type>d:text</type>
         </property>
         <property name="custom:CustomerContactPhone">
            <title>Customer Contact Phone</title>
            <type>d:text</type>
         </property>
         <property name="custom:CustomerProjectID">
            <title>Customer Project ID</title>
            <type>d:int</type>
         </property>
         <property name="custom:NewCustomer">
            <title>New Customer</title>
            <type>d:boolean</type>
         </property>
      </properties>
      </aspect>


      </aspects>

2º) He añadido al documento web-client-config-custom.xml (de la carpeta extension de tomcat), el siguiente codigo:


<!– Lists the custom aspect in business rules Action wizard –>
<config evaluator="string-compare" condition="Action Wizards">
   <aspects>
      <aspect name="custom:CustomerDetails"/>
   </aspects>
</config>


<!– Displays the properties in view details page –>
<config evaluator="aspect-name" condition="custom:CustomerDetails">
   <property-sheet>
      <separator name="sepCust1" display-label="Customer Details"
         component-generator="HeaderSeparatorGenerator" />
      <show-property name="custom:CustomerName"/>
      <show-property name="custom:CustomerContactName"/>
      <show-property name="custom:customerContactPhone"/>
      <show-property name="custom:customerprojectID"/>
      <show-property name="custom:NewCustomer"/>
   </property-sheet>
</config>

3º) Al crear la regla de negocio, para añadir el Aspecto todo correcto. Pero al añadir un contenido al repositorio, y que surja efecto el nuevo aspecto, me sale lo siguiente:


[img]http://img379.imageshack.us/img379/9659/aspje8.jpg[/img]

Outcomes