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.

Native sorting portal multiple values if

Featured Replies

Hi.

Maybe someone could point me in the right direction..

I have a portal that need to be filtered by 3 different values. And since I want to be able to show all rows if the search field = "0" I cant use the related records function (i think).

So I figure I should do it natively in the filter portal calculation. The problem is that I dont know how to build the IF statements correctly.

I can use

Tider Line::G_Month = "0" or Tider Line::G_Month = Tider Line::Cal_ Month

to filter one value, but how do I proceed to include two more, and secure that if they are 0 they will be ignored?

Global fields

G_Month

G_week

G_day

Cal fields (extracted from a date field)

Cal_Month

Cal_week

Cal_day

Or is there a much better way to do this?

many thanks.

edit:

Oh, and also, all the values are numbers, even thou the attachment show text.

Edited by jamesjames

How about something like:

( IsEmpty ( gMonth ) or gMonth = cMonth )

and

( IsEmpty ( gWeek ) or gWeek = cWeek )

and

( IsEmpty ( gDay ) or gDay = cDay )

Edited by comment

  • Author

Jippi, works like a charm. Much easier calculation then what I tried to write..

Many thanks.

ps

IsEmpy = IsEmpty

Oops.

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.