Hi Aaquibah,
You cannot use 'document.getElementById()' function in Jaggery, because
'the document' (HTML page) is in the client-side and Jaggery runs in the
server-side. If you want to access a value from a HTML page, then you have
to do a form submission (POST request) or a AJAX call from client
//my code is:
where YEAR(Date__c)=*"+year+" *AND ...
i get the following error:
*message* *org.mozilla.javascript.EcmaError: ReferenceError: "year" is not
defined. (/ProductJaggery//PipelineGraph.jag#64)*
Regards,
M.R.Aaquibah Nashry
*Intern, Engineering**| **WSO2, Inc.*
Mobile : +94 773946123
Hi Nashry,
You can use the variables you create in JavaScript same in Jaggery code.
Becuase Jaggery is all about Javascript.
*"As a pure Javascript server-side scripting engine, Jaggery combines all
the strengths of Javascript with flexibility and freedom at both the
development and deployment st
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 wrote:
> Hi,
>
> I need to get the values of javascript variables or value
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