Jim Polk
未讀,2012年9月6日 下午5:46:082012/9/6登入以回覆作者
登入以轉寄訊息
你的權限不足,無法在這個群組刪除訊息
登入以檢舉訊息
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者: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!!