Hi, I’m exited to be working with the new relational features of 10.2, and I’ve encountered a question I cannot solve via the built in help documentation. I’m trying to understand the workflow before I fully implement a database. Setting up the basic database relationships is VERY EASY in 10.2. I love the panel you have set up. The “click to make a key” and all that is great.
My basic concept is the following: multiple interrelated databases that share data related to a Key ID (an individual person), but each database holds a variable amount of data including a field that ranks the importance of the particular record. In human terms, this is data related to individuals (phone numbers, email addresses, etc, but also events such as phone calls and in-person encounters). Certain individuals will have more or less of one type of data stored about them, and I want to have one database that contains all the “most important” data from each auxiliary database. I prefer not to do this with Line Items because I would prefer just a single email or phone displayed in the primary database. I would like that to be whatever record in the auxiliary database is ranked as “most important.” I would like some sort of formula that looks like
"from Auxiliary database B, for all records matching ID XXX, select the “Email” corresponding to the lowest number value in field "Priority"
In tabular form what I have is something like the following
Table 1: People
Person_ID, Name, Notes, Some other Data, “most important email address”, “most important phone number”, etc…
Table 2 emails
Person_ID, nickname, Email address, Email Label, Priority
Table 3 Addresses
Person_ID, Street address, Label, Priority, City, State, etc
I have tried to find some way of expressing this in both the “subset options” and the “source formula” fields of the relationship management settings, but when I test it by adding 5 or 6 email address records, for a single Person_ID in the Email database, and give values of 1-5 for each entry, I then would like the “#1” priority listing to populate the related email field in the Persons table. I have understood that I need to set up triggers, and have tested the posttorelated() procedure. This results in one of the email addresses populating the target field, but not the one that corresponds to the correct value in the Priority column. I know I have some work cut out for me in understanding the best workflow in Panorama, but I would like to know if I’m chasing a wild goose, or if I’m just missing the obvious here.