Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple associated field from one section #4

Open
nilshoerrmann opened this issue Jul 2, 2014 · 3 comments
Open

Multiple associated field from one section #4

nilshoerrmann opened this issue Jul 2, 2014 · 3 comments

Comments

@nilshoerrmann
Copy link

Currently, it's possible to select multiple fields from one section in the field settings. This causes some weird issues. The field should only allow the selection of one field per associated section.

See mazedigital/association_ui_selector#12.

@nathanhornby
Copy link

A potential use-case for the selection of two fields from one section, as funnily enough I wanted to do this!

If you have 2 fields in a section like ID and Name, the ID is unique and is the primary reference, but the name is the 'friendly' reference that you're actually able to parse and understand, you might want to show both (a la SSM). So rather than the field outputting:

SBN0928340982

It could output

SBN0928340982 - Fiat Panda

As I say I have this issue in a project now. The bit that links the section is an ID, but the ID's are pretty arbitrary and it would help to include something friendly along with them.

Of course this is best achieved by a similar system to SSM where you control the output, that's a really neat feature and may be planned anyway - from some limb of the association monster :)

Just thought I'd throw that out there!

@nilshoerrmann
Copy link
Author

The thing is that this extension (like SBL) will return both values as separated items, so you'll get:

  • SBN0928340982
  • Fiat Panda

This is a perfect use-case for a Reflection field actually.

@nathanhornby
Copy link

I'll check out the reflection field, it's not something I've used before (just heard about), thanks!

On 2 Jul 2014, at 12:04, Nils Hörrmann [email protected] wrote:

The thing is, that this extension (like SBL) will return both values as separated items, so you'll get:

SBN0928340982
Fiat Panda
This is a perfect use-case for a Reflection field actually.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants