BO CheckSecurity Event


Author
Message
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
The documentation says that the event has an actionrequested, allowed and a businessobject for the checksecurityeventargs.  All I see is permissioninfo and permissionkey, am I looking at the incorrect event?

Scott

Replies
Chris Diesel
Chris Diesel
StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)
Group: StrataFrame Users
Posts: 74, Visits: 300
I know this is an old thread, but how do I deny an edit or disable edit based on the status of a record not based on security?  In other words, a record is "closed out" and not allowed to be edited anymore by anyone (once again, not a security issue).  I would prefer to just disable the edit button vs the user having to click on edit and then get a message but either way is better than nothing.
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
I guess I may not understand your environment as this would be something that I would handle in code and just disable any edit actions or when IsDirtyChanged fired (if you are allowing edits without being in edit mode) I would test then, show a message box and then cancel the changes.



But the easiest way would be to just disable the edit if it isn't allowed. The only issue with this is if the Edit is just "disabled" then users will generally wonder why. So I generally try to show some type of message, label, etc. so that they are "clued in" as to why they cannot edit the record.



But like this thread suggests, you can use the CheckSecurity event to prevent editing as well. So all in all there are number of ways to go about this.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Scott - 19 Years Ago
Scott - 19 Years Ago
Trent L. Taylor - 19 Years Ago
Scott - 19 Years Ago
StrataFrame Team - 19 Years Ago
                         Thanks. On an off note have you every seen the text in richtextboxes...
Scott - 19 Years Ago
                             I haven't heard of this before...the only thing I can think of is that...
Trent L. Taylor - 19 Years Ago
                                 Thanks, that was the first thing that poped into my head also, but...
Scott - 19 Years Ago
                                 One of the guys here figured it out. Want to have some fun..... set...
Scott - 19 Years Ago
                                     Really!!! :laugh: I guess that is good to know. Never right trim and...
Trent L. Taylor - 19 Years Ago
Chris Diesel - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Chris Diesel - 16 Years Ago
Trent L. Taylor - 16 Years Ago
                 I would please like to see a C# example....
Russell Scott Brown - 16 Years Ago
                     C#

[codesnippet]if(e.PermissionKey.Equals("MyEditKey"))...
Trent L. Taylor - 16 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search