Page tree
Skip to end of metadata
Go to start of metadata

A panel is the container of a panel level control. The panel header can be expanded, collapsed and it can have a title.


Dynamic Views


Inside a given panel different views can be loaded. At the lowest level a View can be switched by using the showView method on the panel control.

ShowView example
const isViewLoaded:boolean = oGrid.showView('SimpleViewFrame');
if(isViewLoaded) {
	console.warn('frame was already loaded');
}


The options parameter represents the launchContainer options. The defaults options for launchContainer inside the showView are as follows:

Default switchView launchContainer options
{
	parentControl: oPanel, // parentControl, the target in which you will add the new container
	view: cView,
	containerName: cView,
	pages: "0,1",
	allowMultipleInstances: true,
	fetchOnInit: true
}


The options can be overwritten by providing the parameter to showView which is optional.

SwitchView example
const launcher:Promise = oForm.switchView('SimpleFrameView');
launcher.then((Frame) => {
	console.log(Frame);
});


SwitchView example with custom launchContainer options
const launcher:Promise = oForm.switchView('SimpleFrameView', {
	containerName: 'SomeOtherRepositoryObjectFrame'
});
launcher.then((Frame) => {
	console.log(Frame);
});



  • No labels