Siebel Open UI: Collapsible Applets - Another Revisit
By Jan Peterson During a presentation to the technical team of a customer who is in the progress of updating to Open UI, I showed how easy it is to make all applets collapsible by just adding some code to a postload event handler. We have looked at the general concepts in an earlier post : postload.js I quickly received a follow up question if it is possible to collapse applets automatically in case the applet doesn't have any records. As often in the new world of Open UI, the solution is very easy. Replacing oAppletPModel.SetProperty("defaultAppletDisplayMode", collapsed"); with oAppletPModel.SetProperty("defaultAppletDisplayMode", oAppletPModel.Get("GetNumRows") > 0) ? "expanded" : "collapsed"); does the job :-). A few notes: In the example I updated postload.js. For a production environment it is recommended to have a custom file that subscribes to the postload event .. The postload event is only triggered if a user nav...