Forum Discussion
MichaelTamoush
6 years agoQrew Captain
Adam,
Are you a coder by any chance? I have close to a solution (got some code from Kirk Trachy). It allows a record to be created and 'saved' (it already has a record ID). However, only can create new records, not new children. I'm trying to see if there is a way to launch it from a parent and have it also pass the related parent Record ID down....but I don't code. I just have the code that we could manipulate...
------------------------------
Mike Tamoush
------------------------------
Are you a coder by any chance? I have close to a solution (got some code from Kirk Trachy). It allows a record to be created and 'saved' (it already has a record ID). However, only can create new records, not new children. I'm trying to see if there is a way to launch it from a parent and have it also pass the related parent Record ID down....but I don't code. I just have the code that we could manipulate...
------------------------------
Mike Tamoush
------------------------------
AdamKeever1
6 years agoQrew Commander
I am willing to take a look at it Mike.
------------------------------
Adam Keever
------------------------------
------------------------------
Adam Keever
------------------------------
- AdamKeever16 years agoQrew CommanderFYI, there are a couple user voice posts for this and it has been stated to be on the Quick Base road map for 2020:
------------------------------
Adam Keever
------------------------------- MichaelTamoush6 years agoQrew CaptainCan't wait for the native signatures!! in the mean time....the code below is actually created as an html page (found in Kirks magic buttons). Then I just use a button on my parent form to launch that url. However, I have no idea if it is possible to also pass the record ID of the record from where the page is 'launched'. This is the only way I can see relating the new child back to a parent.
<!DOCTYPE HTML>
<html>
<body>
<script>
var dbid = 'bpybfdg88'; <!-- need to update this to your DBID -->
var apptoken = 'byshepqd4pvnwxyz2rfzdth4b8a'; <!-- need to update this with your app's app token -->
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var response = this.responseXML;
var redirectUrl = "https://" + window.location.hostname + "/db/" + dbid + "?a=er&rid=" + response.getElementsByTagName("rid")[0].textContent+"&rl=bbv";
location.href = redirectUrl;
}
};
xhttp.open("GET", "https://" + window.location.hostname + "/db/" + dbid + "?a=API_AddRecord&apptoken=" + apptoken, true);
xhttp.send();
</script>
</body>
</html>
<!-- If you update to your dbid and your app token and use this link, it will create a record and put you back onto that record in er mode only it will know the Record ID# -->
------------------------------
Mike Tamoush
------------------------------- AdamKeever16 years agoQrew CommanderI know it is not ideal, but the Magic Buttons javascript will run on mobile using the Quick Base Full Site version rather than the Quick Base mobile app.
------------------------------
Adam Keever
------------------------------