AnsweredAssumed Answered

selectone.ftl no available options

Question asked by jnrbrle on Feb 27, 2015
Latest reply on Mar 1, 2015 by nenad982
Hi,

I've made a custom data list by following the example of Jeff Pots, and now i'm trying to make some further customization. To be more specific, I'm trying to make a simple select option.

This is the example, I was following:

https://forums.alfresco.com/forum/end-user-discussions/alfresco-share/custom-datalist-selectoneftl-10102013-0932

In the second comment, he didn't close the control tag, so after making the same mistake, my form broke. But when I close it, I don't get any options

http://prntscr.com/6alon4

Here is the code from share-custom-sample.xml:


<form>
        <field-visibility>
                <!– for the form creation we are showing everything except approved date –>
                <show id="gc:gcID" />
                <show id="gc:gcIDclient" />
                <show id="gc:gcMaker" />
                <show id="gc:gcQuantity" />
                <show id="gc:gcPrice" />
                <show id="gc:gcPriceMargin" />
                <show id="gc:gcDueDate" />
                <show id="gc:gcStatus" />
                <show id="gc:gcComments" />
                <show id="gc:gcAttachments" />
             </field-visibility>
             <create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />

                <appearance>

                <field id="gc:gcIDclient">
                   <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                </field>

                <field id="gc:gcStatus">
                   <control template="/org/alfresco/components/form/controls/selectone.ftl" />
                   <control-param name="options">jedna,druha,tretia</control-param>
                </field>

                <field id="gc:gcComments">
                   <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                </field>

                <field id="gc:gcAttachments">
                <control>
                   <control-param name="startLocation">{doclib}</control-param>
                </control>
                </field>

                </appearance>
        </form>



basically, it's almost exact copy of Jeff's tutorial.

and the code from customModelContent.xml:


   <property name="gc:gcStatus">
      <title>Status</title>
      <type>d:text</type>
       <mandatory>false</mandatory>
       <multiple>false</multiple>
   </property>


I'm missing something, but I realy don't know what… Any ideas?

Thx

Jan

Outcomes