[jboss-user] [Beginner's Corner] - Pass parameters to ftl function
knevik
do-not-reply at jboss.com
Fri Jan 20 05:32:04 EST 2012
knevik [https://community.jboss.org/people/knevik] created the discussion
"Pass parameters to ftl function"
To view the discussion, visit: https://community.jboss.org/message/647789#647789
--------------------------------------------------------------
I need to pass a parameter into an ftl function so I can parse it and put it into a select object. the code below works when aipids = "*random*text*" but I can't figure out how to use the parameter passed in from the workflow.
<script type="text/javascript">
function filllist () {
var index = 0
var count = 0
var aipids = temp
aipids = ${aipid}
while (index < aipids.indexOf("*",index+1)) {
document.form.VersionId.options[ count ] = new Option(aipids.substring(index+1,aipids.indexOf("*", index+1)),aipids.substring(index+1,aipids.indexOf("*", index+1)))
index = aipids.indexOf("*", index+1)
count = count + 1
}
}
</script>
using ${aipid} in the main section shows that aipid does contain a string so it's not that it is empty
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647789#647789]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120120/14446450/attachment.html
More information about the jboss-user
mailing list