How to Implement token list in entity which is having relationship

Hi Team,

Please advice how to implement token list and persist the date of entity which is having relation ship.

For example : Employee, Skill Set are entities
there is a one to many relation ship with Employee --> Skill Set

here Token list is Skill Set .

Regards,
Nagendra.

Hello,

our documentation has a good example of the TokenList component usage: link.

To use TokenList your entity should have a field with Collection type, for example in your case the Employee entity should have a field List or Set.

Then you should declare Datasource with an editable entity and nested CollectionDatasource which will store your field (List) and bind your TokenList to the previously declared CollectionDatasource.

If it is not unclear I can prepare a small demo project.

Regards,
Daniil.

Give Sample Demo Project

1 Like