// Action handler method. Opens the [Contacts] lookup.
setOwner: function(){// Defining the lookup configuration.
var config ={// The [Contact] Schema.
entitySchemaName:"Contact",
// Multiple selection is disabled.
multiSelect:false,
// The displayed column — [Name].
columns:["Name"]};
var EmployeeFilter =this.Terrasoft.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "Type.Name",
"Employee");
EmployeeFilter.Name="existsFilter";
config.filters= EmployeeFilter;// Opening of the lookup with certain configuration and call-back function that is triggered// after you click [Select].this.openLookup(config, this.lookupCallback, this);},
Base on my example, the "Type.Name" and Employee says, that filter will display contacts, whose type is Employee. You can adjust the filter up to your needs.