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.

Featured Replies

Hello guy's

I have a question. as you can see on the image the layouts shows the records of current year 2011. i have a script that allows me to go to the next year (script on the image), but if the layouts shows the current year i want to prevent that the scripts stops because there are no records at the moment of year 2012. I tried something but nothing helped, how can i do this?

screenshot20110715at450.png

Kind regards,

Serhat

In your first script line, you're comparing a date to a year.

  • Author

Thats true... i tried something but the original code is this

screenshot20110716at132.png

Try something like:

If [ Year ( YourTable::YourDateField ) < Year ( Get (CurrentDate) ) ]

# DO THE THING

...

Else

Beep

End If

  • Author

Try something like:

If [ Year ( YourTable::YourDateField ) < Year ( Get (CurrentDate) ) ]

# DO THE THING

...

Else

Beep

End If

Thank you very much it works :)

I want also this for the previous year. i have 2009 as latest records. how can do it for previous years?

screenshot20110716at111.png

Instead of Year( get( CurrentDate ) ) create a global number field to store the Year of the calendar.

I want also this for the previous year. i have 2009 as latest records.

I think you mean earliest? How about:

If [ Year ( YourTable::YourDateField ) > 2009 ]

...




I am not too crazy about hard-coding data, but if you're not backdating records, it should do. Otherwise you'd have to do something like:





Set Variable [ $firstYear ; Year ( sMinDate ) ]

Freeze Window

Show Omitted Only

Set Variable [ $firstYear ; Min ( $firstYear ; Year ( sMinDate ) ) ]

Show Omitted Only

If [ Year ( YourTable::YourDateField ) > $firstYear ]

...

where sMinDate is a summary field defined as Minimum of [YourDateField].

Create an account or sign in to comment

Important Information

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

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.