What you probably want to do is: * Remove the <READONLY /> from the field definition.
and add the ReadOnly="True" attribute to the Layout/Control. e.g. <Control FieldName="System.Title" Type="FieldControl" Label="&Title:" LabelPosition="Left" ReadOnly="True" /> Note that somebody who opens in Excel, etc, will still be able to modify this field. Regards, Grant Holliday | Team System MVP<https://mvp.support.microsoft.com/profile/Grant.Holliday> Email: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> | Blog: http://ozgrant.com<http://ozgrant.com/> | Mobile: +61 (0)402 414 446 ________________________________ From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Prior, David [EMAIL PROTECTED] Sent: Friday, 11 April 2008 3:23 PM To: [email protected] Subject: [OzTFS] Custom WIT Templates problem HI all, I am creating a custom WIT template and am having some troubles with the use of the <READONLY /> field rule. What I would like to be able to do is have various fields appear as read-only to the user, but have them system populated based on things like currentuser and clock. It seems that if I use the <READONLY /> field rule then it means it’s read-only for both the user and the system? Is this correct? An example of some XML follows. <FIELD refname="mynamespace.Testing.RaisedBy"> <COPY from="currentuser" /> <VALIDUSER /> <READONLY /> </FIELD> So that the field is populated by the system using the currentuser, and not allow the user to change it’s value. Any suggestions would be appreciated. Cheers, David Prior Senior Developer KAZ ACT | Professional Services | KAZ Group Pty Ltd 19 – 25 Moore Street | Turner ACT 2612 (02) 6219 0880 | 0411 449 496 [EMAIL PROTECTED]<UrlBlockedError.aspx> | www.kaz-group.com<http://www.kaz-group.com> ----------------------------------------------------------------------------------------- This communication may contain confidential information and/or copyright material of KAZ Group Pty Ltd ABN 25 002 124 405 and its related bodies corporate. It may also be the subject of legal professional privilege. If you are not an intended recipient, you must not keep, forward, copy, use, save or rely on this communication and any such action is unauthorised and prohibited. If you have received this communication in error, please reply to this e-mail to notify the sender of its incorrect delivery, and then delete both it and your reply. ________________________________ OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. View the web archives at http://www.mail-archive.com/[email protected]/ Powered by mailenable.com, supported by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. View the web archives at http://www.mail-archive.com/[email protected]/ Powered by mailenable.com, supported by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. View the web archives at http://www.mail-archive.com/[email protected]/ Powered by mailenable.com, supported by www.readify.net
