T
Tony
I am trying to programmatically control the OWC pivot table. I have fields
selected in listboxes that are added to the proper axis (row, column, data,
filter) when a button is selected.
When my page first displays, the OWC control is empty & when the button is
selected everything works just fine.
However, if I remove a field from the row or column axis and select the
button again (everything else remaining the same), I get the following
error...
"The query could not be processed:
The fieldset 'xxxxx' has no included fields. At least one must be
included."
Questions:
1) Could someone please explain what this message means
2) The field that I've selected is now bold in the field list which
indicates to me that it did get added to the pivot table
Here is the javascript used to add the field:
addFields(window.document.forms[0].lb_columns, Pivot.ActiveView.ColumnAxis);
function addFields(selectedRow, selectedAxis) {
for (i = 0; i < selectedRow.children.length; i++) {
fieldName = selectedRow.children.innerText;
selectedAxis.InsertFieldSet(Pivot.ActiveView.Fieldsets(fieldName));
}
}
Again, works first time, just not subsequent calls.
Thanks
selected in listboxes that are added to the proper axis (row, column, data,
filter) when a button is selected.
When my page first displays, the OWC control is empty & when the button is
selected everything works just fine.
However, if I remove a field from the row or column axis and select the
button again (everything else remaining the same), I get the following
error...
"The query could not be processed:
The fieldset 'xxxxx' has no included fields. At least one must be
included."
Questions:
1) Could someone please explain what this message means
2) The field that I've selected is now bold in the field list which
indicates to me that it did get added to the pivot table
Here is the javascript used to add the field:
addFields(window.document.forms[0].lb_columns, Pivot.ActiveView.ColumnAxis);
function addFields(selectedRow, selectedAxis) {
for (i = 0; i < selectedRow.children.length; i++) {
fieldName = selectedRow.children.innerText;
selectedAxis.InsertFieldSet(Pivot.ActiveView.Fieldsets(fieldName));
}
}
Again, works first time, just not subsequent calls.
Thanks