nelsonmp19 / alfresco-form-model-management

Automatically exported from code.google.com/p/alfresco-form-model-management
0 stars 0 forks source link

form presentation corrupted #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. creating model
2. creating aspect
3. adding fields
4. save

What is the expected output? What do you see instead?
while adding and editing formfields and saving, all goes well but suddenly 
after a save, the formlayout turns into somekind of default. see screen print.
And this is the json created :
{"aspects":[{"title":"dagVerkoop","visible":true,"namespace":"frmben","name":"da
gVerkoop","description":"omschrijving van 
aspect","formStyle":"left","properties":[{"title":"Datum:","tooltip":"Datum van 
dagverkoop","minlength":null,"maxlength":524288,"className":"   required date  
","mandatory":true,"name":"DVKDatum","namespace":"frmben","type":"d_date","field
Type":"text","id":"dp1330382224787"},{"title":"V-Power*","tooltip":"dagverkoop 
in 
liters","regex":"9999999.99","minlength":null,"maxlength":524288,"className":"  
 required 
isOtherExp","mandatory":true,"name":"DVKVPower","namespace":"frmben","type":"d_f
loat","fieldType":"text","id":""},{"title":"Diesel:*","tooltip":"dagverkoop in 
liters","regex":"999999.99","minlength":null,"maxlength":524288,"className":"  
required 
isOtherExp","mandatory":true,"name":"DVKDiesel","namespace":"frmben","type":"d_f
loat","fieldType":"text","id":""},{"title":"CRT*","tooltip":"dagverkoop in 
liters","minlength":null,"maxlength":524288,"className":"  
required","mandatory":true,"name":"DVKCRT","namespace":"frmben","type":"d_float"
,"fieldType":"text","id":""},{"title":"V-Power Diesel:*","tooltip":"dagverkoop 
in liters","minlength":null,"maxlength":524288,"className":"  
required","mandatory":true,"name":"v-powerdiesel","namespace":"frmben","type":"d
_text","fieldType":"text","id":""},{"title":"Euro95:*","tooltip":"dagverkoop in 
liters","minlength":null,"maxlength":524288,"className":"  
required","mandatory":true,"name":"DVKEuro95","namespace":"frmben","type":"d_flo
at","fieldType":"text","id":""},{"title":"Omzet olie per 
week:","tooltip":"Alleen op zondagen invoeren en in 
euro's","regex":"999999.99","minlength":null,"maxlength":524288,"className":" 
isOtherExp","mandatory":false,"name":"DVKOmzetOliePWk:","namespace":"frmben","ty
pe":"d_float","fieldType":"text","id":""},{"title":"Wassen:","tooltip":"aantal 
wassingen per week (alleen op zondagen 
invoeren)","minlength":null,"maxlength":524288,"className":" 
numOnly","mandatory":false,"name":"DVKWassingen","namespace":"frmben","type":"d_
int","fieldType":"text","id":""}]}],"namespaces":[{"@uri":"frmben.model","@prefi
x":"frmben"}],"description":"Alfresco Form Builder 
Project","author":"admin","name":"benschopforms","version":"1.0","imports":[{"@u
ri":"http://www.alfresco.org/model/dictionary/1.0","@prefix":"d"},{"@uri":"http:
//www.alfresco.org/model/content/1.0","@prefix":"cm"}]}

What version of the product are you using? On what operating system?
1.1.9, os ubuntu, alfresco ce 4.0.d

Please provide any additional information below.

Original issue reported on code.google.com by aw...@scapeler.com on 27 Feb 2012 at 10:57

Attachments:

GoogleCodeExporter commented 9 years ago
I see these two lines in alfresco.log:
23:59:53,279 WARN  [alfresco.missingProperties] Failed to find property 'title' 
for node: workspace://SpacesStore/91b95868-8bb3-4e63-9d83-fdb908366118
23:59:53,279 WARN  [alfresco.missingProperties] Failed to find property 
'description' for node: 
workspace://SpacesStore/91b95868-8bb3-4e63-9d83-fdb908366118

deactivated model, filled in title, description, author. save and activate 
model again.

no change in layout.

And this is my model:
<?xml version="1.0" encoding="UTF-8"?><!-- First namespace prefix in namespace 
array is used for model prefix --><model name="frmben:benschopforms" 
xmlns="http://www.alfresco.org/model/dictionary/1.0">   <description>Alfresco 
Form Builder 
Project</description>   <author>admin</author>  <version>1.0</version>  <imports>   <i
mport uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />  <import 
uri="http://www.alfresco.org/model/content/1.0" prefix="cm" 
/>  </imports>  <namespaces>    <namespace uri="frmben.model" prefix="frmben" 
/>  </namespaces>   <aspects>       <aspect 
name="frmben:dagVerkoop">           <title>dagVerkoop</title>           <properties>                <propert
y 
name="frmben:DVKDatum">                 <title>Datum:</title>                   <type>d:date</type>             </p
roperty>                <property 
name="frmben:DVKVPower">                    <title>V-Power*</title>                 <type>d:float</type>            
    </property>             <property 
name="frmben:DVKDiesel">                    <title>Diesel:*</title>                 <type>d:float</type>            
    </property>             <property 
name="frmben:DVKCRT">                   <title>CRT*</title>                 <type>d:float</type>                </prop
erty>               <property name="frmben:v-powerdiesel">                  <title>V-Power 
Diesel:*</title>                    <type>d:text</type>             </property>             <property 
name="frmben:DVKEuro95">                    <title>Euro95:*</title>                 <type>d:float</type>            
    </property>             <property name="frmben:DVKOmzetOliePWk:">                   <title>Omzet olie 
per week:</title>                   <type>d:float</type>                </property>             <property 
name="frmben:DVKWassingen">                 <title>Wassen:</title>                  <type>d:int</type>          
    </property>         </properties>       </aspect>   </aspects></model>

Original comment by aw...@scapeler.com on 27 Feb 2012 at 11:07

GoogleCodeExporter commented 9 years ago
files attached

Original comment by aw...@scapeler.com on 27 Feb 2012 at 11:13

Attachments:

GoogleCodeExporter commented 9 years ago
Lots of bug fixes have been made and validation is tighter on the latest 
release. This should help guide the creation of forms. I could not replicate 
the bug and no others have came across it. There is a webinar I could walk 
through if there is time.  

Original comment by mike.pri...@abstractive.ca on 28 Mar 2012 at 3:33