Unable to bind my array as a table in the html tag in powershell

Welcome Forums General PowerShell Q&A Unable to bind my array as a table in the html tag in powershell

Viewing 1 reply thread
  • Author
    Posts
    • #258263
      Participant
      Topics: 2
      Replies: 3
      Points: 18
      Rank: Member

      I have following powershell code snippet:

      [/crayon]

      where my artifactalias in debugger mode is something as shown in below diagram and my $ss is something as shown in another screen shot.
      I am trying to form a table with all my contents in artifactalias and bind it with html tag. if i bind the $ss with my html tag I get System.Object[] as the output on my html content. what wrong am i doing??

      I am not getting option to insert image
      artifactalias>
      @{Atype=System.Object[]; versaid=System.Object[]; AID=System.Object[]}

      $ss response:
      <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt; <html xmlns=”http://www.w3.org/1999/xhtml”&gt; <head> <title>HTML TABLE</title> </head><body>

      <colgroup><col/
      ><col/><col/></colgroup>

      AID Atype versaid
      System.Object[] System.Object[] System.Object[]

      </body></html> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1
      .0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt; <html xmlns=”http://www.w3.org/1999/xhtml”&gt; <head> <title>HTML TABLE</title> </head><body>

      </body></html>

      System.Object[] S
      ystem.Object[] System.Object[] System.Object[] System.Object[] System.Object[] </t
      d> System.Object[] System.Object[] System.Object[]

      • This topic was modified 1 month ago by ankitkum69. Reason: unable to add image
      • This topic was modified 1 month ago by ankitkum69.
    • #258509
      Participant
      Topics: 8
      Replies: 617
      Points: 2,393
      Helping Hand
      Rank: Community Hero

      Please read this guide on posting code. As it stands I can’t make out what your code is.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.