Saurabh Dixit Posted May 30, 2018 Share Posted May 30, 2018 How we use Filtering function form external website Javascript. https://docs.tibco.com/pub/sfire_dev/area/doc/api/TIB_sfire_Web_Player_J...! Link to comment Share on other sites More sharing options...
Rayees Wani Posted May 31, 2018 Share Posted May 31, 2018 This may be implemented when you are loading the web player analysis using the Web player javaScript API as documented below: https://community.spotfire.com/wiki/tibco-spotfire-javascript-api-overview Example implementation: function SetFiltersTest() { var filterVal = ["ABW"]; //alert(filterVal); var filterColumns = new Array(); filterColumns[0] = { filteringSchemeName: "Filtering scheme", dataTableName: "World Bank Data", dataColumnName: "Country Code", //filteringOperation: spotfire.webPlayer.filteringOperation.ADD, filterSettings: { values: filterVal, includeEmpty: false } } filterColumns[1] = { filteringSchemeName: "Filtering example", dataTableName: "World Bank Data", dataColumnName: "Country Name", filterSettings: { includeEmpty: false, values: ["Angola"] } } alert("SetFiltersTest !!"); _analysisDocument.filtering.setFilters(filterColumns, spotfire.webPlayer.filteringOperation.REPLACE); } Link to comment Share on other sites More sharing options...
Tyger Guzman 2 Posted December 6, 2019 Share Posted December 6, 2019 How I this done with date range filters I've tried setting the highValue and lowValue with date() or "12/31/1999" and cannot get date ranges to be set. Link to comment Share on other sites More sharing options...
Tyger Guzman 2 Posted December 6, 2019 Share Posted December 6, 2019 I've tried using the same method to set the range on a date range filter but doesn't seem to be working. Any suggestions function SetFilterValues1() { var filterColumns = new Array(); filterColumns[0] = { filteringSchemeName: 'Filtering scheme', dataTableName: 'CustomQuery', dataColumnName: 'DB_LoadDate', filterSettings: { highValue:'12/03/2019', lowValue: '12/05/2019' }, filterType: 3 } //console.log(mysel); console.log(filterColumns) viewOne0.filtering.setFilters(filterColumns,2); console.log('test2'); } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now