import Ember from 'ember';
import EditFormController from './edit-form';

export default EditFormController.extend({
  // Caption of this particular edit form.
  title: 'Employee',

  /**
   * Current function to limit accessible values of model employee1.
   *
   * @property lookupLimitFunction
   * @type String
   * @default undefined
   */
  lookupLimitFunction: Ember.computed('model.employee1', function() {
    let currentLookupValue = this.get('model.employee1');
    if (currentLookupValue) {
      let currentLookupText = this.get('model.employee1.firstName');
      return 'FirstName ge \'' + currentLookupText + '\'';
    }

    return undefined;
  })
});

@@ -175,16 +175,453 @@
 oyee',%0A%0A
+  getCellComponent: function(attr, bindingPath, model) %7B%0A    var cellComponent = this._super(...arguments);%0A%0A    if (attr.kind === 'belongsTo' && attr.modelName === 'customer') %7B%0A      cellComponent.componentProperties = %7B%0A        choose: 'showLookupDialog',%0A        remove: 'removeLookupValue',%0A        relationName: 'customer',%0A        projection: 'CustomerL',%0A        title: 'Customer'%0A      %7D;%0A    %7D%0A%0A    return cellComponent;%0A  %7D,%0A%0A
   /**%0A  

Add lookup settings for customer in groupedit