215ad39df2fed84f5c23e84481f9bad5a29fd431
FAQ/getting-reportlist-information.md
| ... | ... | @@ -0,0 +1,48 @@ |
| 1 | +#How Do I Get the ReportList Information to Create My Own ReportList? |
|
| 2 | + |
|
| 3 | +Different approaches should be used in different architectures. WebForms Asp.Net, MVC, and pure HTML all have different solutions. |
|
| 4 | + |
|
| 5 | +--- |
|
| 6 | + |
|
| 7 | +_**The main question is how to get the ReportsList:**_ |
|
| 8 | + |
|
| 9 | +1) _On the server-side you could use any of these methods:_ |
|
| 10 | + |
|
| 11 | +- AdHocSettings.AdHocConfig.FilteredListReports |
|
| 12 | + |
|
| 13 | +- AdHocSettings.AdHocConfig.FilteredListReportsCached |
|
| 14 | + |
|
| 15 | +- AdHocSettings.AdHocConfig.FilteredListReportsDictionary |
|
| 16 | + |
|
| 17 | +- AdHocSettings.AdHocConfig.FilteredListReportsDictionaryCached |
|
| 18 | + |
|
| 19 | +- AdHocSettings.AdHocConfig.ListReports |
|
| 20 | + |
|
| 21 | +--- |
|
| 22 | + |
|
| 23 | +_**In this case a Dropdown menu could be populated using code like this (WebForms):**_ |
|
| 24 | + |
|
| 25 | +```csharp |
|
| 26 | +private void PopulateReports() |
|
| 27 | +{ |
|
| 28 | + ReportInfo[] reports = AdHocSettings.AdHocConfig.FilteredListReportsCached(); |
|
| 29 | + foreach (ReportInfo report in reports) |
|
| 30 | + ReportsDropDown.Items.Add(new ListItem(report.FullName, report.FullName)); |
|
| 31 | +} |
|
| 32 | +``` |
|
| 33 | + |
|
| 34 | +--- |
|
| 35 | + |
|
| 36 | +2) _On the client side you could use an AJAX request to get JSON data. URLs to be used:_ |
|
| 37 | + |
|
| 38 | +- rs.aspx?wscmd=reportlistdata |
|
| 39 | + |
|
| 40 | +- rs.aspx?wscmd=reportlistdatalite |
|
| 41 | + |
|
| 42 | +_**In this case you could use JSON data to populate a client-side control using javascript.**_ |
|
| 43 | + |
|
| 44 | +------ |
|
| 45 | + |
|
| 46 | +We cannot provide ready-to-use examples because the code really depends on your particular use-case. Please contact Izenda Services with any questions: |
|
| 47 | + |
|
| 48 | +Services@Izenda.com |
|
| ... | ... | \ No newline at end of file |