on 11-28-2007 6:49 AM
Could anyone provide information on implemntation of "Select All" , "Deselect All" Operations for web dynapro java application
Hi,
Take one contexvalue attribute 'selecetd' of type boolean in the <TableNode>
Take one checkbox as column of the table and bind it's 'checked' property to
context attribute 'selected'
Initially set the boolean value to false
the in onToggle action of checkbox, write following code
For select All ACtion
for(int i=0;i<wdContext.node<TableNode>().size();i++)
{
wdContext.node<TableNode>().get<TableNode>ElementAt(i).set<context attribute>()(true);
}
For DeSelect All ACtion
for(int i=0;i<wdContext.node<TableNode>().size();i++)
{
wdContext.node<TableNode>().get<TableNode>ElementAt(i).set<context attribute>()(false);
}
Regards
LakshmiNarayana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi LakshmiNarayana ,
1) IS it that i have to add one more colum with chkboxes as Column value to my table and
2)To create a new context value as selected inside my table
2)which action i have to toggle to my chkboxes of tablecolum means Select or Deselect
Can u plz clarify my dout
Regards
Padma N
Hi Raghu,
Use an action button as "Select/Deselect" in its action write the following code it will surely work..
IPrivateAppView.IAppListNode node= wdContext.nodeAppList();
int size = node.size();
boolean flag = wdContext.currentContextElement().getSelected();
if(flag == false){
for(int i = 0; i < size; i++)
{
wdContext.currentContextElement().setSelected(true);
node.getAppElementAt(i).setIsSelected(true);
}
}
else{
for(int i = 0; i < size; i++)
{
wdContext.currentContextElement().setSelected(false);
node.getAppElementAt(i).setIsSelected(false);
}
}
Regards,
karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghu,
Are u using check boxes in u table?
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.