[Coldbox 3.8.1] defining view to use when using args

Switching some handler/view combos to use args for data rather than prc. Prior to using args the view file to use was set automatically to match handler/action. If using args I tried <cfset event.setView( args=local.viewData ) /> but that errors with a “Element VIEW is undefined in ARGUMENTS” error. If I specify the view then I’m fine. Is that what’s required if using args? I didn’t see a way to pass in args other than event.setView.

Thank you!

That is correct, it is a required argument.

You’re free to put in a ticket to allow the setting of view args while letting the actual view still default to the convention.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thanks. No need to do that. I just thought maybe I missed something. Thanks!