Working with data tables in the web application allows for the following features:
To enable a browser context menu:
Set the EnableNativeContextMenu method to True:
tabSheet.setEnableNativeContextMenu(true)
Write in the PP.xml:
<tabsheet enableNativeContextMenu="true" enableSelection="false" />
Press F12 to open a browser console and enter to it:
PP.App.getModuleObject().getReportBox().getDataView().getGridView().getTabSheet().setEnableNativeContextMenu(true)
To enable browser context menu in the Reports tool, write in the reporter.html file:
function onInit(sender, args) { PP.App.getModuleObject().getReportBox().getDataView().getGridView().Rendered.add(onGridRendered, PP.App); }; function onGridRendered(sender,args) { sender.getTabSheet().setEnableNativeContextMenu(true); sender.getTabSheet().setEnableSelection(false); };
Path to the file differs depending on the system bitness:
For 32-bit systems: C:\Program Files\Foresight\Foresight Analytics Platform 9.2 Web Application\App\reporter.html.
For 64-bit systems: C:\Program Files (x86)\Foresight\Foresight Analytics Platform 9.2 Web Application\App\reporter.html.
After executing one of actions on working with tables a browser context menu is available. In this case the operations performed over table data only using Foresight Analytics Platform context menu (for example, working with clipboard, drilldown and drillup, summary statistics output and so on) will not be available.
Enable Foresight Analytics Platform context menu
To enable Foresight Analytics Platform context menu:
Set the EnableNativeContextMenu method to False:
tabSheet.setEnableNativeContextMenu(false)
Write in the PP.xml:
<tabsheet enableNativeContextMenu="false" enableSelection="false" />
Press F12 to open a browser console and enter to it:
PP.App.getModuleObject().getReportBox().getDataView().getGridView().getTabSheet().setEnableNativeContextMenu(false)
To enable Foresight Analytics Platform context menu in the Reports tool, write in the reporter.html file:
function onInit(sender, args) { PP.App.getModuleObject().getReportBox().getDataView().getGridView().Rendered.add(onGridRendered, PP.App); }; function onGridRendered(sender,args) { sender.getTabSheet().setEnableNativeContextMenu(false); sender.getTabSheet().setEnableSelection(false); };
Path to the file differs depending on the system bitness:
For 32-bit systems: C:\Program Files\Foresight\Foresight Analytics Platform 9.2 Web Application\App\reporter.html.
For 64-bit systems: C:\Program Files (x86)\Foresight\Foresight Analytics Platform 9.2 Web Application\App\reporter.html.
After executing one of actions on working with tables the Foresight Analytics Platform context menu and all operations executed on table data only by means of context menu (for example, working with clipboard, drill down and drill up, summary statistics output, and so on) will be available.
Toggling between context menus of Foresight Analytics Platform and browser is available in the tools: Dashboards, Analytical Queries (OLAP), Reports, Time Series Analysis.
See also:
Working with Table Interactive Features