How to get rows with blank datetime fields in an infotable
Feb 24, 2022
01:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Feb 24, 2022
01:10 PM
How to get rows with blank datetime fields in an infotable
I'm trying to get rows in an infotable that have empty datetime fields. The following is the code for the query, but I'm unable to get any results. When I log the values of the empty datetime fields with logger, it says the value is undefined. I've tried using various falsy values as the value, but it did not work.
let query = {
"filters": {
"type": "EQ",
"fieldName": "SomeDate",
"value": "" // <--- have tried various falsy values (false, 0, -0, "", '', null, undefined, NaN)
}
};
result = Resources["InfoTableFunctions"].Query({
t: result /* INFOTABLE */ ,
query: query /* QUERY */
});
Solved! Go to Solution.
Labels:
- Labels:
-
Coding
- Tags:
- blank
- empty
- infotables
ACCEPTED SOLUTION
Accepted Solutions
Feb 24, 2022
01:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Feb 24, 2022
01:31 PM
Solved. I was able to get the rows with empty datetime fields using the query parameters below:
let query =
{
"filters": {
"type": "MissingValue",
"fieldName": "SomeDate"
}
};
More query parameters here:
2 REPLIES 2
Feb 24, 2022
01:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Feb 24, 2022
01:31 PM
Solved. I was able to get the rows with empty datetime fields using the query parameters below:
let query =
{
"filters": {
"type": "MissingValue",
"fieldName": "SomeDate"
}
};
More query parameters here:
Feb 24, 2022
03:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Feb 24, 2022
03:01 PM
