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.

Need some self-relation scripting help!

Featured Replies

  • Newbies

Good afternoon all!

Well I work at a small newspaper, and we run a pretty simple process here. We input data we receive from the courts and input them into "template" filemaker files. We then import these template files into the main database for our internal use. The internal DBs hold all data and also perform several scripted procedures. We need to export "todays" new records to the specific web db, we also need to export the new records for print. We accomplish the print export by exporting the records to text, then use a ms word merge doc to finish up the editing.

These files have been working great until the last month or so. Now we are having issues with "Repeating" title in the finalized word document.

So the process is like this...

1. import from template file (working great)

2. export for print (not working)

3. use applescript and VS to manipulate the word doc (working great)

4. export for web (working great)

Now the guy who created these scripts before me did it much differently then I would, and his way is probably better. I guess I'll give some examples so you all can see...

Basic Record..default layout

default.png

Print Layout

print.png

Print Layout - Layout Mode

print-layout.png

Scripts

scripts.png

Print Script A

printa.png

Print Script B

printb.png

A bad export result...

badexport.png

Now the two pictures above that are print A and print B are working. I redid them. His way was completely different, and much shorter. He was using self relations.

His defined fields looked like this..

baddefinefields.png

And his worked but not working now script looked like this...

oldscript.png

Man, this is much harder to explain then I thought it would be. I need the first record to have a title, and a date. The next records title and date are blank, IF its the same as the previous records. IF its not the same, it needs to export the new title/date etc. I feel my way works, but it very long handed, and doesn't need to be. The title and date (centered data on word doc pic) keep repeating.

Kinda like...

date = record1.date

if currentrecord.date = date

replace currentrecord.date with ""

else date = currentrecord.date

Again, pic Print A and Print B are working. But if I add more variables then title and data, say title/date/city/zipcode it could get really really ugly.

Well, hope I explained that well enough...thanks for the help in advance!

~ Chad

It's too tough to digest your post, especially the tiny images - but if I understand the process correctly ...should you consider this tool with native filemaker reporting instead. Well an upgrade to the newest version could get you quite near as well.

http://www.schubec.com/en/product_details_883818.html

The produced .pdf'es could then be munged by one of the tools found here:

http://www.recosoft.com/

--sd

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.