I added a button to the search panel. The search panel contains a date field. I would like to send the date to the server to run a stored procedure. The procedure needs the date as the IN param.
How do I refer to the date field to capture the date value that the user selects.
In the "Button Properties", "Client Before", I typed in:
var paydtefield = srch.getSearchFields(searchcontrol_paydate);
$params["paydte"] = paydtefield;
ctrl.setMessage("Sending to server");
In the "Server Side" I typed:
CustomQuery("CALL sp_billing ('" . $params["paydte"] . "')");
What am I missing?
Thanks in advance.