I want to use JavaScript to show an image dynamically for each record of an Entity.
I have my image inside my solution and I uploaded it on the WebResource on Dynamics.
I created an HTML file when I'm going to use a script to retrieve and cycle all the records of the entity, and for each of them I'm going to show the image.
Assuming that I need a variable for my image, I saw some example which make use of the Xrm.Page.context to get it but as far as I know it's deprecated, so that I prefer to use the formContext instead.
That said, how can I refer to the image to use it in my logic?
How can I add the HTML resource to my entity form? In the Property Form I can only find my JavaScript files as Events
May the executionContext be passed as default parameter from configuration, or I have to instantiate it in the script I'm going to have inside my HTML?
In some other example I saw that the file extension (.png) is not included in the source definition, me I included it: are both methods correct?
I wrote the following code so far: