ViewSecurityKey in InheritsForm


Author
Message
Malcon M. Mikami
Malcon M. Mikami
StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)
Group: Forum Members
Posts: 60, Visits: 1.3K
By testing the safety of the form in an inherited form, the property in the form ViewSecurityKey "son" does not work, only the form of "father

Any suggestions?

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Not sure what you mean by doesn't work. Are you using role based security? Check out the "Form-Level Security Keys" help topic to see how it should work. There's a table at the bottom outlining what should be happening.
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
I really don't understand either.  Greg had some good questions, please answer.  Thanks.
Malcon M. Mikami
Malcon M. Mikami
StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)
Group: Forum Members
Posts: 60, Visits: 1.3K
Excuse my poor English. Let me explain better:
I have 2 forms:
frmMaster = "father" and frmAccounts = "son".
The form frmAccounts inherits the form frmMaster
My project is using the integrated security of Strata. When I put the key in the form of ViewSecurityKey property frmMaster it works is the key for permission. When I put the key in the same form he frmAccounts not the key to encotra permission. What may be happening?

Malcon M. Mikami
Malcon M. Mikami
StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)
Group: Forum Members
Posts: 60, Visits: 1.3K
Excuse my poor English. Let me explain better:
I have 2 forms:
frmMaster = "father" and frmAccounts = "son".
The form frmAccounts inherits the form frmMaster
My project is using the integrated security of Strata. When I put the key in the form of ViewSecurityKey property frmMaster it works is the key for permission. When I put the key in the same form he frmAccounts not the key to find permission. What may be happening?

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
No problem with the poor English BigGrin



You aren't overloading or overriding the property are you? ViewSecurityKey is actually implemented way down in the SF BaseForm, with is sub-classed by the SF StandardForm, which your master form is using....so I don't know why it wouldn't work for one more level. So it probably likely that you are doing something on the accounts form that is messing things up. Ermm



I'd try a couple of things to narrow down the problem. First, check our security key and also the user your testing with, make sure everything is setup correctly. Next, if you have another form that is inherited from master, attempt to do the same security on it (temporarily, just for testing). If that also does not work, I'd create a new form with no code, just the security key, inherit from master. If that does not work, create a sample app, see what happens.



Also, what exactly is it doing? Always opening? Throwing an exception?
Malcon M. Mikami
Malcon M. Mikami
StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)
Group: Forum Members
Posts: 60, Visits: 1.3K
Solved!
In Form father in contrutor method, has the following command:

InitializeComponent ();
this.Visible = false; <------

The method. He calls the checksecurity visible, but the key is empty because the form has not been initialized.

Removed the visible, everything OK
 
Tanks boys~!

Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
There... I'm not useful even to translate posts anymore... BigGrin

Good you got it working, Malcon.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Cool. Glad you found the problem!



Ivan, don't get down. I was *almost* about to yell uncle, but Malcon got it working too soon! Wink
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