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.

dynamic perform find from field contents

Featured Replies

I have a text field called subject that I want to use the contents of this field to perform a find. Right now I do it this find and delete manually but I need to have it scripted. Here is the manual process:

Go to record request 1st

Copy contents of field subject

Perform find in field subject paste the contents into the Criteria section and hit enter

Delete retuned records

Show all records

Go to record request 1st

I need for this above manual operation to be scripted but since you cannot paste into a criteria field for a find the script will not work. Has anyone ran into this before or has any ideas on how to work around this problem.

Thanks

I forget if the SetVariable script step exists in FM8, if it does, it is your answer. Use it to hold your find variable and then

SetVariable ($Variable ; Field)

Enter Find Mode

SetField (Field ; $Variable )

Perform Find (no dialog)

SetVariable ($Variable ; "")

Otherwise, use a global field instead of a variable. In either case, you want to avoid using OS level operations like "cut" and "copy" for in-solution scripts, since these values are handled/stored by the OS, and may affect other user actions in other unrelated applications.

By the way, it looks like you also might want to to call a Loop/Exit Loop If/EndLoop to go through all iterations of your script, until the find/delete action is exhausted.

P.S. - Be very careful with this, you can inadvertently wipe out your entire data set. Back up the whole file before you start playing with loop/setfield/delete type scripts.

I am also trying to find a solution to a similar problem. My main issue is the text box in which to type the value of the variable. The idea is to create some sort of Quick Search area on the database homepage. However, I do not want the entire page to go into Find mode or New Record mode. Is that at all possible?

For reference: compare it to a Google search box of sorts...

See here.

http://www.fmforums.com/forum/showtopic.php?tid/195128

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.