Friday, 25 May 2012

Making dynamically Field Read only at UI or Applet level


Making dynamically Field Read only at UI.

There are several areas we may get requirements to have field read-only dynamically at UI/Applet level. So, generally most of us uses Field Read-Only Field BC user property by using some calculated fields or flags to implement this But  field will not be editable for updating from Script/WF or any other interfaces. 

We can achieve this by using Applet Level user property "Read Only Field N". This user property allows you to make field read only on UI, by allowing field updates from workflow or scripting. 



The syntax goes like:

Name: Read Only Field 1
Value: 'FieldName', 'ConditionFieldName'


FieldName = Name of the field which we want to be read-only
ConditionFieldName = Name of the field which specifies condition to be read only



@Prakash

3 comments:

  1. Useful user property. Good Posting.

    ReplyDelete
  2. I tried this approach with Order Entry - Order Form Applet (Sales), and it didn't work. Does it depend on the class of the applet?

    ReplyDelete
    Replies
    1. Jagath Chithira15 April 2016 at 15:46

      Yes. It will work only for the class 'CSSFrameListQuoteItem'

      Delete