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.

Data Entry for Circular Data Structure

Featured Replies

Hello all,

I'm in a bit of a quandary and would like to ask the experts here for their opinions.

I'm cataloging the placement of art in many rooms of many buildings. The "room" table has ID fields for each of the 4 walls which comprise it. The "wall" table has an ID field for the room. We can't have orphaned walls (walls that aren't assigned to rooms), or rooms without 4 walls, so those ID fields are required.

There's my circle.

It seems like I'm going to have to remove the "not null" requirement for the wall ids in "rooms" because the logical progression of data entry dictates that rooms are added before walls. Removing that not null requirement will allow the the user to save the room record before adding and assigning walls.

An interface is only as smart as its most clueless user, so what would you gurus suggest to prevent orphaned walls? I was thinking about the possibility of forcing a lookup in each of the wall fields in "rooms" after the wall record was saved to make sure it's listed somewhere (and if not to show a selectable list of rooms), but I don't know how to do that.

Would anyone know how to do that, or are there easier ways?

Thanks!

Jasmine

It seems to me that since all 4 walls exist for a room, that you could create the 4 walls via a "New Room" script. Then assign whatever stuff to each.

  • Author

Thank you very much. I'm new to FMP (but not to db programming), so I'll check out FMP's scripts. Thanks for the lead!

I wonder if the wall table is even really necessary. As Fenton pointed out, every room has four, so why not just create a wall field in the art table. The art record would have the room id and then 1,2,3, or 4 for the wall number.

  • Author

Thank you very much for your response. The wall table is necessary because each wall also has specific data associated with it.

OK well in that case, I don't see the point of storing the four wall IDs in the the room record. Store the room ID in the wall record instead.

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.