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.

Script won't copy correct file from table A to B

Featured Replies

  • Newbies

When I run this script it only paste the last thing copied to the clip board in the field (Prevs Pymt). It does paste it where the (RSRVN#) are matching. But I can't make the script copy the correct numbers from Old Data. I have tried changing all the different boxes in the relationships menu and it didn't help.

Example Script

New Payments & Reservations

Go to Layout [ "Data" (Unearned Rent Data) ]

Go to Record/Request/Page [ First ]

Go to Field [ Unearned Rent Data::RSRVN# ]

Loop

If [ Unearned Rent Data::RSRVN# ? Old Data::RSRVN# ]

Go to Record/Request/Page [ Next ]

Else If [ Unearned Rent Data::RSRVN# = Old Data::RSRVN# ]

Go to Field [ Old Data::COH ]

Paste [ Unearned Rent Data::Prevs Pymt ] [ Select ]

Copy [ Old Data::COH ] [ Select ]

Go to Record/Request/Page [ Next; Exit after last ]

End If

End Loop

I am stuck and I have limited script writing skills

Thanks

rick

  • Author
  • Newbies

Fixed my problem here is the script that works!

Go to Layout [ "Data" (Unearned Rent Data) ]

Go to Record/Request/Page [ First ]

Go to Field [ Unearned Rent Data::RSRVN# ]

Loop

If [ Unearned Rent Data::RSRVN# ? Old Data::RSRVN# ]

Go to Record/Request/Page [ Next ]

Else If [ Unearned Rent Data::RSRVN# = Old Data::RSRVN# ]

Go to Related Record [ From table: "Old Data"; Using layout: "Old Data" (Old Data) ]

Go to Field [ Old Data::COH ]

Copy [ Old Data::COH ] [ Select ]

Go to Related Record [ From table: "Unearned Rent Data"; Using layout: "Data" (Unearned Rent Data) ]

Paste [ Unearned Rent Data::Prevs Pymt ] [ Select ]

Go to Record/Request/Page [ Next; Exit after last ]

End If

End Loop

Thanks

It is generally better to avoid copy/paste in scripts and use set field instead. Something like this should work better:

Go to Layout [ "Data" (Unearned Rent Data) ]

Go to Record/Request/Page [ First ]

Loop

If [ Unearned Rent Data::RSRVN# = Old Data::RSRVN# ]

set field [Prevs Pymt , Old Data::COH ]

End If

Go to Record/Request/Page [ Next; Exit after last ]

End Loop

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.