on 07-31-2007 8:11 AM
Hi
I am trying to have a button trigger either a select all checkboxs or deselect all checkboxes. I cant seem to do this for checkbox groups unlike checkboxes which have a checked attribute.
Anyone with an idea how this is done?
Hi Beng..
You can try this.
First creat the context attribute in the root node and bind it to table. dataType int.
so tht u can get curent rows which u have..
Use this code..
wdContext.currentContextElement.getfirstVisibleRow()
Urs gs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi GS,
I'm afraid i don't quite understand ur solution.
Maybe i should describe my problem a bit more.
Lets say i have a checkbox group. Its "Text" attribute is binded to a node.attribute1. i have binded an action to onToggle so that when i select a checkbox, node.attribute2 will be set to value "X". (all the usual checkbox grp stuff) . This works fine.
However when i try to create a button that has an action that will attempt to clear all the checkbox selections, i can seem to get the checkboxes to (graphically)deselect even though i have set all the node.attribute2 to blank. Actually, i understand why the checkboxes dont deselect when i set node.attribute2 to blank but i want to know what is the way to deselect (graphically)the checkboxes in a checkbox grp without actually clicking on them.
The selection of a CheckBoxGroup is determined by the selection of the context node "Items" it is bound to, not by the attribute values of the node elements.
onActionSelectAll(...)
{
for (int i = 0; i < wdContext.nodeItems().size(); ++i)
{
wdContext.nodeItems().setSelected(i, true);
}
}
onActionUnselectAll(...)
{
wdContext.nodeItems().setLeadSelection(IWDNode.NO_SELECTION);
wdContext.nodeItems.clearSelection();
}
Armin
Hi,
You can go through this link.
In that you can check for CheckBox Group API 4.1.10.
Thanks & Regards,
Suvarna Chittoor.
Message was edited by:
Armin Reichert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.