Hi Aaquibah, Please follow the link[1]. It'll help to solve your problem.
[1] http://blog.lasindu.com/2014/05/how-to-write-wso2-jaggery-application.html Thanks, Lakshani On Fri, Jul 10, 2015 at 1:09 PM, Aaquibah Nashry <[email protected]> wrote: > Hi, > > I need to get the values of javascript variables or values of html > elements into jaggery code. > > What i am doing is, i am getting values from html elements and i need to > send them inside the query in jaggery. > That is, > in html i have a dropdown as *Year*, i want to pass the value selected. > Below is the javascript code with the jaggery code: > > function DrawGraph(){ > var year=document.getElementById("Year").value; > > <% > var query = "select sum(Best_Case__c) as 'Best' FROM Opp WHERE > YEAR(Date__c)=*year* > %> > > } > > How can i do this? > Any example? Tutorials? > > Thanks in advance. > Regards, > > M.R.Aaquibah Nashry > *Intern, Engineering**| **WSO2, Inc.* > Mobile : +94 773946123 > Tel : +94 112662541 > Email : [email protected] <[email protected]> > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Lakshani Gamage *Software Engineer* Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
