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

Having a difficult time getting $$Event_Filter to work. My event table has id_event_type. I have a global field that filters an event list by this value. Any help incorporating $$Event_Filter?

 

I even tried hard-coding the $$Event_Filter by setting it to "id_event_type = "1F7CED2C-D153-45FC-AFD5-DA796FAF4F28" and still just ?s.

 

Here is what I see in the data viewer:

SELECT
 "event_description",
 "EzCal_Text_Color",
 '',
 "start_time",
 "end_time"
 FROM
 "event"
 WHERE
 ( ( NUMVAL ( "start_date" ) = [[DATE]] )
 OR ( ( NUMVAL ( "start_date" ) < [[DATE]] ) AND ( NUMVAL ( "thru_date" ) >= [[DATE]] ) )
 )
  AND ( id_event_type = "1F7CED2C-D153-45FC-AFD5-DA796FAF4F28" ) 

It looks like the filter that you are specifying is resulting in an invalid SQL command.

 

Try wrapping the value in single quotes.

 

For example:

 

$$Event_Filter = "( id_event_type = '1F7CED2C-D153-45FC-AFD5-DA796FAF4F28' )"

 

-- Tim

  • Author

Yeah! Boy, I thought I have tried that. Now, onto the fact that I do not want to hard-code the id_event_type. How would I do that, Tim?


"id_event_type = " & "'" & ( GetField ( "@SYS::EVENT_TYPE_FILTER ") ) & "'"

 

Thanks, Tim! You're inspiring me.

-Barbara

How about this...

 

$$Event_Filter = "( id_event_type = '" & GetField ( "@SYS::EVENT_TYPE_FILTER ") & "' )"

 

- Tim

  • Author

that works well, too! Of course, I needed to also test for an empty FILTER, so 

 

Case ( IsEmpty (@SYS::EVENT_TYPE_FILTER ) ; "" ;"( id_event_type = '" & GetField ( "@SYS::EVENT_TYPE_FILTER ") & "' )" )

 

is the final calc.

Create an account or sign in to comment

Similar Content

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.