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.

ex-and importing summaries

Featured Replies

What I did in fm6 was: export summary fields by customerref. to a intermediate fmfile, so I could reimport them in a statistics file as numbers.

I did this in shared files and everything went well.

Now, in 9, I don't seem to get the intermediate file to close in order to replace it with the most recent data.

I worked around it with an excellsheet but isn't there a way to keep in inside fm?

Thanks for any suggestions.

  • Author

As they say in Flemish: asking the question is answering it. I found the calculation GetSummary (which may or may not have existed ten years ago when I started this thing).

Sorry to have bothered anyone.

In my huble opinion has GetSummary been there for ever at least since fm2.1!

May I ask for the reasoning behind not having it as an relational approach instead?

--sd

  • Author

Maybe cuz I don't see the relationship?

Regards

Rik

But every time you have a breaker value could it be substituted by a pair of primary- and secondary- keys in each thier respective tables. Because when you export summaries and re-import them again into a new table, is it deliberately storage of redundant data ... unless you re-import to the same table, which meanwhile has been deleted for records.

The following requires only the same table, nothing external, if the task is to compile the summaries into one single record for each breaker value:


Sort Records [ Specified Sort Order: Untitled::field1; ascending ] [ Restore; No dialog ] 

Go to Record/Request/Page [ First ] 

Set Variable [ $omitting; Value:GetSummary ( Untitled::theSummaryOfField1 ; Untitled::field1 )-1 ] 

Loop 

      Set Field [ Untitled::field2; GetSummary(Untitled::theSummaryOfField2 ; Untitled::field1 ) ] 

      Set Field [ Untitled::field3; GetSummary ( Untitled::theSummaryOfField3 ; Untitled::field1 ) ] 

      Go to Record/Request/Page [ Next ] 

      Omit Multiple Records [ $omitting ] [ No dialog ] 

      Exit Loop If [ Get ( RecordNumber ) = Get ( FoundCount ) ] 

End Loop 

Show Omitted Only 

Delete All Records [ No dialog ] 

--sd

  • Author

Thanks for the suggestion, S/oren, but I don't get there with setting fields, while both the source and the target table are existing and have to remain intact. Maybe if I find a moment (during the next ten years or so) to rebuild the entire thing I'll get more use of all the givings of FMPro...

Alright the deletion might be too drastic a measure but you need to consider yet another option, you could the breaker value be relational key in a selfjoin where the summary fields then gets their values over the relation ... take a look...

At first sight does the solution seem entirely script free, but in multiuser scenarios, are measures required to refresh the matters pulled over the relation.

--sd

Untitled.zip

  • Author

Thanks for your time, SD, I'll look into the download as soon as I find the time.

Cheers,

Rik

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.