<commit_before>import declare from 'dojo/_base/declare';
import lang from 'dojo/_base/lang';
import List from 'argos/List';
import _LegacySDataListMixin from 'argos/_LegacySDataListMixin';
import getResource from 'argos/I18n';

const resource = getResource('areaCategoryIssueLookup');

/**
 * @class crm.Views.AreaCategoryIssueLookup
 *
 *
 * @extends argos.List
 * @mixins argos._LegacySDataListMixin
 *
 */
const __class = declare('crm.Views.AreaCategoryIssueLookup', [List, _LegacySDataListMixin], {
  // Templates
  itemTemplate: new Simplate([
    '<h3>{%: $.$descriptor %}</h3>',
  ]),

  // Localization
  titleText: resource.titleText,

  // View Properties
  pageSize: 200,
  expose: false,
  enableSearch: false,
  enablePullToRefresh: false,
  id: 'areacategoryissue_lookup',
  queryOrderBy: 'Area,Category,Issue',
  querySelect: [
    'Area',
    'Category',
    'Issue',
  ],
  resourceKind: 'areaCategoryIssues',

  show: function show(options) {
    this.active = options.where;

    options.where = false;

    this.inherited(arguments, [options]);
  },
  requestData: function requestData() {
    if (this.cache) {
      this.processFeed();
    } else {
      this.inherited(arguments);
    }
  },<commit_msg>INFORCRM-14886: Area and Category now properly load data when looking up<commit_after>import declare from 'dojo/_base/declare';
import lang from 'dojo/_base/lang';
import List from 'argos/List';
import _LegacySDataListMixin from 'argos/_LegacySDataListMixin';
import getResource from 'argos/I18n';

const resource = getResource('areaCategoryIssueLookup');

/**
 * @class crm.Views.AreaCategoryIssueLookup
 *
 *
 * @extends argos.List
 * @mixins argos._LegacySDataListMixin
 *
 */
const __class = declare('crm.Views.AreaCategoryIssueLookup', [List, _LegacySDataListMixin], {
  // Templates
  itemTemplate: new Simplate([
    '<h3>{%: $.$descriptor %}</h3>',
  ]),

  // Localization
  titleText: resource.titleText,

  // View Properties
  pageSize: 200,
  expose: false,
  enableSearch: false,
  enablePullToRefresh: false,
  id: 'areacategoryissue_lookup',
  queryOrderBy: 'Area,Category,Issue',
  querySelect: [
    'Area',
    'Category',
    'Issue',
  ],
  resourceKind: 'areaCategoryIssues',

  show: function show(options) {
    this.active = options.where;

    options.where = false;

    this.inherited(arguments, [options]);
  },
  requestData: function requestData() {
    if (this.cache) {
      this.processFeed();
    } else {
      this.inherited(arguments);
    }
    this.isRefreshing = false;
  },
{'fraction_non_alphanumeric': 0.13414634146341464, 'fraction_numerical': 0.007474429583005508, 'mean_word_length': 4.045634920634921, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6702657', 'n_tokens_mistral': 866, 'n_tokens_neox': 832, 'n_words': 174}