Hi all,
This is a tip on how to manually add / remove query header tools. In the advanced script of your query add / play with the following:
To remove all:
config.tools = []
To remove all + add help icon (or any other extjs icon) only which starts a process:
config.tools = [];config.tools.push ({ type: 'help',tooltip: 'Tooltip', handler:function () { AwareApp.startProcess('MyProcess') }});
To remove all and have the save state and restore state icons only:
config.collapsible=false;config.tools = [];config.tools.push ({ type: 'save',qtip:{text:this.strSaveSettingsTip}, handler:function (event, toolEl, panel) {AwareApp.saveState (this.m_grid);},scope:this});config.tools.push ({ type: 'restore',qtip:{text:this.strRestoreSettingsTip}, handler:function (event, toolEl, panel) {AwareApp.restoreStateDefaults (this.m_grid, this.getKeyForState ());},scope:this});
Add / remove query header tools
Add / remove query header tools
Henrik (V8 Developer Ed. - Windows)
Re: Add / remove query header tools
In the last code segment, I have manually changed the gear icon of save query settings to the save icon. If you want to use the standard icon, this is the code to use:hpl123 wrote:Hi all,
This is a tip on how to manually add / remove query header tools. In the advanced script of your query add / play with the following:
To remove all:
config.tools = []
To remove all + add help icon (or any other extjs icon) only which starts a process:
config.tools = [];config.tools.push ({ type: 'help',tooltip: 'Tooltip', handler:function () { AwareApp.startProcess('MyProcess') }});
To remove all and have the save state and restore state icons only:
config.collapsible=false;config.tools = [];config.tools.push ({ type: 'save',qtip:{text:this.strSaveSettingsTip}, handler:function (event, toolEl, panel) {AwareApp.saveState (this.m_grid);},scope:this});config.tools.push ({ type: 'restore',qtip:{text:this.strRestoreSettingsTip}, handler:function (event, toolEl, panel) {AwareApp.restoreStateDefaults (this.m_grid, this.getKeyForState ());},scope:this});
To remove all and have the save state and restore state icons only:
config.collapsible=false;config.tools = [];config.tools.push ({ type: 'gear',qtip:{text:this.strSaveSettingsTip}, handler:function (event, toolEl, panel) {AwareApp.saveState (this.m_grid);},scope:this});config.tools.push ({ type: 'restore',qtip:{text:this.strRestoreSettingsTip}, handler:function (event, toolEl, panel) {AwareApp.restoreStateDefaults (this.m_grid, this.getKeyForState ());},scope:this});[
Henrik (V8 Developer Ed. - Windows)