Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Display Second Owner Name in a Portal


This topic is 7271 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hello Fellow DBer's:

I need your help with an issue displaying the seconded owner name of an account that associates 2 names within a portal. I want to display the owner's names on a billing statement. Through the relationship it will display the first name (owner1) but will not allow me to display the second name (owner2).

Any ideas on how to best do this? Thanks Mike

Tables:

Units (where the portal resides)

Owners (where the owner information resides)

Accounting (where I want the 1st & 2nd owner names to appear, btw, the first

name appears but not the second)

Relationship:

Units (pkunit#) = Owners (fkunit#) allow creation

Units (uacct#) = Accounting (xacct#)

Portal includes:

field: ofname (first name)

field: olname (last name)

field: ostatus (menu select owner1, owner2, etc.)

Layouts:

Units displays the owner information (as a portal) and the unit information.

Owners displays the owner information entered in the portal.

Accounting information displays the billing statement with the owner names,

address, account number, etc.

Posted

Since each Unit can have more than one owner, and each Owner can have more than one Unit, this describes a many-to-many. The usual way to do a many-to-many is to create a join table between the two tables, let's call it Owner_Unit. This Owner_Unit table would have match fields for the UnitID and the OwnerID.

The relationships I see are:

Accounting <=> Unit:

Accounting::Acct# = Unit::Acct#

Unit <=> Owner_Unit:

Unit::pkunit# = Owner_Unit::fkunit#

Owner_Unit <=> Owner:

Owner_Unit::fkownerID = Owner::pkownerID

Assuming the relationship between Accounting and Unit is a Many-to-One, you should be able to insert a portal on an Accounting layout that shows related records from Owner (or Owner_Unit,) that shows all owners of the related Unit.

This topic is 7271 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.