Well, I'll tell you a little bit. I have a query in SQL like the following >
SELECT * FROM TABLA
WHERE
Priority <> 'P1'
AND Region = ISNULL(@Region,Region)
AND PM_Name = ISNULL(@PM,PM_Name)
AND Priority = ISNULL(@Priority, Priority)
AND Status = ISNULL (@Status, Status)
Each condition with @ contains only 1 value, which from the interface are selected from one, the problem starts when they ask me to change the select to select-multiple. So now I can have more than one value in each select.
So far the way I get the data of the select is in a chain for example
cadena = "UNO, DOS, TRES"
At the moment of doing the Select in SQL how could I use these three values to make the filtering of the information. I do not know if I gave myself to explain well, but anything we see.
Parameters to SQL sent them as follows in JS
params.PM_Name = $("#cb_ProductM option:selected").text(); //nombre del action result
params.Priority = $("#cb_Priority option:selected").text();
params.Status = $("#cb_Status option:selected").text();
and received them in the table
<table id="datatable-GeneralTable" data-toggle="table"
data-url="@Url.Action("LoadGeneral", "Home")"
data-method="GET"
data-pagination="true"
data-query-params="queryParams"
data-buttons-class="primary">
and the action result:
var list = ex.Proc_CargarTabla(Region, PM_Name, Priority, Status).ToList();