cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kriscen
Helper I
Helper I

DateValue to HTML to PDF

Hey guys!

I'm kinda new to PowerApps and I started with an checklist App. In the end i want to save this to A PDF. 

I figured it out how to create the PDF with a Flow and it works good but i cant get the date form the DateValue card to the PDF.

When i paste the HTML code into the HTML text the date shows up but when i open the created PDF ther is only "DateValue2"

 

Hope some of you can help me with this

 

Thanks in advance for your guidance!

 

Christian

 

 

 

 

"<!DOCTYPE html>
<html>
<head>
<style>
Table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 8px;
}

tr:nth-child(even){background-color: #f2f2f2}

th {
  background-color: #4CAF50;
  color: white;
}
</style>
</head>
<body>

<h2>Colored Table Header</h2>

<table>
  <tr>
    <th>Frage</th>
    <th>Zustand</th>
    <th>Anmerkung</th>
    <th>Nachbesserungsdatum</th>
  </tr>
  <tr>
    <td>"& DataCardKey155 &"</td>
    <td>"& DataCardValue130.Selected.Value &"</td>
    <td>"& DateValue2.SelectedDate &"</td>
    <td>DateValue2</td>
  </tr>
  <tr>
    <td>Lois</td>
    <td>Griffin</td>
    <td>$150</td>
    <td>Fehler</td>
  </tr>
  <tr>
    <td>Joe</td>
    <td>Swanson</td>
    <td>$300</td>
    <td>Fehler</td>
  </tr>
  <tr>
    <td>Cleveland</td>
    <td>Brown</td>
    <td>$250</td>
    <td>Fehler</td>
</tr>
</table>

</body>
</html>
"

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Kriscen ,

 

Actually it is "DateValue2" in the HTML text box in your App:

187.png

 

In your HTML text, you have hard-coded of "DateValue2":

188.png

 

So just modify this line to:

<td>"& DateValue2.SelectedDate &"</td>

 or what ever you want.

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
Kriscen
Helper I
Helper I

Here is the Flow to the Problem

Flow part1.PNG

Flow part2.PNG

Hi @Kriscen ,

 

Actually it is "DateValue2" in the HTML text box in your App:

187.png

 

In your HTML text, you have hard-coded of "DateValue2":

188.png

 

So just modify this line to:

<td>"& DateValue2.SelectedDate &"</td>

 or what ever you want.

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

Kriscen
Helper I
Helper I

Thanks. seems like i missclicked ^^ 
but thank you for your reply

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,315)