API/CodeSamples/DefaultSharingRights.md
... ...
@@ -14,7 +14,7 @@ Gets or sets the Default Sharing Rights. Defines sharing rights that are assigne
14 14
15 15
Setting this will change what is displayed in the "Rights" dropdown menu on the [[Misc tab|http://wiki.izenda.us/Guides/ReportDesign/9.0-Misc-Tab#9.1-Share-With-&-Rights]] of the report designer to the value specified. This can save your users the trouble of having to switch from the default value.
16 16
17
-**Default value**: None
17
+**Default value**: Null
18 18
19 19
##Global.asax (C♯)
20 20
... ...
@@ -31,7 +31,7 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
31 31
AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";
32 32
AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
33 33
Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
34
- AdHocSettings.DefaultPreviewResults = 500;
34
+ AdHocSettings.DefaultSharingRights = "Locked"; //The relevant setting
35 35
HttpContext.Current.Session["ReportingInitialized"] = true;
36 36
}
37 37
}
... ...
@@ -52,7 +52,7 @@ Public Class CustomAdHocConfig
52 52
AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"
53 53
AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"
54 54
Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig()
55
- AdHocSettings.DefaultPreviewResults= 500
55
+ AdHocSettings.DefaultSharingRights = "Locked" 'The relevant setting
56 56
HttpContext.Current.Session("ReportingInitialized") = True
57 57
End Sub
58 58
End Class