How to Pass Variables from JavaScript code to a report
Posted: Tue Aug 02, 2016 5:35 am
Hi to All
we are using a windows tool software that enable us to run some JavaScript code as module inside of the tool
so we want to pass some variable ( some text values) through this tool ( run as JavaScript Code ) to our Stimul Report
our Windows Tool > Run and Pass Some parameters through JavaScript Code > show this parameters on report
for example I have a simple Code in JavaScript (this Code saved in our tool ) as below :
and I have Some Limitation
1- the first one I should use JavaScript Code in one tool
2- we cannot put our code in Web Server . Should be run as Stand alone.
//---------------------------------- Java Script Code -------------------------------------------------
var header = "Title of the Slide ~~"
var args = (
"Question 1~~" + " Answer 1 " +
"~~Question 2~~" + " Answer 2 " +
"~~Question 3~~" + " Answer 3 "
)
window.open(url, "_blank", "width=800,height=600,menubar=no");
//---------------------------------- Java Script Code -------------------------------------------------
So my Questions :
1- How I can pass variables or parameters from JavaScript Code to StimulReport ?
2- How I can Pass Array to the report?
Could you please put for me small sample for my code???( with at least 2 parameters )
I'm using trial version
Thanks for your help
we are using a windows tool software that enable us to run some JavaScript code as module inside of the tool
so we want to pass some variable ( some text values) through this tool ( run as JavaScript Code ) to our Stimul Report
our Windows Tool > Run and Pass Some parameters through JavaScript Code > show this parameters on report
for example I have a simple Code in JavaScript (this Code saved in our tool ) as below :
and I have Some Limitation
1- the first one I should use JavaScript Code in one tool
2- we cannot put our code in Web Server . Should be run as Stand alone.
//---------------------------------- Java Script Code -------------------------------------------------
var header = "Title of the Slide ~~"
var args = (
"Question 1~~" + " Answer 1 " +
"~~Question 2~~" + " Answer 2 " +
"~~Question 3~~" + " Answer 3 "
)
window.open(url, "_blank", "width=800,height=600,menubar=no");
//---------------------------------- Java Script Code -------------------------------------------------
So my Questions :
1- How I can pass variables or parameters from JavaScript Code to StimulReport ?
2- How I can Pass Array to the report?
Could you please put for me small sample for my code???( with at least 2 parameters )
I'm using trial version
Thanks for your help