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

Display boolean field of referenced type in listView or dashboardView #383

Closed
ihrigb opened this issue Apr 6, 2015 · 2 comments
Closed
Labels

Comments

@ihrigb
Copy link
Contributor

ihrigb commented Apr 6, 2015

Is there any posibility to display a boolean field of a referenced type in the listView or dashboardView?

This is the approach I tried, but it didn't work out:

entity.listView()
    .fields([
        nga.field('id', 'number').label('ID'),
        nga.field('name', 'string'),
        nga.field('referenced_entity', 'reference')
            .targetEntity(referencedEntity)
            .targetField(nga.field('option', 'boolean'))
    ]);
@fzaninotto
Copy link
Member

No, it's currently not possible for now. A refactoring of the internals of references is necessary to enable it. It's on our todo list.

@fzaninotto
Copy link
Member

I don't know since when, but now it works fine.

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

No branches or pull requests

2 participants