Home Analyst Portal

How to target the viewModel when there is no pageForm object?

Tom_HendricksTom_Hendricks Customer Super IT Monkey ✭✭✭✭✭
edited June 2018 in Analyst Portal
It is easy to access the view model when tickets and other forms are loaded, using pageForm.viewModel.  However, it is not so simple on other pages, especially when adding pages to the /views/ folder.

How is the viewModel object (or equivalent) accessed on these other pages?

For example the new Affected User form cannot be customized the way that any of the other forms are, unless the controls can be accessed.  How would one work with this form?  boundObj is also not available, that I can tell.

Edit: Thanks to a colleague I know how to interrogate a control for the view model it is bound to, but there does not seem to be one view model that all the controls on the page are bound to.  Is that the real answer here, perhaps?

Best Answer


  • Tom_HendricksTom_Hendricks Customer Super IT Monkey ✭✭✭✭✭
    Thanks, Nick.  This makes sense, now.
Sign In or Register to comment.