How to pass a parameter to limit records?
How to pass a parameter to limit records?
![mgagne](https://secure.gravatar.com/avatar/2309a5f6f0c180a306b31b423e59356f/?default=https%3A%2F%2Fvanillicon.com%2F2309a5f6f0c180a306b31b423e59356f_200.png&rating=g&size=120)
Again, not clear on the how to use the where clause in editor with serverside processing as true.
Basically I want to limit all ingredients to a datatable based off of a specific recipe. How can I quickly and easily use a param within a where clause to limit records based off of a specific recipe? I can do it by ->where('Batch', NULL)...but if I try to pass a param to ->where('Batch', $myparameter)..I get nothing but script output in dev toolbars... What am I missing?
This discussion has been closed.
Answers
What are the errors? Is
$myparameter
undefined? Are you sending it to the server-side? If so, how?Thanks,
Allan