cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alexane_13
Frequent Visitor

Copy Paste a image set dynamically

Hi everyone ! 😊

 

I have a icon set like that : 

"data&colon;image/svg+xml;utf8, " & EncodeUrl( "<svg xmlns='...' viewBox='0 0 512 512'> <path fill='" & SelectedColor & "' stroke='" & SelectedColor & "' d='" & IconGallery.Selected.pathD & "'/> </svg>")

 

So as you can see, its "image" property is set dynamically. My problem is that I would like to copy/paste my icon in  a other application but it doesn't work because 'SelectedColor' and IconGallery.Selected.pathD' are unknown by the others applications. Any idea ? Is there a way to get the image property with the color "#..." and not "SelectedColor" ? And same for the path ?

 

Thank you very much !

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Thorpe
Super User
Super User

Add a label to the screen, set the text property to the same icon formula but remove the EncodeURL(). The label will display the SVG code with all the dynamic values being converted to actual values.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Jeff_Thorpe
Super User
Super User

Add a label to the screen, set the text property to the same icon formula but remove the EncodeURL(). The label will display the SVG code with all the dynamic values being converted to actual values.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Great ! Thank you very much for your help ! 😊

 

 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (1,670)