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