Open Record in New Tab

  • 1
  • Question
  • Updated 4 years ago
  • Answered
I'm trying to create a button that will open a new browser tab with the record currently being displayed in the original tab.  I have the button and the action is set to "Redirect to URL".  I created a new page and a new model for the new tab.  I need to somehow pass the record along.  Can this be done?
Photo of Scott

Scott

  • 2,722 Points 2k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Scott,

Set your redirect url to something like this:

/apex/skuid__ui?page=YOUR_PAGE_NAME&id={{Id}}
Photo of Scott

Scott

  • 2,722 Points 2k badge 2x thumb
Thanks Jim!
What If I'm working with a Queue/Page Include and I need the button to be outside of the Page Include.  How can I pass the record ID that is currently open in the Page Include?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
/apex/skuid__ui?page=YOUR_PAGE_NAME&id={{$Model.ModelInPageInclude.data.0.Id}}
Photo of Scott

Scott

  • 2,722 Points 2k badge 2x thumb
Groovy!! Thanks Pat!
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Thanks, Pat! I was just writing a long-winded post guessing that that was the answer. Now I know for sure!
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Score one more for Pat...