Fix bug: the filter doesn't work after rename the field on it
This commit is contained in:
parent
5ab6862b08
commit
106060433d
@ -1,4 +1,6 @@
|
|||||||
# Assign default period to date-pickers
|
# Assign default period to date-pickers
|
||||||
You can assign default period by messures, just use DAX!
|
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
|
# Known issues
|
||||||
* Can't edit date in PowerBiApp(only on some Android devices)
|
* Can't edit date in PowerBiApp(only on some Android devices)
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"visual": {
|
"visual": {
|
||||||
"name": "Period Slice - Syinpo",
|
"name": "PeriodSlice-Syinpo",
|
||||||
"displayName": "Period Slicer - Syinpo",
|
"displayName": "PeriodSlicer-Syinpo",
|
||||||
"guid": "SyinpoPeriodSlice9771124744984CE8959D0304EEAB35E8",
|
"guid": "SyinpoPeriodSlice9771124744984CE8959D0304EEAB35E8",
|
||||||
"visualClassName": "Visual",
|
"visualClassName": "Visual",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "A period slicer, which can be initialized by messures.",
|
"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"
|
"gitHubUrl": "https://github.com/mujiannan/PeriodSlicer-Syinpo"
|
||||||
},
|
},
|
||||||
"apiVersion": "2.6.0",
|
"apiVersion": "2.6.0",
|
||||||
|
@ -153,9 +153,12 @@ export class Visual implements IVisual {
|
|||||||
//determine period from dateSelectors
|
//determine period from dateSelectors
|
||||||
let period: IPeriod = this.periodSelectorManager.period;
|
let period: IPeriod = this.periodSelectorManager.period;
|
||||||
let target: models.IFilterColumnTarget;
|
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 = {
|
target = {
|
||||||
table: this.category.source.queryName.substr(0, this.category.source.queryName.indexOf('.')), // table
|
table: tableName, // table
|
||||||
column: this.category.source.displayName // col1
|
column: fieldName // col1
|
||||||
};
|
};
|
||||||
|
|
||||||
//filter
|
//filter
|
||||||
|
0
support.md
Normal file
0
support.md
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user