locked
Using Boolean RRS feed

  • Question

  • Hi

    I have a boolean field called active inside my consumer table, if the field has been deselected can I make the entire row as read only say Consumer name, address etc until otherwise rea-activated ?

    Regards

    Prasad

    Friday, June 15, 2012 11:24 AM

Answers

  • Hi Prasad,

    You should be able to accomplish what you want by utilizing the IsReadOnly interception methods that are available on all of the table fields.  You could indicate each field is read-only based on the current active state.  Here is an example:

    partial void Name_IsReadOnly(ref bool result)
    {
        result = !this.IsActive;
    }
    
    partial void Address_IsReadOnly(ref bool result)
    {
        result = !this.IsActive;
    }
    

    Friday, June 15, 2012 12:52 PM