Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    CombineFieldData in DataBinding.js overrides null values

    Using version: v110p_2016_08_04

    The problem:
    when I have a dsField with filterEditorProperties:{defaultValue:null} and editorProperties:{defaultValue:1} the resulting filterEditor (in a ListGrid) will show an editor with defaultValue 1.

    Possible solution:
    Take a look ISC_Databinding.js@30500. It checks whether the localField value for the datasource property is null, and if so, overwrite the value with the ds version. I think this is wrong, you should only overwrite a property if it is not available in the localfield.
    Replace: if (localField[propertyName] != null) continue;
    With: if(isc.propertyDefined(localField,propertyName)) continue;


    #2
    We agree, and a change has been made to address the issue - you can test out the fix in builds dated August 11 and later.

    Comment

    Working...
    X