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 Like Date Two different Files

Featured Replies

I am using FM 5.5 I need to find the same records in two different files.

When I use the Script I created it just keeps looping to infinity.

I have records with a select checkbox in one record, the same checkbox in the second file,

I can do the finds seperatly but when I try to implement them in a script it just loops.

Thanks in advance.

Hi,

Create a relationship between the two fields you are doing the finds on. Then create a script and use the step Go To Related Record. If you need more explanation let me know.

Michael

  • Author

I already have a relationship and I can get them to go to individual records of what I find, I would like to find the same list so i can print or view a group of records.

If you can find the records you want to print then you have most of it.

"I would like to find the same list so i can print or view a group of records."

Are you trying to print one record per page or multiple records on one page? I guess that would explain why you are using a loop if it's the 1st.

Could you post a copy of the script you are using so we can figure out why it is stuck in the loop?

Michael

  • Author

The Script, there are two files one is student and the other is forms

I have a field that is called select which resides on the forms file, I have put it on the student file list layout.

the script start with

perform find(restore, replace)

Go to layout list

perform Script (external script forms find mark)

the find just finds all the yes's in the select field

I use a check box

When I go do the finds individually I can get it to work, when I try to automate it, it just loops.

What does the external script do? Obviously that is where the loop is contained.

Anyway you can post a copy of the file? Would make this much easier.

Michael

  • Author

The Script goes to the forms table and States

Perform Find (restore,) the find criteria is looking for the check in the checkbox, Then goes to a list layout.

I still don't see a loop. Or how you are getting stuck in a loop. A script that performs a find and then calls another find script in another file isn't going to "Loop".

Are you getting a "No records match this find request" error? If so, is it in the First script or the External Script?

Is that ALL of both scripts?

One thing you can try yourself is insert Pause Steps(eg...right before a find is performed, after a sort....etc) in both of the scripts to try and see where the problem might be. You can always remove them after you get it working.

BTW IF you have access to the Developer Version, you can use the Script Debugger Instead of the pauses.

Michael

  • Author

Yes I will give that a try,

I do not have many steps and there is no reason to loop. I get no error it just give the command symbol over and over.

I will try the debugger.

  • Author

When I took the steps one by one, the problem occurred when the script tried to switch files, when it went to open the new file and Run it. I change the way it open the file and I will have to live with it.

Thanks for the help.

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.