html5pivotviewer
html5pivotviewer copied to clipboard
Facet names showing as "undefined"
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;
};