JavaScript script inclusion
Example 1:
Code
<@script env="javascript">
function get_fullname(firstname,lastname) {
var fullname = firstname + " " + lastname;
return fullname;
}
var tmp = get_fullname(user_fullname,user_lastname);
setVariable("user_fullname",tmp);
</@script>
Tip : to display tmp value in the testing console, write print(tmp);
Example 2:
Regardless of the name of the variable you put in front of the script ('foo
' here), every time you call setVariable
, a new computed parameter will be created ('sum
' here).
Please give details of the problem