Copy Role Error


Author
Message
jsantos
jsantos
StrataFrame Novice (104 reputation)StrataFrame Novice (104 reputation)StrataFrame Novice (104 reputation)StrataFrame Novice (104 reputation)StrataFrame Novice (104 reputation)StrataFrame Novice (104 reputation)StrataFrame Novice (104 reputation)StrataFrame Novice (104 reputation)StrataFrame Novice (104 reputation)
Group: StrataFrame Users
Posts: 26, Visits: 87
Hello, 

We have an issue where a user is trying to copy a role via the Role Based Security Editor. There is no error if they try and edit an existing role and try to change the Default Action.

Any ideas? Any help is much appreciated. 

Steps to Reproduce

  • Right click on a role in Security Editor, and select Copy Role
  • Click the radio button 'Create new Role' and press OK. 
  • Give the role a name (don't think this matters)
  • click on the 'Permissions' tab.
  • Select an item
  • Under the 'Default Action' drop down, choose anything and and receive an error.
"BusinessLayerException
  The CurrentRow for table '[dbo].[SFSPermissions]' could not be evaluated because the CurrentRowIndex is out of range.  Business object record count: 0.  CurrentRowIndex: -1.

Source     : MicroFour StrataFrame Business

Stack Trace: 
   at MicroFour.StrataFrame.Business.BusinessLayer.get_CurrentRow()
   at MicroFour.StrataFrame.Security.RoleEditor.SaveData(TreeNode Node, SetDataPiece SetPiece)
   at MicroFour.StrataFrame.Security.RoleEditor.cboAction_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ComboBox.WndProc(Message& m)
   at MicroFour.StrataFrame.UI.Windows.Forms.ComboBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
   at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)"
Reply
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi JSantos,

Do the following to test with the StrataFlix sample, my code is in VB
  1. Open the FixMain.vb main form.
  2. Drop a Button on top of the MainHeaderControl1 ex: Button1.
  3. Add the following code to the FixMain form:


Private Sub Button1_Click(sender As Object, e As EventArgsHandles Button1.Click
      ShowSecurityDialog()
End Sub

Private Sub ShowSecurityDialog()
      Dim showPermissionFlag As Boolean = False
      Dim showRestrictionSetsFlag As Boolean = False
      If MicroFour.StrataFrame.Security.SecurityBasics.CurrentUser.IsAdministrator Then
          showPermissionFlag = True
          showRestrictionSetsFlag = True
      End If
      '-- Create the form and show it
      Using loDialog As New MicroFour.StrataFrame.Security.SecurityDialog(showPermissionFlag, showRestrictionSetsFlag)
          loDialog.ShowDialog()
      End Using
End Sub


Now run the application and login with the current credentials then click your button and the Security Editor will show up.
You will have no data there since there is no really a Security metadata shipped with StrataFlix, but you can create users
and roles and then test if you can copy those roles as in your real application.

See this short video showing the same steps (sorry no audio)
http://screencast.com/t/HVxL8Fn2

Hope this help you figure out your issue.


Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
jsantos - 10 Years Ago
Trent L. Taylor - 10 Years Ago
jsantos - 10 Years Ago
jsantos - 10 Years Ago
Trent L. Taylor - 10 Years Ago
jsantos - 10 Years Ago
Trent L. Taylor - 10 Years Ago
jsantos - 10 Years Ago
jsantos - 10 Years Ago
Trent L. Taylor - 10 Years Ago
jsantos - 10 Years Ago
Trent L. Taylor - 10 Years Ago
     PM sent.
jsantos - 10 Years Ago
jsantos - 10 Years Ago
Edhy Rijo - 10 Years Ago
jsantos - 10 Years Ago
Trent L. Taylor - 10 Years Ago
jsantos - 10 Years Ago
jsantos - 10 Years Ago
Trent L. Taylor - 10 Years Ago
Edhy Rijo - 10 Years Ago
jsantos - 10 Years Ago
Edhy Rijo - 10 Years Ago
jsantos - 10 Years Ago
jsantos - 10 Years Ago
Edhy Rijo - 10 Years Ago
jsantos - 10 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search