#How to change the view of foreign keys from number to the name in the collection

29 messages · Page 1 of 1 (latest)

fresh holly
#

I'm using v9.22.3.
In the table view I can't choose the name of a partner key, but only PK.
Maybe some one know what is wrong, because previously everything was ok

sharp ether
#

Try to reset the preset

fresh holly
#

@sharp ether not sure I got how to do this

sharp ether
#

It's on directus_presets table

fresh holly
#

@sharp ether by reseting you meant delete and create again?

sharp ether
#

yeaah, delete a preset and reselect your column on table layout

fresh holly
#

@sharp ether it doesnt help unfortunately, because in preset I also cant see the dropdown with all fields from foreign collection

fresh holly
#

@vivid gale can you please look at this?

rugged nacelle
#

Please don't randomly ping users!

#

You need to adjust the display setting of this field, in Settings -> Data Model

fresh holly
#

@rugged nacelle I'm sorry, I won't do this again.
your solution doesn't work. 'Partner' column(on the screenshot) is a foreign key and behind the name of the column there is no grey dot which indicates that it is a FK. Also in '+' this column isn't a dropdown so I can't see all fields related to the FK.

In Display settings I can add a template to the each row, but I need to have an opportunity to add 'foreign' columns to the collection view

Maybe you can suggest something else? Because I don't understand what to change in Setting(nothing works)

rugged nacelle
fresh holly
#

@rugged nacelle sure,
is this enough? do you need something else?

bright kernel
#

whats inside your display?

fresh holly
#

I have tried to chose both but no affect

#

@bright kernel is it possible that some default settings went wrong?

#

if I choose Related Values and then Field Name, I will be able to name, but not all fileds from Foreign Collection

rugged nacelle
#

Thanks for the screenshots! I wasn't able to reproduce this on my end.

#

Is "am_accordion" a group?

#

Have already tried to restart the instance?

fresh holly
#

yes, am_accordion is a group, but nothing changes if I drag the field out fro it
I will try to restart, thanks a lot
I will let you know if it helps

fresh holly
#

@rugged nacelle
to cut the long story short - directus_relations table were empty
suppose it happend while migrating directus image

rugged nacelle
#

Huh, okay 🙈 So you've been able to resolve this now?

fresh holly
#

yeah, I just populated needed rows manually
thanks for your help)

rugged nacelle
#

Okay, great! I'm very glad it's working now 👌

#

You're welcome! And thanks for reporting back!

#

Otherwise, I assume it was a one-time problem and therefore consider it resolved