Hi and thanks for your time. In my SC Extension, currently the whole parent/main view is getting updated. I am unable to update just the child view. See the attached images.
I added a collection view as a child view and was able to display my NetSuite records in it. In the parent view I added an input field, "Type" to filter the lines in collection/child view.
Currently when I try to filter the collection view, the whole Parent/Main View is getting replaced with new rendered Collection/Child. But I just want only the Collection/Child view to get updated/replaced.
This is the function code in Main/Parent View which executes when change event is triggered on "Type" filter field:
filterUserPreferences: function (e) {
e.preventDefault();
var upTypeSelected = jQuery("#uptype").val();
var collectionViewObj = new UserPreferencesCollectionView({
collection: this.collection,
upTypeSelected: upTypeSelected
});
collectionViewObj.render();
var Layout = this.options.container.getComponent("Layout");
Layout.showContent(collectionViewObj,{});
}