Forum Discussion
ChayceDuncan
2 years agoQrew Captain
Mike - try this:
function Run() {
let urlParams = new URLSearchParams(window.location.search);
let rid = urlParams.get('newRID');
let dbid = urlParams.get('newDbid');
let yourRealm = "sesgroup";
let url = `https://${yourRealm}.quickbase.com/db/${dbid}?a=dr&rid=${rid}`
if( dbid && rid ) {
setTimeout(() => {
window.location.replace(url)
}, 1000)
} else {
console.log("something went wrong with your parameters", {dbid, rid, yourRealm, url})
}
}
Run();
I stripped out the fetch to make this function even simpler. I'm not sure what the original intent of why it was done this way - but it's not that complicated so this just checks to make sure you have the right parameters and if so does your redirect after 2.5 seconds. Take it for a spin and see if it works.
------------------------------
Chayce Duncan
------------------------------
MikeTamoush
2 years agoQrew Elite
Brilliant that worked thank you!
By the way, any recommendations on learning java? Or just, look around for courses.....
------------------------------
Mike Tamoush
------------------------------