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.

View solution in original post

Great ! Thank you very much for your help ! 😊

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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