This commit is contained in:
2021-02-02 23:56:50 +00:00
parent dcc0731812
commit 2d5de5c1d5
2 changed files with 15 additions and 5 deletions

View File

@@ -15,9 +15,8 @@ LISTVIEW REPLACE CURRENT <----HERE not THERE ---v
Server accepts request clientnow,listview,filterid and applies any relative filter calcs in sqlWhere generator at server
TODO (round 1):
SERVER
Accept filter request from client with clientNow time
CLIENT
Send ClientNow with datatable request
DataListSqlFilterCriteriaBuilder - modify to handle date tokens using client timestamp (old filter code already put back in comment form)
CLIENT
Implement filter UI to construct local filter object that is temporary and stored in session state
doesn't have to do anything specific yet, just handles the filtering into an object for the next stage
Construct a filter string json in the format easiest to consume at server

View File

@@ -599,10 +599,21 @@ export default {
// https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_isString
//
isString: function(str) {
if (str && typeof str.valueOf() === "string") {
//modified from above, due to bug (I think)
//posted case here: https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/issues/304
if (str == null) {
return false;
}
if (str == "") {
return true;
}
return false;
let temp = str.valueOf();
if (typeof temp === "string") {
return true;
} else {
return false;
}
},
///////////////////////////////////////////////
//