Skip 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.

Large search and replace problem

Featured Replies

hi

ive got 2 quite large tables; one with some 65 000 records, the other with nearly 5 000.

now i need to check the 65 000 one to see if any of those records already exists in the 5 000 pile. im using a $id = $id2 type of script with 2 diffrent loops, one looping first through the small script, and then exiting back to the other loop, which lopps throught the big one. both commiting after the last record.

this takes forever, anybody know how to speed this up?

Try a matching records import.

In the smaller table, Show All Records, then Go to Related Record [Match all records in the current found set ].

  • Author

thanks but i need to script it, i need to save the unmatched ones and check them again to another list befor i just delete them. is there anyway to scrip whatever you just said?

Show All Records is a script step, and so is Go to Related Record. Actually, I don't know of another way to go to related record/s, so you must script this.

  • Author

k, i c...

thing is that im on a swedish copy of fm8 so i have to translate everything into swedish, and the translations for fm is not good in the first place so its basicly guessing. ive got the "show all records" as a normal search mode, thats why...

anyhow, thanks a bunch!

Edited by Guest

  • Author

ok.. doingh the show all, and goto related but all i get is that i end up in the smaller table, with it showing all records. do i need a "goto table" option?

You need to go to the bigger table, using a relationship that defines a duplicate.

  • Author

im a programmer by basis, please talk code... :)

kinda like:

goto layout(smaller)

show all()

goto related records(shoe search results only)

goto layout(bigger)

?

Go to Layout [ some layout of the smaller table ]

Show All Records

Go to Related Record [ From table: “bigger”; Using layout: some layout of the bigger table ] [ Show only related records; Match found set ]

...

Go To Layout[smaller]

Show All Records[]

Go to Related Record [ From table: BiggerTable; Using layout: Layout tacked to Bigger table ] [ Show only related records; Match found set ]

Loop

Set Field[bigTable::Exists ; 1]

Go To Record[Next ; Exit After Last]

End Loop

The above or close to it, will do comments suggestion and show you those records that exist within the big table that are in the small table, or if you want to do it the other way around, run from big table. The field Exists, is just a marker field so if you need you can find those records again and then check it with your other list.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.