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.
Juggernaut

New to scripting - basic find script

Featured Replies

Have three files - students, math scores and report cards. I want the teacher who logs on to go to report cards and do a find for their students. Then I have a button that I would like the teacher to click and it opens the math scores file with the same students already found - how do I write this? I think this is scripting 101, but I haven't passed that yet - THANKS.

Hi,

Assuming your Report Card is a file where each student is affiliated to a teacher, by the TeacherID, the quicker would be to involve relationships rather than a find process.

1. Create a global field, gTeacherID

2. Define a selfRelationship "Self#gTeacherID#TeacherID" (gTeacherID matching TeacherID).

3. Define a Value List "RelatedStudents" using this relationship

4. Create a global text field gStudentIDsHolder

5. Create a relationship to the Math Scores file "Math#gStudentIDsHolder#StudentID"

A 2 lines script :

SetField[gStudentIDsHolder, ValueListItems(Status(CurrentFileName),"RelatedStudents")]

GoToRelated Records ["Math#gStudentIDsHolder#StudentID"- show only]

and maybe an external script which would locate the targeted Layout.

HTH

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.