Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. {
  2. {"error_message": "java.lang.NullPointerException: null"}
  3. items: []
  4. }
  5.  
  6. this.folderNameStore = new Ext.data.JsonStore({
  7. proxy: new Ext.data.HttpProxy({
  8. url: this.config.folderNamesPath,
  9. method: 'GET',
  10. timeout: 120000
  11. }),
  12. listeners: {
  13. beforeload: {
  14. fn: function() {
  15. var informaticaRepositoryId = this.getInformaticaRepositoryId();
  16. if (informaticaRepositoryId) {
  17. this.folderNameStore.setBaseParam('informatica_repository_id', informaticaRepositoryId);
  18. }
  19. },
  20. scope: this
  21. }
  22. },
  23. root: 'items',
  24. idProperty: 'folder_name',
  25. fields: ['folder_name']
  26. });
  27. // Custom rendering Template
  28. resultTpl = new Ext.XTemplate('<tpl for="."><div class="informatica_workflow_command_folder_name-finder-item finder-item x-combo-list-item">', '<h2 class="name">{folder_name}</h2>', '</div></tpl>');
  29.  
  30. this.folderNameComboBox = new Ext.form.ComboBox({
  31. allowBlank: false,
  32. applyTo: "informatica_workflow_command_folder_name",
  33. disabled: true,
  34. displayField: 'folder_name',
  35. forceSelection: false,
  36. hideTrigger: false,
  37. mode: 'remote',
  38. itemSelector: 'div.informatica_workflow_command_folder_name-finder-item',
  39. listClass: 'job-agents-combobox',
  40. listEmptyText: helpsys.locale.javascript.no_matching_record,
  41. loadingText: helpsys.locale.common.searching,
  42. minChars: 4,
  43. submitValue: false,
  44. store: this.folderNameStore,
  45. tpl: resultTpl,
  46. triggerAction: 'all',
  47. typeAhead: true,
  48. maxLength: 80,
  49. maxHeight: 400,
  50. autoCreate: {tag: 'input', type: 'text', maxlength: '80'},
  51. valueField: 'folder_name',
  52. itemSelected: false,
  53. oldValue: '',
  54. listeners: {
  55. change: function () {
  56. this.updateFolderNameComboBox();
  57. },
  58. select: function () {
  59. this.updateFolderNameComboBox();
  60. },
  61. keyup: function() {
  62. this.updateFolderNameComboBox();
  63. },
  64. scope: this
  65. }
  66. });
  67.  
  68. this.updateFolderNameComboBox = function () {
  69. if (this.folderNameComboBox.value == '') {
  70. this.workflowNameComboBox.markInvalid();
  71. } else {
  72. if (this.folderNameComboBoxValue != this.folderNameComboBox.getValue()) {
  73. this.workflowNameComboBox.markInvalid();
  74. }
  75.  
  76. this.workflowNameComboBox.store.removeAll();
  77. this.workflowNameComboBox.lastQuery = null;
  78. this.workflowNameComboBox.enable();
  79.  
  80. this.folderNameComboBoxValue = this.folderNameComboBox.getValue();
  81. }
  82. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement