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.

Simple scripting question!!!

Featured Replies

I have written a script connected to a button in an entry layout that opens a new layout in preview mode to show data organised with two leading sub-summaries.

It sorts ok and gives me the display I want

But as I add various navigation scripts to my original layout then test them, the script relating to preview layout does not always sort correctly giving me a preview without sub-summary information.

I'm pretty sure that it relates to the Sort command in the Preview script...

Am I correct and what can I do about "concreting" the sort command in the Preview script???

TIA

Stephen K

I recommend you break your Sorts out into separate one-line scripts, which you can then call as needed with the Perform Script step.

  • Author

More...

it happens any time I do a different sort...I have to restore the original sort order needed fo publish correctly

confused.gifconfused.gifconfused.gif

  • Author

Sorry Tom

was writing my extra as you posted

I'm trying to set up a button/script so that other users can print out the student records...i added the sort into the script so that when other users hit the button...the records in preview can be printed after viewing...then be returned to the original layout after printing.

But if a user hits a find button then goes to preview the sub-summary information isn't present...then on return to original layout...it is sorted according to the sort criteria but on entering preview layout...the sub-summary data is not there.

If I don't allow a find command there is no problem...but if I do any sort...grrr

Do previews with sub-summaries only work with a manual sort before viewing???

Previews with sub-summaries will work with scripted Sorts.

Try inserting Enter Browse Mode in your script before the Sort.

I still recommend you break your Sorts into separate scripts. This is less useful in FileMaker 7, which allows multiple Sorts in one script, but it's a good technique in version 6.

  • Author

Hey Tom

Thanks...why don't I listen!!!

Soon as I set the Sort as a separate Script all problems (to date) disappeared!!!

Stephen

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.