FAQ/How-do-I-enable-basic-report-sharing.md
... ...
@@ -0,0 +1,25 @@
1
+#How do I enable basic report sharing?
2
+
3
+Basic report sharing allows users to decide if they want to share a report or keep it in their private sandbox. It also enables sharing reports in read-only mode which act as templates. This mode allows other users to load a report but not overwrite it. Report creators can find these features in the "Misc" tab of the report designer. In order to use basic report sharing, you will need to set the username and admin status. This needs to happen as part of your application's post-login process. These settings should be set right after the user credentials are authenticated. This example shows the specific code that must called to enable basic report sharing.
4
+
5
+```c#
6
+public override void PostLogin()
7
+{
8
+ Izenda.AdHoc.AdHocSettings.CurrentUserName = "Bob";
9
+ Izenda.AdHoc.AdHocSettings.CurrentUserIsAdmin = GetAdminStatus(AdHocSettings.CurrentUserName);
10
+}
11
+```
12
+
13
+An essential part of database security is limiting access to tables and views. Izenda Reports provides a setting that allows you to set which tables and views are visible as datasources to your users.
14
+
15
+```c#
16
+public override void PostLogin()
17
+{
18
+ if(GetDept(AdHocSettings.CurrentUserName).Equals("Sales"))
19
+ AdHocSettings.VisibleDataSources = new string[] {"Products", "Categories", "Orders"};
20
+ else
21
+ AdHocSettings.VisibleDataSources = new string[] {"Receivables"};
22
+}
23
+```
24
+
25
+By doing this, you can allow one set of users (or a company) to see some tables, and another set of users to see different tables.
... ...
\ No newline at end of file
How-do-I-enable-basic-report-sharing.md
... ...
@@ -1,25 +0,0 @@
1
-#How do I enable basic report sharing?
2
-
3
-Basic report sharing allows users to decide if they want to share a report or keep it in their private sandbox. It also enables sharing reports in read-only mode which act as templates. This mode allows other users to load a report but not overwrite it. Report creators can find these features in the "Misc" tab of the report designer. In order to use basic report sharing, you will need to set the username and admin status. This needs to happen as part of your application's post-login process. These settings should be set right after the user credentials are authenticated. This example shows the specific code that must called to enable basic report sharing.
4
-
5
-```c#
6
-public override void PostLogin()
7
-{
8
- Izenda.AdHoc.AdHocSettings.CurrentUserName = "Bob";
9
- Izenda.AdHoc.AdHocSettings.CurrentUserIsAdmin = GetAdminStatus(AdHocSettings.CurrentUserName);
10
-}
11
-```
12
-
13
-An essential part of database security is limiting access to tables and views. Izenda Reports provides a setting that allows you to set which tables and views are visible as datasources to your users.
14
-
15
-```c#
16
-public override void PostLogin()
17
-{
18
- if(GetDept(AdHocSettings.CurrentUserName).Equals("Sales"))
19
- AdHocSettings.VisibleDataSources = new string[] {"Products", "Categories", "Orders"};
20
- else
21
- AdHocSettings.VisibleDataSources = new string[] {"Receivables"};
22
-}
23
-```
24
-
25
-By doing this, you can allow one set of users (or a company) to see some tables, and another set of users to see different tables.
... ...
\ No newline at end of file