#1 2010-02-08 11:03:20

jfjoubert
Member
Registered: 2010-01-29
Posts: 12

Including foreign key info in views

Hi,

I've created 2 simple entities and "linked" them with a foreign key. I have also created a view showing the basic attributes of entity1, but also the foreign key info from entity2.

The results of my view below seems to ignore the foregin key... how can I create a view which will show the linked entity based on the foreign key? I don't want to perform another lookup based on the id of FundModelType just to get the description.

Here's my example with the results... hope this makes sense. smile

Entity1: Fund
Id
Name
FundModelType (linked with foreign key below)

Entity2: FundModelType
Id (foreign key)
Description

View1: Browse_Fund_Items
Fund/Id
Fund/Name
Fund/FundModelType
FundModelType/Description

Funds:
1, Fund1, [3]
2, Fund2, [1]
3, Fund3, [2]
4, Fund4, [1]

FundModelTypes:
1, Type1
2, Type2
3, Type3

The results of viewSearch:
1, Fund1, [1], Type1 - this record shouldn't show
1, Fund1, [2], Type2 - this record shouldn't show
1, Fund1, [3], Type3
2, Fund2, [1], Type1
2, Fund2, [2], Type2 - this record shouldn't show
2, Fund2, [3], Type3 - this record shouldn't show
3, Fund2, [1], Type1 - this record shouldn't show
3, Fund3, [2], Type2
3, Fund3, [3], Type3 - this record shouldn't show
4, Fund4, [1], Type1
4, Fund4, [2], Type2 - this record shouldn't show
4, Fund4, [3], Type3 - this record shouldn't show

Any help would be greatly appreciated.

Thanks and regards,
Jean

Offline

 

#2 2010-04-12 09:14:57

ctoum
Talend team
Registered: 2009-09-07
Posts: 274

Re: Including foreign key info in views

Unfortunately this is not supported yet. You can't have any column that do not belong to the entity you are setting the browse_items view for.
Yeah, I know... This is high on my list.

Offline

 

#3 2010-04-23 10:10:27

maekoth
New member
Registered: 2010-04-23
Posts: 1

Re: Including foreign key info in views

Hi,

I will wish to do the same.
The last version allows now?

Thanks you for your reply,

Mickaël

Offline

 

#4 2010-07-28 20:14:10

emaxt6
Member
Registered: 2008-08-04
Posts: 325

Re: Including foreign key info in views

Same problems seems to present also in "Reports" (only one entity can be referenced).

Offline

 

Board footer

Powered by FluxBB