```var layout = container.getComponent('Layout'); ...
# suitecommerce
l
Copy code
var layout = container.getComponent('Layout');
if (layout) {
    layout.addChildViews(layout.DEFAULT_VIEW, {
        'Addresses.Collection': { // Adding it this child view means it will only show if there >0 address in the addressbook
            'MyView': {
                childViewIndex: 99, //// Renders the child view at the bottom of the page; set it to 1 to put it at the top
                childViewConstructor: function () {
                    return new MyDetailedView(container);
                }
            }
        }
    });
}