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

dot notation not working on listview reference fields #1229

Open
Phocea opened this issue Oct 14, 2016 · 1 comment
Open

dot notation not working on listview reference fields #1229

Phocea opened this issue Oct 14, 2016 · 1 comment
Labels

Comments

@Phocea
Copy link
Contributor

Phocea commented Oct 14, 2016

Description

Look at this plnker. On the listview for users I would expect to have a reference link to the associated permission record.
If the reference is made using a dot notation field nga.field('permissionRef.id', 'reference') the datastore is not populated and nothing id displayed

Steps to Reproduce

  1. Run the plnkr,
  2. Go to user listview

Expected behavior: permission name is displayed under the permission column with a href link to that permission record
Actual behavior: nothing is diplayed

  1. Stop the plnkr and go to script.js file.
  2. Uncomment the section
//            nga.field('permissionId', 'reference')
//                .targetEntity(perms)
//                .targetField(nga.field('name'))
  1. run the plnkr again

In this case the permission name appear on both column, because the datastore has been populated by the uncommented code.

@fzaninotto
Copy link
Member

Until this is implemented, you can use an interceptor to duplicate the dot notation field into a normal field.

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