Portal selection change which post to view in other fields
I have a layout that has a portal. When I select a row in this portal I want to have the detailed information about this row coming up in some fields below the portal.
The realtions and correct, but these fields below always shows the first of the related posts, not changing to which row in the portal that is highlighted, of course. One of these fields is another portal.
Think of this as a company layout, with orders inside a portal, when an order is highlighted detailed informtion about this order is shows below, and in a portal here the articles of this order.
So, how do I do this? I've tried with some scripts, but I can't figure it out.