This is the js Function , I need to use the "DataFileImportID" variable inside the Cfquery. What I have tried: <pre> <script language="Javascript" type="text/javascript"> function Validate(DataFileImportID) { var DataFileImportID=DataFileImportID; alert(DataFileImportID); <CFQUERY name="get" DATASOURCE="HeliosMaster"> select top 1 Description from CDSDB01.dbo.BenchmarkReject WHERE Filemasterid ='#DataFileImportID#' and Description='Invoice totals do not match loaded charge totals' </cfquery> alert("tets1"); alert(get.recordCount); return confirm ("test"); } </script> </cfoutput>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)