How can I display a custom icon image on my DisplayForm at runtime?
I have some icon images in my Resources/Images folder for my viewer, but I'm unclear on the runtime syntax to reference these images on my DisplayForm at runtime. What's the correct URI/token path to get to these images?
0
-
Hello Sean,
Here is what I did:
imagePath="http://youreocortexserver/Geocortex/Essentials/yourinstance/REST/sites/site/viewers/yourviewer/VirtualDirectory/Resources/Images/Custom/123.png"
imageFormItem1=new ImageFormItem() With {.ArgumentName="image1", .width=30, .height=30, .Source=imagePath}
then add the image item to the form. It works. However I have not found a way to get the image path dynamically if images are in Geocortex site folder.0
Please sign in to leave a comment.
Comments
1 comment