This commit is contained in:
2020-12-18 19:59:06 +00:00
parent 92495be7a2
commit d9a8e80e5a

View File

@@ -716,7 +716,7 @@ function buildRecords(listData, columndefinitions) {
let dataType = columndefinitions[iColumn].dt;
let display = column.v;
let openableAyaType = null;
//let openableAyaType = null;
/*
public enum UiFieldDataType : int
@@ -795,24 +795,28 @@ function buildRecords(listData, columndefinitions) {
columndefinitions[iColumn].et,
display
);
//is it an AyaType openable type column like in the EventDataList AyaType column?
if (
columndefinitions[iColumn].et == "AyaType" &&
column.i != null &&
column.i != 0 &&
column.ot == undefined
) {
//yes so provide the ot (openable type) info needed for the grid to make this openable
// console.log("Openable type:", column);
switch (column.v) {
//Not openable types
case 18: //DataListView
break;
default:
openableAyaType = column.v;
break;
}
}
//DEPRECATED WITH ot column value from server see below
// //is it an AyaType openable type column like in the EventDataList AyaType column?
// if (
// columndefinitions[iColumn].et == "AyaType" &&
// column.i != null &&
// column.i != 0 &&
// column.ot == undefined
// ) {
// //yes so provide the ot (openable type) info needed for the grid to make this openable
// // console.log("Openable type:", column);
// switch (column.v) {
// //Not openable types
// case 18: //DataListView
// break;
// default:
// openableAyaType = column.v;
// break;
// }
// }
//---------
// console.log("gz-data-table:buildRecords:enumtype column is ", column);
// //v contains the type number and i contains the id of the record if it's an aytype enum openable
// console.log(
@@ -865,12 +869,12 @@ function buildRecords(listData, columndefinitions) {
columnObject["i"] = column.i;
}
//TODO: Deprecate in favor of ot system below
//is the source column a special AyaType enum with an id signifying to be openable directly?
if (openableAyaType) {
//signal to grid to make it an openable link
columnObject["ot"] = openableAyaType;
}
//DEPRECATED in favor of ot system below
// //is the source column a special AyaType enum with an id signifying to be openable directly?
// if (openableAyaType) {
// //signal to grid to make it an openable link
// columnObject["ot"] = openableAyaType;
// }
//Is there an overriding openable type already defined?
//(this is used by dynamic columns with different object type and id's that are openable like attachments and event logs and Review list etc)