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 have the following situation:

i have invoice table, that has all my records, when i enter into this layout list, it has to load all data, depending of internet connection it may take a while.

I would like to restrict it, when i go to layout it shows only current month data, with out portal

 

thanks for any help

You could create a script that does the 'Find' that you require, and restricts the number of records.  Something like :-

Set Variable [ $startOfMonth; Value:Date ( Month ( Get ( CurrentDate ) ) ; 1 ; Year ( Get ( CurrentDate ) ) ) ]

Perform Find [ Specified Find Requests: Find Records; Criteria: Invoice::date: “≥$startofMonth” ] [ Restore ] 

Then you should add a script trigger to your layout using the 'OnLayoutEnter' option, that runs your script from above.

This is quite crude, and would perform this find every time you enter that layout so you may need to refine it, but this would give you a starting point.

Hi Helder, and welcome to the FM Forums,

I sent you a Private Message.

Lee 

  • Author
1 hour ago, Lee Smith said:

Hi Helder, and welcome to the FM Forums,

I sent you a Private Message.

Lee 

Sorry, i did not get anything

Hi Helder,

Thank you for replying to my Private Message.

I hope you have had a chance to read the links I posted, especially Anatomy of a Good Topic?

Are your records being served by FileMaker Server 14?

Lee

9 hours ago, rwoods said:

Then you should add a script trigger to your layout using the 'OnLayoutEnter' option, that runs your script from above.

This is quite crude, and would perform this find every time you enter that layout so you may need to refine it, but this would give you a starting point.

You're on the right track, but the problem here is that the script would trigger after you've already landed on the layout
so the server would still have to download whatever records happened to be in the found set.

You should create a simple layout that's based on a layout with zero (or very few) records.

Set this layout as your startup layout.

Attach this script to a button on that layout:

Enter Find Mode
Go to Layout[ invoice list]
Set Field[ date ; Month ( Get ( CurrentDate ) ) & "/" & Year ( Get ( CurrentDate ) )]
Perform Find

You don't incur a penalty when you go to Find mode before you go to a layout.
The server doesn't download data until you go back to Browse mode (after the Find).

  • Author
9 hours ago, Lee Smith said:

Hi Helder,

Thank you for replying to my Private Message.

I hope you have had a chance to read the links I posted, especially Anatomy of a Good Topic?

Are your records being served by FileMaker Server 14?

Lee

yes, it is on FMS 14

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.