cancel
Showing results for 
Search instead for 
Did you mean: 

Custom aspetcs

fstnboy
Champ on-the-rise
Champ on-the-rise
Hi guys!

i have come up against a new problem…. I´ve got a .xml file for custom aspects/model, everything is ok. But there is a thing that i need and i don´t know how to do it.

I have a property representing a "combo box" and then some other properties as long as telephone, fax, email, …. What i need is that certain properties to be mandatory only if the selected value in combo is 'Procurador' or 'Abogado'

What I have in libertyAJDmodel.xml



<constraint name="ajd:profesionales" type="LIST">
         <parameter name="allowedValues">
            <list>
               <value>Abogado</value>
               <value>Procurador</value>
               <value>Perito</value>
               <value>Otros</value>
            </list>
         </parameter>
</constraint>
      
<constraint name="ajd:especialds" type="LIST">
         <parameter name="allowedValues">
            <list>
               <value>-</value>
            </list>
         </parameter>
</constraint>

<type name="ajd:espaciocontactos">
         <title>Espacio para expedientes de contactos</title>
         <parent>ajd:eticos</parent>
         <properties>
            <property name="ajd:tipoprof_6">
               <type>d:text</type>
               <mandatory enforced="true">true</mandatory>
               <multiple>false</multiple>
                    <default>Abogado</default>
                    <index enabled="true">
                  <tokenised>true</tokenised>
               </index>
                    <constraints>
                       <constraint ref="ajd:profesionales"/>
               </constraints>
                  </property>
                  <property name="ajd:espe_6">
               <type>d:text</type>
               <mandatory enforced="true">true</mandatory><!– only mandatory when ajd:tipoprof_6 is 'abogado' or 'procurador' –>
               <multiple>false</multiple>
                    <default>-</default>
                    <index enabled="true">
                  <tokenised>true</tokenised>
               </index>
                    <constraints>
                       <constraint ref="ajd:especialds"/>
               </constraints>
                  </property>
                  <property name="ajd:reparto_6">
               <type>d:text</type>
               <mandatory enforced="true">true</mandatory>
               <default></default>
                    <index enabled="true">
                  <tokenised>true</tokenised>
               </index>
                  </property>
                  <property name="ajd:partjud_6">
               <type>d:text</type>
               <mandatory enforced="true">true</mandatory><!– only mandatory when ajd:tipoprof_6 is 'abogado' or 'procurador' –>
                    <default></default>
                    <index enabled="true">
                  <tokenised>true</tokenised>
               </index>
                  </property>
                  
                  <property name="ajd:direcc_6">
               <type>d:text</type>
               <mandatory enforced="true">true</mandatory>
               <default></default>
                    <index enabled="true">
                  <tokenised>true</tokenised>
               </index>
                  </property>
                  <property name="ajd:telf_6">
               <type>d:text</type>
               <mandatory enforced="true">true</mandatory>
               <default></default>
                    <index enabled="true">
                  <tokenised>true</tokenised>
               </index>
                  </property>
                  <property name="ajd:movil_6">
               <type>d:text</type>
               <mandatory enforced="true">true</mandatory>
               <default></default>
                    <index enabled="true">
                  <tokenised>true</tokenised>
               </index>
                  </property>
                  <property name="ajd:fax_6">
               <type>d:text</type>
               <mandatory enforced="true">true</mandatory>
               <default></default>
                    <index enabled="true">
                  <tokenised>true</tokenised>
               </index>
                  </property>
                  <property name="ajd:mail_6">
               <type>d:text</type>
               <mandatory enforced="true">true</mandatory>
               <default></default>
                    <index enabled="true">
                  <tokenised>true</tokenised>
               </index>
                  </property>
                  <property name="ajd:nifcif_6">
               <type>d:text</type>
               <mandatory enforced="true">true</mandatory>
               <default></default>
                    <index enabled="true">
                  <tokenised>true</tokenised>
               </index>
                  </property>
                  <property name="ajd:observs_6">
               <type>d:text</type>
               <mandatory enforced="true">true</mandatory>
               <default></default>
                    <index enabled="true">
                  <tokenised>true</tokenised>
               </index>
                  </property>
               </properties>

         <mandatory-aspects>
           <aspect>ajd:contenedorajd</aspect>
         </mandatory-aspects>            
</type>
15 REPLIES 15

archana_bonkanp
Champ in-the-making
Champ in-the-making
im not getting any exception,but hw it gets reflected,like if we add ascept then we can view it in rules but wt abt type

fstnboy
Champ on-the-rise
Champ on-the-rise
The properties of the type must be shown in the creation/edition of the space´s details…

Are them shown?

archana_bonkanp
Champ in-the-making
Champ in-the-making
Hi,

my requirement actually is ,in a particular space when i upload a document it should give me a privilege of adding extra meta data properties in the form of a drop down list which contains static values ,so the user can select the value instead of typing.
We had provided a privilege to type but there are lot many typo mistakes so that is the reason we are asking for a drop down list

fstnboy
Champ on-the-rise
Champ on-the-rise
I suppose that what you need to do is to add a rule and in the actions wizard select the type you want to associate with the uploaded file

archana_bonkanp
Champ in-the-making
Champ in-the-making
hi that is were we need help
in xml files we are done with adding of fields and there is no excpetion.
we struck near adding the rule ie., selecting the action.

fstnboy
Champ on-the-rise
Champ on-the-rise
Sorry, but my english is not as good as I would like. What does struck mean?

An exception is sent or you have problems (you don´t know) how to add the rule?

Sorry for my english…  Smiley Surprisedops: