getTableCellValueFromDataRowIsRawCol method

dynamic getTableCellValueFromDataRowIsRawCol(
  1. dynamic dataRow,
  2. dynamic col,
  3. dynamic context,
  4. dynamic isRaw,
)

Implementation

getTableCellValueFromDataRowIsRawCol(dataRow, col, context, isRaw) {
  myLogAll('getTableCellValueFromDataRowIsRawCol');
  dynamic colName = col[gId];
  var result = dataRow[colName];
  if (isNull(result)) {
    return result;
  }
  dynamic inputType = col[gInputType];
  if (inputType == gDatetime) {
    if (isRaw) {
      if (isNull(result)) {
        return 0;
      }
      return getInt("$result");
    }
  }
  if (isRaw) {
    return result;
  }
  return getValueGUI(result, col);
  //return result;
}