web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Build dynamic HTML tab...
Power Apps
Answered

Build dynamic HTML table in htmltext control from a sp list

(0) ShareShare
ReportReport
Posted on by 11

Hello, 

Appreciate some assistance on this.

I am building a report (Shipping data) in my powerapps using an html template etc. 

I reached a point where i have to generate a table that hold this information:

 

<table>

<tr>

<td>No of Packages</td>

<td>Description of Contents</td>

<td>Cargo value / est. price ($)</td>

<td>Gross Weight in Kg</td>

<td>Measurements (LXWXH) in cm</td>

</tr>

<tr>

//dynamic data

</tr>

</table

 

I have the shipment information stored in a  SP list called Shipments

The shipment details are stored in a SP list called Shipment Details with RefID column the ID of the Shipment.

 

The client requires to view this information in a screen before sending it for print/pdf (which is something i can handle later on.

I am using an HTML Text control.

Not sure how to perform this action.

 

Thanks.

Categories:
I have the same question (0)
  • Verified answer
    victorcp Profile Picture
    2,350 Moderator on at

    Hi,

    you have to use ForAll to iterate over each row to create the new rows. It will be something like this:

    "<table>
    <tr>
    <td>No of Packages</td>
    <td>Description of Contents</td>
    <td>Cargo value / est. price ($)</td>
    <td>Gross Weight in Kg</td>
    <td>Measurements (LXWXH) in cm</td>
    </tr>" &
    
    Concat(
     ForAll(
     'Shipment Details', // Sharepoint list,
     "<tr>
     <td>" & <> &"</td>
     <td>" & <> &"</td>
     <td>" & <> &"</td>
     <td>" & <> &"</td>
     <td>" & <> &"</td>
     </tr>"
     ), Value
    )
    
    & "</table"

     

    replace <> with the corresponding info in sharepoint

  • RoniR Profile Picture
    11 on at

    Muito obrigado

  • victorcp Profile Picture
    2,350 Moderator on at

    TMJ!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard