function createDimension(dRow) {
var myTable = document.createElement("table");
var mytablebody = document.createElement("tbody");
var selectedProj = $('#ui_Project option:selected').text();
for (var j = 0; j < 1; j++) {
mycurrent_row = document.createElement("tr");
mycurrent_row1 = document.createElement("tr");
$.get(selectedProj, {}, function (xml) {
$('BiDimension', xml).children('Name').each(function (d) {
var title2 = $(this).text();
mycurrent_cell = document.createElement("td");
currenttext = document.createTextNode(title2);
mycurrent_cell.appendChild(currenttext);
mycurrent_row.appendChild(mycurrent_cell);
mytablebody.appendChild(mycurrent_row);
});
});
}
myTable.appendChild(mytablebody);
return myTable;
}
//create Measures
function createMeasure(mRow) {
var myTable = document.createElement("table");
var mytablebody = document.createElement("tbody");
var selectedProj = $('#ui_Project option:selected').text();
var selectedCube = $('#ui_Cubes option:selected').text();
var cube;
$.get(selectedProj, {}, function (xml) {
$('BiCube', xml).find('BiMeasure').children('Name').each(function (d) {
cube = $(this).parent().parent().parent().children('Name').text();
if (cube === selectedCube) {
for (var i = 0; i < 1; i++) {
var title2 = $(this).text();
mycurrent_row = document.createElement("tr");
mycurrent_cell = document.createElement("td");
currenttext = document.createTextNode(title2);
mycurrent_cell.appendChild(currenttext);
mycurrent_row.appendChild(mycurrent_cell);
mytablebody.appendChild(mycurrent_row);
}
}
});
});
myTable.appendChild(mytablebody);
return myTable;
}