Forum Discussion

PeteJames's avatar
PeteJames
Qrew Cadet
4 years ago

Save child record and redirect to a report in a new window

I think I've found a solution - below

var text URL = "https://xxxx.quickbase.com/db/yyyyyyy?a=q&qid=1&query={'7'.'EX'.'" & [Order Number] & "'} AND {'16'.'EX'.'" & [SKU] & "'}";
"<a class='OpenAsPopup' href='" & $URL & "' data-height=1200 data-width=1200 data-refresh=true>Add this SKU</a>"



scenario is as follows.

User is editing a child record from within the parent record. They need to click on a button which would save the child record and close, returning to the parent record and  at the same time open a report in a new window.

I found things like this but they are no longer supported.

var text URL = "https://xxxxx.quickbase.com/db/yyyyyyy?a=q&qid=1&query={'7'.'EX'.'5484'} AND {'16'.'EX'.'74369'}";
"<div class='Vibrant Success' onclick='RedirectURL.value=" & $URL & ";editform.rl.value=''DoSave();'>Save</div>"

I assume it will need a code page but not sure how to proceed.

thanks.
Peter

------------------------------
Pete James
------------------------------
No RepliesBe the first to reply