This is an example of a bit of code I have embedded into an HTML block in a Tabular Report Datapage:
<script>
function newFunction() {
if("[@field:FIELDNAME]" == "FIELDVALUE"){
window.open('http://www.site.com/page.html?parameter1=[@field:fieldname1]¶meter2=[@field:fieldname2]');
}
else {
alert ('no field value');
}
}
</script>
<input type="button" value="click me" onclick="newFunction()" />
When I view the source code of this script, after deploying the datapage, the parameter value appears in the 'if' statement, but the parameters are not appearing in the window.open() string. Even if I just call a parameter without the window.open() function, still no value. Anyone have any idea why this would be happening?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
xfa180
This is an example of a bit of code I have embedded into an HTML block in a Tabular Report Datapage:
When I view the source code of this script, after deploying the datapage, the parameter value appears in the 'if' statement, but the parameters are not appearing in the window.open() string. Even if I just call a parameter without the window.open() function, still no value. Anyone have any idea why this would be happening?Thanks,
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.