Discussions

Expand all | Collapse all

Clicking on Record Image Goes to Record Instead of Image

  • 1.  Clicking on Record Image Goes to Record Instead of Image

     
    Posted 01-18-2018 21:31
    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:

    If([Type]="image",
    "<a href=\"https://rael-letson.quickbase.com/up/"&; Dbid () & "/a/r"& 
    [Record ID#] &"/e8/v0\" /> "&
     "<img src=\"https://rael-letson.quickbase.com/up/"&; Dbid () &"/a/r"& 
    [Record ID#] &"/e8/v0\" height=\"200\"alt='' />" & "</a>"
    ,"")

    Thank you!


  • 2.  RE: Clicking on Record Image Goes to Record Instead of Image

    Posted 03-31-2018 20:59
    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 a=window.open('"&[URL for the file]&"', 'newwindow', 'width=700,height=600');\"><img height=\"28\" src=\"https://images.quickbase.com/si/48/014-view.png\"></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 Specialistmneil@mcftech.com Phone: 440-201-6050 ext. 476" width="300px">