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.

Find/Sort from popup menu?

Featured Replies

Hi,

I have a field that gives the user a choice of finding their jobs based on what they select from the field...

Today

Tomorrow

2 Days

3 Days

Then I made a button that starts a script to find and sort the records that ship "Today", (or whatever other choice they made). I tried to do an "if" in the scriping window to accomplish this, but it's not working as I'd hoped.

Am I going in the right direction, or am I missing an easy solution???

Thanks!

Mark

You would need a global field that has the pull down menu on it. I called it gDateChoice.

Then in your script, you can script something like this.


If [ Jobs::gDateChoice = "Today" ]

     Enter Find Mode []

     Set Field [ Jobs::JobDateField; Get ( CurrentDate ) ]

Else If [ Jobs::gDateChoice = "Tommorow" ]

     Enter Find Mode []

     Set Field [ Jobs::JobDateField; Get ( CurrentDate ) +1  ]

Else If [ Jobs::gDateChoice = "2 Days" ]

     Enter Find Mode []

     Set Field [ Jobs::JobDateField; Get ( CurrentDate ) +3  ]

Else If [ Jobs::gDateChoice = "3 Days"]

     Enter Find Mode []

     Set Field [ Jobs::JobDateField; Get ( CurrentDate ) +3  ]

End If

Perform Find []



  • Author

Thanks John! I'll give it a shot.

Mark

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.