reporthtml's People
Forkers
gregwhite11 valdearg elefontman cath90mph chirishman matthias78 jajp777 a-bode jonnyrockets hansomartinsen criooz psjeffh spaelling gthirukumaran ion-storm m1kep bpwmaddog82 jay6111 immense055 nani1211 codebarbarianreporthtml's Issues
Set-TableRowColor Issue
Hello,
i have a problem with the cmdlet "Set-TableRowColor".
My code is:
$ramStatusGreen = '$freeRAMNumber -eq 0' $ramStatusYellow = '$freeRAMNumber -eq 1' $ramStatusRed = '$freeRAMNumber -eq 2' $ramStatusColor = Set-TableRowColor ($ramStatusComplete) -Red $ramStatusRed -Green $ramStatusGreen -Yellow $ramStatusYellow
If i use this code in Powershell (with selection and F8) i get the right output:
RowColor=Green
If i start the Powershell Script with righclick and "Start with Powershell" then i get the wrong output:
RowColor=non
How can i do this?
Sorry for my bad english. I hope you understand my problem.
Thanks and best regards
Jens
get-htmlopen returning 2 css files
had the logic missing to support backwards compatibility of a single CSS file
Allow specifying column type for datatables
The jQuery DataTables library allows specifying the type of the column, so that you can, for example, sort numerically. It would be really useful if there was a way to pass through from the powershell data what the type of the column should be to allow this to be used.
create Pie Chart Functions
get-htmlopenpage endless loop
Hi Ive notice an issue which only seems to occure on one of my dev servers
When running the get-htmlopenpage with no argument I appares to go into a endless loop ?
When connected to the server via RDP
Windows 2008 R2 Sp1
See Log below an ideas
Thanks
Robin Coss
REPORTHTML.txt
generate random color scheme when there arent enough colors in schemes
Replace Write-Host
The Write-Host text about getting started shows up every time the module is used which is unnecessary and irritating.
Show/Hide scroll to top.
When there is a large report and you open an element down in the page it would scroll back up which make it a bit of a pain to actually consume the report.
While im not a html/jquery expert it seem's that this boils down to using
href="javascript:void(0)" instead of href="#" in Get-HTMLContentOpen.
While this works well for section item i do not know if it would break anything else.
Issue with Save-HTMLReport
In the latest code base you define $ReportContent as an array, which the variable is, but for some reason when executing it that way, I get a PoSH error that I can't pass an empty variable. Commenting out the variable casting fixes it and everything executes fine. Maybe it is me trying to do stuff at 6:30am before I have finished my first coffee, but I just wanted to let you know.
Issue with get-htmlopenpage
Get-HTMLOpenPage missing - LeftLogoName -PrimaryColorHex -RightLogoName when using -Options which doesn't let user to choose that
Problems with GroupHeaders
I created a table in a report as follows:
$rpt += Get-HTMLContentTable -ArrayofObjects ($ArrItems | Select-Object EventId, Time, WinLog, EntryType, Source, Message) -GroupBy EventId
The grouping worked fine when the report was simple, but when one of the items, specifically the "Message" property was very large and complex the report ended up with extra lines in the report with the message property in the upper left hand corner of each table. I debugged the PSM1 file and found that the group header is generated as an HTML fragment followed by another line which tries to use a series "-replace" operators to remove non-header related information. When those "replaces" don't find a match, you end up with junk in your header. Specifically, I believe in my case this particular -Replace statement wasn't matching for whatever reason:
-replace ".+?"
I modified the following lines in the .psm1 file (Lines 958 and 959):
$GroupHeader = $ArrayOfObjects | ConvertTo-Html -Fragment
$GroupHeader = $GroupHeader -replace '', "" -replace '', "" -replace '', "" -replace '
Modified:
ForEach ($Item in $Groupings) {$GroupHeader = $GroupHeader + "$Item"}
$GroupHeader="$GroupHeader"
This corrected my issue. Perhaps this change will be more robust since it doesn't rely upon string matches, but generates the header information from the list of distinct list of Groupings.
Thank you,
Brian
get-htmlopen fail with get css
-Encoding Byte and -NoScript problems
I've found two issues with the module:
- the noscript parameter is never evaluated
- Encoding Byte is not supported in PS Core 7 preview 4
I've solved both but do not know how to create a pull request. Do I need a own fork for that ?
Create Bar Chart Function
Performance Improvement
Greetings,
In the ReportHTML.psm1, I noticed the code spent a long time on the line 227:
ForEach-Object{$ScriptHeaders += $_ + "r
n" }
I could be misunderstanding why the carriage return and line feeds are being added. If those aren't necessary it is also not necessary to cycle through each line of those .js files. I modified the .psm1 file locally to the following:
$ScriptHeaders += Get-Content $ScriptFile -ReadCount 0
and performance was greatly improved. It didn't break the report I was generating, and I don't want to be presumptuous and assume that it won't break something else. Please consider this change if it works in the larger context of the code.
Thank you.
Brian
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.