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.

Indicating 'omit' criteria with staus bar hidden

Featured Replies

Hi,

I have the staus area hidden in my 8.5 solution and I need to allow users to build complex find with multiple and/or/isnot find criteria.

In find mode I can use a 'new record' buton to add an 'or' criteria, and I can use an 'omit record' button to add an 'is not' criteria.

But with the status area hidden, is there a way to show users whether they're looking at a find request rather than an omit request?

Thanks,

ft

http://www.filemaker.com/help/FunctionsRef-258.html

--sd

  • Author

Thanks for the pointer. I also found the useful function

get(requestnumber)

I created my solution as follows:

1. Created 2 globals in the interface file called FindOrOmit and NumberOfRequests. I placed these globals on my find layout.

2. I built 4 buttons on the find layout; new, omit, forward, back. I gave them each script paramenters.

3. I created a script, triggered by the buttons created in step 2, which sets initial values for the fields created in step 1 to start the search

4. I created the following (rough) script which sets the globals created in step 1 each time a button is pressed:

#New find request 

If [ Get(ScriptParameter) = "new" ] 

New Record/Request 

Set Field [ Interface fields::FindOrOmit; "Find" ] 

Set Field [ Interface fields::NumberFindRequests; Get ( RequestCount ) ] 

Halt Script 

End If 

#Omit request 

If [ Get(ScriptParameter)= "omit" ] 

Omit Record 

If [ Get ( RequestOmitState ) =1 ] 

Set Field [ Interface fields::FindOrOmit; "Omit" ] 

Else 

Set Field [ Interface fields::FindOrOmit; "Find" ] 

End If 

Set Field [ Interface fields::NumberFindRequests; Get ( RequestCount ) ] 

Halt Script 

End If 

#Forward one criteria 

If [ Get(ScriptParameter) = "forward" ] 

Go to Record/Request/Page 

[ Next ] 

If [ Get ( RequestOmitState ) =1 ] 

Set Field [ Interface fields::FindOrOmit; "Omit" ] 

Else 

Set Field [ Interface fields::FindOrOmit; "Find" ] 

End If 

Set Field [ Interface fields::NumberFindRequests; Get ( RequestCount ) ] 

Halt Script 

End If 

#Back one criteria 

If [ Get(ScriptParameter) = "back" ] 

Go to Record/Request/Page 

[ Previous ] 

If [ Get ( RequestOmitState ) =1 ] 

Set Field [ Interface fields::FindOrOmit; "Omit" ] 

Else 

Set Field [ Interface fields::FindOrOmit; "Find" ] 

End If 

Set Field [ Interface fields::NumberFindRequests; Get ( RequestCount ) ] 

End If 

thanks,

ft.

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.