| | | StrataFrame Beginner
       
Group: StrataFrame Users Last Login: 2 days ago @ 2:23:16 AM Posts: 12, Visits: 45 |
| | Is there a property or some way to make a BO readonly. I have a CategoryBO and a CategoryListBO. The CategoryListBO has only a subset of the fields from the CategoryBO, and I use it to populate some TreeLists and other controls (I don't use it to update the DB). Now I want configure the BO to be readonly. Is it possible? Thanks, Alex B. |
| | | | StrataFrame User
       
Group: StrataFrame Users Last Login: Today @ 12:50:49 AM Posts: 217, Visits: 1,057 |
| | Hi, We generally acomplish that in (DevEx) grids by setting them to "not editable". Also, each BO has a BeforeSave event with e.Cancel property which you can use to discard the save - this may be better then you can turn ReadOnly on / off programatically. Cheers, Peter |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 11:13:06 AM Posts: 4,104, Visits: 4,176 |
| | Peters post is good information. The BO has logic to add security to prevent adds, edits, and deletes based on permissions...however, in this case you are just wanting to use the BO to display information. So what ever controls to which you are binding can just be set to read-only to prevent user interaction. If you REALLY want to, you can change the properties to ReadOnly, but this would be overkill since you are in control of the UI. |
| |
|
|