Add an aggregation domain to the palmsplus_domains table.

palms_add_domain(name, formula)

Arguments

name

The name of the domain as a string.

formula

The formula as a string. This should evaluate to a boolean. The formula can contain variables already created with palms_add_field or other previously specified domains.

Make sure to escape quotation marks that are part of the formula.

Value

If the palmsplus_domains table is not present in the global environment, it will be created. If it already exists, the new domain will be appended.

Examples

palms_add_domain("home", "at_home")