html5pivotviewer icon indicating copy to clipboard operation
html5pivotviewer copied to clipboard

Facet names showing as "undefined"

Open vinull opened this issue 4 years ago • 0 comments

New to the project, setting up the example a lot of the facet categories are showing as undefined. This appears to be the case because of the recent addition of the StripVirtcxml function:

PivotViewer.Utils.StripVirtcxml = function (value) {
    if (value.startsWith ('virtcxml:Facet'))
    return value.substr(14);
};

If the text doesn't start with virtcxml:Facet, nothing is returned. I fixed this by adding one line to the function:

PivotViewer.Utils.StripVirtcxml = function (value) {
    if (value.startsWith ('virtcxml:Facet'))
        return value.substr(14);
    else return value;
};

vinull avatar Dec 02 '20 18:12 vinull