void InitDimensions() { OlapManager objOlapManager = new OlapManager(); objOlapManager.GetCubes(); string selection = DropDownListCubes.SelectedItem.ToString(); List <CubeDef> lCubeList = objOlapManager.LCubes; // scan for selected cube for (int i = 0; i < lCubeList.Count; i++) { string myItem = lCubeList[i].Name; if (myItem == selection) { objOlapManager.GetDimension(lCubeList[i]); break; } } // clear items to avoid duplicates ListBoxDimensions.Items.Clear(); List <string> lDimensions = objOlapManager.LDim; ListBoxDimensions.Rows = lDimensions.Count; for (int i = 0; i < lDimensions.Count; i++) { string myItem = lDimensions[i]; ListBoxDimensions.Items.Add(myItem); } // reload component ListBoxDimensions.DataBind(); objOlapManager.CloseConnection(); }
// init all cubes private void InitCubes() { OlapManager objOlapManager = new OlapManager(); objOlapManager.GetCubes(); // clear items to avoid duplicates DropDownListCubes.Items.Clear(); List <CubeDef> lCubeList = objOlapManager.LCubes; for (int i = 0; i < lCubeList.Count; i++) { string myItem = lCubeList[i].Name; DropDownListCubes.Items.Add(myItem); } objOlapManager.CloseConnection(); }
void InitDimensions() { OlapManager objOlapManager = new OlapManager(); objOlapManager.GetCubes(); string selection = DropDownListCubes.SelectedItem.ToString(); List<CubeDef> lCubeList = objOlapManager.LCubes; // scan for selected cube for (int i = 0; i < lCubeList.Count; i++) { string myItem = lCubeList[i].Name; if (myItem == selection) { objOlapManager.GetDimension(lCubeList[i]); break; } } // clear items to avoid duplicates ListBoxDimensions.Items.Clear(); List<string> lDimensions = objOlapManager.LDim; ListBoxDimensions.Rows = lDimensions.Count; for (int i = 0; i < lDimensions.Count; i++) { string myItem = lDimensions[i]; ListBoxDimensions.Items.Add(myItem); } // reload component ListBoxDimensions.DataBind(); objOlapManager.CloseConnection(); }
// init all cubes private void InitCubes() { OlapManager objOlapManager = new OlapManager(); objOlapManager.GetCubes(); // clear items to avoid duplicates DropDownListCubes.Items.Clear(); List<CubeDef> lCubeList = objOlapManager.LCubes; for (int i = 0; i < lCubeList.Count; i++) { string myItem = lCubeList[i].Name; DropDownListCubes.Items.Add(myItem); } objOlapManager.CloseConnection(); }