N
ngarsi
Hi,
I have embedded the pivot table object in a web page and I am trying to
extend the toolbar of the pivottable. Which I have been able to do using (in
javascript):
buttonSave = toolbar.Buttons.Add(1, "save", "", iTBR_MENUBUTTON_c, "save1");
btnSave2 = buttonSave.ButtonMenus.Add(1, "save11", "Save");
btnSave3 = buttonSave.ButtonMenus.Add(2, "save12", "Save As");
Which creates a new button with a sub menu.
I can also trap the click event of the buttons by using the CommandExecute
event of the pivot table.
The problem I am having is that the sub menus do not fire the CommandExecute
event, they fire the ButtonMenuClick event of the toolbar object within the
pivot table and I cannot find a way to trap this event.
Any help would be appreciated.
Neil.
I have embedded the pivot table object in a web page and I am trying to
extend the toolbar of the pivottable. Which I have been able to do using (in
javascript):
buttonSave = toolbar.Buttons.Add(1, "save", "", iTBR_MENUBUTTON_c, "save1");
btnSave2 = buttonSave.ButtonMenus.Add(1, "save11", "Save");
btnSave3 = buttonSave.ButtonMenus.Add(2, "save12", "Save As");
Which creates a new button with a sub menu.
I can also trap the click event of the buttons by using the CommandExecute
event of the pivot table.
The problem I am having is that the sub menus do not fire the CommandExecute
event, they fire the ButtonMenuClick event of the toolbar object within the
pivot table and I cannot find a way to trap this event.
Any help would be appreciated.
Neil.