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

Searching in column of reference table #17

Open
tejprakashmittal opened this issue Apr 6, 2023 · 0 comments
Open

Searching in column of reference table #17

tejprakashmittal opened this issue Apr 6, 2023 · 0 comments

Comments

@tejprakashmittal
Copy link

public class Employee {
@id private int id;
private String firstName;

@ManyToMany(cascade = CascadeType.ALL)
@JoinColumn(name = "id_office")
private Set<Office> office = new HashSet<>();

}

class Office {

@Id @GeneratedValue private int id;
private String city;

}

Considering above declaration of classes, how to implement Advance section of the given datatable example.

Advanced searchpanes section -

how to implement the following,

$('select#officeSelector').change(function() {
var filter = '';
$('select#officeSelector option:selected').each(function() {
filter += $(this).text() + "+";
});
filter = filter.substring(0, filter.length - 1);
table.column(7).search(filter).draw();
});

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

1 participant