AnsweredAssumed Answered

selectone.ftl no available options

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

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:

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

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

                <!– 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" />
             <create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />


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

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

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

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


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

and the code from customModelContent.xml:

   <property name="gc:gcStatus">

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