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.

[noob] Orientation needed with relating 2 tables

Featured Replies

  • Newbies

I am using FMP 9 for the first time, went through the tutorials and user guide. I have a headache and still can't figure out how to do this, which I would hope is quite basic.

I have two tables coming from a CAD program,

Apartment Schedule (story, apartment number, apartment type)

[color:blue]story 1, apt 1, Type A.1

story 1, apt 2, Type A.1

story 1, apt 3, Type A.2

story 1, apt 4, Type B.1

story 2, apt 1, Type A.1

(…)

Room Schedule by Apartment Type (room number, room area, room name, occupancy,etc.)

[color:blue]Type A.1, room 1, 10 m2, hallway, B3

Type A.1, room 2, 6 m2, toilet, B1

Type A.1, room 3, 12 m2, kitchen, B3

Type A.1, room 4, 15 m2, bedroom, B2

Type A.1, room 5, 18 m2, living room, B3

Type A.2, room 1, 9 m2, hallway, B3

(…)

This table can be a single table, listing the rooms for one apartment type after the other, or if there is no better choice it could be generated as one separate table for each apartment type. The number of rooms differs for each apartment type.

And I need to combine information from those to get a Building Room Schedule looking like this:

[color:blue]story 1, apt 1, room 1, 10 m2, hallway, B3

story 1, apt 1, room 2, 6 m2, toilet, B1

story 1, apt 1, room 3, 12 m2, kitchen, B3

story 1, apt 1, room 4, 15 m2, bedroom, B2

story 1, apt 1, room 5, 18 m2, living room, B3

story 1, apt 2, room 1, 10 m2, hallway, B3

(…)

I am totally lost. Any basic orientation will be highly appreciated.

Edited by Guest

It looks like you need to loop through each apt and create a list of rooms based on the apt type. There are a number of ways you could script this, for example:

Go to layout( apt schedule )

Loop

Set variable( $type; apt type )

Set variable( $aptnum; apt num )

Go to layout( room schedule )

Enter find mode

Set field( type; $type )

Perform find

Go to layout( building room schedule )

Import ( *from room schedule* )

Replace( apt num ; $ aptnum )

Go to layout( apt schedule )

Go to record( next, exit after last )

End Loop

Does that make sense? There's probably a more elegant solution but something like this should get the job done, assuming I understood your request.

  • Author
  • Newbies

Thanks very much. Yes, it seems some script like that should do it. I was not sure whether I was totally missing how to use relationships to get this job done, or I was actually needing some other tools in order to get this job done. Thanks very much again.

Edited by Guest

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.