anchor.diff:  					columns: [						
   						{ text: 'Name', dataIndex: 'name', minWidth: 200, flex:1},
   						{ text: 'Description', dataIndex: 'description', flex: 1, minWidth: 200 },
  -						{ text: 'Type', dataIndex: 'organizationType', width: 200 },
  +						{ text: 'Type', dataIndex: 'organizationTypeDescription', width: 200 },
   						{ text: 'Web Site', dataIndex: 'homeUrl', width: 200, hidden:true },
   						{ text: 'Address', dataIndex: 'address', width: 150, hidden:true },
   						{ text: 'Agency', dataIndex: 'agency', width: 150, hidden:true },
  
positive.code: 					id: 'refWin',
  					title: 'Organization References',
  					modal: true,
  					width: '40%',
  					height: '50%',
  					layout:'fit',
  					maximizable: true,
  
negative.code: 							}),
  							columnLines: true,
  							columns: [						
  								{ text: 'Reference Name', dataIndex: 'referenceName', flex: 1, minWidth: 200 },
  								{ text: 'Reference Type', dataIndex: 'referenceType', width: 300 }
  							]
  						}
  					]
  					});	
  				//
  				//
  				//  Merge Window
  				//
  				//
  				var mergeWin = Ext.create('Ext.window.Window', {
  					id: 'mergeWin',
  					title: 'Merge Organizations',
  					modal: true,
  					width: '50%',
  					y: 40,
  					resizable: false,
  					items: [
  						{	xtype: 'form',
  							id: 'mergeForm',
  							scrollable: true,
  							style: 'padding: 10px;',
  							layout:'vbox',
  							defaults: {
  								labelAlign: 'top'
  							},
  							items: [
  								{
  									xtype: 'textfield',
  									id: 'targetId',
  									name: 'targetId',
  									style: 'padding-top: 5px;',
  									width: '100%',
  									hidden: true
  								},
  								{
  									xtype: 'combobox',
  									name: 'mergeId',
  									id: 'mergeId',
  									fieldLabel: 'Merge this',
  									width: '100%',
  									maxLength: 50,
  									displayField: 'name',
  									valueField: 'organizationId',
  									editable: false,
  									allowBlank: false
  								},
  								{
  									xtype: 'textfield',
  									id: 'targetOrganization',
  									fieldLabel: 'Into Target',
  									name: 'targetOrganization',
  									style: 'padding-top: 5px;',
  									width: '100%',
  									readOnly:true
  								}
  								
  							]
  					}],
  				    dockedItems: [
  						{
  							xtype: 'toolbar',
  							dock: 'bottom',
  							items: [
  								{
  									text: 'Save',
  									iconCls: 'fa fa-save',
  									formBind: true,
  									handler: function(){
                                          var data = Ext.getCmp('mergeForm').getValues();
  										if(data.mergeId === ''){
  											Ext.toast('You must enter an merge organization that merges into the target.', '', 'tr');
  											return;
  										}
  										else if(data.mergeId === data.targetId){
  											Ext.toast('You cannot merge the same organizations together.', '', 'tr');
  											return;
  										}
  										
  										var url = '../api/v1/resource/organizations/'+data.targetId+'/merge/'+data.mergeId;     
  										Ext.getCmp('mergeForm').setLoading(true);
  										
  										CoreUtil.submitForm({
  											url: url,
  											method: 'POST',
  											removeBlankDataItems: true,
  											form: Ext.getCmp('mergeForm'),
  											success: function(response, opts) {
  												Ext.toast('Merged Successfully', '', 'tr');
  												Ext.getCmp('mergeForm').setLoading(false);
  												Ext.getCmp('mergeWin').hide();													
  												refreshGrid();												
  											}
  										});												
  									}
  								},
  								{
  									xtype: 'tbfill'
  								},
  								{
  									text: 'Cancel',
  									iconCls: 'fa fa-close',
  									handler: function(){
  										Ext.getCmp('mergeWin').close();
  									}											
  								}
  							]
  						}
  					]
  				});
  				
  				//
  				//
  				//  ADD EDIT ORG WINDOW
  				//
  				//
  				var orgTypeStore = Ext.create('Ext.data.Store', {
  					id:'orgTypeStore',
  					autoLoad: true,
  					remoteSort: true,
  					pageSize: 500,
  					sorters: [
  						new Ext.util.Sorter({
  							property: 'description',
  							direction: 'DESC'
  						})
  					],
  					proxy: CoreUtil.pagingProxy({
  						url: '../api/v1/resource/lookuptypes/OrganizationType',
  						reader: {
  							type: 'json',
  							rootProperty: 'data',
  							totalProperty: 'totalNumber'
  						}
  					})
  				});
  				
  				var addEditWin = Ext.create('Ext.window.Window', {
  					id: 'addEditWin',
  					title: 'Organization',
  					modal: true,
  					width: '70%',
  					resizable: false,
  					items: [
  						{
  							xtype: 'form',
  							id: 'entryForm',
  							scrollable: true,
  							layout:'column',
  							defaults: {
  								labelAlign: 'top'
  							},
  							items: [
  								{
  									xtype: 'panel',
  									columnWidth: 0.5,
  									title: 'Organization Information',
  									defaults: {
  										labelAlign: 'top'
  									},
  									style: 'padding: 10px;',
  									items: [
  										{
  											xtype: 'textfield',
  											id: 'name',
  											fieldLabel: 'Name<span class="field-required" />',
  											name: 'name',
  											style: 'padding-top: 5px;',
  											width: '100%',
  											allowBlank: false,
  											maxLength: 30		
  										},
  										{
  											xtype: 'textarea',
  											id: 'description',
  											fieldLabel: 'Description',
  											name: 'description',
  											style: 'padding-top: 5px;',
  											width: '100%',
  											maxLength: 255		
  										},
  										{
  											xtype: 'textfield',
  											id: 'homeUrl',
  											fieldLabel: 'Organization URL',
  											name: 'homeUrl',
  											style: 'padding-top: 5px;',
  											width: '100%',
  											maxLength: 150		
  										},
  										{
  											xtype: 'combobox',
  											name: 'organizationType',
  											id: 'organizationType',
  											fieldLabel: 'Organization Type',
  											width: '100%',
  											maxLength: 50,
  											store: orgTypeStore,
  											displayField: 'description',
  											valueField: 'code',
  											editable: false,
  											allowBlank: true		
  										}
  										
  									]
  								},
  								{
  									xtype: 'panel',
  									columnWidth: 0.5,
  									title: 'Main Contact Information',
  									defaults: {
  										labelAlign: 'top'
  									},
  									style: 'padding: 10px;',
  									items: [
  										{
  											xtype: 'textfield',
  											id: 'contactName',
  											fieldLabel: 'Contact Name',
  											name: 'contactName',
  											style: 'padding-top: 5px;',
  											width: '100%',
  											maxLength: 30	
  										},
  										{
  											xtype: 'textfield',
  											id: 'contactPhone',
  											fieldLabel: 'Phone',
  											name: 'contactPhone',
  											style: 'padding-top: 5px;',
  											width: '100%',
  											maxLength: 20	
  										},
  										{
  											xtype: 'textfield',
  											id: 'contactEmail',
  											fieldLabel: 'Email',
  											name: 'contactEmail',
  											style: 'padding-top: 5px;',
  											width: '100%',
  											maxLength: 120	
  										},
  										{
  											xtype: 'textfield',
  											id: 'agency',
  											fieldLabel: 'Agency',
  											name: 'agency',
  											style: 'padding-top: 5px;',
  											width: '100%',
  											maxLength: 30	
  										},
  										{
  											xtype: 'textfield',
  											id: 'department',
  											fieldLabel: 'Department',
  											name: 'department',
  											style: 'padding-top: 5px;',
  											width: '100%',
  											maxLength: 30	
  										},
  										{
  											xtype: 'textfield',
  											id: 'address',
  											fieldLabel: 'Address',
  											name: 'address',
  											style: 'padding-top: 5px;',
  											width: '100%',
  											maxLength: 50	
  										}
  									]
  								}
  							],
  							dockedItems: [
  								{
  									xtype: 'toolbar',
  									dock: 'bottom',
  									items: [
  										{
  											text: 'Save',
  											iconCls: 'fa fa-save',
  											formBind: true,
  											handler: function(){
  												
  												var method = Ext.getCmp('entryForm').edit ? 'PUT' : 'POST'; 												
  												var data = Ext.getCmp('entryForm').getValues();
  												var url = Ext.getCmp('entryForm').edit ? '../api/v1/resource/organizations/' + selectedObj.data.organizationId : '../api/v1/resource/organizations';       
                                                  console.log("Made It ",selectedObj);
  												CoreUtil.submitForm({
  													url: url,
  													method: method,
  													data: data,
  													removeBlankDataItems: true,
  													form: Ext.getCmp('entryForm'),
  													success: function(response, opts) {
  														Ext.toast('Saved Successfully', '', 'tr');
  														Ext.getCmp('entryForm').setLoading(false);
  														Ext.getCmp('addEditWin').hide();													
  														refreshGrid();												
  													}
  												});												
  											}
  										},
  										{
  											xtype: 'tbfill'
  										},
  										{
  											text: 'Cancel',
  											iconCls: 'fa fa-close',
  											handler: function(){
  												Ext.getCmp('addEditWin').close();
  											}											
  										}
  									]
  								}
  							]
  						}
  					]
  				});
  				
  			});
  		</script>	
  