Our Knowledge Base covers a wide variety of technical topics, from the basic to the complex.
Knowledge Base
How do I get an embedded report on my exact form that displays only the columns I want? Can I reduce the list to a subset of related records?
SELECTING COLUMNS
If you place a report link field on your Exact Forms MS Word template this turns into a table that includes all the related records from the details table. If you want a to control what columns appear and in what order you can use the following method:
~=qdb.GetURL("targetdbid", "API_GenResultsTable^query={'12'.EX.'"+ field["Source Field"]+"'}^clist=18.19.20.21.23^options=nvw.ned.phd.nfg.sortorder-A^slist=15");~
You'll need to replace
targetdbid
with the database identifier of the table (details table) from which the embedded view will come from.
You'll have to replace the
12
with the field identifier of the target field (most often this is a reference field) in the details table.
You'll have to replace
Source Field
with the label of the source field (most often this is the key field) in the master table.
You'll have to replace the
18.19.20.21.23
with a period delimited list of the field identifiers that indicate which columns you want in your view. The first field identifier in this list defines the leftmost column of the view.
You'll have to replace the
15
with the field identifier of the field that you want to sort on.
DISPLAYING A SUBSET OF DETAIL RECORDS
Say you want to show only some of the related records based on a value in one of the record's fields. For instance, you only want to include those records whose Billing Status is "Unpaid" or whose Priority is "High."
You can get a subset by inserting the following code snippet in front of "^clist="
AND{'17'.EX.'foobar'}
Following that insertion your formula will look something like this:
~=qdb.GetURL("targetdbid", "API_GenResultsTable^query={'12'.EX.'"+ field["Source Field"]+"'}AND{'17'.EX.'foobar'}^clist=18.19.20.21.23^options=nvw.ned.phd.nfg.sortorder-A^slist=15");~
Within that snippet, you'd replace
17
with the field identifier in the details table that you want to use to select a subset of the records in the details table.
Also as part of the subset, you'll have to replace
foobar
with the criteria that you want to apply against the field whose identifier is 17.
For example, say you only want to show task records whose status is open. If the Status field's ID is 8, this section would read:
AND{'8'.EX.'open'}
____________________________________________________________
To learn more about the query language please read:
http://member.developer.intuit.com/MyIDN/technical_resources/quickbase/f...
To learn about field identifiers and table database identifiers please read the following FAQs respectively:
- Printer-friendly version
- Send to friend
- 29896 reads
Rate This
Similar Articles
Browse by Category
Knowledge Base Categories
- Accounts (36)
- Application (47)
- E-Mail (8)
- Fields (42)
- Forms (20)
- Formulas (18)
- General (55)
- Other Product (7)
- Pages (1)
- Product (5)
- Reports (15)
- Roles (4)
- Search (1)
- Tables (6)



Comments
Exact Forms Embedded Tables
I am trying to get only the embedded details table to print on the exact form, but I continue to receive ALL of the details from the detail table and not just the ones unique to the record from the master table.
Here is my formula,
~=qdb.GetURL("bgisui4bz", "API_GenResultsTable^query={'19’.EX.'"+ field["Record ID#."]+"'}^clist=7.30.6.26.8.9^options=nvw.ned.phd.nfg.sortorder-A^slist=7");~
What am I doing wrong?
formula differences
Hi Blair --
I compared your statement against the statement from the article that resulted in a subset of the detail records. Here's what I found:
Example formula:
~
=qdb.GetURL(
"targetdbid",
"API_GenResultsTable^query={
'12'.EX.' "
+ field["Source Field"]
+" '}AND{'17'.EX.'foobar'}
^clist=18.19.20.21.23^options=nvw.ned.phd.nfg.sortorder-A
^slist=15"
);
~
Your formula:
~
=qdb.GetURL(
"bgisui4bz",
"API_GenResultsTable^query={
'19’.EX.' "
+ field["Record ID#."]
+ " '}
^clist=7.30.6.26.8.9^options=nvw.ned.phd.nfg.sortorder-A
^slist=7"
);
~
Hope this helps,
Sybil
Supress Edit View fields on Exact Form output
I setup an embedded report with my MS Word exact form following the instructions above. How do I remove the first Edit View column form the HTML output?
Error with table in Exact Form
I am new to API's and Java, but have tried to apply the examples in this string. I keep getting that I have an invalid character:
Sorry, 'qdb.GetURL(“bewd5szc6”, "API_GenResultsTable^query={’18'.EX.'"+ field[Store #]+"'}^clist=”6.378.13.222.442"); contains a JavaScript error: Invalid character
What I would really like to do is to just run the qid=216 on the detail table. The tableid=bewd5szc6 for main table, tableid=bcpce8p46 for the detail table, the dbid=bcpce8p45 field 18 is the report link on tableid=bewd5szc6 to the detail table.
errors - invalid character
If you look closely at your string:
'qdb.GetURL(“bewd5szc6”, "API_GenResultsTable^query={’18'.EX.'"+ field[Store #]+"'}^clist=”6.378.13.222.442")
you will see that you have different types of delimiters - " & ' - in the string(like before & after the 18)
Also, watch for spaces, they will kill you.
I've had all sorts of issues with exact forms, got them pretty much working, here is an example, with working delimiters:
~=qdb.GetURL("baffzooey", "API_GenResultsTable^query={'96'.EX.'"+ field["Contact_number"]+"'}^clist=22.23.24.25.26.27.28.29^options=nvw.ned.phd.nfg.sortorder-A^slist=96");~
Hope this helps!
Post new comment