0

HTML View

I am trying to send out a view in an email.  However when I try to use html the headers print on all of the records.  Any help would be wonderful. thanks 

4 replies

null
    • Ninox partner
    • RoSoft_Steven.1
    • 10 mths ago
    • Reported - view

    How do you make your view? Is it a shared(html) table view (the link) you are sending?
    I don't have a problem with the shared view. The table headers are ok. (private cloud v 3.10.11/google chrome)

    • Nick_Massie
    • 10 mths ago
    • Reported - view

    for i in 'Crew List' order by Number do
    let comment := i.Number + " | " + i.'Crewing Template'.'Text 2' + " | " + i.Name +
            " |                     " +
            i.'Crewing Database'.'Email Address' +
            " |                     " +
            i.'Crewing Database'.'Phone Number' +
            " |                     " +
            i.text(SET) +
            " |                     " +
            i.Notes;
        comment
    end

    I was trying something above by using <th> <tr> and <td>  but with my code ( I have already deleted) the <th> repeated for each record in the loop 

      • Ninox partner
      • RoSoft_Steven.1
      • 10 mths ago
      • Reported - view

      The header was in the loop i guess. Maybe build the header before the loop and construct your table something like this:

      let header := ---
          <thead>
              <tr>
                <th> Number </th>
                <th> Crewing Template </th>
                <th> Name </th>
                <th> Email Address </th>
                <th> Phone Number </th>
                <th> SET </th>
                <th> Notes </th>
              </tr>
          </thead>
      ---;
      let tablebody := for i in 'Crew List' order by Number do
      "<tr> <td>"+ i.Number + " </td> <td> " +
                   i.'Crewing Template'.'Text 2' + " </td> <td> " +
                   i.Name + " </td> <td>" +
                   i.'Crewing Database'.'Email Address' + " </td> <td> " +
                   i.'Crewing Database'.'Phone Number' + " </td> <td> " +
                   i.text(SET) + " </td> <td> " +
                   i.Notes + " </td> </tr> ";
      end;
      html(---
      <table>
      {header}
      {tablebody}
      </table>
      ---)
      
      • Nick_Massie
      • 10 mths ago
      • Reported - view

       thank you so much!!!  

Content aside

  • Status Answered
  • 10 mths agoLast active
  • 4Replies
  • 86Views
  • 2 Following