Skip to content

How to 'stack' multiple data tables under single New-HTMLContent #322

Discussion options

You must be logged in to vote
New-HTML {
    New-HTMLSection {
        $Machines = @(
            'Machine1', 'Machine2', 'Machine3'
        )
        foreach ($Machine in $Machines) {
            New-HTMLSection -HeaderText $Machine {
                $Information = @(
                    'First Information', '2nd Information', '3rd information'
                )
                foreach ($I in $Information) {
                    New-HTMLSection -HeaderText $I {
                        New-HTMLTable -DataTable $Machine
                    }
                }
            } -Direction column
        }
    } -HeaderText "Citrix Machine Information" -Direction column
} -Online -ShowHTML

Works for me

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@PrzemyslawKlys
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by PrzemyslawKlys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants