Click here to Skip to main content
15,611,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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;
        <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'
        return confirm ("test");

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900