How to disable 'Edit' button when displaying the information of object on UI

Nov 29, 2012 at 1:12 PM

I would like to disable 'Edit' button when an object is displayed on UI. We don't want to use edit button to modify properties in one go. Instead, we are using action methods to modify each property one by one.

Could you point me where I should look into to do the modification? Many thanks.



Nov 29, 2012 at 1:48 PM

If there are no editable properties the edit button will not be displayed.

So you could mark all properties and collection 'Disabled' or simply marking the object 'Immutable' should work.

Nov 29, 2012 at 1:49 PM
doesn't [Immutable] also prevent actions from being rendered?

Nov 29, 2012 at 1:54 PM

No - does it on Isis ?

Nov 29, 2012 at 2:35 PM

Before posting this question, I was going to try 'Immutable', but in the manual, it states : 

"The Immutable attribute may be applied to a class. The framework does not allow the state of such objects to be changed through the user interface and it should be considered a programmer error to do so programmatically"

It gave me the impression that if I do that, I can't use action method to modify each property as well. 

However, after I tried put in 'Immutable', it worked. Edit button disappeared, and I can still modify property using actions. So it seems to me that statement is not correct. 


Nov 29, 2012 at 2:41 PM
per xiaoyi's reply, I think that is what I was remembering.

Nov 30, 2012 at 6:45 AM

I will review the documentation on this  -  needs some clarification.