Skip to main content
Question

Save and redirect to grandparent

  • August 6, 2020
  • 0 replies
  • 15 views

Forum|alt.badge.img+5
I am working on a button that will allow my users to save and go the the related grandparent.  What is the code around thr Rid  to make this happen?

var text redirectafter = URLRoot() & "db/" & Dbid() & "?a=dbpage&pageName=success3.html";

"<a class='Vibrant Danger' style=\"width:310px; text-align: center;\" onclick='RedirectURL.value=\"https://scenicsolutionsllc.quickbase.com/db/bqnffbzdf?a=dr&r=bn&rl=ck" & $redirectafter & "\";editform.rl.value=(\"\");DoSave()'; href='#' > Save and Go to Estimate</a>"

------------------------------
Dan McLaughlin
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+22
  • Quickbase Alumni
  • August 7, 2020

replace this 

?a=dr&r=bn&rl=ck"

?a=dr&rid=" & [record ID# of the Grand Parent]

you will get the record ID# of the grand parent by a lookup off the parent record which might be called [Related Parent], but on the lookup call it something like [Record ID# of Grand Parent]  (obviously substitute the real name of the table)

------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------