Topic
  • No replies
_Martin_
_Martin_
8 Posts

Pinned topic How to "hide on new" and set "read only" properties in a detail view form?

‏2011-08-01T23:40:59Z |
Hello,

Is there a way to hide a property on entity creation time in a detail view form? I have tried this in the detail view definition file, but the property is shown nevertheless:

<property hide-on-new=
"true"> <property-name>XYZ_test</property-name> </property>

Also, is there a way to set a property read only in the detail view form? I have tried this in the detail view definition file, the property is not shown and...

<property read-only=
"true"> <property-name>XYZ_test2</property-name> </property>

... when I create a new entity and save it, I get the following error:

A problem occurred creating the Concept: zzzzzzz. Reason: GSR0018E: Object 
"zzzzzzz" is missing the required business model property 
"XYZ_test2" of type 
"http://www.w3.org/2001/XMLSchema#string". GSR0018E: Object 
"zzzzzzz" is missing the required business model property 
"XYZ_test2" of type 
"http://www.w3.org/2001/XMLSchema#string".

I'd like to hide a property on creation, fill it with a modification plug-in and set it read only so no one can modify it after that. Is this possible?
Best regards,
Martin
Customized basic profile @ WSRR v7.0 FP4 + DB2 9.7 FP2