Disable C# Code When Customiztion Is Opened Read Only

There is a myForm.IsReadOnly (or something similar) property on the form, check for that before excecuting your code.


Jose C Gomez
Software Engineer



T: 904.469.1524 mobile

E: jose@...
http://www.josecgomez.com

     Â


Quis custodiet ipsos custodes?


On Fri, Jun 20, 2014 at 11:18 AM, tsmassey@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p></p><p><span></span></p><p>We have some customizations that have code called by clicking on a button.  We need to deploy the customization in read only mode for some users and would like to do that through creating a menu ID with the read only parameter.  However, the code behind the button can still be executed in a module deployed with the read only option.  </p>


How can we use the read only variable from the software environment to disable the button in the customization code so that we can avoid having a second customization?

</div>
 


<div style="color:#fff;min-height:0;"></div>

We have some customizations that have code called by clicking on a button.  We need to deploy the customization in read only mode for some users and would like to do that through creating a menu ID with the read only parameter.  However, the code behind the button can still be executed in a module deployed with the read only option. 


How can we use the read only variable from the software environment to disable the button in the customization code so that we can avoid having a second customization?