Readonly BO


Author
Message
Alex Bibiano González
Alex Bibiano González
StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)
Group: Forum Members
Posts: 31, Visits: 125
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.

Peter Jones
Peter Jones
Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)
Group: Forum Members
Posts: 386, Visits: 2.1K
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

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search