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



How to setup read-only formsExpand / Collapse
Author
Message
Posted 03/20/2007 3:00:14 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 3:26:36 PM
Posts: 1,193, Visits: 3,031
I have a bunch of forms that will be either editable or readonly, based on the user's permission.

My first try was to create the permission, then use roles to either allow GRANT or READONLY. I assigned this permission to the forms.....doh, that doesn't work as forms only work with GRANT (anything else is deny).

As I look at the options and the help file, I'm getting lost. I obviously need to set the permission at the BO level, but I'm confused as to how. Specifically, these issues are confusing me:

- there are four security settings on a BO. Do I need to set them for add,delete and update? I understand query is only related to auditing, so that one I won't set (right?)
- The help file says (in the "Security Keys on Forms and Business Objects") to not allow readonly when for permissions that attach to business objects or fields. So, forms don't accept it and business object and fields don't either...I'm confused
- Are maintenance toolbars manages when permission is readonly? How?

So, how do I configure RBS to have a form that is readonly or editable based on a permission?
Post #7610
Posted 03/20/2007 3:24:44 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 08/01/2008 8:53:41 AM
Posts: 2,671, Visits: 1,879
You would need to create a security key (permission) that you want to assign to the business object that will be read-only.  Then, go to the BOMapper and assign that permission key to all of the fields on the business object (the same key to all fields).  Then, when a user has that permission at runtime, any control bound to that field will be read-only.

Only field-level security allows things to be read-only.  We tried allowing forms to be read-only, but it was horribly inefficient to cycle through all of the controls on a form to make them disabled, and you cannot set a form's Enabled property to False without some interresting reprocussions.  So, you'll have to stick to making fields read-only.


www.bungie.net
Post #7613
Posted 03/20/2007 3:55:01 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 3:26:36 PM
Posts: 1,193, Visits: 3,031
Any quick way to do this? Seems like a lot of work for something that I would think would be very common need. (I do understand why it is done at the field level, thanks for the explanation).
Post #7617
Posted 03/20/2007 4:02:06 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 3:26:36 PM
Posts: 1,193, Visits: 3,031
...every single customization that is available for a field in the BO Mapper is available in the customize wizard EXCEPT the security key...Big time enhancement request
Post #7618
Posted 03/20/2007 5:47:44 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 08/01/2008 8:53:41 AM
Posts: 2,671, Visits: 1,879
Aye, quite honestly, we thought about it and left off that field because we were thinking that the security key would be different for each field... and it wasn't until I answered your last post that I even thought about using the same key on all fields to make an entire business object read-only.  I will definitely post this enhancement request


www.bungie.net
Post #7623
Posted 03/20/2007 6:23:39 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 3:26:36 PM
Posts: 1,193, Visits: 3,031
ah, those (us:w00t pesky users!

Thanks! That will help a lot. Setting permissions on each field is trivial but time consuming. The bigger problem is handling all the buttons/toolstrips on each form...aiiiyiiiyiii
Post #7625
« 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 4:00pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 8 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.