Get URL of image uploaded in image field
After several hours I decided to write this topic...
I have tried several methods to make it work, but none of them solved the problem...
I need to get the URL of an image uploaded in an image field called: "tempImage".
I need to retrieve this data in a dynamic way, hardcoding is not an option.
function 1
result:
function 2
result:
function 3
here in the 3erd function we use the hash code of public report.
result:
Parameters
We get the hashcode from the perma-link report link.
- //OLD reportName = "Participantes_documentos";
- //OLD formName = "Participante_documentos";
- reportName = "Participantes";
- formName = "Participante";
- fieldName = "tempImage";
- hashCode = "OdyeO2TvTwzkkEPO8ZFAMMJ7Q5hv3fY1zMNe0pYVF0mtvfXFXOjps2Q9w0UuCjWfMQ15TGjYBH761dKTZJwDT2nKQ1V11vG4fbb7";
Console log throw
Info input.tempImage gives me this:
Inspecting element in HTML from report view
I extracted from the HTML and tried this but doesn’t work...
Inspecting element HTML from image preview