🔍

Setting the Parent Object ID

The attached video shows a form being configured for a ParentObject, set to a selected Book - and leading to the people who are "interested in" it.

Furthermore, the value of the parent object is shown when we switch it to a different book as the parent object.

The Example

In the Data source Help File we have explained the various Datasource types, including the simple "Association" type.  In that example we used a "Book" to "Contact" by the relationship "is interested in" , to provide a datasource, using the "Parent Object" as the root for its data.

XPOR Associaiton data source example 1

The Help video attached to this Help resource shows how this has exposed the contacts who were interested in a book - Lord of the Rings.

This is a fairly basic means of obtaining data from the object structure.  To further demonstrate the power that this method gives you, we have added in a second Book and some more contacts.  Some of these contacts are only interested in the new book, others are interested in this book and the Lord of the Rings.  And some of the contacts interested in the Lord of the Rings are also intereted in the new book;

XPOR Association datasource2

We have then retruned to the website and re-configured the Front end form to be focussed on the new book - Olsens Book of British Birds.  Consequently the form displays all contacts interested in this book.

Of course there could be hunderds of different Books and thousands of Contacts, all with multiple interests in books.  The Form will always return those contacts that fit the datasource.