Skuid Docs
  • apps
    • Documentation
    • Design System
    • Learn
    • Community
vspark-u2/12.2.15
1
False
Documentation
  • Concepts
  • Reference
  • Site Administration
  • Tutorials
  • Release Notes
  • Resources
    • Concepts
    • Reference
    • Site Administration
    • Tutorials
    • Release Notes
  1. Concepts
  2. Build
  3. Logic
  4. Filters
  5. Filter by Related Objects

  • Concepts
    • Data
      • Authentication Providers and Data Sources
      • Authentication and Skuid
      • Callback URLs/Redirect URIs
      • Data Source Objects
      • Box
      • DocuSign
        • How to Add a Signer with a Custom Email in DocuSign
      • Google
        • Google Calendar
        • Google Drive
      • Marketo
      • Microsoft
        • Dynamics CRM
        • Excel
        • OneDrive
        • Outlook
        • Sharepoint
      • Salesforce
      • SAP
      • Slack
      • SQL
      • REST
        • REST API Use Case: Create, update and delete records from Oracle
        • URL Merge Condition Example
      • OData
        • Create, update, and delete records from SQL Server
      • Troubleshooting
    • Build
      • The App Composer
      • Pages
        • API Versioning in Skuid
        • Create and Customize Skuid Pages
        • Create a Master and Child Page
        • Page Revisions
        • Optimize Pages
        • Page Packs
        • Modules
        • Page Parameters
      • Models
        • Create and Configure Models
        • Model Conditions
          • Limit Records with a Subquery Condition
        • Model Actions
        • Include Child Fields in a Parent Object
        • Aggregate Models
          • Aggregations in Table and Chart Components
          • An Aggregation Case Study
        • Using Fields
          • Field Metadata Overrides and Cross-Object References
      • Components
        • Layout
          • Button Set
            • Create a Show/Hide Toggle Button
          • Navigation
          • Responsive Grid
          • Search
          • Tab Set
          • Wizard
            • Create a New Account Wizard
          • Wrapper
        • Data
          • Calendar
          • Deck
          • Field Editor
          • File Upload
          • Filter Set
            • Use Reference Filters with Conditions
          • Image
            • Add a Record-Sensitive Image
          • Page Title
          • Queue
          • Rich Text
          • Table
            • Global Table Actions: Attach a File
            • Add Drawers to a Table
            • Add Photo View to a Table
          • Template
        • Advanced
          • Chatter Feed
          • Page Include
        • Visualizations
          • Before You Chart
          • Chart
          • Geochart
          • Enhancing Charts with Actions
        • Component Accessories
          • Feedback
          • Popups
            • Use a Popup to Create New Records
          • Sliding Panels
        • Field Rendering Options
        • Display Logic
          • Create a Render Condition
      • Best Practices
        • Page Performance Guide
        • Skuid and Salesforce Lightning Performance Tips
        • One Save Button Per Page
        • Styling Best Practices
      • Debugging Skuid in the Console
      • Logic
        • Filters
          • Filter on Date Ranges
          • Filter on Numeric Ranges
          • Create a Selectable Filter
            • Use Select Option to Filter on Date Ranges
            • Use Select Option to Filter on a Number Range
            • Use Select Option with Builder-generated Options
            • Use Select Option with Multiple Conditions and Fields
          • Create a Toggle Filter
          • Filter by Related Objects
        • Action Framework
          • Actions Reference
            • Visual Navigation
            • Logic Actions
            • Model Conditions / Querying Actions
            • Model Data Changes Actions
            • Data Source Specific Actions
            • Advanced and Additional Actions
            • Geolocation Actions
            • Native Mobile Actions
          • Action Sequences
            • Inputs How-To: Activate and Set a Condition and Requery Model
        • Merge Syntax
          • Global Merge Variables / Functions
          • Row Merge Variables
          • Data source Merge API Reference
    • Style
      • Themes
        • Theme Composer
        • Custom Fonts
        • Skuid Default Themes
      • Including Custom CSS in a Skuid Page
      • Label Localization
    • Deploy
      • Salesforce Lightning
      • Salesforce Classic
        • skuid:page Visualforce component
        • Salesforce Dashboards
        • Force.com Sites
      • Page Assignments
      • Salesforce Communities
      • Sandboxes and Connected Orgs
      • License and Permission Assignments
      • ISV and Managed Packages
    • Extend
      • Skuid and Apex
        • Apex Triggers
        • Invocable Methods and the Apex Data Source Action
        • Remote Actions
        • Access Apex as a REST data source
        • Access Web Services using the AJAX Toolkit
      • Dynamic Creation of Models and Components
      • CI/CD with Skuid
      • Automated Testing
        • Example Automated Test with Node.js, Selenium, and Jasmine
  • Reference
    • API Reference
      • skuid.$
      • skuid.actions
      • skuid.ajax
      • skuid.builder.core
      • skuid.builder.core.coreProps
      • skuid.calendar
      • skuid.collaboration
      • skuid.component
      • skuid.componentType
      • skuid.events
      • skuid.formula
      • skuid.hotkeys
      • skuid.label
      • skuid.lightning
      • skuid.load
      • skuid.model
      • skuid.model.Model
      • skuid.mustache
      • skuid.page
      • skuid.sfdc
      • skuid.snippet
      • skuid.time
      • skuid.ui
      • skuid.utils
      • skuid.version
      • Component-Specific APIs
      • Skuid Model Metadata Object
      • Skuid Model Child Relationship Metadata Object
      • Skuid Model Condition Metadata Object
      • Skuid Model Field Metadata Object
      • Skuid Model Record Type Metadata Object
    • Page XML API
    • skuid CLI
    • Skuid Metadata Object Reference
      • Authentication providers
      • Data sources
      • Design Systems
      • Files
      • Pages
      • Profiles
      • Sites
      • Themes
    • Skuid Glossary
  • Site Administration
    • Install and Upgrade Skuid on Salesforce
      • Upgrading Skuid on Salesforce
    • Upgrading Skuid on Salesforce
    • Deprecated in Skuid
    • Supported Browsers
    • Using the Keyboard: Shortcuts, Hotkeys, and Accessibility
    • Skuid VPAT for v1
  • Tutorials
    • Skuid Page Tutorials
      • Add Related Lists with the Table Component
      • Build an Activities Related List Tab
      • Build a Custom “Create New Record” Page
      • Build a Custom Detail Page
      • Build a Custom List Page
      • Compose a Branded Header and Navigation
      • Compose a One-Page App Using Tab Actions and Conditional Rendering
      • Conditionally Display Fields
      • Create a Custom Clone Page
      • Create a Custom “Clone Account” page
      • Highlight Critical Data: Wrappers, Rich Text, and Ui-Only Fields
      • Mass Create Records
      • Show Products in an Opportunity Page
      • Skuid Pages for standard Salesforce CRM
    • Salesforce Tutorials
      • Add Product Line Items to Opportunities with a Popup
      • Add Gmail to Salesforce functionality in your email fields
      • Create a Custom Edit Page and Set Visualforce Overrides
      • Getting Help: Grant Skuid Login Rights to your Org
      • Reclaim the Salesforce Home Page
      • Redirect to Salesforce Processes
      • Skuid for Sales: A Turn-Key Template to Augment Lightning Sales Cloud
    • JavaScript Tutorials
      • Progress Indicator Component
      • Simple Map Component
      • Use a Snippet as a Filter Item Source to create “Dependent Filters”
      • Use Inline Javascript to Create a Slider Field Renderer
  • Legal terms and conditions
  • Skuid for Salesforce Evaluation Guide
    • Overview
      • What Is Skuid?
      • What are the benefits of Skuid?
      • How does Skuid maximize my Salesforce investment?
      • When is Skuid a good fit?
      • When is Skuid not a good fit?
      • Who uses Skuid?
      • What do customers say about us?
    • Developing Apps with Skuid
      • The Scalable Kit for User Interface Design (Skuid)
        • Models
        • UI components
        • The Action Framework
        • Display Logic
        • Event System
        • Design System Studio
        • Code Extension
      • The Salesforce Ecosystem
        • Does Skuid work with Lightning?
        • Does Skuid work with Salesforce Communities?
        • Is Skuid compatible with other AppExchange apps?
        • What Salesforce products and services does Skuid support?
      • Mobile
    • App Lifecycle Management
      • Can I build with Skuid in different production environments?
      • Can my entire team develop with Skuid?
      • Analytics
        • Does Skuid work with my third-party analytics software?
        • Does Skuid work with Einstein Analytics?
        • Build your own analytics tracker with Skuid
    • Architecture
      • Skuid on Salesforce Architecture
        • How does Skuid work?
        • How does Skuid get data and does Skuid consume API calls?
        • Is Skuid limited to one sObject or Record Type per page?
        • Does my Salesforce application have to be built completely from Skuid?
        • How does Skuid work with Salesforce Process automation and validation?
      • Lightning
        • How do Skuid pages work in Lightning?
        • Where else in Lightning can I use Skuid?
        • Can I use Lightning components in Skuid pages?
      • Salesforce Classic
        • How do Skuid pages work in Salesforce Classic?
        • Where else in Classic can I use Skuid?
        • What happens if I need to migrate to Lightning after building with Skuid in Classic?
    • Data
      • Skuid and the Salesforce data model
      • Can Skuid Access…
        • Objects?
        • Object Relationships?
        • Salesforce field types?
        • Custom settings?
        • Custom metadata?
        • Big Objects?
        • External Objects?
        • Other Salesforce Orgs?
    • Security
      • Does Skuid store my Salesforce or third-party data?
      • How does Skuid work with Salesforce permission sets, sharing rules, field-level security, and profiles?
      • Does Skuid override Salesforce validation rules and error messages?
      • What security certifications does Skuid have?
    • Performance
      • Does Skuid have data limits?
      • How can Skuid builders optimize for page performance?
  • Filter by Related Objects
    • Parent and child objects
    • Filter records by related child objects
      • Assumptions
      • Add child relationship fields to the account model [[]]
      • Create a condition on the account model [[]]
      • Create a model on the related (child) object [[]]
      • Create the filter [[]]
        • Add a filter source to create the filter’s “none selected” label [[]]
          • Add an effect to the filter source
        • Add a filter source to create the filter’s options [[]]
          • Add an effect to the filter source
    • The result
    • Troubleshooting
      • Not all expected options displaying [[]]

In This Section

  • Concepts
    • Data
      • Authentication Providers and Data Sources
      • Authentication and Skuid
      • Callback URLs/Redirect URIs
      • Data Source Objects
      • Box
      • DocuSign
        • How to Add a Signer with a Custom Email in DocuSign
      • Google
        • Google Calendar
        • Google Drive
      • Marketo
      • Microsoft
        • Dynamics CRM
        • Excel
        • OneDrive
        • Outlook
        • Sharepoint
      • Salesforce
      • SAP
      • Slack
      • SQL
      • REST
        • REST API Use Case: Create, update and delete records from Oracle
        • URL Merge Condition Example
      • OData
        • Create, update, and delete records from SQL Server
      • Troubleshooting
    • Build
      • The App Composer
      • Pages
        • API Versioning in Skuid
        • Create and Customize Skuid Pages
        • Create a Master and Child Page
        • Page Revisions
        • Optimize Pages
        • Page Packs
        • Modules
        • Page Parameters
      • Models
        • Create and Configure Models
        • Model Conditions
          • Limit Records with a Subquery Condition
        • Model Actions
        • Include Child Fields in a Parent Object
        • Aggregate Models
          • Aggregations in Table and Chart Components
          • An Aggregation Case Study
        • Using Fields
          • Field Metadata Overrides and Cross-Object References
      • Components
        • Layout
          • Button Set
            • Create a Show/Hide Toggle Button
          • Navigation
          • Responsive Grid
          • Search
          • Tab Set
          • Wizard
            • Create a New Account Wizard
          • Wrapper
        • Data
          • Calendar
          • Deck
          • Field Editor
          • File Upload
          • Filter Set
            • Use Reference Filters with Conditions
          • Image
            • Add a Record-Sensitive Image
          • Page Title
          • Queue
          • Rich Text
          • Table
            • Global Table Actions: Attach a File
            • Add Drawers to a Table
            • Add Photo View to a Table
          • Template
        • Advanced
          • Chatter Feed
          • Page Include
        • Visualizations
          • Before You Chart
          • Chart
          • Geochart
          • Enhancing Charts with Actions
        • Component Accessories
          • Feedback
          • Popups
            • Use a Popup to Create New Records
          • Sliding Panels
        • Field Rendering Options
        • Display Logic
          • Create a Render Condition
      • Best Practices
        • Page Performance Guide
        • Skuid and Salesforce Lightning Performance Tips
        • One Save Button Per Page
        • Styling Best Practices
      • Debugging Skuid in the Console
      • Logic
        • Filters
          • Filter on Date Ranges
          • Filter on Numeric Ranges
          • Create a Selectable Filter
            • Use Select Option to Filter on Date Ranges
            • Use Select Option to Filter on a Number Range
            • Use Select Option with Builder-generated Options
            • Use Select Option with Multiple Conditions and Fields
          • Create a Toggle Filter
          • Filter by Related Objects
        • Action Framework
          • Actions Reference
            • Visual Navigation
            • Logic Actions
            • Model Conditions / Querying Actions
            • Model Data Changes Actions
            • Data Source Specific Actions
            • Advanced and Additional Actions
            • Geolocation Actions
            • Native Mobile Actions
          • Action Sequences
            • Inputs How-To: Activate and Set a Condition and Requery Model
        • Merge Syntax
          • Global Merge Variables / Functions
          • Row Merge Variables
          • Data source Merge API Reference
    • Style
      • Themes
        • Theme Composer
        • Custom Fonts
        • Skuid Default Themes
      • Including Custom CSS in a Skuid Page
      • Label Localization
    • Deploy
      • Salesforce Lightning
      • Salesforce Classic
        • skuid:page Visualforce component
        • Salesforce Dashboards
        • Force.com Sites
      • Page Assignments
      • Salesforce Communities
      • Sandboxes and Connected Orgs
      • License and Permission Assignments
      • ISV and Managed Packages
    • Extend
      • Skuid and Apex
        • Apex Triggers
        • Invocable Methods and the Apex Data Source Action
        • Remote Actions
        • Access Apex as a REST data source
        • Access Web Services using the AJAX Toolkit
      • Dynamic Creation of Models and Components
      • CI/CD with Skuid
      • Automated Testing
        • Example Automated Test with Node.js, Selenium, and Jasmine
  • Reference
    • API Reference
      • skuid.$
      • skuid.actions
      • skuid.ajax
      • skuid.builder.core
      • skuid.builder.core.coreProps
      • skuid.calendar
      • skuid.collaboration
      • skuid.component
      • skuid.componentType
      • skuid.events
      • skuid.formula
      • skuid.hotkeys
      • skuid.label
      • skuid.lightning
      • skuid.load
      • skuid.model
      • skuid.model.Model
      • skuid.mustache
      • skuid.page
      • skuid.sfdc
      • skuid.snippet
      • skuid.time
      • skuid.ui
      • skuid.utils
      • skuid.version
      • Component-Specific APIs
      • Skuid Model Metadata Object
      • Skuid Model Child Relationship Metadata Object
      • Skuid Model Condition Metadata Object
      • Skuid Model Field Metadata Object
      • Skuid Model Record Type Metadata Object
    • Page XML API
    • skuid CLI
    • Skuid Metadata Object Reference
      • Authentication providers
      • Data sources
      • Design Systems
      • Files
      • Pages
      • Profiles
      • Sites
      • Themes
    • Skuid Glossary
  • Site Administration
    • Install and Upgrade Skuid on Salesforce
      • Upgrading Skuid on Salesforce
    • Upgrading Skuid on Salesforce
    • Deprecated in Skuid
    • Supported Browsers
    • Using the Keyboard: Shortcuts, Hotkeys, and Accessibility
    • Skuid VPAT for v1
  • Tutorials
    • Skuid Page Tutorials
      • Add Related Lists with the Table Component
      • Build an Activities Related List Tab
      • Build a Custom “Create New Record” Page
      • Build a Custom Detail Page
      • Build a Custom List Page
      • Compose a Branded Header and Navigation
      • Compose a One-Page App Using Tab Actions and Conditional Rendering
      • Conditionally Display Fields
      • Create a Custom Clone Page
      • Create a Custom “Clone Account” page
      • Highlight Critical Data: Wrappers, Rich Text, and Ui-Only Fields
      • Mass Create Records
      • Show Products in an Opportunity Page
      • Skuid Pages for standard Salesforce CRM
    • Salesforce Tutorials
      • Add Product Line Items to Opportunities with a Popup
      • Add Gmail to Salesforce functionality in your email fields
      • Create a Custom Edit Page and Set Visualforce Overrides
      • Getting Help: Grant Skuid Login Rights to your Org
      • Reclaim the Salesforce Home Page
      • Redirect to Salesforce Processes
      • Skuid for Sales: A Turn-Key Template to Augment Lightning Sales Cloud
    • JavaScript Tutorials
      • Progress Indicator Component
      • Simple Map Component
      • Use a Snippet as a Filter Item Source to create “Dependent Filters”
      • Use Inline Javascript to Create a Slider Field Renderer
  • Legal terms and conditions
  • Skuid for Salesforce Evaluation Guide
    • Overview
      • What Is Skuid?
      • What are the benefits of Skuid?
      • How does Skuid maximize my Salesforce investment?
      • When is Skuid a good fit?
      • When is Skuid not a good fit?
      • Who uses Skuid?
      • What do customers say about us?
    • Developing Apps with Skuid
      • The Scalable Kit for User Interface Design (Skuid)
        • Models
        • UI components
        • The Action Framework
        • Display Logic
        • Event System
        • Design System Studio
        • Code Extension
      • The Salesforce Ecosystem
        • Does Skuid work with Lightning?
        • Does Skuid work with Salesforce Communities?
        • Is Skuid compatible with other AppExchange apps?
        • What Salesforce products and services does Skuid support?
      • Mobile
    • App Lifecycle Management
      • Can I build with Skuid in different production environments?
      • Can my entire team develop with Skuid?
      • Analytics
        • Does Skuid work with my third-party analytics software?
        • Does Skuid work with Einstein Analytics?
        • Build your own analytics tracker with Skuid
    • Architecture
      • Skuid on Salesforce Architecture
        • How does Skuid work?
        • How does Skuid get data and does Skuid consume API calls?
        • Is Skuid limited to one sObject or Record Type per page?
        • Does my Salesforce application have to be built completely from Skuid?
        • How does Skuid work with Salesforce Process automation and validation?
      • Lightning
        • How do Skuid pages work in Lightning?
        • Where else in Lightning can I use Skuid?
        • Can I use Lightning components in Skuid pages?
      • Salesforce Classic
        • How do Skuid pages work in Salesforce Classic?
        • Where else in Classic can I use Skuid?
        • What happens if I need to migrate to Lightning after building with Skuid in Classic?
    • Data
      • Skuid and the Salesforce data model
      • Can Skuid Access…
        • Objects?
        • Object Relationships?
        • Salesforce field types?
        • Custom settings?
        • Custom metadata?
        • Big Objects?
        • External Objects?
        • Other Salesforce Orgs?
    • Security
      • Does Skuid store my Salesforce or third-party data?
      • How does Skuid work with Salesforce permission sets, sharing rules, field-level security, and profiles?
      • Does Skuid override Salesforce validation rules and error messages?
      • What security certifications does Skuid have?
    • Performance
      • Does Skuid have data limits?
      • How can Skuid builders optimize for page performance?

In This Topic

  • Filter by Related Objects
    • Parent and child objects
    • Filter records by related child objects
      • Assumptions
      • Add child relationship fields to the account model [[]]
      • Create a condition on the account model [[]]
      • Create a model on the related (child) object [[]]
      • Create the filter [[]]
        • Add a filter source to create the filter’s “none selected” label [[]]
          • Add an effect to the filter source
        • Add a filter source to create the filter’s options [[]]
          • Add an effect to the filter source
    • The result
    • Troubleshooting
      • Not all expected options displaying [[]]

Filter by Related Objects¶

A Skuid model pulls in data from one primary data object located in one external system. Most filters work on the fields that are directly pulled from the object. But it’s also possible to filter on data from parent or child objects included in the model.

Parent and child objects¶

In many databases, objects/entities can have relationships, sometimes referred to as master-detail relationships (in Salesforce, for example) or parent-child relationships (in Skuid). For example, if using the Salesforce data source:

  • A Case object is associated with the Accounts object because any Case would stem from an active account. Cases is the child of the parent object, Accounts.
  • Similarly, the Account object is associated with the Contacts and Opportunities objects: the company surfaced as an opportunity; contacts were logged and deals negotiated; upon signing a deal, the lead converted to an account. So all three objects are linked by common data. Accounts is the parent object of Contacts and Opportunities.

Filtering on a related parent object from a child object can generally be performed using automatic filters. However, filtering on a related child object from a parent calls for a slightly different strategy.

Filter records by related child objects¶

The following is a step-by-step example of creating a filter on one object that uses a filtering field from a related child object. The result is a filter that narrows the list of accounts by the associated location of the account’s contacts (the state listed in the contact’s mailing or billing address).

In this situation, the account object is the parent; it can exist without any associated child objects, or it can have one (or many) children. The contacts object, on the other hand, is the child of that parent: in a business environment, there is no reason to keep track of contacts unless they are somehow linked to accounts.

Assumptions¶

Note

The example below assumes a Skuid page with:

  • a functioning model on an object that collects data about accounts (here, the Salesforce Account object)

    • This object has a relationship with an object that stores data about the contacts for those accounts (for example, the Salesforce Contacts object)
  • a Table component on that model with fields for:

    • Account Name
    • Account Description
    • and a few other fields

If using a different data source, the field names indicated may be different.

Add child relationship fields to the account model [[]]¶

  1. Under the model name in the App Elements pane, click Fields.

  2. In Fields, click the Child Relationship tab.

    • Check Contacts.
  3. In the model’s Fields list, click the Contacts field. This opens a list of fields associated with the Contacts child object.

    • Select Name and MailingState/Province.
  4. Drag-and-drop the Contacts field into the Table component.

Warning

Child fields cannot be added using the Add Fields dropdown on the component itself.

  1. Click the newly added Contacts field, and configure in the Properties Pane:

    • Template: Click the field picker to add the Name and Mailing State fields. The template will read: {{Name}}, {{MailingState}}.

Note

To increase readability, separate the field names with punctuation.

  • Delimiter: Use a semicolon.
  1. Click Save.

Create a condition on the account model [[]]¶

Now, create a condition to limit the data displayed in the accounts model to those records that actually have contacts.

Because filtering by related child objects can be tricky, this example uses a subquery condition on the primary object (Account) and a sub-condition on the related child object (Contact) to filter the data.

  1. Under the model name in the App Elements pane, click Conditions.

  2. Click fa-plus-circle Add Condition to add a condition that will limit returned records to those that have contacts:

    • Field: Use the field picker to select the Id field for the parent object.

    • Operator: =

    • Value:

      • Content: Result of a Subquery.
      • Join Object: Contact
      • Join Field: AccountId.
    • State:

      • Condition State: Filterable Default Off.
      • Condition name: Give the condition a helpful name, like AccountId.

Now, filter even more with a sub-condition that limits the account data displayed to those records that actually have contacts with a mailing state indicated.

  1. Click on the condition just created, then click fa-plus-circle Add a Sub-Condition.

  2. Click the sub-condition, and make the following edits:

    • Field: Use the field picker to select Mailing State from the child object.

    • Operator: =

    • Value: Leave blank.

    • State:

      • Condition State: Filterable default off.
      • Condition name: Give the condition a helpful name, like MailingState.

Create a model on the related (child) object [[]]¶

Click fa-plus-circle Add Models to create a model on the related child object—the Contacts object. This model will be used to aggregate the list of states where contacts live.

Then configure that model:

  1. Model Behavior: Aggregate

  2. Max # of records (Limit): Make blank

  3. Under the model name in the App Elements pane, click Groupings, and edit:

    • Grouping Method: Simple
    • Grouping field: Select the same geographical string field used in the sub-condition created above (i.e. MailingState).
  4. Click Save.

Create the filter [[]]¶

Time to create the filter.

  1. On the Table component, click Add Features > Add Table Filter.

Note

You can also add a filter by dragging and dropping a Filter Set component into the page and adding a filter to it.

  1. Click the Filter element, and configure:

    • Filter Type: Select Option
    • Filter Method: Server
    • Pick Options and Conditions: Manually.
    • Model Condition to Affect: Choose the sub-condition created above, MailingState.
    • Show Label above Filter: Yes, use custom label.
    • Filter Label: Contact State
    • Create “None Selected” Option: Uncheck.

Add a filter source to create the filter’s “none selected” label [[]]¶

The easiest way to add a “none selected” label to a filter is by checking Create “None Selected” Option in the Filter Properties, then filling in the “None Selected” Option Text with a short label.

However, this doesn’t always work with conditions and sub-conditions. Instead, add a filter source:

  1. On the filter’s label in the Properties Pane, click fa-database Add Option Source and edit:

    • Source Type: Manual.
  2. On the new source, click fa-plus-circle Add Option and edit:

    • What Condition will this option affect?: Affect Other Condition(s)
    • Label: The label to go on the filter, for example, Pick a state.
Add an effect to the filter source¶
  1. On the filter source, click Add Effect and edit:

    • Action: De-Activate
    • Model Condition: Choose the condition created on the account object, AccountID.
  2. Click Save.

Add a filter source to create the filter’s options [[]]¶

Because this filter uses a sub-condition built on the related child object, the options for the filter must come from that object’s model.

  1. On the filter’s label in the Properties Pane, click fa-database Add Option Source and configure:

    • Source Type: Rows in a Model.
    • Merge Source: Contacts (the model on the related child object)
    • Option Label Template: Use the state field: {{mailingState}}.
    • Which Conditions will this Source’s Options affect? Default condition and others.
    • Value to Inject into the Default Condition: Use the state field: {{mailingState}}.
Add an effect to the filter source¶
  1. On the filter source, click Add Effect and edit:

    • Action: Activate
    • Model Condition: Choose the condition created on the account object, AccountID.
  2. Click Save, then click Preview.

The result¶

The Table component lists all accounts on page load. However, when the filter is activated, the filters narrows the Table’s data to show only the accounts that have contacts (the condition on the parent model) and from that list, further narrows to those accounts that have at least one contact with a mailing address in the selected state (the sub-condition on the parent model).

Troubleshooting¶

Not all expected options displaying [[]]¶

  1. In the primary Model, click Fields.

  2. Click the child field.

  3. In the Property pane, click the Properties tab.

    • Max # of Records to display: This property defaults to 10, which means that Skuid only displays 10 options. However, if there are many associated records, it may be useful to increase the number, or remove the limit entirely by making it blank.

Back to top

Last updated on Jul 07, 2022.

Documentation

  • Concepts
  • Reference
  • Site Administration
  • Tutorials
  • Release Notes

Resources

  • Learn
  • Community
  • Support
  • Contact
  • Skuid

Social

Skuid's Facebook page Skuid's Twitter page Skuid's Linkedin page Skuid's Instagram page

About Skuid

With Skuid’s robust cloud UX design-and-deploy platform, companies seamlessly unite their data, apps, and processes to unleash productivity and engagement, particularly in sales organizations. More than 5.2 million users across 32 countries use Skuid to drive deeper customer obsession and increase pipeline 70-90% faster.

Chattanooga | San Francisco

Have feedback? Contact us at [email protected].

© Copyright Skuid, Inc. 2015-2022 | All rights reserved. Legal terms and conditions.