StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
BO CheckSecurity Event
BO CheckSecurity Event
Post Reply
Like
1
BO CheckSecurity Event
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Scott
Scott
posted 19 Years Ago
ANSWER
HOT
Topic Details
Share Topic
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
Reply
Like
1
Replies
Chris Diesel
Chris Diesel
posted 16 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 74,
Visits: 300
Sorry I'm so clueless, but could you please provide a sample of using the CheckSecurity event to prevent an edit. I see conflicting info in samples here on the board vs the documentation vs what is actually available when I'm trying to code CheckSecurityEventArgs (using version 1.6.6.9). How is the edit actually cancelled through this event?
Reply
Like
0
Trent Taylor
Trent Taylor
posted 16 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
Well, it should give you the permission key being checked. You can then create the permission info (or at least I am pretty sure you should be able to)
. Try something like this:
If e.PermissionKey.Equals("MyEditKey") Then
e.PermissionInfo = New MicroFour.StrataFrame.Security.PermissionInfo(MicroFour.StrataFrame.Security.PermissionAction.Deny, "Denied", MicroFour.StrataFrame.Security.DeniedActions.Message)
End If
Let me know if you need a C# sample instead.
Reply
Like
0
Russell Scott Brown
Russell Scott Brown
posted 16 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 124,
Visits: 597
I would please like to see a C# example....
Russ Brown (Using C#2010/SQL Server 2008)
Reply
Like
0
Trent Taylor
Trent Taylor
posted 16 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
C#
if(e.PermissionKey.Equals("MyEditKey"))
{
e.PermissionInfo = new MicroFour.StrataFrame.Security.PermissionInfo(MicroFour.StrataFrame.Security.PermissionAction.Deny, "Denied", MicroFour.StrataFrame.Security.DeniedActions.Message);
}
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
BO CheckSecurity Event
Scott
-
19 Years Ago
[quote][b]Scott (10/30/2006)[/b][hr]The documentation says that the...
Scott
-
19 Years Ago
This event has changed with the advent of the Role-Based Security. If...
Trent L. Taylor
-
19 Years Ago
We didn't purchase the security module. Will I still be able to...
Scott
-
19 Years Ago
Yes, all of the security hooks are still throughout the framework. In...
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
I know this is an old thread, but how do I deny an edit or disable...
Chris Diesel
-
16 Years Ago
I guess I may not understand your environment as this would be...
Trent L. Taylor
-
16 Years Ago
Sorry I'm so clueless, but could you please provide a sample of using...
Chris Diesel
-
16 Years Ago
Well, it should give you the permission key being checked. You can...
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
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search