QuickBase API Cookbook v3 - Recipe #7
Run an API script by clicking a web link
Script URL
You have written a script and want to run it by clicking a link in a web page.
1. Modify the qbc.makeCSVFile.qbc file installed with the ruby wrapper and make sure it does what you want by typing:
ruby QuickBaseClient.rb run qbc.makeCSVFile.qbc
2. At a prompt, type ruby QuickBaseClient.rb runwebclient
3. Open a browser and type http://127.0.0.1:2358/qbc/qbc.makeCSVFile.qbc into the Address box. 

"127.0.0.1" tells a browser to look on the user's own machine for a web server. This means that people on different computers would all have to have QuickBaseClient.rb and qbc.makeCSVFile.qbc on their computer, and qbc.makeCSVFile.qbc could do different things for each user. It is more likely that everyone will expect the same behavior when a specific URL is entered or clicked, and that most people will not have QuickBaseClient.rb or Ruby on their computer. To run command files that are on a particular machine:-

1. Find out the IP address or web-accessible name of the machine.
2. On that machine, type ruby QuickBaseClient.rb runwebclient <IP Address>
3. In the browser Address box or web page link, use http://<IP Address>:2358/qbc/qbc.makeCSVFile.qbc. 

This solution is for developers who don't have access to a web server.  If you have access to a web server, it makes more sense to run scripts via CGI, servlets, or similar means.
Ruby wrapper for QuickBase HTTP API One-Click Ruby Installer for Windows
Created on Sept. 29, 2006 at  9:54 PM (PDT). Last updated by Quick Base on Oct.  1, 2006 at  2:59 PM (PDT). Owned by Quick Base.
Quick Base
Quick Base
Show fields from Show fields from Show fields from a related table
Report Name *
Description
Reports and Charts Panel
Each table has a panel listing its reports and charts, organized in groups.
Please wait while your new report is saved...
Field label
Column heading override
Justification
What does auto mean?
Fields in:

Fields to Extract:

Name for the new table:
Items in the new table are called:

When you bring additional fields into a conversion, Quickbase often finds inconsistencies. For example, say you're converting your Companies column into its own table. One company, Acme Corporation, has offices in New York, Dallas and Portland. So, when you add the City column to the conversion, Quickbase finds three different locations for Acme. A single value in the column you're converting can only match one value in any additional field. Quickbase needs you to clean up the extra cities before it can create your new table. To do so, you have one of two choices:

  • If you want to create three separate Acme records (Acme-New York, Acme-Dallas and Acme-Portland) click the Conform link at the top of the column.
  • If the dissimilar entries are mistakes (say Acme only has one office in New York and the other locations are data-entry errors) go back into your table and correct the inconsistencies—in this case, changing all locations to New York. Then try the conversion again.

Read more about converting a column into a table.

We're glad you're interested in doing more with Quickbase!

Now we need to make you official before you share apps or manage your account.

Verifying your email lets you share Quickbase with others in your company.

Your work email
Your company