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

Is there anyway to do an "OR" find without having to use "Add New Request"? For example, I would like to search for all projects completed in either 2006 or 2007 is there some command that will allow me to do so? Thanks for any suggestions...

-Rebecca

Not exactly an "OR" find, but you could search for "2006..2007" in the DateCompleted field.

  • Author

The only problem with that is that it isn't just the year fields for which I need to do such finds. For example, my office is divided into teams. Suppose I want to search for projects completed by either Team 1 or Team 3. Then the "..." won't work.

My concern is that the typical user in my company is not filemaker savvy. I don't want them to have to navigate several requests in order to find what they are looking for. The fewer steps, the better.

A true OR search (such as Team 1 or Team 3) requires multiple requests. However, that should be YOUR concern, not the user's. Just give the users space to enter whatever they might be searching for - then take their input and create the required requests for them by script.

  • Author

What I'm about to ask is more than likely going to demonstrate my ignorance. How exactly would you write that script? Would they type in what they want and then my script would use copy/paste? Thanks for all of your help.

Go to ScriptMaker to setup scripts :)

1 Example:

Create a number field, call it "SearchYear1" go in to options, storage, choose "Use Global Storage", repeat for another field, calling it "SearchYear2"

Put these two fields on a new layout called search for example...

Now, you just have to make 2 or 3 scripts..

1) Go to the find layout

2) Perform The Find

3) Cancel The Find

1) Go To Find Layout

Set Variable[ $$startLayout ; Get(LayoutName) ]

Go To Layout[ Search ]

2) Perform The Find

Allow User Abort[off]

Set Error Capture[on]

Freeze Window

Enter Find Mode[]

Set Field[ YourNormalYearField ; SearchYear1 ]

Create New Record / Request

Set Field [ YourNormalYearField ; SearchYear2 ]

Perform Find[]

If[ Get(LastError) <> 0 ]

Show Custom Dialog[Error ; Your search returned no results]

Halt Script

Else

Go To Layout[ By Calculation ; $$startLayout ]

Set Field[ SearchYear1 ; "" ]

Set Field[ SearchYear2 ; "" ]

End If

3) Cancel The Find

Set Field[ SearchYear1 ; "" ]

Set Field[ SearchYear2 ; "" ]

Go To Layout[ $$startLayout ]

There's also a technique you might want to have a look at in Sample Files and Open Source solutions called Dynamic Find Requests or something like that... It's slower in larger solutions and i don't REALLY recommend implementing it, but have a look anyway.

Much depends on how you want to design your user interface. But yes, in general they would type what they want into global fields (in Browse mode), and no, you wouldn't use copy/paste.

Here are a couple of threads that should (hopefully) get you started:

 

 

  • Author

THANKS!

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.