refresh();
The refresh method refreshes data of the Format tab on the express report tool ribbon.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component).
//Get an instance of the PP.Exp.Ui.FormatCategory component eRib = expressBox.getRibbonView(); ribbon = eRib.getControl(); cat = ribbon.getCategories(); catGr = cat.getItem(cat.getCount() - 1); formatCat = catGr.getCategories(True)[1]; // Use methods to get tab contents and refresh controls : formatCat.getSelectPartCombo(); // -> PP.Ui.ComboBox formatCat.getCurrentFormatControls(); // -> [PP.Ui.ComboBox, PP.Ui.RibbonButton] formatCat.getSlaveCategoriesPanels(); // -> [Object, Object, Object, Object, Object, Object, Object] formatCat.getFontBox(); // -> PP.Ui.FontBox formatCat.getBordersAndFillColorControls(); // -> PP.Ui.GridPanel formatCat.renderContent(); // -> Controls are redrawn console.debug(formatCat.getContentRendered ? "Tab contents is drawn" : "Tab contents is not drawn"); // -> Tab contents is drawn c5.refreshTextNBordersNFillColor(); // -> Border and fill controls are drawn formatCat.refresh(); // -> Tab contents is refreshed
After executing the example controls are obtained, and contents of the Format tab is refreshed.
See also: