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.

Exiting a loop

Featured Replies

I am new in data bases so I still know only a few things, hope you can help.

I’m trying to make a script to generate records based on related ones but I can’t end it.

First related record goes ok, then goes to the next and ok too, but on the third goes back to the first and jumps to next, so I get first and second record ok and a nonstop second record.

I’ll appreciate your help.

Set Variable [ $P1; Value:Table 1::P1_ID ]

Go to Related Record [ From table: “Table A”; Using layout: “Table A” (Table A) ]

[ Show only related records ]

Go to Record/Request/Page

[ First ]

Loop

Set Variable [ $As1; Value:Table A::A1_ID ]

Go to Layout [ “Table B” (Tabla B) ]

New Record/Request

Set Field [ Table B::A1_ID; $As1 ]

Set Field [ Table B::P1_ID; $P1 ]

Go to Related Record [ From table: “Table A”; Using layout: “Table A” (Table A) ]

[ Show only related records ]

Go to Record/Request/Page

[ Next; Exit after last ]

End Loop

a script to generate records based on related ones

I am not sure what exactly are you trying to accomplish here. I think you want:

Set Variable [ $P1; Value:Table 1::P1_ID ]

If [ not IsEmpty ( Table A::P1_ID ) ]

Go to Related Record [ From table: “Table A”; Using layout: “Table A” (Table A) ][ Show only related records ]

Go to Record/Request/Page [ First ]

Loop

Set Variable [ $As1; Value:Table A::A1_ID ]

Go to Layout [ “Table B” (Table B) ]

New Record/Request

Set Field [ Table B::A1_ID; $As1 ]

Set Field [ Table B::P1_ID; $P1 ]

Go to Layout [ “Table A” (Table A) ]

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

End Loop

End If

  • Author

Corrected, thank you very much.

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.