More actions
No edit summary |
No edit summary |
||
Line 124: | Line 124: | ||
| style="border: 1px solid;" | [[Tabulation_saveAsReport|Tabulation_saveAsReport(name, parentId, permissionGroups[, overwrite])]] | | style="border: 1px solid;" | [[Tabulation_saveAsReport|Tabulation_saveAsReport(name, parentId, permissionGroups[, overwrite])]] | ||
| style="border: 1px solid;" | [[Tabulation_class|Tabulation.SaveAsReport(name, parentId, permissionGroups, overwrite)]] | | style="border: 1px solid;" | [[Tabulation_class|Tabulation.SaveAsReport(name, parentId, permissionGroups, overwrite)]] | ||
<source lang="javascript"> | |||
string name = "Report Test"; | |||
number parentId = 17148135; | |||
number groupId1 = 17146562; | |||
number groupId2 = 17146563; | |||
Dictionary permissionGroups = {groupId1: "Write", groupId2: "FullControl"}; | |||
bool overwrite = true; | |||
TabulationDiagramParameter p = new TabulationDiagramParameter (); | |||
Tabulation t = new Tabulation(); | |||
p.DataCache = 16749647; | |||
t.CreateCrossDiagram ({"Q1"},{"Q2"}, p); | |||
t.SaveAsReport(name, parentId, permissionGroups, overwrite); | |||
</source> | |||
| style="border: 1px solid;" | New class Tabulation | | style="border: 1px solid;" | New class Tabulation | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
| style="border: 1px solid;" | [[updateGroupPermission|updateGroupPermission(resourceId, | | style="border: 1px solid;" | [[updateGroupPermission|updateGroupPermission(resourceId, permissionGroups)]] | ||
| style="border: 1px solid;" | [[updateGroupResourceIdPermission|updateGroupResourceIdPermission(resourceId, | | style="border: 1px solid;" | [[updateGroupResourceIdPermission|updateGroupResourceIdPermission(resourceId, permissionGroups)]] | ||
<source lang="javascript">number resourceId = | <source lang="javascript"> | ||
number groupId1 = | number resourceId = 17148446; | ||
number groupId2 = | number groupId1 = 17146562; | ||
Dictionary | number groupId2 = 17146563; | ||
updateGroupResourceIdPermission(resourceId, | Dictionary permissionGroups = {groupId1: "Write", groupId2: "FullControl"}; | ||
updateGroupResourceIdPermission(resourceId, permissionGroups); | |||
</source> | |||
| style="border: 1px solid;" | | | style="border: 1px solid;" | | ||