cancel
Showing results for 
Search instead for 
Did you mean: 

Control for multiple text values

alarocca
Champ in-the-making
Champ in-the-making
Hello, is there any control I can use within a form to manage a text property that allow multiple values?

Just to be clear, this is the property definition:

<property name="test:codes">
   <title>My codes</title>
   <type>d:text</type>
   <multiple>true</multiple>
</property>
Thanks
9 REPLIES 9

vigj
Champ in-the-making
Champ in-the-making
I'm very interested too.

Does it exist?

vigj
Champ in-the-making
Champ in-the-making
i guess that  a control to manage a multiple value property should be shown automatically if the property is multivalue.
Am i right?

the problem is that in my case the multiple value property is rendered using a single textbox in share

here is my content
 <types >
    <type name="ped:praticaEdilizia">
      <title>Pratica Edilizia</title>
      <description>Pratica Edilizia</description>
      <parent>cm:content</parent>

      <properties>
        <property name="ped:NumProtocollo">
          <title>Numero Protocollo</title>
          <type>d:text</type>
        </property>
        <property name="ped:Data">
          <title>Data</title>
          <type>d:date</type>
        </property>
        <property name="ped:CodicePratica">
          <title>Codice Pratica</title>
          <type>d:text</type>
        </property>
        <property name="ped:Ecografico">
          <title>Ecografico</title>
          <type>d:text</type>
        </property>
        <property name="ped:DocPubblico">
          <title>Documento pubblico</title>
          <type>d:boolean</type>
          <default>true</default>
        </property>
        <property name="ped:Intestatario">
          <title>Intestatario</title>
          <type>d:text</type>
        </property>
        <property name="ped:CFPI">
          <title>CF o PI</title>
          <type>d:text</type>
        </property>
        <property name="ped:RifCat">
          <title>Riferimenti catastali</title>
          <type>d:text</type>
          <multiple>true</multiple>
        </property>
        <property name="ped:CodCollegamentoSit">
          <title>Codice Collegamento SIT</title>
          <type>d:text</type>
        </property>
        <property name="ped:TipoAtto">
          <title>Tipo Atto</title>
          <type>d:text</type>
          <constraints>
            <constraint ref="ped:ListaTipoAtto"></constraint>
          </constraints>
        </property>
        <property name="ped:SottoTipoAtto">
          <title>Sotto Tipo Atto</title>
          <type>d:text</type>
          <constraints>
            <constraint ref="ped:ListaSottoTipoAtto"></constraint>
          </constraints>
        </property>
      </properties>

      <associations>
        <child-association name="ped:allegati">
          <source>
            <mandatory>false</mandatory>
            <many>false</many>
          </source>
          <target>
            <class>cm:content</class>
            <mandatory>false</mandatory>
            <many>true</many>
          </target>
        </child-association>
      </associations>
     
    </type>
   

  </types>

and here is a part of my share-config-custom.xml
  <config evaluator="node-type" condition="ped:praticaEdilizia">
      <forms>
           <form >
                
                  <field-visibility>
                          <show id="cm:name" />
                          <show id="cm:description"/>
                          <show id ="ped:NumProtocollo" />
                        <show id="ped:Data" />
                     <show id="ped:CodicePratica" />
                        <show id="ped:Ecografico" />
                  <show id="ped:DocPubblico"/>
                  <show id="ped:Intestatario"/>
                  <show id="ped:CFPI"/>
                  <show id="ped:RifCat"/>
                  <show id="ped:TipoAtto"/>
                  <show id="ped:SottoTipoAtto"/>
                  <show id="ped:allegati"/>
                  <show id="cm:created" for-mode="view" />
                  <show id="cm:modified" for-mode="view" />

                  </field-visibility>
              <appearance>
               <field id="ped:allegati" label="Allegati" >
                    <control template="/org/alfresco/components/form/controls/association.ftl">
                     <control-param name="displayMode">items</control-param>
                     <control-param name="showTargetLink">true</control-param>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
              </appearance>

            </form>

        </forms>
   </config>

aymens
Champ in-the-making
Champ in-the-making
Hello,

I'm implementing Alfresco (Share) features from time to time and sharing with community.

Come to http://aymen-s.blogspot.com/ and vote for the feature you want to see in coming days.

Don't hesitate to spread the poll.

Regards,
Aymen S.

clementus
Champ in-the-making
Champ in-the-making
Hi,
I've created a text multiple controle.
Then you have possibility to add/delete value for your multiple string text.
Very practical for front end users.
Don't vacillate to contact me. I will forward you the control file.

jod
Champ in-the-making
Champ in-the-making
Hi,

I am very interested in the solution you worked out. Could you please share it with us?

judiths
Champ in-the-making
Champ in-the-making
Hi, I am looking for a suitable control for text values. Please can you forward the control file to me.

thanks, Jude

mchidalla
Champ in-the-making
Champ in-the-making
Hi Clementus,

can you share the control for multiple text values. Also if you have control for datetime, can you please share?

mirko79
Champ in-the-making
Champ in-the-making
Hi,
I've created a text multiple controle.
Then you have possibility to add/delete value for your multiple string text.
Very practical for front end users.
Don't vacillate to contact me. I will forward you the control file.

hi clementus, could you share your solution?
thank you!!

pylady
Champ in-the-making
Champ in-the-making
Hi,
I am looking for a control that will render a multiple value form element. Does anybody have a solution for this?

Thanks in advance,
Jana