Embed for record viewing?

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
Okay, so I'm really starting to love the QuickBase community, everyone is so helpful. This one may be a stretch, and I don't really need it, I am just curious as to whether or not it's possible. 

I know report links pop into records as embedded, is there any way to get it so that when you click a record, it displays in the embed without having it link you to the new page? Again, just curious. 
Photo of Manny De La Cruz

Manny De La Cruz

  • 940 Points 500 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 52,928 Points 50k badge 2x thumb
So you are sitting on a record (let's call it a Project) and there is an embedded report of "Tasks".

You then click on a Task and want what to happen?
Photo of Jacob

Jacob

  • 738 Points 500 badge 2x thumb
Wow always so fast to respond, it always amazes me how many questions you answer a day!
Photo of Jacob

Jacob

  • 738 Points 500 badge 2x thumb
Hello,

Are you asking to view the records that are in the underlying report link on the form?  If so then you can change the behavior of a report link by clicking edit the properties of this form element and change the radio buttons to Display the related holdings directly on the form.
Photo of Matthew Neil

Matthew Neil

  • 31,478 Points 20k badge 2x thumb
As far as using that same 'embedded' space and displaying the image, I don't think so.

But, you can create a button that will open that record up in a smaller pop-up window.  The button would need to be on the child record report.

Let me know if you need that code
Photo of Manny De La Cruz

Manny De La Cruz

  • 940 Points 500 badge 2x thumb
This would be the best workaround I think, it would be like a "preview" function almost. Would you mind sharing that code?
Photo of Manny De La Cruz

Manny De La Cruz

  • 940 Points 500 badge 2x thumb
So when I click on a "Task" Instead of redirecting me to the screen that displays that record. I was wondering if it could just display it on the embed 
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 52,928 Points 50k badge 2x thumb
I think that you are looking for Matthew's suggestion, so over to Matthew now.
Photo of Matthew Neil

Matthew Neil

  • 31,478 Points 20k badge 2x thumb
Create a formula-text field, and use this:

"<a class='Vibrant Success' onclick=\"var a=window.open('https://www.google.com/', 'newwindow', 'width=600,height=600');\" >Google</a>"

Replace the google URL with your view url:  
Something like this for viewing a contact detail record.

URLRoot() & "db/" & [_DBID_CONTACTS] & "?a=dr&rid="&[Record ID#]
Photo of Manny De La Cruz

Manny De La Cruz

  • 940 Points 500 badge 2x thumb
Perfect! Thanks, Matt!