Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Relationship document types View modes: 
User avatar
Member
Member
bjorn-pureplexity - 9/13/2013 4:28:05 AM
   
Relationship document types
Hey,

i'm stuck on how to put relations between documenttypes and showing the data:

For Example:

DocumentType BookCategory:
- Fields: ID, Name (example: Horror, Thriller,...)

DocumentType Author:
- Fields: ID, FirstName, LastName, Address, Email

DocumentType Book:
- Fields: ID, Title, Description, BookCategoryID?, AuthorID?

So a book needs a relationship to an Author and a bookcategory. I'm keeping this simple because an Author can have a publisher etc....

The BookcategoryID and AuthorID are dropdownlist with the id of the authors and the categories when creating a new book. In the database there is no relationship between them. So how can i show the data like this:

This is a datalist or a repeater showing books and i want to create a transformation that shows data like this:


BOOKTITLE
bookdescripion

Category: here comes the categoryname
Author: Firstname lastname
Address
Email

How and where can i achieve this?

Many thanks,


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/13/2013 5:37:45 AM
   
RE:Relationship document types
Hi,

What is the issue using the fields in the transformation of a repeater?
If the Document types property is set to list both document types, you can use fields from them in the transformation. However, you need to leave the columns property empty as well as the WHERE or ORDER BY conditions.

Best regards,
Juraj Ondrus