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.

Display all records of a TE after a filter

Featured Replies

  • Newbies

Hello everyone,
 
I have two questions:

1/ How to display all  records of a TO after filter;
 
2/ How to update the field Number of sanctions according to the filter dates.

 

Thank you
 

30-10-2015 11-50-42.jpg

Edited by Lotfi

Are you using a portal filter or a filter on the TO itself?

If you're creating a portal filter and want to show all records, you can use an IF statement within a let like this(you will need to adjust the variables and fields):

Let(

[

dateStart = if(isempty($startDate)=1;date(1;1;1901);$startDate);
dateEnd = if(ismpty($EndDate)=1;date(12;31;2900);$endDate)

];

dateField >= dateStart And dateField<=dateEnd;

)

 

You can add your sanctions filter logic into this Let statement as well 

Edited by GisMo

1/ How to display all  records of a TO after filter;

That's a very confusing question. If you have a filter, then why - or under what conditions -  do you want to display all records?

 

2/ How to update the field Number of sanctions according to the filter dates.

If that field is a summary field, defined in the child table, place it in a one-row portal to the same TO and with the same filter as your existing portal.

 

dateStart = if(isempty($startDate)=1;date(1;1;1901);$startDate);
dateEnd = if(ismpty($EndDate)=1;date(12;31;2900);$endDate)

Filemaker can handle dates in the range from Jan 1, 0001 to Dec 31, 4000.

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.