StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Specifying replacement valuesExpand / Collapse
Author
Message
Posted 11/21/2006 7:15:57 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
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.
Post #4692
Posted 11/21/2006 8:22:19 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
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.


www.bungie.net
Post #4694
Posted 11/21/2006 8:43:37 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
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

Post #4695
Posted 11/21/2006 8:44:21 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
sorry, i pasted your reply in my reply so i had a reference then forgot to delete it.
Post #4696
Posted 11/29/2006 9:25:19 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
I just noticed you havent replied to my reply on this thread Am what i am asking able to be done?
Post #4845
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 10:53pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.