Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help searching time on timestamplist

Featured Replies

I have 3 fields timestamp start, timestamp end and timestamp list ( list of timestamp from start and end ). My problem is when searching a timestamp from the list, It always shows result even it is not included on the list. Ex the timestamplist is.

9/25/2018 9:00 AM
9/25/2018 10:00 AM
9/25/2018 11:00 AM
9/25/2018 12:00 PM
9/25/2018 1:00 PM
9/25/2018 2:00 PM
9/25/2018 3:00 PM
9/25/2018 4:00 PM
9/25/2018 5:00 PM
9/25/2018 6:00 PM
9/25/2018 7:00 PM
9/25/2018 8:00 PM
9/25/2018 9:00 PM
9/25/2018 10:00 PM
9/25/2018 11:00 PM
9/26/2018 12:00 AM
9/26/2018 1:00 AM

but if search 9/26/2018 3:00 AM it always shows a result.

If the list is stored in a field of the same table, it means that it stores the list on each and every record, therefore performing a find would results showing all records. 

43 minutes ago, chadski021 said:

I have 3 fields timestamp start, timestamp end and timestamp list ( list of timestamp from start and end ).

Is the timestamplist field a Text field, containing a return-separated list of timestamp values?

  • Author
7 minutes ago, comment said:

Is the timestamplist field a Text field, containing a return-separated list of timestamp values?

this is the custom function i used.

https://www.briandunning.com/cf/440

29 minutes ago, siroos12 said:

If the list is stored in a field of the same table, it means that it stores the list on each and every record, therefore performing a find would results showing all records. 

yes it is a stored field.

15 minutes ago, chadski021 said:

this is the custom function i used.

This doesn't answer my question regarding the type of the field (or the type of calculation's result, if it is a calculation field).

Assuming it is text, the rules applied during find will be the rules for finding text and characters and  Filemaker will not recognize the timestamp values as such. Looking at your example, you are searching for three words: "9/26/2018",  "3:00" and "AM" - and all three are present in the found record. If you want to find the exact value "9/26/2018 3:00 AM" you must enclose it in quotes.

Alternatively, you could store the values individually as timestamps in a related table and search there.

But it seems like the best solution would be to search the start and end fields directly. I really cannot see why you need the list.

 

Edited by comment

  • Author
1 hour ago, comment said:

This doesn't answer my question regarding the type of the field (or the type of calculation's result, if it is a calculation field).

Assuming it is text, the rules applied during find will be the rules for finding text and characters and  Filemaker will not recognize the timestamp values as such. Looking at your example, you are searching for three words: "9/26/2018",  "3:00" and "AM" - and all three are present in the found record. If you want to find the exact value "9/26/2018 3:00 AM" you must enclose it in quotes.

Alternatively, you could store the values individually as timestamps in a related table and search there.

But it seems like the best solution would be to search the start and end fields directly. I really cannot see why you need the list.

 

The field is a stored calculation text field

@comment Thanks i think it resolves my issue by putting enclosed quotes.

  • Author

By the way, What is format when searching that has enclosure. Is this correct?  """ & 9/26/2018 3:00 AM & """

If you mean how to produce quoted text as a result of a calculation formula, try =

"\"9/26/2018 3:00 AM\""

or =

Quote ( "9/26/2018 3:00 AM" )

 

Edited by comment

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.