ModelGlue Tip: ViewState's getAll()

I was just talking to Todd and helping him a bit with some ModelGlue development. He was talking about doing some testing of ViewState values. I mentioned he should use the getAll() method of the viewState. If you want to quickly see what is available in a view, just drop this line in:

<cfdump var="#viewState.getAll()#" label="The Whole Enchilada">

I use this all the time when working on a Model-Glue site.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments