Load a view dynamically
Load a view dynamically
Technologies > Software Engineering Techniques > Software Engineer Views > Load a New View Dynamically
This example loads a different view each day of the week. The seven views are named 'ab-view-nav-monday.axvw', 'ab-view-nav-tuesday.axvw', and so on. The parent view, 'ab-view-nav-switcher.axvw', contains a single html panel into which the current day's view is loaded using
loadView
:
topViewContentPanel.
loadView
( 'ab-view-nav-' + displayDayName + '.axvw');
// where displayDayName = 'monday', 'tuesday', etc.
View: http://localhost:8080/archibus/schema/ab-products/solutions/programming/view/ab-dyna-panel.axvw