C
Claude Vernier
Hello,
Thanks to Mister Bruney, I achieve my C# Web page with an
OWC, undo feature with a custom button inside the
toolbar, here's some of my code:
var oPivotTable = document.getElementById
('OWCPivotTable');
oPivotTable.Toolbar.Buttons.Remove(1);
oPivotTable.Toolbar.Buttons.Remove(1);
oPivotTable.Toolbar.Buttons.Remove(2);
oPivotTable.Toolbar.Buttons.Remove(3);
var oNewButton;
var iBtnCount = oPivotTable.Toolbar.Buttons.Count;
// Add a button with arguments:Buttons.Add
( Index, Key, Caption, Style,
Image );
oNewButton = oPivotTable.Toolbar.Buttons.add(
iBtnCount++, "ViewChart", "", 0, 31 );
oNewButton.ToolTipText = "Toggle Chart / Pivot
Table";
oNewButton = oPivotTable.Toolbar.Buttons.add(
iBtnCount++, "SwapRowsCols", "", 0, 26 );
oNewButton.ToolTipText = "Toggle Rows / Columns";
oNewButton = oPivotTable.Toolbar.Buttons.add(
iBtnCount++, "Undo", "", 0, 1 );
oNewButton.ToolTipText = "Undo";
oNewButton = oPivotTable.Toolbar.Buttons.add(
iBtnCount++, "Separator", "", 3, 0 );
//To Show the all the button pictures...
// Style 0 = ?
// Style 1 = ?
// Style 2 = ?
// Style 3 = Separator
// Style 4 = Separator
// Style 5 = List
//for( var i=1 ; i<=31 ; i++ )
// oNewButton =
oPivotTable.Toolbar.Buttons.add(
iBtnCount++, "Test"+i, "Test"+i, 0, i );
My problems are as follows:
-I assign a value to the ToolTipText property but
it never shows.
-I toggle several times the Enable property but
with no effects.
-Can someone tell me more about the styles??
-Is there any built-in functionnality to create a
chart from my pivot table?
-Is there any built-in functionnality to swap
rows and columns?
Thanks!! have a nice week-end!
Claude
Thanks to Mister Bruney, I achieve my C# Web page with an
OWC, undo feature with a custom button inside the
toolbar, here's some of my code:
var oPivotTable = document.getElementById
('OWCPivotTable');
oPivotTable.Toolbar.Buttons.Remove(1);
oPivotTable.Toolbar.Buttons.Remove(1);
oPivotTable.Toolbar.Buttons.Remove(2);
oPivotTable.Toolbar.Buttons.Remove(3);
var oNewButton;
var iBtnCount = oPivotTable.Toolbar.Buttons.Count;
// Add a button with arguments:Buttons.Add
( Index, Key, Caption, Style,
Image );
oNewButton = oPivotTable.Toolbar.Buttons.add(
iBtnCount++, "ViewChart", "", 0, 31 );
oNewButton.ToolTipText = "Toggle Chart / Pivot
Table";
oNewButton = oPivotTable.Toolbar.Buttons.add(
iBtnCount++, "SwapRowsCols", "", 0, 26 );
oNewButton.ToolTipText = "Toggle Rows / Columns";
oNewButton = oPivotTable.Toolbar.Buttons.add(
iBtnCount++, "Undo", "", 0, 1 );
oNewButton.ToolTipText = "Undo";
oNewButton = oPivotTable.Toolbar.Buttons.add(
iBtnCount++, "Separator", "", 3, 0 );
//To Show the all the button pictures...
// Style 0 = ?
// Style 1 = ?
// Style 2 = ?
// Style 3 = Separator
// Style 4 = Separator
// Style 5 = List
//for( var i=1 ; i<=31 ; i++ )
// oNewButton =
oPivotTable.Toolbar.Buttons.add(
iBtnCount++, "Test"+i, "Test"+i, 0, i );
My problems are as follows:
-I assign a value to the ToolTipText property but
it never shows.
-I toggle several times the Enable property but
with no effects.
-Can someone tell me more about the styles??
-Is there any built-in functionnality to create a
chart from my pivot table?
-Is there any built-in functionnality to swap
rows and columns?
Thanks!! have a nice week-end!
Claude