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.

show how many imported records

Featured Replies

I would like to import some records and at the end of the script tell the user how many records were imported. I know I could show a layout with that information , but I would like to use the show message script step, is it possible ? how ?

With the simple Show Message script step this won't be possible. You need the Show Custom Dialog step, which is only available in FMP 6.

Then I think you should be able to this with the status functions: Status (CurrentRecordCount) gives you the total number of records in the database.

Create a calculation field

Hi LVA,

If you can use Custom Dialog, you actually only need one global text field and a Set Field[] script-step. It would look something like this:

Import Records you will end up with a found set of imported records. Then immediately...

Set Field [GlobalText, "You have imported " & Status(CurrentFoundCount" & " records."

Show Custom Dialog ...

When defining your Custom Dialog, only have an OK default button, Dialog Title text with "Import Result" and Dialog Message from field value and select your global text field. smile.gif

LaRetta

  • Author

I tried using FM6 to see how it works and it

  • 2 weeks later...

At the end of your script, go to another layout, then pause. Design this layout to look like a dialog box with your custom message & an OK button. Attach a "resume script" or "go to layout" step to the OK button, which returns the user to wherever they should be... and voila!

cheers,

Wendy

Or, they could just look at the current found count to know how many were imported grin.gif

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.