radiegtya / meteoris2

a Realtime Javascript Boilerplate base on Meteor Js Framework
MIT License
246 stars 46 forks source link

Choose field name for select option label on relationships #76

Open brylie opened 9 years ago

brylie commented 9 years ago

When specifying a foreign key relationship, it would be helpful to also be able to specify the label field. E.g. in an employees collection with a firstName field, the select value would be _id while the select label would be firstName.

The code would auto-generate a select widget using the value and label settings, as in the Meteoris CRUDSS example video.

brylie commented 9 years ago

The field name might be selected via a drop down menu showing existing field labels. I.e. the end-user creating the CRUDSS would see field labels in the select option, while the value would be the actual field name in the collection.

brylie commented 9 years ago

Having a select widget would smooth the process of creating relationships, as it is relatively easy to make a mistake.