Knowledge Base

Our Knowledge Base covers a wide variety of technical topics, from the basic to the complex.

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:

http://quickbase.intuit.com/developer/node/2027

http://quickbase.intuit.com/developer/node/2106

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:

  • You have a "smart" single quote after 19. The quotes used need to be "straight" quotes. The conversion is often due to copying text from a word processing program.
  • There is a period after "Record ID#" - does the field name contain a period?
  • Your formula does not include the subclause necessary to return a subset of detail records. If you insert line breaks between the parts of the formula, it becomes visible. See below:

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

The content of this field is kept private and will not be shown publicly.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.

© 1997-2012 Intuit Inc. All Rights Reserved.

Online Database VeriSign Secured Web Based Software TRUSTe Certification Online Database SSAE Audit