JoeMarchillo
6 years agoQrew Trainee
Re: QID in Query String
var text buttonText = "Get QID";
//if I do this as an alert, the proper qid comes up
var text myQid = "javascript:{ let params = (new URL(document.location)).searchParams; let qid = params.get('qid'); return qid;}";
// set the checkbox and return to the report
var text urlOne = URLRoot() & "db/" & Dbid()& "?act=API_EditRecord&rid=" & [Record ID#] & "&_fid_9=1" & "&apptoken=myapptoken";
var text urlTwo = URLRoot() &"db/" & Dbid() &"?a=q&qid=" & $myQid;
var text href = $urlOne & "&rdr=" & URLEncode($urlTwo);
//I also tried to use the z=rurl() method and was unsuccessful
"<div><a href='" & $href & "' class='btn btn-warning' style='font-weight:bold;text-decoration:none;color:white;'>\n "
& $buttonText
& " \n</a>\n</div>"
------------------------------
Joe Marchillo
------------------------------
//if I do this as an alert, the proper qid comes up
var text myQid = "javascript:{ let params = (new URL(document.location)).searchParams; let qid = params.get('qid'); return qid;}";
// set the checkbox and return to the report
var text urlOne = URLRoot() & "db/" & Dbid()& "?act=API_EditRecord&rid=" & [Record ID#] & "&_fid_9=1" & "&apptoken=myapptoken";
var text urlTwo = URLRoot() &"db/" & Dbid() &"?a=q&qid=" & $myQid;
var text href = $urlOne & "&rdr=" & URLEncode($urlTwo);
//I also tried to use the z=rurl() method and was unsuccessful
"<div><a href='" & $href & "' class='btn btn-warning' style='font-weight:bold;text-decoration:none;color:white;'>\n "
& $buttonText
& " \n</a>\n</div>"
------------------------------
Joe Marchillo
------------------------------