GraemeMATLAB
6 years agoQrew Member
Embedded image not refreshing
Hello!
I am using an Apache webserver to host png images on our server and make these images available within Quick Base while on the local network only. I have a table called "Images," where each record is created for a specific png file on the server. The Image record contains a Formula-Rich Text field "Thumbnail," with the following formula:
"<img src=\"http://[local IP Address]/subfolder/filename.png" height = \"500">"
where [local IP Address] is the IP Address used on the local network to navigate to the machine running Apache.
The Image record is then listed for a related "Device" in the Devices table, in the report "Embedded for Devices." This report includes the "Thumbnail" field, so when you look at a specific Device record, the Embedded report shows the thumbnails for all related images.
My problem is that when the image png file is updated/replaced on the server (with the same file name), the image displayed in Quick Base does not update, even if I reload the page. Even on the Image record itself, the Thumbnail does not update when you refresh the page.
Quick Base support has said that this is not supported natively, but can be done with a custom java script. I've done a fair bit of coding but no java script and no custom scripts for QB. Does anyone have a suggestion for where to start and how to implement this? I'm assuming it should be a fairly simple fix but I need some help getting started.
Thank you!
------------------------------
Graeme
------------------------------
I am using an Apache webserver to host png images on our server and make these images available within Quick Base while on the local network only. I have a table called "Images," where each record is created for a specific png file on the server. The Image record contains a Formula-Rich Text field "Thumbnail," with the following formula:
"<img src=\"http://[local IP Address]/subfolder/filename.png" height = \"500">"
where [local IP Address] is the IP Address used on the local network to navigate to the machine running Apache.
The Image record is then listed for a related "Device" in the Devices table, in the report "Embedded for Devices." This report includes the "Thumbnail" field, so when you look at a specific Device record, the Embedded report shows the thumbnails for all related images.
My problem is that when the image png file is updated/replaced on the server (with the same file name), the image displayed in Quick Base does not update, even if I reload the page. Even on the Image record itself, the Thumbnail does not update when you refresh the page.
Quick Base support has said that this is not supported natively, but can be done with a custom java script. I've done a fair bit of coding but no java script and no custom scripts for QB. Does anyone have a suggestion for where to start and how to implement this? I'm assuming it should be a fairly simple fix but I need some help getting started.
Thank you!
------------------------------
Graeme
------------------------------