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

Hi,

I am looking for a simple method to select a week in a year, based on an assumption that there are 48 weeks in a year (see mock up attached, where the grey week buttons are clickable).

The calendar picker in FM is great, but not suitable for my requirements, but I WOULD like my requested solution to be accessed in the same way (maybe returning something like YEAR, MONTH, WEEK_NUM.

Also, not that bothered if the week are 1-4 for each month or 1-48.

Has anything been built that i could leverage? Thanks

 

 

WeekPicker.jpg

Edited by jagstirling

2 hours ago, jagstirling said:

see mock up attached, where the grey week buttons are clickable

So why don't you implement your mockup as a popover containing 48 buttons, all running the same script with a different parameter?

For simplicity, let's say the parameter is just a number between 1 and 48. Then your script could do:

Set Field [ YourTable::Year ; AnyTable::gYear ]
Set Field [ YourTable::Month ; Div ( Get (ScriptParameter) - 1 ; 4 ) + 1 ]
Set Field [ YourTable::Week ; Mod ( Get (ScriptParameter) - 1 ; 4 ) + 1 ]

where gYear is a the (global) field shown at the top of your picker.

 

2 hours ago, jagstirling said:

Also, not that bothered if the week are 1-4 for each month or 1-48.

Well, then you don't really need a Month field and could make this even simpler.

  • Author

Thanks for this.

I am an AB-SOL-UTE newbie in Filemaker, but I have convinced my company to buy a licence so I hope this will change.

I will search up 'popover' and take it form there.

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.