-
Notifications
You must be signed in to change notification settings - Fork 725
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
Questions about Reference_fields #492
Comments
You can use nga.field('wuserId', 'reference')
.label('User')
.targetEntity(user)
.targetField(nga.field('email').map(function (value, entry) {
return entry.firstname + ' (' + entry.lastname + ')';
})) As for references in the dashboardView, I think it's been fixed recently (#488). Could you test with the latest master? If not, please open a dedicated issue. |
It's all working. Thanks a lot! |
@fzaninotto is this possible with a reference field on edit/create view? |
@jamespsterling yes it is actually working on the creationView() et editionView(). |
@F3L1X79 how are you using it? When I do
It only shows me one entry for the preselected item in the reference list (dropdown). |
Hi guys,
I got a question about Reference_fields, not really an issue I guess.
In my app, a Post is related to an User so I need to use Reference like this:
In the example above, in my targetField, i'd like to concatenate two values (user.firstname and user.lastname) instead of the only field email. I was wondering if this was possible.
Also, while the code above is working great on a listView, it's not displaying the email field on the dashboard View - ie:
Is this normal? And if it is - it would we be great to add this feature in a next release.
Best regards.
The text was updated successfully, but these errors were encountered: