StrataFrame Forum

Specifying replacement values

http://forum.strataframe.net/Topic4692.aspx

By StarkMike - 11/21/2006

I'm going to create a message in the messaging component that I am going to use in RBS for an access denied message. I was wondering if there was a way that I could specify replacement values in RBS for the message in the messaging component. This way I dont have to create separate messages for each form. Granted I'll have to create a permission key for each form but i'll only need one message.



Does this make sense? I tried to look in the documentation and couldnt find anything, or maybe i didnt look hard enough. Tongue
By StrataFrame Team - 11/21/2006

You can either set the default message key within the SecurityBasics class... I think it's SecurityBasics.DefaultMessageKey, and leave all of the messages blank within the security editor (it uses the default if you don't specify one).  Or, you can just assign the same permission to each of the forms so that they all have the same message.
By StarkMike - 11/21/2006

You can either set the default message key within the SecurityBasics class... I think it's SecurityBasics.DefaultMessageKey, and leave all of the messages blank within the security editor (it uses the default if you don't specify one).  Or, you can just assign the same permission to each of the forms so that they all have the same message.

Here's what I want my message to look like in the messaging:

"You do not have access to {0}"

Is there anyway I could specify {0} in the message field of the denied action in the permission key?

FormAccessDenied Inventory

Thanks

By StarkMike - 11/21/2006

sorry, i pasted your reply in my reply so i had a reference then forgot to delete it. Hehe
By StarkMike - 11/29/2006

I just noticed you havent replied to my reply on this thread BigGrin Am what i am asking able to be done?