Problems with new DataList type
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2010 12:24 PM
Doing my first piece of Share development, my first case will be a set of custom datalists. Started out with my first one like this:
In my custom-model.xml I added a new type:
In my fdk-config-custom.xml:
After deploying my new datalist type shows up and I'm able to initiate the create form. However, in addition to my properties, all inherited properties from the supertypes of my custom type are also shown:
[img]http://www.riktigtbrod.se/wp-content/uploads/2010/10/new_tollgate.JPG[/img]
Why is that? Looking at the definitions of the standard list types does not give me a clue.
Any help would be much appreciated.
Thanks
/Erik
In my custom-model.xml I added a new type:
<type name="ac:tgList"> <title>Tollgates List</title> <parent>dl:dataListItem</parent> <properties> <property name="ac:tgTitle"> <title>Title</title> <type>d:text</type> <mandatory>true</mandatory> </property> <property name="ac:tgPlannedDate"> <title>Planned Date</title> <type>d:date</type> <mandatory>false</mandatory> </property> <property name="ac:tgRevisedDate"> <title>Revised Date</title> <type>d:date</type> <mandatory>false</mandatory> </property> <property name="ac:tgActualDate"> <title>Actual Date</title> <type>d:date</type> <mandatory>false</mandatory> </property> <property name="ac:tgDecision"> <title>Decision</title> <type>d:text</type> <mandatory>true</mandatory> <constraints> <constraint ref="ac:tgDecisionList" /> </constraints> </property> <property name="ac:tgDecisionMaker"> <title>Type</title> <type>d:text</type> <mandatory>false</mandatory> </property> </properties> </type>
In my fdk-config-custom.xml:
<alfresco-config> <!– ac:tgList type –> <config evaluator="model-type" condition="ac:tgList"> <forms> <!– Create item form –> <form> <field-visibility> <show id="ac:tgTitle" /> <show id="ac:tgPlannedDate" /> <show id="ac:tgRevisedDate" /> <show id="ac:tgActualDate" /> <show id="ac:tgDecision" /> <show id="ac:tgDecisionMaker" /> </field-visibility> <create-form template="../data-lists/forms/row-new.ftl" /> </form> <!– Data Grid view –> <form id="datagrid"> <field-visibility> <show id="ac:tgTitle" /> <show id="ac:tgPlannedDate" /> <show id="ac:tgRevisedDate" /> <show id="ac:tgActualDate" /> <show id="ac:tgDecision" /> <show id="ac:tgDecisionMaker" /> </field-visibility> </form> </forms> </config> <!– ac_tgList type (existing nodes) –> <config evaluator="node-type" condition="ac:tgList"> <forms> <!– Data List pop-up edit form –> <form> <field-visibility> <show id="ac:tgTitle" /> <show id="ac:tgPlannedDate" /> <show id="ac:tgRevisedDate" /> <show id="ac:tgActualDate" /> <show id="ac:tgDecision" /> <show id="ac:tgDecisionMaker" /> </field-visibility> <edit-form template="../data-lists/forms/row-edit.ftl" /> </form> </forms> </config></alfresco-config>
After deploying my new datalist type shows up and I'm able to initiate the create form. However, in addition to my properties, all inherited properties from the supertypes of my custom type are also shown:
[img]http://www.riktigtbrod.se/wp-content/uploads/2010/10/new_tollgate.JPG[/img]
Why is that? Looking at the definitions of the standard list types does not give me a clue.
Any help would be much appreciated.
Thanks
/Erik
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2010 10:46 AM
Still no luck on this one.
Found this issue which seems related though:
http://issues.alfresco.com/jira/browse/ALF-5064?page=com.atlassian.streams.streams-jira-plugin:activ...
Can anyone confirm I ran into the same bug?
Found this issue which seems related though:
http://issues.alfresco.com/jira/browse/ALF-5064?page=com.atlassian.streams.streams-jira-plugin:activ...
Can anyone confirm I ran into the same bug?
