LOOK UP WINDOW CONFIGURATION

I have a look up window which populates data of ProductType (Please see image below)

 

 

Upon displaying the modal look up window, Now I want it already filtered by default. I want only specific data will be displayed. 

Like 0

Like

3 comments

Dear Fulgen,

Please see the example below:

// 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);
	},

Hope you will find it helpful.

Regards,

Anastasia

Anastasia Botezat,

Good Day Anastasia,

 

What does parameters "Type.Name" and Employee represents?



I want my look up to like this one (please see image below).

Default filter - "Category"

Default filter value - "Hardware";

 

Thanks

Dear Fulgen,

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.

Regards,

Anastasia

Show all comments