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.

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.

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.

Kriscen
Helper I
Helper I

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

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,276)