Skip to content

Commit

Permalink
#338 Errors and warnings report
Browse files Browse the repository at this point in the history
  • Loading branch information
PiJoCoder committed Jun 19, 2024
1 parent 515c118 commit 10bddcf
Show file tree
Hide file tree
Showing 2 changed files with 258 additions and 94 deletions.
176 changes: 129 additions & 47 deletions NexusReports/Errors and Warnings_C.rdl
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ END;</CommandText>
<Value>Errors and Warnings From Errorlogs</Value>
<Style>
<FontFamily>Trebuchet MS</FontFamily>
<FontSize>14pt</FontSize>
<FontSize>16pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>=Variables!TitleColor.Value</Color>
</Style>
</TextRun>
</TextRuns>
Expand All @@ -84,6 +85,9 @@ END;</CommandText>
<Height>0.35417in</Height>
<Width>10.91334in</Width>
<Style>
<Border>
<Style>None</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
Expand Down Expand Up @@ -120,7 +124,9 @@ END;</CommandText>
<TextRuns>
<TextRun>
<Value>Error</Value>
<Style />
<Style>
<Color>=Variables!TableHeadingFontColor.Value</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand All @@ -132,7 +138,7 @@ END;</CommandText>
<Color>LightGrey</Color>
<Style>Solid</Style>
</Border>
<BackgroundColor>=Parameters!FmtAmbientBackground.Value</BackgroundColor>
<BackgroundColor>=Variables!TableHeadingColor.Value</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
Expand All @@ -151,7 +157,9 @@ END;</CommandText>
<TextRuns>
<TextRun>
<Value>First Occurence</Value>
<Style />
<Style>
<Color>=Variables!TableHeadingFontColor.Value</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand All @@ -163,7 +171,7 @@ END;</CommandText>
<Color>LightGrey</Color>
<Style>Solid</Style>
</Border>
<BackgroundColor>=Parameters!FmtAmbientBackground.Value</BackgroundColor>
<BackgroundColor>=Variables!TableHeadingColor.Value</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
Expand All @@ -182,7 +190,9 @@ END;</CommandText>
<TextRuns>
<TextRun>
<Value>Last Occurence</Value>
<Style />
<Style>
<Color>=Variables!TableHeadingFontColor.Value</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand All @@ -194,7 +204,7 @@ END;</CommandText>
<Color>LightGrey</Color>
<Style>Solid</Style>
</Border>
<BackgroundColor>=Parameters!FmtAmbientBackground.Value</BackgroundColor>
<BackgroundColor>=Variables!TableHeadingColor.Value</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
Expand All @@ -213,7 +223,9 @@ END;</CommandText>
<TextRuns>
<TextRun>
<Value>Occurence Count</Value>
<Style />
<Style>
<Color>=Variables!TableHeadingFontColor.Value</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand All @@ -225,7 +237,7 @@ END;</CommandText>
<Color>LightGrey</Color>
<Style>Solid</Style>
</Border>
<BackgroundColor>=Parameters!FmtAmbientBackground.Value</BackgroundColor>
<BackgroundColor>=Variables!TableHeadingColor.Value</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
Expand All @@ -249,7 +261,9 @@ END;</CommandText>
<TextRuns>
<TextRun>
<Value>=Fields!Error.Value</Value>
<Style />
<Style>
<Color>=Variables!ReportTextColor.Value</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand Down Expand Up @@ -280,7 +294,9 @@ END;</CommandText>
<TextRuns>
<TextRun>
<Value>=Fields!FirstOccurence.Value</Value>
<Style />
<Style>
<Color>=Variables!ReportTextColor.Value</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand Down Expand Up @@ -311,7 +327,9 @@ END;</CommandText>
<TextRuns>
<TextRun>
<Value>=Fields!LastOccurence.Value</Value>
<Style />
<Style>
<Color>=Variables!ReportTextColor.Value</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand Down Expand Up @@ -342,7 +360,9 @@ END;</CommandText>
<TextRuns>
<TextRun>
<Value>=Fields!OccurenceCount.Value</Value>
<Style />
<Style>
<Color>=Variables!ReportTextColor.Value</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand Down Expand Up @@ -407,6 +427,7 @@ END;</CommandText>
<Value>Show queries for this report.</Value>
<Style>
<FontWeight>Bold</FontWeight>
<Color>=Variables!ReportTextColor.Value</Color>
</Style>
</TextRun>
</TextRuns>
Expand Down Expand Up @@ -438,7 +459,9 @@ END;</CommandText>
<TextRuns>
<TextRun>
<Value>=DataSets!DataSet_Errors.CommandText</Value>
<Style />
<Style>
<Color>=Variables!ReportTextColor.Value</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand Down Expand Up @@ -475,6 +498,7 @@ END;</CommandText>
</Visibility>
<Style>
<Border>
<Color>=Variables!ReportTextColor.Value</Color>
<Style>Solid</Style>
</Border>
</Style>
Expand All @@ -483,6 +507,7 @@ END;</CommandText>
<Height>3.58069in</Height>
<Style>
<Border />
<BackgroundColor>=Variables!BodyBackgroundColor.Value</BackgroundColor>
</Style>
</Body>
<Width>11.35083in</Width>
Expand Down Expand Up @@ -520,29 +545,6 @@ END;</CommandText>
<AllowBlank>true</AllowBlank>
<Prompt>Database Name</Prompt>
</ReportParameter>
<ReportParameter Name="FmtAmbientBackground">
<DataType>String</DataType>
<DefaultValue>
<Values>
<Value>#E8F8FF</Value>
</Values>
</DefaultValue>
<AllowBlank>true</AllowBlank>
<Prompt>FmtAmbientBackground</Prompt>
<Hidden>true</Hidden>
</ReportParameter>
<ReportParameter Name="FmtChartBackground">
<DataType>String</DataType>
<Nullable>true</Nullable>
<DefaultValue>
<Values>
<Value>LightSteelBlue</Value>
</Values>
</DefaultValue>
<AllowBlank>true</AllowBlank>
<Prompt>FmtChartBackground</Prompt>
<Hidden>true</Hidden>
</ReportParameter>
<ReportParameter Name="FmtError">
<DataType>String</DataType>
<DefaultValue>
Expand Down Expand Up @@ -614,16 +616,6 @@ END;</CommandText>
<RowIndex>0</RowIndex>
<ParameterName>dsDatabaseName</ParameterName>
</CellDefinition>
<CellDefinition>
<ColumnIndex>0</ColumnIndex>
<RowIndex>1</RowIndex>
<ParameterName>FmtAmbientBackground</ParameterName>
</CellDefinition>
<CellDefinition>
<ColumnIndex>1</ColumnIndex>
<RowIndex>1</RowIndex>
<ParameterName>FmtChartBackground</ParameterName>
</CellDefinition>
<CellDefinition>
<ColumnIndex>2</ColumnIndex>
<RowIndex>1</RowIndex>
Expand All @@ -647,13 +639,103 @@ END;</CommandText>
</CellDefinitions>
</GridLayoutDefinition>
</ReportParametersLayout>
<Code>
Function GetTableRowFillColor(Theme as String, RowNumber As Integer) As String
If Theme ="Aquatic" Then
return "#202020"
ElseIf Theme ="Desert" Then
return "#FFFAEF"
Elseif RowNumber Mod 2 &lt;&gt; 0 Then
return "White"
Else
Return "LightSteelBlue"
End If
End Function
</Code>
<EmbeddedImages>
<EmbeddedImage Name="warning">
<MIMEType>image/gif</MIMEType>
<ImageData>R0lGODdhDwARAKUAAPz+/KRyLKR2NPzGZKx6NPzKbPzGbIRWFIxeHPzKZKx+PJxqHLSCRPzOfPzOdLSKTPzShJRmHLSGTLyOVPzWjIxiHJRiHLyOTLySVPzanPzalMSWXPzipPzepIRaFMSSXPzmrHxSFHxWFMSaZPzqtPzqvPzuxPzqxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAADwARAEAGekCAcEgsCieUZMViSVIuxqhxRCKVQlgraUQkFAyDwwExMCQIxJF6zeYON5wOx0Pv2D9ERsPR6PsbDEQBg4SFAVKIQiMmjIwnJ4xuQhsglSEiIpUgG0QYGRkaCKIanxhEDxCpEaupEBJECgWyoguyBQpEAgO7vLwCiVFBADs=</ImageData>
</EmbeddedImage>
</EmbeddedImages>
<Language>en-US</Language>
<Variables>
<Variable Name="IsLocalReport">
<Value>= (Globals!ReportServerUrl="")</Value>
</Variable>
<Variable Name="FLocalMode">
<Value>=Globals!ReportServerUrl = ""</Value>
</Variable>
<Variable Name="ReportTextColor">
<Value>
=Switch(Parameters!ContrastTheme.Value="Aquatic", "#FFFFFF",
Parameters!ContrastTheme.Value="Desert", "#3D3D3D",
Parameters!ContrastTheme.Value="None", "Black")
</Value>
</Variable>
<Variable Name="BodyBackgroundColor">
<Value>
=Switch(Parameters!ContrastTheme.Value="Aquatic", "#202020",
Parameters!ContrastTheme.Value="Desert", "#FFFAEF",
Parameters!ContrastTheme.Value="None", "#FAFDFF")
</Value>
</Variable>
<Variable Name="TitleColor">
<Value>
=Switch(Parameters!ContrastTheme.Value="Aquatic", "#FFFFFF",
Parameters!ContrastTheme.Value="Desert", "#3D3D3D",
Parameters!ContrastTheme.Value="None", "SteelBlue")
</Value>
</Variable>
<Variable Name="TableHeadingColor">
<Value>
=Switch(Parameters!ContrastTheme.Value="Aquatic", "#202020",
Parameters!ContrastTheme.Value="Desert", "#FFFAEF",
Parameters!ContrastTheme.Value="None", "SteelBlue")
</Value>
</Variable>
<Variable Name="ChartColor">
<Value>
=Switch(Parameters!ContrastTheme.Value="Aquatic", "#202020",
Parameters!ContrastTheme.Value="Desert", "#FFFAEF",
Parameters!ContrastTheme.Value="None", "LightSteelBlue")
</Value>
</Variable>
<Variable Name="ChartSecondaryColor">
<Value>
=Switch(Parameters!ContrastTheme.Value="Aquatic", "No Color",
Parameters!ContrastTheme.Value="Desert", "No Color",
Parameters!ContrastTheme.Value="None", "Automatic")
</Value>
</Variable>
<Variable Name="ChartGradientStyle">
<Value>
=Switch(Parameters!ContrastTheme.Value="Aquatic", "None",
Parameters!ContrastTheme.Value="Desert", "None",
Parameters!ContrastTheme.Value="None", "TopBottom")
</Value>
</Variable>
<Variable Name="TableShowCell">
<Value>"Red"</Value>
</Variable>
<Variable Name="TableHidcell">
<Value>"Green"</Value>
</Variable>
<Variable Name="TableHeadingFontColor">
<Value>
=Switch(Parameters!ContrastTheme.Value="Aquatic", "#FFFFFF",
Parameters!ContrastTheme.Value="Desert", "#3D3D3D",
Parameters!ContrastTheme.Value="None", "#FFFFFF")
</Value>
</Variable>
<Variable Name="URILinkFontColor">
<Value>
=Switch(Parameters!ContrastTheme.Value="Aquatic", "#75E9FC",
Parameters!ContrastTheme.Value="Desert", "#1C5E75",
Parameters!ContrastTheme.Value="None", "Blue")
</Value>
</Variable>
</Variables>
<ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
<rd:ReportUnitType>Inch</rd:ReportUnitType>
<rd:ReportID>c3d56265-155e-47a8-b4d6-b3b2a50f269b</rd:ReportID>
Expand Down
Loading

0 comments on commit 10bddcf

Please sign in to comment.