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.

evaluating field contents through relationship script

Featured Replies

  • Newbies

Hello,

My first post on this forum. Is it possible to access (check) the contents of a field in a related table using a script without leaving a layout? Have a three table relationship. Members, loans and items. The loan table joins the members and items table (many to many). I wish to check the loan status of an item before committing to an action from the loans layout. I would prefer not to this using a find method as it is cumbersome and time consuming. I have seen some references to [Relationship::tbl] but I am unsure what this feature offers and how to use it if it relates.

many thanks

I wish to check the loan status of an item

What exactly is "the loan status of an item" - how is it determined?

  • Author
  • Newbies

What exactly is "the loan status of an item" - how is it determined?

Loan status is Boolean. I currently have the loan status field within the items table.(MembersTbl << loansTbl >> ItemsTbl). I need to check whether the loan status has been closed before I issue a new loan for any item. The loan status is true when the loan is initiated and false when returned. I can not rely on the user input to close the loan off when the item is returned, so I need to check the loan status before it is loaned out again.

I could search through the loans table to see if the item is on loan but that table holds a lot of records. Secondly I would prefer not to leave the layout as it creates another step in the user's interface input experience. I am trying to keep the interface as simple as possible. Thanks for your interest.

I can not rely on the user input to close the loan off when the item is returned

But you can rely on the user to change the status in the Items table??

Anyway, once you select the item by populating the ItemID field in Loans, the item's status is given by the expression =

Items::Status

  • Author
  • Newbies

But you can rely on the user to change the status in the Items table??

Anyway, once you select the item by populating the ItemID field in Loans, the item's status is given by the expression =

Items::Status

Yes you are right. Just set the item as loaned as I have been doing and deal with the overdue aspect that will occur in the loans tbl in another way. Keep the two solutions separate. Thanks for your input..

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.