cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Coopedup
Resolver II
Resolver II

Collection HTML format

Hi all,

 

I'm building a PDF report option which will have a dynamic table (can have different number of rows). I've found some very good examples on here, which are great, but I'm failing to get a filter option added into it. 

 

Can anyone help with where I've gone wrong? 

Create a collection of a notes SP List, filtered on a Title value. Then format the returned rows to the HTML text, which I'll then use with in a create PDF button.

ClearCollect(colNotes; AddColumns(Filter('Register Notes', Title = varID),Table({
    DateAdded: DateAdded.Text;
    NoteDetails: NoteDetails.Text;
    AddedBy: AddedBy.DisplayName
    }));
    "pdfHTML";
    "<table border= '1'>" & 
    "<tr><th colspan='2'>" & DateAdded & "</th></tr>" &
    "<tr><td>" & NotesDetails & "</td><td>" & AddedBy & "</td></tr></table>")))

 

1 ACCEPTED SOLUTION

Accepted Solutions
Coopedup
Resolver II
Resolver II

So this was simplified. I already have a gallery with the filtered details in. So rather than building a new collection I contact the gallery data within my create PDF htlm button. And all worked for me!.

View solution in original post

1 REPLY 1
Coopedup
Resolver II
Resolver II

So this was simplified. I already have a gallery with the filtered details in. So rather than building a new collection I contact the gallery data within my create PDF htlm button. And all worked for me!.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,957)