getValueByCol method

dynamic getValueByCol(
  1. dynamic data,
  2. dynamic context
)

Implementation

getValueByCol(data, context) {
  myLogAll('getValueByCol');
  if (isNull(data)) {
    return '';
  }
  var col = data[gValue];
  if (isNull(col)) {
    return '';
  }
  if (isNull(_mFocusNode)) {
    return '';
  }
  if (isNull(_mFocusNode[gName])) {
    return '';
  }

  var result = getValue(_mFocusNode[gName], col, _mFocusNode[gId]);
  if (isNull(result)) {
    return '';
  }
  return result[gValue];
}