Create a Relationship

You can create a relationship between two tables within an application, or even between two tables in separate applications (though these applications must reside within the same billing account). If you're not quite sure what a relationship is or why you might want to create one, read about relationships to find out.

Creating a relationship across applications

If you're creating a relationship between two tables in different applications, you first need to open communication between them. To do this, you'll open one application and give the other application permission to create a relationship with it. After that, follow the steps for creating a relationship in the next section. To give permission:

  1. Open the application that contains the master table that you want to relate. (Don't know what a master table is? Read about relationships.)

  2. In the menu bar, click Customize > Application. On the left side of the Settings tab, click Cross-Application Relationships.

  3. Click the Add Application button.

  4. From the list of applications that appears, select the application with which you want to create a relationship and click OK.

    QuickBase lists your application in the Cross-application Relationships section.

  5. Select a role.

    If you need to limit access to certain records in the master application, this is an important step. Your choices here depend upon what roles you've set up for this (master) application. The role you choose affects what information is available to the detail application. For example, say your HR department maintains an application to track information on all your employees. Your sales department has a separate marketing application and they would like to create a relationship with the HR application to populate some of their fields. However, you don't want the sales application to be able to see confidential employee information. The answer is to create a role called "sales" in the HR application that limits the report to only those fields you want salespeople to see, like name and telephone extension. Then, grant the sales application the ability to create a relationship with the HR application, specifying that it can only access the HR application in the "sales" role.

  6. Click Save.

  7. Follow the steps in the next section to create the relationship.

To create a relationship:            

  1. Open the application that contains the tables you want to relate. (If you're creating a relationship between two applications and you followed the instructions in the preceding section, open the other application—the one you didn't set permissions on. This application should contain the details table)

  2. In the table bar on any application page, click the name of one table you want to relate. Within the menu that appears, select Customize --tablename-- table > Relationships.

  3. On the upper right of the Relationships tab that displays, click the New Relationship button.

  4. From the drop-down lists, select the two tables that you want to relate.

  5. Select the option that describes the type of relationship you want to create, and click Next.

    Within the Create Relationship - Step 2 (of 3) screen, you're telling QuickBase which table should be the detail table and which should be the master table. The detail table draws and displays values from the master table in what's called a one-to-many relationship. One record in the master table could apply to many records in the detail table. For example, one Project may have many Tasks associated with it. (For help with this choice, read about relationships.)

  6. Set relationship properties.

    The Create Relationship - Step 3 (of 3) screen shows you how QuickBase will set up your relationship. It provides some basic information and lets you make a few choices.

  7. Once you've made your choices on the Step 3 (of 3) screen, click Save.

  8. Tell QuickBase if you want this relationship's fields to appear on forms.

    QuickBase displays a prompt that asks you if you want features of this relationship to show up on data-entry and display forms. Master and Detail forms offer different options:

    Turn on the checkbox for each form you want to feature relationship fields and click OK. QuickBase displays the Relationships tab.

  9. To see the details of the relationship you just created, click its Edit button.

  10. If you want, designate a reference field proxy.

  11. Configure the relationship's reference field.

     

     

    Dropdown List - The Project Name Reference field displays as a dropdown list.

    Record Picker - When you click the Reference field and select Browse Choices, a Record Picker dialogue box appears.

    QuickBase reference fields automatically show a dropdown list. If you'd prefer the Record Picker, edit the reference field's properties page (on a form, right-click the name of the field and select Edit the field properties for this field). When the properties page displays, scroll to the Reference Field Options section and turn on the On add/edit forms use the Record Picker rather than a drop-down menu checkbox.


Related Topics

 

Return to top

© 1999-2010 Intuit Inc. All rights reserved.