Skip to main content
Question

Javascript SDK - Copy Parent and Child records to two new tables


So I have been working on this project relentlessly for a while now, and I feel that I am so close. I am creating checklists, and am using 4 tables to do so. I have the following tables

Checklist Task Templates
Checklist Templates
Checklists
Tasks

I have this set up so that the [Checklist Task Templates] feed into the [Checklist Templates] as child records.

The idea was to then have a button that would be clicked that could copy the parent and child records from the [Checklist Templates] table and put the corresponding data into the [Checklists] and [Tasks] Table. 

I got this setup from the All-Star Project + Task Templates in the Quick Base Exchange. This app did exactly what I was looking for, so I used the same logic and setup for the app I had started. However, this app uses the Javascript SDK. I made the attempt to set this up, but honestly can't figure out if I'm supposed to install the QuickBaseClient.js file somewhere, and if so where to do it. 

So after searching the community, it appears this may be an outdated method of performing this task. So I am seeking information on how to either implement the Javascript SDK method, or a more modern solution to my problem. 

Thanks!!
This topic has been closed for replies.

  • Registered
  • June 19, 2017
That SDK is outdates yes, but you just need to reference it in you code and it still should work just fine.

The github page for QuickBaseClient.js hasn't been updated for five years:

https://github.com/QuickbaseAdmirer/Quickbase-JavaScript-SDK/wiki

And it references JavaScript version 1.2 which had a release date of 1997 (20 years ago!)

<script language="JavaScript1.2" src="/js/QuickBaseClient.js"></script>

https://en.wikipedia.org/wiki/JavaScript#Version_history

This library is so woefully out of date that is from the stone age. Using it will only hinder you.

The QuickBaseClient.js SDK can be implemented within your .js file by using jQuery. This is of course assuming that you are referencing the script directly from your button. To do this, add your code between the following.



$(document).ready(function(){
    $.getScript("/js/QuickBaseClient.js", function(){
    
    // your code here

    });
});