Clicking on Record Image Goes to Record Instead of Image

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • In Progress
  • (Edited)
I've created a way for the records in an embedded table to display a thumbnail of the image. If I click on thumbnail I've taken to the form view for that record, but once I'm on the form and I click on the thumbnail, I'm taken to the full-size image in my browser (Chrome centers the image and makes a black background for everything behind the image).

How can I make clicking on the thumbnail in the embedded report go directly to the full-size image?

Here's the code I'm using:

"<a href=\""&; Dbid () & "/a/r"& 
[Record ID#] &"/e8/v0\" /> "&
 "<img src=\""&; Dbid () &"/a/r"& 
[Record ID#] &"/e8/v0\" height=\"200\"alt='' />" & "</a>"

Thank you!
Photo of Amber


  • 590 Points 500 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Matthew Neil

Matthew Neil

  • 31,698 Points 20k badge 2x thumb
Try using an 'onclick' rather than an href.

I believe right now, the option to 'drill down' the the actual record in the report is being used first.

But, if you us this format, it will even open in a small pop up window, so you can easily close it and keep working.

"<a onclick=\"var'"&[URL for the file]&"', 'newwindow', 'width=700,height=600');\"><img height=\"28\" src=\"\"></a>";

Just replace the "URL" and the img src to match for your use.

(I've not done this exact thing, but it should work)

Matthew Neil - Product Specialist