wrong forum: place it on MWS, CAF & Task Engine
also, an error will stop your script when it occurs.
you probably got an error because the table is not yet defined when you call table.list()?
check the forum for the use of the onLoad and place the Script block on the bottom of your form.
Happy coding (and remember, Firebug is your friend).
Best Regards
#webMethods-BPMS#webMethods#BPM