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.

Using find in TimeStamps

Featured Replies

Hi !

I'm working with a student testing solution. The student gets a certain amount of questions and he has unlimited time to solve them all. When he has done them all it's time for results. But only the last 30 minutes counts. If the student have used 45 minutes to complete all the questions, only the questions answered during last 30 minutes counts.

So when the final question is answered FileMaker performs CountResult -script and a Find -function. One script step goes like this:

Get ( CurrentTimeStamp ) - Time ( 0;30;0 ) & "…" & Get ( CurrentTimeStamp )

It is inserted in find mode to a TimeStamp field (each answer gets its own timestamp when answered).

This Find never returns anything. So where is the problem ?

Hi !

I'm working with a student testing solution. The student gets a certain amount of questions and he has unlimited time to solve them all. When he has done them all it's time for results. But only the last 30 minutes counts. If the student have used 45 minutes to complete all the questions, only the questions answered during last 30 minutes counts.

So when the final question is answered FileMaker performs CountResult -script and a Find -function. One script step goes like this:

Get ( CurrentTimeStamp ) - Time ( 0;30;0 ) & "…" & Get ( CurrentTimeStamp )

It is inserted in find mode to a TimeStamp field (each answer gets its own timestamp when answered).

This Find never returns anything. So where is the problem ?

Change your "Get ( CurrentTimeStamp ) - Time ( 0;30;0 )" to something like this.

Time ( Hour ( Get ( CurrentTimeStamp ) ) ; Minute ( Get ( CurrentTimeStamp ) ) -30 ; Seconds ( Get ( CurrentTimeStamp ) ) )

  • Author

Still no success... Now the search string in the TimeStamp -field look like this: 20:23:17…1.3.2012 20:53:17

Get ( CurrentTimeStamp ) - Time ( 0;30;0 ) & "…" & Get ( CurrentTimeStamp )

It is inserted in find mode to a TimeStamp field (each answer gets its own timestamp when answered).

I don't see why it wouldn't work as expected. Check that the field is indeed of Timestamp type. Also see what are the actual criteria used, by selecting Modify Last Find from the Records menu.

  • Author

Uuh... Yeah ! Of course ! The field was a "Text" -field. Now it works.

Thanks again !!

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.