Forum Discussion

MarkShnier's avatar
MarkShnier
Qrew Cadet
13 years ago

Thumbnail image behavior different on New UX

I have this code which works fine on the old UX. Its purpose is to display a thumbnail as a hyperlink to a larger image which will open in a new tab.

"<a href=" & URLRoot() & "up/" & Dbid () & "/a/r" & [Record ID#] & "/e6/v0\"height=\"1000\" target=_blank/> " &
"<img src=" & URLRoot() & "up/" & Dbid () & "/a/r" & [Record ID#] & "/e6/v0\" height=\"300/>")

I have a child table of pictures related to a Parent Claim. There is an embedded report on the claim record and these thumbnail images show up just fine.

The part I'm stuck on is what happens when you click an image on that embedded report.

In old UX, the Tab I'm on does nothing (perfect) and a new Tab opens up to show the larger image. The user has a look and then just closes that new tab when they have seen the large image showing the product flaw. The user is then left sitting on the claim record with the embedded report exactly where they were - perfect.

In new UX, when when the user clicks the thumbnail, indeed a new tab opens up just fine but simultaneously the tab they were sitting on with the Parent record refreshes and changes to be that child record. Is this a bug i should report to QuickBase support (if they will accept it as a bug) or is there something can change in my formula to cause the parent record tab to just sit tight and do nothing like it used to.

btw, if I do open up that child record and click the thumbnail to show the larger image, the tab with the child record with the picture attachment does nothing (perfect) and a new tab opens with the larger image (perfect). So, i don't understand why it behaves differently when that same record is seen as an embedded report.
  • Well I now understand why it's happening, but not sure what to do about it.  In new UX when you touch a record on a report it opens the record.  So the child record opens in the same tab and the new window also opens up for the "Target =_blank" new  tab.
  • >Well I now understand why it's happening, but not sure what to do about it

    You use scripting of course as it solves just about every problem. There is an event propagation problem which I think is simple to fix but I don't have time to set up an example. Specifically I think you can solve the problem using
    event.stopPropagation - conceptually something like this:

    $("#_fid_6").click(function(event){ event.stopPropagation(); // do something });
  • Basically I just decided that the nicety of being able to click an image and open up in a new window was not essential to my app.  I just have another field which will display the app in a new window as a URL formula and not try to do it all in one field.  That's a "good enough" solution for now.
  • That's crazy talk. How could you turn away an opportunity to learn the details of event capturing and event bubbling?
  • hello mark
    I want do some new project in Quick Base
    Can you make me to do ?
  • Firdos, you can contact me off line by the contact information in my profile.  Click on my name or image and you will see the contact information.
  • I have submitted this to support - they have created a bug ticket for it. The click on the image in reports stops working once a dynamic function is used on the report. Once a dynamic function is used, the image no longer is clickable and the report needs to be refreshed for the image clicking to work.

    QBE008858: Change of behavior of a formula - text field when you have a faceted report and click on the field.
  • I know this is old but was this ever resolved as I am currently having the same issue.  Since the roll out of the new calendar, I am no longer able to view thumbnails in the calendar report and need a new option.