-
Notifications
You must be signed in to change notification settings - Fork 0
/
ReportPermision1.page
62 lines (59 loc) · 2.72 KB
/
ReportPermision1.page
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!-- @auther Avijt -->
<apex:page controller="reportPermissionController" readOnly="true">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" />
<style>
.table-outer {
border-collapse: collapse;
border : 2px solid;
}
.table-inner {
//border-collapse: collapse;
border : 1px solid;
}
table.table-outer { border-collapse: collapse;
border : 1px solid;}
table.table-outer tr {border : 1px solid;}
table.table-outer th {border : 1px solid;}
table.table-outer td {border : 1px solid;}
table.table-outer.table-inner { border : 1px solid;}
table.table-outer.table-inner td {border : 1px solid;}
</style>
<table id="table" class="table-outer">
<thead>
<tr id="header-row">
</tr>
</thead>
<tr>
<apex:repeat value="{!outputWrapMap}" var="key" >
<script>
var tr = document.getElementById('table').tHead.children[0],
th = document.createElement('th');
th.innerHTML = "{!key}";
tr.appendChild(th);
</script>
<td valign="top">
<table class="table-inner">
<th>Object Name</th>
<th>Create</th>
<th>Read</th>
<th>Update</th>
<th>Delete</th>
<th>View All</th>
<th>Modify All</th>
<apex:repeat value="{!outputWrapMap[key]}" var="keyvalue" >
<tr>
<td valign="top" style="text-align:left">{!keyvalue.objectName}</td>
<td valign="top" style="text-align:center">{!IF(!keyvalue.permissionsCreate == TRUE,'X','')}</td>
<td valign="top" style="text-align:center">{!IF(!keyvalue.permissionsRead == TRUE,'X','')}</td>
<td valign="top" style="text-align:center">{!IF(!keyvalue.permissionsEdit == TRUE,'X','')}</td>
<td valign="top" style="text-align:center">{!IF(!keyvalue.permissionsDelete == TRUE,'X','')}</td>
<td valign="top" style="text-align:center">{!IF(!keyvalue.permissionsViewAllRecords == TRUE,'X','')}</td>
<td valign="top" style="text-align:center">{!IF(!keyvalue.permissionsModifyAllRecords == TRUE,'X','')}</td>
</tr>
</apex:repeat>
</table>
</td>
</apex:repeat>
</tr>
</table>
</apex:page>