bd8b2d6f1e7b27cbe0a73d8aba9a2c7792664861
API/CodeSamples/ShowHelpButton.md
| ... | ... | @@ -0,0 +1,68 @@ |
| 1 | +#ShowHelpButton |
|
| 2 | + |
|
| 3 | +[[_TOC_]] |
|
| 4 | + |
|
| 5 | +##About |
|
| 6 | + |
|
| 7 | +Gets or set value indicating whether side help should be shown in ReportDesigner. Text in the side help can be filled out using [[AdHocSettings.HelpText|http://wiki.izenda.us/edit/API/CodeSamples/HelpText]] |
|
| 8 | + |
|
| 9 | +##Global.asax (C♯) |
|
| 10 | + |
|
| 11 | +```csharp |
|
| 12 | + |
|
| 13 | + public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
|
| 14 | + { |
|
| 15 | + // Configure settings |
|
| 16 | + // Add Custom Setting below license key and connection string setting |
|
| 17 | + public override void ConfigureSettings() |
|
| 18 | + { |
|
| 19 | + AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
|
| 20 | + //AdHocSettings.VisibleTables = new string[] { "VIEW1", "TABLE2" }; |
|
| 21 | + AdHocSettings.ShowSideHelp = true; //The relevant setting |
|
| 22 | + |
|
| 23 | + } |
|
| 24 | + |
|
| 25 | + // Control what reports are visible for the current user |
|
| 26 | + public override Izenda.AdHoc.ReportInfo[] ListReports() |
|
| 27 | + { |
|
| 28 | + return base.ListReports(); |
|
| 29 | + } |
|
| 30 | + |
|
| 31 | + // Customize a report on the fly prior to execution on a per user basis |
|
| 32 | + public override void PreExecuteReportSet(Izenda.AdHoc.ReportSet reportSet) |
|
| 33 | + { |
|
| 34 | + |
|
| 35 | + } |
|
| 36 | + |
|
| 37 | + } |
|
| 38 | + |
|
| 39 | +``` |
|
| 40 | + |
|
| 41 | + |
|
| 42 | +##Global.asax (VB.net) |
|
| 43 | + |
|
| 44 | +```visualbasic |
|
| 45 | +Public Class CustomAdHocConfig |
|
| 46 | + Inherits Izenda.AdHoc.DatabaseAdHocConfig |
|
| 47 | + |
|
| 48 | + ' Configure settings |
|
| 49 | + ' Add Custom Setting below license key and connection string setting |
|
| 50 | + Public Overrides Sub ConfigureSettings() |
|
| 51 | + AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
|
| 52 | + 'AdHocSettings.VisibleTables = New String() { "VIEW1", "TABLE2" } |
|
| 53 | + AdHocSettings.ShowSideHelp = True ' The relevant setting |
|
| 54 | + |
|
| 55 | + End Sub |
|
| 56 | + |
|
| 57 | + ' Control what reports are visible for the current user |
|
| 58 | + Public Overrides Function ListReports() As Izenda.AdHoc.ReportInfo() |
|
| 59 | + Return MyBase.ListReports |
|
| 60 | + End Function |
|
| 61 | + |
|
| 62 | + ' Customize a report on the fly prior to execution on a per user basis |
|
| 63 | + Public Overrides Sub PreExecuteReportSet(ByVal reportSet As Izenda.AdHoc.ReportSet) |
|
| 64 | + |
|
| 65 | + End Sub |
|
| 66 | + |
|
| 67 | + End Class |
|
| 68 | +``` |
|
| ... | ... | \ No newline at end of file |