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: repeating field deletion and reposition

Featured Replies

I have a database in which I keep track of medication of patients that are in our system. I have 4 columns (Medication Name, Dosage, Route, and Freqency) each with 45 repetitions. They are lined up next to each other so as to look like a chart. We enter the information manually from a hard copy that we receive at admission.

We show a portion of this list on a cover sheet and if there are more than 11 medications a button will appear that says to look at an addendum (continuation of the medication list) that will list the medications that do not fit on the cover sheet.

I have calculating fields set up to check if there is any information on repetition 12 through 45 (very time consuming, but the best idea I could come up with). If one is not empty, then the button to see the addendum appears.

med_1200613539-Addendum.JPG

What I want to do is create a button that will delete an entire row (ie. deleting a medication and its info from a chart) and then having the list reposition the medications so it is a continuous list. I want to be able to delete a row and then have the information below it move up one row (similar to deleting a row in excel and all of the rows move up). I created a button that would delete the row, but it ended up deleting that row in the entire database.

Can anyone help with any ideas?

Thanks.

Addendum.JPG

Does this ring a bell:

http://www.filemaker.com/help/Script-Steps59.html

...and BTW is it about time you use relational approaches!

--sd

...very time consuming, but the best idea I could come up with).

I strongly agree with Soren - relational would make your life soooooo much easier. When you are ready to consider a re-write, let us all know and we can show you easier ways. Once you go relational, you'll never go back. :wink2:

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.