Forum
Entity Relationship Diagrams in Quickbase?
Forum
Demo
Demo
Content
[Content] is a script intended to be entered through the Developer Tools Console tab
var mdbid,mfid,ddbid,dfid,external;
var murl,mname,mkfn;
var durl,dname,drfn;
var gv="";
gv += 'graph "Northwind Traders" {\n';
gv += '\n';

gv += ' graph [overlap=false, splines=ortho];\n';
gv += '\n';
gv += ' node [shape=box]; ';

for (dbid in gTableInfo) {
 gv += '"' + gTableInfo[dbid].name + '"; ';
}
gv += '\n';
gv += '\n';

$.ajaxSetup({async: false});
for (var i=0; i<rinfo.length; i++) {
 mdbid    = rinfo[i].mdbid;
 mfid     = rinfo[i].mfid;
 ddbid    = rinfo[i].ddbid;
 dfid     = rinfo[i].dfid;
 external = rinfo[i].external;

 murl = "";
 murl += "https://www.quickbase.com/db/"
 murl += mdbid;
 murl += "?act=API_GetSchema";
 $.get(murl,function(mxml){
  mname = $("qdbapi table name",mxml).text();
  mkfn =  $("qdbapi table fields field[id=" + mfid + "]",mxml).find("label").text();
 });

 durl = "";
 durl += "https://www.quickbase.com/db/"
 durl += ddbid;
 durl += "?act=API_GetSchema";
 $.get(durl,function(dxml){
  dname = $("qdbapi table name",dxml).text();
  drfn =  $("qdbapi table fields field[id=" + dfid + "]",dxml).find("label").text();
 });

 gv += ' "' + mname + '" -- "' + dname + '" ';
 gv += ' [fontsize=8, minlen=3, len=1.00, ';
 gv += ' taillabel="[' + mfid + ']",';
 gv += ' headlabel="[' + dfid + ']",';
 gv += ' arrowhead=crow, dir=forward];';
 gv += '\n';

}
gv += '\n';
gv += ' label = "\\n\\nQuickBase Northwind Traders ER Diagram\\ndrawn by NEATO";';
gv += '\n';
gv += ' fontsize=20;\n';
gv += '}';

$("body").prepend("<textarea rows='10' cols='60'>" + gv + "</textarea>");

//GraphViz command to produce png image
//dot -Tpng er_diagram.gv > er_diagram.png
Copy [Content] to Clipboard
PastieURL
Usage Notes
used Northwind Traders to test updated pastie code old pastie was: http://pastie.org/2400518
Other & Flags
Yes  
Diebolt, Dan
Created on Aug. 20, 2011 at 12:43 AM (CST). Last updated by Diebolt, Dan on March 11, 2018 at 10:11 AM (CST). Owned by Diebolt, Dan.
Dan Diebolt
Dan Diebolt
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