#How to change the view of foreign keys from number to the name in the collection
29 messages · Page 1 of 1 (latest)
Try to reset the preset
@sharp ether not sure I got how to do this
It's on directus_presets table
@sharp ether by reseting you meant delete and create again?
yeaah, delete a preset and reselect your column on table layout
@sharp ether it doesnt help unfortunately, because in preset I also cant see the dropdown with all fields from foreign collection
@vivid gale can you please look at this?
Please don't randomly ping users!
You need to adjust the display setting of this field, in Settings -> Data Model
@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)
No problemo!
I see, that's indeed a bit strange... Would you be able to share your collection set-up?
@rugged nacelle sure,
is this enough? do you need something else?
whats inside your display?
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
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?
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
@rugged nacelle
to cut the long story short - directus_relations table were empty
suppose it happend while migrating directus image
Huh, okay 🙈 So you've been able to resolve this now?
yeah, I just populated needed rows manually
thanks for your help)
Okay, great! I'm very glad it's working now 👌
You're welcome! And thanks for reporting back!
If you're able to reproduce this and you're sure that this has been caused by an issue from Directus' side, please open a bug report over here: https://github.com/directus/directus/issues
Otherwise, I assume it was a one-time problem and therefore consider it resolved