Fix bug: the filter doesn't work after rename the field on it

This commit is contained in:
沐见南 2020-04-26 23:05:04 +08:00
parent 5ab6862b08
commit 106060433d
6 changed files with 32 additions and 49 deletions

View File

@ -1,4 +1,6 @@
# Assign default period to date-pickers
You can assign default period by messures, just use DAX!
# Version 1.0.1
1. Fix bug: the filter doesn't work after rename the field on it
# Known issues
* Can't edit date in PowerBiApp(only on some Android devices)

View File

@ -4,9 +4,9 @@
"displayName": "PeriodSlicer-Syinpo",
"guid": "SyinpoPeriodSlice9771124744984CE8959D0304EEAB35E8",
"visualClassName": "Visual",
"version": "1.0.0",
"version": "1.0.1",
"description": "A period slicer, which can be initialized by messures.",
"supportUrl": "https://github.com/mujiannan/PeriodSlicer-Syinpo/issues",
"supportUrl": "http://www.syinpo.com",
"gitHubUrl": "https://github.com/mujiannan/PeriodSlicer-Syinpo"
},
"apiVersion": "2.6.0",

View File

@ -153,9 +153,12 @@ export class Visual implements IVisual {
//determine period from dateSelectors
let period: IPeriod = this.periodSelectorManager.period;
let target: models.IFilterColumnTarget;
let splitPosition:number=this.category.source.queryName.indexOf('.');
let tableName:string=this.category.source.queryName.substr(0, splitPosition);
let fieldName:string=this.category.source.queryName.substr(splitPosition+1,this.category.source.queryName.length-splitPosition-1);
target = {
table: this.category.source.queryName.substr(0, this.category.source.queryName.indexOf('.')), // table
column: this.category.source.displayName // col1
table: tableName, // table
column: fieldName // col1
};
//filter

0
support.md Normal file
View File

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long