|
|
@@ -858,6 +858,7 @@ class TableAjax extends ViewAjax {
|
|
|
// console.log('FieldWidget: generate function to render field('+_fieldName+') _fractionDigits('+_fractionDigits+')', fieldProps);
|
|
|
return function(val, fieldPK, row) {
|
|
|
// console.log('FieldWidget: pk('+fieldPK+') run function to render field('+_fieldName+') with value('+val+') ', fieldProps);
|
|
|
+ if ('' === val) return null; // is nullable
|
|
|
if ('*****' === val) return val
|
|
|
// enumeration
|
|
|
// fractionDigits
|
|
|
@@ -1157,13 +1158,11 @@ class TableAjax extends ViewAjax {
|
|
|
|
|
|
// test use field widgets
|
|
|
fldWidgetNode = priv.renderFieldWidget_TableCell(columnName, val, rowPK, props);
|
|
|
- if (fldWidgetNode) {
|
|
|
+ if (fldWidgetNode || fldWidgetNode === 0) {
|
|
|
cellCnt.empty();
|
|
|
cellCnt.append(fldWidgetNode);
|
|
|
} else if (fldWidgetNode === '') {
|
|
|
cellCnt.empty();
|
|
|
- } else if (fldWidgetNode === 0) {
|
|
|
- cellCnt.empty();
|
|
|
} else {
|
|
|
console.log('TODO: !FieldWidget for row.pk('+rowPK+') col('+columnName+') typeof fldWidgetNode(' + (typeof fldWidgetNode) + ') columnProps', columnProps, 'fldWidgetNode', fldWidgetNode, 'value', props[columnName]);
|
|
|
}// test fld widgets
|