LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I add date-range search and pagination to a JSON-based table in LabVIEW?

I have a JSON dataset that I parse into clusters and display in a table. I am using LabVIEW 2023 Q3.
Now I want to add:

  1. Date-range filtering (example: show only data from 11/12/2025 to 11/13/2025)

  2. Pagination (e.g., 20 rows per page)

My DATE field in JSON is a string like "20251112".
What is the recommended way to convert this into a timestamp, filter rows by date, and then display only the selected page using Array Subset or another method?

VI attached.

Thanks!

0 Kudos
Message 1 of 2
(94 Views)

Hi hwkim,

 


@hwkim0418 wrote:

My DATE field in JSON is a string like "20251112".
What is the recommended way to convert this into a timestamp, filter rows by date, and then display only the selected page using Array Subset or another method?


  • Use ScanFromString to convert the string into a timestamp. See the explanations for the %<>T format code in the LabVIEW help!
  • Use InRangeAndCoerce (in an autoindexing FOR loop with a conditional output tunnel) to filter by timestamps…
  • ArraySubset is just fine to get a subset from an array…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(89 Views)