My dbr.editable is returning that it doesnt know what vCon is in this example. How can i pass my report parameters into an editable select statement?
CREATE PROCEDURE sp_DBR_eligscreen
( vSel int, vCon varchar(45) )
BEGIN
select 'dbr.editable', 9, 'sp_DBR_models', 'vMake=8', 'vCon1=11', 'vSel1=10', 'type=select',
"select= select e.model from x.client cl left outer join x.eligible_mm e on e.make = cl.car_make where contract_policy = vCon ;";
select cl.client_app_id as "Client ID"
, cl.client_fname as "First Name"
, cl.client_lname as "Last Name"
, cl.activity_purchase_dt as "Sale Date"
, cl.contract_policy as "Contract/Policy Number"
, cl.finance_account as "Finance Account Number"
, cl.car_year as "Year"
, cl.car_make as "Make"
, cl.car_model as "Model"
, vSel
, vCon
from x.client cl
where contract_policy = vCon;