Exemple #1
0
		/// <summary>
		/// New QueryTable to map to selected
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>

		void QueryTableAssignmentChanged(object sender, EventArgs e)
		{
			if (InSetup) return;

			CurrentMap.QueryTable = QtSelectorControl.SelectedQueryTable;

			if (QtSelectorControl.IsMapped)
			{
				CurrentMap.AssignInitialMappingForQueryTable(CurrentMap.QueryTable);
				SVM.ImportMobiusDataFile(CurrentMap); // update spotfire view accordingly
				//SVM.MergeMobiusDataFileAndRemapDataTable(CurrentMap); // update spotfire view accordingly
			}

			else // not mapped, restore original table def
			{
				CurrentMap.Clear();
				DataTableMsx dt = SVM.SpotfireApiClient.ResetDataTable(CurrentMap.SpotfireDataTable);
				CurrentMap.InitializeMapForDataTable(dt);
			}

			UpdateFieldGridDataTable();

			return;
		}