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 Server accepts request clientnow,listview,filterid and applies any relative filter calcs in sqlWhere generator at server
TODO (round 1): TODO (round 1):
SERVER SERVER
Accept filter request from client with clientNow time DataListSqlFilterCriteriaBuilder - modify to handle date tokens using client timestamp (old filter code already put back in comment form)
CLIENT CLIENT
Send ClientNow with datatable request
Implement filter UI to construct local filter object that is temporary and stored in session state 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 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 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 // https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_isString
// //
isString: function(str) { 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 true;
} }
return false; let temp = str.valueOf();
if (typeof temp === "string") {
return true;
} else {
return false;
}
}, },
/////////////////////////////////////////////// ///////////////////////////////////////////////
// //