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.

Search for strings with dashes but leave dashes out of search string...???

Featured Replies

If we have the following in our DB: 603-900055-201 and I do a Find for 603900055201 it does not find the part. Is there a way I can make that work because it's kind of a pain..??

I can't seem to find any wildecards that will make it work. Any info would be great. thanks!

what if you created a field that was a calculation.

Filter( SerialNumber ; "0123456789")

And then you could search on the field with numbers only.

Would that work?

  • Author

My experience with searching in calculation fields is not good...takes forever to load a single search. If there's another way it'd be better.

You could create an auto-calculation instead of just a calculation. Just make sure that you uncheck "Do not replace existing value of field (if any)"

A stored calculation field would get indexed, and searching it should be no different than searching a text field.

If your field is standardized to the ###-######-### format, you could have a script format the request in the same way.

603-900055-201 and I do a Find for 603900055201. I can't seem to find any wildecards that will make it work.

search on the field with numbers only. Filter( SerialNumber ; "0123456789")

If your field is standardized to the ###-######-### format, you could have a script format the request in the same way.

Yes but it would require User inputting the entire part number otherwise how would script know position to generically wildcard the remainder? I would prefer a less rigid approach. DrewAngel, since you are creating a calculation to hold the raw numbers (although the field should be text) then why not give your Users a break and accept any string in any position within the field? The calc does not have to be on the form; you can still let Users search your partNumber field. Script might then look like:

Set Error Capture [ On ]

Enter Find Mode [ pause ] [color:gray]the Users type what they are searching

Set Field [ theCalc ; "*" & Substitute ( partNumber ; "-" ; "" ) & "*" ]

Set Field [ partNumber ; "" ]

Perform Find [ ]

If [ not Get ( FoundCount ) ]

... no records

Else

... records found

End If

This script is a bit more forgiving: they can accidently enter the dash and it will be ignored; they can remember only part of the number and it will be found regardless, and it will be quicker for your Users to enter instead of a long numeric string. It's just another option ... only you can decide which might work best in your situation.

LaRetta :wink2:

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

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.