checkbox issue
-
Hi, I have a real problem :( I have been trying for days to thik of a solution for the following; I have a table called AccessGroup and another called AccessPermission. I have a link table between the 2 because you have any number of AcessGroups assigned to any number of AccessPermissions. When I want to ADD an access group, I simply input and Name for the AccessGroup like ADMIN. Then I select from a DataGrid, using checkboxes, AccessPermissions. I can choose as many as I want. When I click on SAVE, the link table will be populated with the relationship between the ADMIN AccessGroup and the AccessPermissions Chosen. Here's the problem. When I select an AccessGroup from a DataGrid for updating, The ADD page appears with a textbox loaded with "ADMIN" and it is ReadOnly. That's fine. What I also want is for the checkboxes in the DataGrid which has all the AccessPermissions in a list to be CHECKED depending on what AccessPermission are assigned for that AccessGroup. I hope that made sense. Please help. Thanks!
-
Hi, I have a real problem :( I have been trying for days to thik of a solution for the following; I have a table called AccessGroup and another called AccessPermission. I have a link table between the 2 because you have any number of AcessGroups assigned to any number of AccessPermissions. When I want to ADD an access group, I simply input and Name for the AccessGroup like ADMIN. Then I select from a DataGrid, using checkboxes, AccessPermissions. I can choose as many as I want. When I click on SAVE, the link table will be populated with the relationship between the ADMIN AccessGroup and the AccessPermissions Chosen. Here's the problem. When I select an AccessGroup from a DataGrid for updating, The ADD page appears with a textbox loaded with "ADMIN" and it is ReadOnly. That's fine. What I also want is for the checkboxes in the DataGrid which has all the AccessPermissions in a list to be CHECKED depending on what AccessPermission are assigned for that AccessGroup. I hope that made sense. Please help. Thanks!
Can you create an event so that when an item from AccessGroup is selected and then the 'Update' button is pressed, that the table that opens up has the selections of all the possible accesspermissions. Then all you need to do is run through a loop for each permission setup for the item on accessgroup and have it check the neccessary boxes.