Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
7620bd4
Merge pull request #7 from annyrtd/newbundle
Son-tsss Dec 10, 2016
fce5eed
docs
Son-tsss Dec 20, 2016
c5ccf50
docs
Son-tsss Dec 20, 2016
45848c1
Merge pull request #8 from annyrtd/newbundle
Son-tsss Dec 20, 2016
4e1ee2b
Merge pull request #9 from ConfirmitASA/master
Son-tsss Dec 20, 2016
13c712d
Merge pull request #10 from Son-tsss/newbundle
Son-tsss Dec 20, 2016
6c4c0c0
Merge pull request #11 from Son-tsss/master
Son-tsss Dec 20, 2016
5746141
da config
Son-tsss Dec 20, 2016
b1400b3
Merge branch 'newbundle' of https://github.com/Son-tsss/TextAnalytics…
Son-tsss Dec 20, 2016
abf9a5b
docs
Son-tsss Dec 20, 2016
2b710dc
docs
Son-tsss Dec 20, 2016
714b552
docs
Son-tsss Dec 20, 2016
a5a4f0e
docs
Son-tsss Dec 20, 2016
8c61635
TAFolder parameter add comments
Son-tsss Dec 20, 2016
dcce21e
TAFolder parameter add comments
Son-tsss Dec 20, 2016
5f01d2a
TAFolder parameter add comments
Son-tsss Dec 20, 2016
6a08a16
TAFolder parameter add comments
Son-tsss Dec 20, 2016
0c3c9fa
TAFolder parameter add comments
Son-tsss Dec 21, 2016
fafef12
TAFolder parameter add comments
Son-tsss Dec 21, 2016
4f953bd
Hitlist bug debug
Son-tsss Dec 21, 2016
ea72962
Hitlist bug debug
Son-tsss Jan 17, 2017
e84626f
folder parameter label
Son-tsss Jan 19, 2017
61b1496
filterpanel rendering
Son-tsss Jan 20, 2017
bc84903
filterpanel rendering
Son-tsss Jan 20, 2017
50c2f25
filterpanel rendering
Son-tsss Jan 20, 2017
6333742
filterpanel rendering
Son-tsss Jan 20, 2017
8a19244
filterpanel rendering
Son-tsss Jan 20, 2017
56da98c
filterpanel rendering
Son-tsss Jan 20, 2017
b5785b1
filterpanel rendering
Son-tsss Jan 20, 2017
5a14c92
filterpanel rendering
Son-tsss Jan 20, 2017
2876748
filterpanel rendering
Son-tsss Jan 20, 2017
850d425
filterpanel rendering
Son-tsss Jan 20, 2017
3aa1b5b
filterpanel rendering
Son-tsss Jan 20, 2017
46c9aa7
filterpanel rendering
Son-tsss Jan 20, 2017
9ff991f
filterpanel rendering
Son-tsss Jan 20, 2017
f61ab39
filterpanel rendering
Son-tsss Jan 20, 2017
23e3027
filterpanel rendering
Son-tsss Jan 20, 2017
0dcea99
filterpanel rendering
Son-tsss Jan 20, 2017
0d49ca9
filterpanel rendering
Son-tsss Jan 20, 2017
2ae74ba
filterpanel rendering
Son-tsss Jan 20, 2017
c4c0c16
filterpanel rendering
Son-tsss Jan 20, 2017
680351f
filterpanel rendering
Son-tsss Jan 20, 2017
3d046de
filterpanel rendering
Son-tsss Jan 20, 2017
234faa7
filterpanel rendering
Son-tsss Jan 20, 2017
b200c3c
filterpanel rendering static buttons functions
Son-tsss Jan 23, 2017
7c10fa7
Hierarchy table on page dashboard test
Son-tsss Jan 23, 2017
9ffd367
Hierarchy table on page dashboard test
Son-tsss Jan 23, 2017
2ae7383
Hierarchy table on page dashboard test
Son-tsss Jan 23, 2017
f33997d
Hierarchy table on page dashboard test
Son-tsss Jan 23, 2017
af40169
Hierarchy table on page dashboard test
Son-tsss Jan 23, 2017
db7fc10
filterpanel processing
Son-tsss Jan 23, 2017
940a2c2
filterpanel processing
Son-tsss Jan 23, 2017
3d92f04
filterpanel processing
Son-tsss Jan 25, 2017
3960689
filterpanel processing
Son-tsss Jan 25, 2017
5335a95
filterpanel processing
Son-tsss Jan 30, 2017
5887f4d
filterpanel processing
Son-tsss Jan 30, 2017
17c431e
filterpanel processing
Son-tsss Jan 30, 2017
95654e0
filterpanel processing
Son-tsss Jan 30, 2017
eb85dd9
filterpanel processing
Son-tsss Jan 30, 2017
186b4e1
filterpanel processing
Son-tsss Jan 31, 2017
e1c64f2
filterpanel processing
Son-tsss Jan 31, 2017
68d6184
filterpanel processing
Son-tsss Jan 31, 2017
a93ff13
filterpanel processing
Son-tsss Jan 31, 2017
5f08a06
filterpanel processing
Son-tsss Jan 31, 2017
2744013
filterpanel processing
Son-tsss Feb 2, 2017
f2cd8d4
filterpanel processing
Son-tsss Feb 2, 2017
7267806
filterpanel processing
Son-tsss Feb 2, 2017
44c2073
filterpanel processing
Son-tsss Feb 2, 2017
6d361da
filterpanel processing
Son-tsss Feb 2, 2017
4784faf
filterpanel processing
Son-tsss Feb 2, 2017
6b7affe
filterpanel processing
Son-tsss Feb 2, 2017
0b28a0c
filterpanel processing
Son-tsss Feb 2, 2017
382be9a
filterpanel processing
Son-tsss Feb 2, 2017
06910a8
filterpanel processing
Son-tsss Feb 2, 2017
ad7a095
filterpanel processing
Son-tsss Feb 3, 2017
0b3f215
filterpanel processing
Son-tsss Feb 3, 2017
e85e1a3
filterpanel processing
Son-tsss Feb 3, 2017
7463eb3
filterpanel processing
Son-tsss Feb 3, 2017
c3118d1
filterpanel processing
Son-tsss Feb 3, 2017
cfe05fc
filterpanel processing
Son-tsss Feb 3, 2017
d64f99d
neutrals bug fixing
Son-tsss Feb 7, 2017
3406fd5
neutrals bug fixing
Son-tsss Feb 7, 2017
03e285a
neutrals bug fixing
Son-tsss Feb 7, 2017
2675679
neutrals bug fixing
Son-tsss Feb 7, 2017
1a037cf
neutrals bug fixing
Son-tsss Feb 7, 2017
a69e579
neutrals bug fixing
Son-tsss Feb 8, 2017
da85e05
clearing table properties preset
Son-tsss Oct 27, 2016
996a6ad
Confirmit ASA merge
Son-tsss Oct 27, 2016
4a7eddd
neutrals bug fixing
Son-tsss Feb 8, 2017
7ecec08
hierarchy component
Son-tsss Feb 8, 2017
283da24
hierarchy component
Son-tsss Feb 8, 2017
bcc2f65
detailed analysis fix
Son-tsss Feb 10, 2017
40a0b97
detailed analysis fix
Son-tsss Feb 10, 2017
2d0f0ff
detailed analysis fix
Son-tsss Feb 10, 2017
b52a1c3
detailed analysis fix
Son-tsss Feb 10, 2017
56a2acf
detailed analysis fix
Son-tsss Feb 10, 2017
dbdc784
detailed analysis add hierarchy levels 2 and 3
Son-tsss Feb 13, 2017
b312c43
detailed analysis add hierarchy levels 2 and 3
Son-tsss Feb 13, 2017
e69559b
detailed analysis add hierarchy levels 2 and 3
Son-tsss Feb 13, 2017
c7d23a6
detailed analysis add hierarchy levels 2 and 3
Son-tsss Feb 13, 2017
b32f39d
detailed analysis add hierarchy levels 2 and 3
Son-tsss Feb 13, 2017
545dd6b
detailed analysis add hierarchy levels 2 and 3
Son-tsss Feb 13, 2017
da78a76
detailed analysis add hierarchy levels 2 and 3
Son-tsss Feb 13, 2017
386f479
detailed analysis add hierarchy levels 2 and 3
Son-tsss Feb 13, 2017
b0d0f74
drilldowns from all levels
Son-tsss Feb 13, 2017
5c7620d
drilldowns from all levels
Son-tsss Feb 13, 2017
952fd40
drilldowns from all levels
Son-tsss Feb 13, 2017
eb40ca3
drilldowns from all levels
Son-tsss Feb 13, 2017
3fa7d9f
drilldowns from all levels
Son-tsss Feb 13, 2017
e8fd5ce
drilldowns from all levels
Son-tsss Feb 13, 2017
2f771e4
drilldowns from all levels
Son-tsss Feb 13, 2017
1058efe
drilldowns from all levels
Son-tsss Feb 13, 2017
9e05f66
drilldowns from all levels
Son-tsss Feb 13, 2017
5799146
drilldowns from all levels
Son-tsss Feb 14, 2017
59f7817
drilldowns from all levels
Son-tsss Feb 14, 2017
5665b6c
drilldowns from all levels
Son-tsss Feb 14, 2017
50a3716
drilldowns from all levels
Son-tsss Feb 14, 2017
aebb852
drilldowns from all levels
Son-tsss Feb 14, 2017
e9146ab
drilldowns from all levels
Son-tsss Feb 14, 2017
dd723cc
drilldowns from all levels
Son-tsss Feb 14, 2017
cabaa0c
drilldowns from all levels
Son-tsss Feb 14, 2017
f2bee0a
drilldowns from all levels
Son-tsss Feb 14, 2017
43b0a84
drilldowns from all levels
Son-tsss Feb 14, 2017
f2e0afc
drilldowns from all levels
Son-tsss Feb 14, 2017
e44789c
drilldowns from all levels
Son-tsss Feb 14, 2017
01aa303
drilldowns from all levels
Son-tsss Feb 15, 2017
21f949c
drilldowns from all levels
Son-tsss Feb 15, 2017
cd4e185
config colors
Son-tsss Feb 16, 2017
ab2b4d8
Translations
Son-tsss Feb 20, 2017
fd8d53b
Translations
Son-tsss Feb 20, 2017
babf96b
Translations
Son-tsss Feb 20, 2017
0de2d1f
Translations
Son-tsss Feb 21, 2017
ae7c104
Translations
Son-tsss Feb 21, 2017
77037e6
Translations
Son-tsss Feb 21, 2017
bbc36b1
Translations
Son-tsss Feb 21, 2017
4295bff
Translations
Son-tsss Feb 21, 2017
9b9a026
Translations
Son-tsss Feb 21, 2017
8616cb1
Translations
Son-tsss Feb 22, 2017
ad3e9f3
Translations
Son-tsss Feb 22, 2017
7e74ccc
Translations
Son-tsss Feb 22, 2017
97b2e8f
Translations
Son-tsss Feb 22, 2017
95c8896
Translations
Son-tsss Feb 28, 2017
8df7ab5
Translations
Son-tsss Feb 28, 2017
54f4b33
Translations
Son-tsss Feb 28, 2017
5bb559c
Translations
Son-tsss Feb 28, 2017
965ae51
Translations
Son-tsss Feb 28, 2017
25f7622
Translations
Son-tsss Feb 28, 2017
877b9fd
Translations
Son-tsss Feb 28, 2017
af4e520
Translations
Son-tsss Mar 1, 2017
d611bcc
Translations
Son-tsss Mar 1, 2017
77ff6a6
Translations
Son-tsss Mar 1, 2017
091bf2a
Translations
Son-tsss Mar 1, 2017
2ac3246
Translations
Son-tsss Mar 1, 2017
7b9fa13
Translations
Son-tsss Mar 1, 2017
986fea8
Translations
Son-tsss Mar 1, 2017
5822ee7
Translations
Son-tsss Mar 2, 2017
ad995d4
Hitlist with categorization
Son-tsss Mar 3, 2017
271f391
Hitlist with categorization
Son-tsss Mar 3, 2017
23c4a44
multiple drilldown
Son-tsss Mar 9, 2017
5861226
Multiple drilldown
Son-tsss Mar 9, 2017
3bd1e00
translations
Son-tsss Mar 13, 2017
d7cb44f
translations
Son-tsss Mar 13, 2017
43e72c2
translations
Son-tsss Mar 13, 2017
90bb3b8
translations
Son-tsss Mar 13, 2017
b99e597
translations
Son-tsss Mar 13, 2017
a7500d0
translations
Son-tsss Mar 13, 2017
8a49f06
translations
Son-tsss Mar 13, 2017
e030cce
translations
Son-tsss Mar 13, 2017
9c9fba1
translations
Son-tsss Mar 13, 2017
dc296ec
translations
Son-tsss Mar 13, 2017
1a05da5
translations
Son-tsss Mar 14, 2017
e5a2517
translations
Son-tsss Mar 14, 2017
a409346
translations
Son-tsss Mar 15, 2017
3e1c485
translations
Son-tsss Mar 15, 2017
b0b8983
folders logic
Son-tsss Mar 15, 2017
fedca27
folders logic
Son-tsss Mar 15, 2017
1079f63
folders logic
Son-tsss Mar 15, 2017
8e90eec
hierarchy table search fix
Son-tsss Mar 15, 2017
30419e2
hierarchy table search fix
Son-tsss Mar 15, 2017
eed5b60
hierarchy table search fix
Son-tsss Mar 15, 2017
fe8f901
hierarchy table search fix
Son-tsss Mar 15, 2017
4fe5ac5
hierarchy table search fix
Son-tsss Mar 16, 2017
2824a68
hierarchy table search fix
Son-tsss Mar 16, 2017
6893aca
hierarchy table search fix
Son-tsss Mar 16, 2017
fadd83f
hierarchy table search fix
Son-tsss Mar 16, 2017
d8886dc
make filterpanel wider
Son-tsss Mar 24, 2017
1dffb53
separate translations from cl
Son-tsss Mar 24, 2017
0164e61
fix tiles
Son-tsss Mar 31, 2017
c340680
fix tiles
Son-tsss Mar 31, 2017
6d36a7f
QA DA page bug
Son-tsss Apr 10, 2017
004b127
QA DA page bug
Son-tsss Apr 10, 2017
43bd709
QA DA page bug
Son-tsss Apr 10, 2017
2c0305f
QA DA page bug
Son-tsss Apr 10, 2017
510239d
QA DA page bug
Son-tsss Apr 10, 2017
2767bce
QA DA page bug
Son-tsss Apr 10, 2017
4dc2342
QA DA page bug
Son-tsss Apr 10, 2017
cd9af7d
DividerColor bug
Son-tsss Apr 10, 2017
2b3fae6
DividerColor bug
Son-tsss Apr 10, 2017
5986e87
DividerColor bug
Son-tsss Apr 10, 2017
8587fbc
text colors in hitlist
Son-tsss Apr 10, 2017
caeb886
text colors in hitlist
Son-tsss Apr 10, 2017
b5854a0
color config
Son-tsss Apr 11, 2017
168076d
color config
Son-tsss Apr 11, 2017
269535a
color config
Son-tsss Apr 11, 2017
b6c3143
color config
Son-tsss Apr 11, 2017
a3af268
color config
Son-tsss Apr 11, 2017
09f6d76
color config
Son-tsss Apr 11, 2017
79ac889
color config
Son-tsss Apr 11, 2017
eda7416
color config
Son-tsss Apr 11, 2017
6d0e6c3
color config
Son-tsss Apr 11, 2017
88cd493
color config
Son-tsss Apr 11, 2017
04dae80
color config
Son-tsss Apr 11, 2017
1798e25
color config
Son-tsss Apr 11, 2017
c2baac7
color config
Son-tsss Apr 11, 2017
395db60
color config
Son-tsss Apr 11, 2017
275cc42
color config
Son-tsss Apr 11, 2017
5c90076
color config
Son-tsss Apr 11, 2017
f97cda2
color config
Son-tsss Apr 12, 2017
c0e32f0
color config
Son-tsss Apr 12, 2017
a3b8ff2
fixing categories text in IE
Son-tsss May 12, 2017
eef7a9c
DA table caching fix
Son-tsss May 16, 2017
e9bf769
hitlist test
Son-tsss May 30, 2017
42b7cd9
hitlist test
Son-tsss May 30, 2017
0cb37b8
hitlist fix
Son-tsss May 30, 2017
d061520
hitlist fix
Son-tsss Jun 1, 2017
ba31f9c
debug
Son-tsss Jun 8, 2017
73ea6e4
test hitlist
Son-tsss Jun 8, 2017
9d11564
optimizing static variables
Son-tsss Jun 15, 2017
a012c70
Merge branch 'v2' into newbundle
Son-tsss Jun 26, 2017
071c8f5
scema problems testing
Son-tsss Jul 11, 2017
da05aa4
period units testing
Son-tsss Jul 11, 2017
db230b3
Merge branch 'newbundle' of https://github.com/Son-tsss/TextAnalytics…
Son-tsss Jul 11, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 72 additions & 37 deletions Hierarchy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,38 @@
* @param {Object} settings - object containing idColumnName, textColumnName, relationshipColumnName, textSeparator
*
*/
class Hierarchy{
private var _globals;
private var _settings;
class Hierarchy {
private var
_globals;
private var
_settings;

private var _hierarchy = [];
private var _levels = [];
private var _flat = [];
private var _flatObject = {};
private var
_hierarchy = [];
private var
_levels = [];
private var
_flat = [];
private var
_flatObject = {};

private var _defaultSettings = {
private var
_defaultSettings = {
idColumnName: "id",
textColumnName: "__l9",
relationshipColumnName: "parent",
textSeparator: "|"
};

function Hierarchy(globals, settings) {
function

Hierarchy(globals, settings) {
_globals = globals;
_settings = _mergeOptions(_defaultSettings, settings);
globals.log.LogDebug(_settings.schemaId);
var dataTable = _getDataTable();
if (!dataTable.Columns.Contains(_settings.textColumnName))
_settings.textColumnName = "__l9"

_generateFlatList(dataTable.Rows)
_setupHierarchy(0, null);
}
Expand All @@ -42,7 +53,9 @@ class Hierarchy{
* @param {Object} obj2
* @returns {Object}
*/
private function _mergeOptions(obj1, obj2) {
private function

_mergeOptions(obj1, obj2) {
var obj3 = {};
for (var attrname in obj1) {
obj3[attrname] = obj1[attrname];
Expand All @@ -61,8 +74,12 @@ class Hierarchy{
* @description function to get DataTable from DatabaseDesigner
* @returns {DataTable}
*/
private function _getDataTable() {
private function

_getDataTable() {
_globals.log.LogDebug("scid: "+_settings.schemaId);
var schema = _globals.confirmit.GetDBDesignerSchema(_settings.schemaId);
_globals.log.LogDebug("tblnm: "+_settings.tableName);
var table = schema.GetDBDesignerTable(_settings.tableName);
var dataTable = table.GetDataTable();
return dataTable;
Expand All @@ -76,8 +93,10 @@ class Hierarchy{
* @description creating list of rows for variable _flat
* @param {Object[]} rows - list of rows from db table
*/
private function _generateFlatList(rows) {
for(var i = 0; i < rows.Count; ++i) {
private function

_generateFlatList(rows) {
for (var i = 0; i < rows.Count; ++i) {
var flatEntry = _createFlatEntry(rows[i]);
_flat.push(flatEntry);
}
Expand All @@ -92,7 +111,9 @@ class Hierarchy{
* @param {Object} row - db table row
* @returns {Object}
*/
private function _createFlatEntry(row) {
private function

_createFlatEntry(row) {
var name = TAHelper.GetSelfName(row[_settings.textColumnName], _settings.textSeparator, _globals.log);
var flatEntry = {
id: row[_settings.idColumnName].toLowerCase(),
Expand All @@ -110,10 +131,13 @@ class Hierarchy{
* @description function to get Array of hierarchical objects
* @returns {Object[]}
*/
function GetHierarchyArray() {
function

GetHierarchyArray() {
return _hierarchy;
}


/**
* @memberof Hierarchy
* @instance
Expand All @@ -122,10 +146,12 @@ class Hierarchy{
* @param {Number} level
* @returns {Object[]}
*/
function GetLevelArray(level) {
if(_levels.length > level) {
function

GetLevelArray(level) {
if (_levels.length > level) {
return _levels[level];
}else{
} else {
throw new Error(201, "Hierarchy level index is out of range");
}

Expand All @@ -138,7 +164,9 @@ class Hierarchy{
* @description function to get Count of levels in the hierarchy
* @returns {Number}
*/
function GetLevelsCount() {
function

GetLevelsCount() {
return _levels.length
}

Expand All @@ -149,7 +177,9 @@ class Hierarchy{
* @description function to get Array of rows from db table
* @returns {Number}
*/
function GetFlatArray() {
function

GetFlatArray() {
return _flat;
}

Expand All @@ -161,10 +191,12 @@ class Hierarchy{
* @param {String} id
* @returns {Object}
*/
function GetObjectById(id) {
if(_flatObject[id]) {
function

GetObjectById(id) {
if (_flatObject[id]) {
return _flatObject[id];
}else{
} else {
throw new Error(201, "Hierarchy object id doesn't exist");
}
}
Expand All @@ -178,30 +210,33 @@ class Hierarchy{
* @param {Number} level
* @param {Number} parentObj
*/
private function _setupHierarchy( level, parentObj ) {
var parentObjId = parentObj ? parentObj.id : "";
private function

_setupHierarchy(level, parentObj) {
var parentObjId = parentObj ? parentObj.id : "";

for(var i = 0; i < _flat.length; ++i) {
if( ( !parentObj && !_flat[i].parent ) || parentObjId.CompareTo( _flat[i].parent ? _flat[i].parent : "" ) == 0) {
for (var i = 0; i < _flat.length; ++i) {
if (( !parentObj && !_flat[i].parent ) || parentObjId.CompareTo(_flat[i].parent ? _flat[i].parent : "") == 0) {
var newObj = {
id: _flat[i].id,
text: _flat[i].text,
name: _flat[i].name,
parent: parentObjId,
subcells: []
subcells: [],
level: level
};
if( _levels.length <= level ) {
_levels.push( [] );
if (_levels.length <= level) {
_levels.push([]);
}
_setupHierarchy( (level+1), newObj );
if( !parentObj ) {
_hierarchy.push( newObj );
_setupHierarchy((level + 1), newObj);
if (!parentObj) {
_hierarchy.push(newObj);
}
else {
parentObj.subcells.push( newObj );
parentObj.subcells.push(newObj);
}
_levels[ level ].push( newObj );
_flatObject[ newObj.id ] = newObj;
_levels[level].push(newObj);
_flatObject[newObj.id] = newObj;
}
}
}
Expand Down
109 changes: 109 additions & 0 deletions Static/FilterPanel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/**
* Created by MariaSo on 20/01/2017.
*/
class FilterPanel{
private var _filterComponents;
private var _current_dictionary;

function FilterPanel(filterComponents, currentDictionary){
_filterComponents = filterComponents;
_current_dictionary = currentDictionary;
}

/**
* @memberof FilterPanel
* @function btnSaveReturn_Hide
* @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
* @returns {Boolean}
*/
static function btnSaveReturn_Hide(context){
return false
}

/**
* @memberof FilterPanel
* @function btnSaveReturn_Render
* @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
*/
static function btnSaveReturn_Render(context){
context.component.Label = new Label(context.report.CurrentLanguage,Translations.dictionary(context.report.CurrentLanguage)["Save and return"]);
context.component.TargetPage = context.state.Parameters.GetString("TA_LAST_VISITED_PAGE");
}

/**
* @memberof FilterPanel
* @function btnSave_Hide
* @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
* @returns {Boolean}
*/
static function btnSave_Hide(context){
return false
}

/**
* @memberof FilterPanel
* @function btnSave_Render
* @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
*/
static function btnSave_Render(context){
context.component.Label = new Label(context.report.CurrentLanguage,Translations.dictionary(context.report.CurrentLanguage)["Save"]);
}

/**
* @memberof FilterPanel
* @function btnClearFilters_Hide
* @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
* @returns {Boolean}
*/
static function btnClearFilters_Hide(context){
return false
}

/**
* @memberof FilterPanel
* @function btnClearFilters_Render
* @param {Object} context - {component: button, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
*/
static function btnClearFilters_Render(context){
context.component.Label = new Label(context.report.CurrentLanguage,Translations.dictionary(context.report.CurrentLanguage)["Clear filters"]);
context.component.TargetPage = "filters";
}

/**
* @memberof FilterPanel
* @function txtFilterTitle_Hide
* @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
* @param {Number} filterNumber
* @returns {Boolean}
*/
function txtFilterTitle_Hide(context, filterNumber){
var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
return !filterQuestion
}

/**
* @memberof FilterPanel
* @function txtFilterTitle_Render
* @param {Object} context - {component: text, pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
* @param {Number} filterNumber
*/
function txtFilterTitle_Render(context, filterNumber){
var filterTitle = _filterComponents.GetFilterTitle(filterNumber-1);
if(filterTitle)
context.component.Output.Append(filterTitle);
}

/**
* @memberof FilterPanel
* @function lstFilterList_Hide
* @param {Object} context - {pageContext: this.pageContext, report: report, user: user, state: state, confirmit: confirmit, log: log}
* @param {Number} filterNumber
* @returns {Boolean}
*/
function lstFilterList_Hide(context, filterNumber){
var filterQuestion = _filterComponents.GetFilterQuestion(filterNumber-1);
return !filterQuestion
}


}
2 changes: 1 addition & 1 deletion Static/Filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Filters {
selectedFolder = null;
}*/

var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById(selectedFolder)).GetSentimentFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE","TA_COMMENTS_SENTIMENT")
var fExpr = new TAFilters(TAHelper.GetGlobals(context), Config.GetTALibrary().GetFolderById(selectedFolder)).GetSentimentFilterExpression("TA_TOP_CATEGORIES_SINGLE", "TA_SUB_CATEGORIES_SINGLE", "TA_ATTRIBUTES_SINGLE","TA_COMMENTS_SENTIMENT");
context.component.Expression = fExpr;
}

Expand Down
Loading