Jim Polk
unread,Sep 6, 2012, 5:46:08 PM9/6/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rfmcom...@googlegroups.com
I see in layout.rb, some documentation that reads:
# ==Passing Parameters to a Script
#
# If you want to pass a parameter to the script, use the options above, but supply an array value
# instead of a single string. For example:
#
# myLayout.find({"First Name" => "Bill"}, :post_script => ["Remove Duplicates", 10])
#
# This sample runs the script called "Remove Duplicates" and passes it the value +10+ as its
# script parameter.
But what if you need to pass more than one argument?...Can Rfm handle that?...and if so, what would the syntax look like?
Like so?
myLayout.find({"First Name" => "Bill"}, :post_script => ["MyCustomScript", "this", "that","etc"] )
or
myLayout.find({"First Name" => "Bill"}, :post_script => ["MyCustomScript", ["this", "that","etc"] ] )
or
args = [ "this", "that", "etc"]
myLayout.find({"First Name" => "Bill"}, :post_script => ["MyCustomScript", args] )
or perhaps some other syntax?
Almost all the data I need to pass is textual, and not numerical....
Thanks!!