Dynamic Where condition based on groups in Editors
Dynamic Where condition based on groups in Editors
Benn Solomon D
Posts: 10Questions: 4Answers: 0
Hi,
I need some help on Editors to filter the table data using dynamic where condition to be applied on editor based on the group selection.
Thanks & Regards !
This discussion has been closed.
Answers
So what help is it that you need? "some help" is a little unspecific, isn't it?
But anyway, here is a nice, ugly and complex example of a dynamic where condition with Editor and PHP. I am not saying you should build complex conditions like this, I'd rather not. But it shows you what you can do which is pretty much anything you like.
Take a look at this, too: https://editor.datatables.net/manual/php/conditions
What is the group data being submitted? What is the condition you are looking for?
The condition documentation might also be of some help.
Allan
Thank you very much for the answers.
My requirement is very much similar to below condition
$editor->where( function ( $q ) use ( $userId ) {
$q->where( 'id', $userId );
} );
My application is in .NET. How to verify the above condition in .NET. Can you please help me on how to pass variables in where conditions in .NET application
The .NET documentation for Editor has a similar example for .NET.
Allan