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

Relationship column name not found in select list #33

Closed
Bhagwan00 opened this issue Jan 28, 2019 · 5 comments
Closed

Relationship column name not found in select list #33

Bhagwan00 opened this issue Jan 28, 2019 · 5 comments

Comments

@Bhagwan00
Copy link

columns: [
{ name: 'committee.name', orderable: false },
{ name: 'school'},
{ name: 'firstname'},
{ name: 'control', orderable: false, searchable: false},
{ name: 'message_flag', visible: false},
{ name: 'committee_id', visible: false},
]

@hirenkeraliya
Copy link
Contributor

Provide more details.

@gauravmak
Copy link
Member

I guess this is same as issue #32
Please check and update there.

@ghost
Copy link

ghost commented Jan 29, 2019

@Bhagwan00 It's happen when you try to use the relationship column at first
But if you change the order it will work

columns: [
{ name: 'school'},
{ name: 'committee.name', orderable: false },
{ name: 'firstname'},
{ name: 'control', orderable: false, searchable: false},
{ name: 'message_flag', visible: false},
{ name: 'committee_id', visible: false},
]
** or something else

## I don't know why. But I face same problem

@gauravmak
Copy link
Member

That means - Datatables sorts the records by the first column if not specified.

@agasigp
Copy link

agasigp commented Sep 17, 2019

@Bhagwan00 It's happen when you try to use the relationship column at first
But if you change the order it will work

columns: [
{ name: 'school'},
{ name: 'committee.name', orderable: false },
{ name: 'firstname'},
{ name: 'control', orderable: false, searchable: false},
{ name: 'message_flag', visible: false},
{ name: 'committee_id', visible: false},
]
** or something else

## I don't know why. But I face same problem

Thanks for the solution! I have same problem with you. Problem was solved by changing order of column like you said.

@igabice igabice mentioned this issue Oct 28, 2019
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

4 participants