Forum Discussion

MyoshiaBoykin-A's avatar
MyoshiaBoykin-A
Qrew Trainee
5 years ago

Can't get API_GenResultsTable to work

I am very new to QB (only one month).  I've created a new table and I have a few table reports.  One of them is a simple query and I am trying to display the results on a web page.  I am trying to get this API call to work using the following HTML code.  Not sure what I'm doing wrong, but all I get is the green box that says "A Quick Base table embedded in a
page of HTML"
:

<html>
<head>
<script lang="javascript" src="my domain and table?a=API_GenResultsTable
&ticket=my new app token
&qid=6&jht=1">
</script>
<style>
td.m { font-family:verdana; font-size:70%; }
td.hd { font-family:verdana; font-size:70%; font-weight:bold;
color:white;}
</style>
</head>
<body>
<h1>Example</h1>
<table cellpadding=5 bgcolor=lightgreen>
<tr>
<td valign=top nowrap><b>A Quick Base table<br>embedded in
a<br>page of HTML
</td>
<td>
<script lang="javascript">
qdbWrite();
</script>
</td>
</tr>
</table>
</body>
</head>
</html>

------------------------------
Myoshia Boykin-Anderson
------------------------------
  • hhersch's avatar
    hhersch
    Quickbase Staff
    Hi - where is your webpage? And is this code on a server or all client side? In general, the suggested methodology for this moving forward will be using our new RESTful APIs and using the response to design your own HTML. We have found that is more successful for people over the years.

    ------------------------------
    Harrison Hersch
    ------------------------------
    • MyoshiaBoykin-A's avatar
      MyoshiaBoykin-A
      Qrew Trainee
      Thanks Harrison!  Right now the webpage is hosted at Google, so it's all on the server.  I'll roll my sleeves up and take a look at the Restful API documentation.  Is there any one discussion that you believe is ideal for a true beginner?  Thanks in advance.

      ------------------------------
      Myoshia Boykin-Anderson
      ------------------------------
      • hhersch's avatar
        hhersch
        Quickbase Staff
        Hey. Yea, we had some awesome sessions on this at Empower. Check out the first 3 sessions listed here.

        ------------------------------
        Harrison Hersch
        ------------------------------