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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,662)