I was just reading about the showView feature. I currently achieve similar functionality with a function “clear” that unloads content and then a function for each “view” I wish to display. Is there any benefit performance/funtionality of the showView feature over my current method?
I have many views( forms and grids) that I display in appLayout.cells(“a”).
I currently use a toolbar to change my views using this method:
appSubToolbar.attachEvent("onClick", function (id) {
switch (id) {
case "btnWorklist": view.patientWorklist(); break;
where in my ‘views.js’ file:
[code] patientWorklist : function(){
callbacks.clearDashboard();//clears using appLayout.cells(“a”).detachObject(true) and also hides some toolbars//
appGrid = appLayout.cells(“a”).attachGrid();
appGrid.setStyle("", “font-size:20px”,"", “”);