Current filter:
                                You should refresh the page.
                                0
                                  • Hello!

                                    I have four bussiness classes: Group, Form, Report and Value. Groups have many Forms and Forms have many Reports, wich in exchange have many Values.

                                    I need to create role for user, so he can edit only Values property of Report class. He also must have permission to navigate to Forms list view and Reports list view via Navigation menu.

                                    So, i have created a Role like this:

                                    	
                                    [C#]
                                    { SecuritySystemTypePermissionObject TypePermission = OperatorRole.CreateItem(typeof(Group)); { SecuritySystemMemberPermissionsObject MemberPermission = TypePermission.CreateMemberPermissionsObject(); MemberPermission.Members = @"Forms"; MemberPermission.AllowWrite = true; } } { SecuritySystemTypePermissionObject TypePermission = OperatorRole.CreateItem(typeof(Form)); TypePermission.AllowNavigate = true; { SecuritySystemMemberPermissionsObject MemberPermission = TypePermission.CreateMemberPermissionsObject(); MemberPermission.Members = @"Reports"; MemberPermission.AllowWrite = true; } } { SecuritySystemTypePermissionObject TypePermission = OperatorRole.CreateItem(typeof(Report)); TypePermission.AllowNavigate = true; { SecuritySystemMemberPermissionsObject MemberPermission = TypePermission.CreateMemberPermissionsObject(); MemberPermission.Members = @"Values"; MemberPermission.AllowWrite = true; } }

                                    This role have also permission to read all objects and to edit Value class object.

                                    It all work fine, IF user first navigate to Reports navigation ListView node. After he opens a Report from this view, Values ListView property is editable. BUT if he opens Forms ListView first, then open appropriate Report from Reports ListView property of opened Form, then Values ListView property of opened Report is not editable.

                                    How i can make Values property of Report class editable for user, regardless of wich ListView was parent of current Report DetailView?

                                    Thanks!

                                • Dan (DevExpress) 06.28.2012

                                  Please describe in greater detail permissions that are associated with the Value class. The permissions that you have posted don't grant any operation for the Value class. Alternatively, create a simple application that demonstrates this issue. This will help us understand the situation and provide you with an appropriate solution.

                                • Taradanov Alexey 06.29.2012

                                  Here. Log in as Operator, navigate to Indicator Form, open record, in the detal view open Indicator Form Report, open any Indicator Form Cell Value and you'll see, that you cant edit it. Now, navigate to Indicator Form Report, open record, open any Indicator Form Cell Value and you'll be able to edit it. I need to let user edit it, regardless of from where he opened Indicator Form Cell Value.

                                  Hope, it make any sense.

                                • Dan (DevExpress) 07.02.2012

                                  Thank you for the update.

                                  We're working on your issue and we will post our resolution as soon as possible. Please stay tuned.

                                You must  log in  or  register  to leave comments

                                2 Solutions

                                Creation Date
                                Rating
                                Importance
                                Sort by
                                0

                                Hello,

                                Our research has shown that for the correct work it is necessary to give the Write permission for the IndicatorForm member of the IndicatorFormReport class (this member is a back association reference). I hope you find this information helpful.

                                Show all comments
                                You must  log in  or  register  to leave comments
                                0

                                This behavior is a specificity of XAF user interface part and is not related to security: the IndicatorFormReports editor is marked as read-only in the IndicatorForm_DetailView view, so the opened IndicatorFormReport_DetailView view is also opened as read-only.
                                In contrast, the IndicatorFormReport_DetailView view is not set read-only when it is opened from a root ListView. That is why the IndicatorFormReport_DetailView view is read-only in one case and editable in another. We will see how to improve this situation though I cannot promise any time frame because the old functionality is based on this behavior.

                                You can find more details about how to diagnose this situation at Why is it disabled?.

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.