Back

[SOLVED] Show attributes of related collection when creating a document

  • 0
  • Databases
  • Realtime
Drake
18 Sep, 2023, 16:41

yes, you can go to the settings for the collection and look for the Display Name section

TL;DR
The user wants to display attributes from a related collection when creating a document. They have a "vocabularies" collection and a "months" collection with a relation between them. When adding vocabularies to a month, only the vocabulary ID is visible and they want to display more information. They tried going to the settings of the vocabulary collection but couldn't find the list of attributes. The solution is to go to the settings for the collection and look for the "Display Name" section.
murru_AY23-04
18 Sep, 2023, 18:39

Thank you Steven! But it seems I didn't explain myself clear or maybe I have to add a config option in order to do what I want. Check this, please:

I have a vocabularies collection and a months collection. A month can have many vocabularies, so I created the relation and it's working nice but every time I want to add vocabularies to a month y can only see every vocabulary ID in the screen to create a document for months collection and I'd like to see more information than only the ID.

I went to the settings of the vocabulary collection like you told me but I don't see the list of attrs I have in the collection itself

murru_AY23-04
18 Sep, 2023, 18:41

And in the months collection I can only see the only attr available in this collection (name attr is not from vocabulary collection, just in case I don't make my point clear).

So, I really don't understand what does this feature do or how can I achieve what I need?

I hope this time I could write my requirement better than last time.

Thanks!

Drake
18 Sep, 2023, 19:31

There's a subset of attributes you can select as mentioned in the description of "Display Names". It seems you don't have any compatible attributes

murru_AY23-04
18 Sep, 2023, 19:32

Interesting

Drake
18 Sep, 2023, 19:32

What are the attributes you have for the vocabularies collection?

murru_AY23-04
18 Sep, 2023, 19:33

These

murru_AY23-04
18 Sep, 2023, 19:33

I only need "text" attribute to show in the list when I add items in the months collection

murru_AY23-04
18 Sep, 2023, 19:34

These are the attributes of the months collection

Drake
18 Sep, 2023, 19:35

What's the size of your text attribute?

murru_AY23-04
18 Sep, 2023, 19:40

255

murru_AY23-04
18 Sep, 2023, 19:40

Would it be because of that?

Drake
18 Sep, 2023, 19:40

Does it need to be that long?

Drake
18 Sep, 2023, 19:41

Yes, as the description states, only strings up to 50 characters are allowed as display name

murru_AY23-04
18 Sep, 2023, 19:46

No, I can make it shorter

murru_AY23-04
18 Sep, 2023, 19:46

Ooooh yes, that should be it ha ha ha

murru_AY23-04
18 Sep, 2023, 19:46

Sorry, I'm learning to use appwrite still. But hey, I think is A W E S O M E ! ! !

Drake
18 Sep, 2023, 19:47

No need to be sorry! Thanks for the kind words <:appwritepeepo:902865250427215882>

murru_AY23-04
18 Sep, 2023, 19:49

It seems I can't update the size of the string attributes

murru_AY23-04
18 Sep, 2023, 19:49

Could I do that with the CLI on the server?

Drake
18 Sep, 2023, 20:24

Nope, we don't allow changing attribute size at the moment

mauricev
8 Nov, 2023, 21:46

So there is no way to expose the MariaDB and change it there?

Drake
13 Nov, 2023, 21:06

Definitely not on Cloud.

Drake
13 Nov, 2023, 21:06
Drake
13 Nov, 2023, 21:06

[SOLVED] Show attributes of related collection when creating a document

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more