on 06-22-2007 1:15 PM
Hi All,
I have a problem with selecting rows in Tables. I have put radio buttons as a column in the table to select record from the table. But while I am executing my application I am seeing that all the radio buttons are selected and are disabled which will cause problems.
Please suggest me a solution of what I need to do inorder to select one row at a time and also have my radio buttons in the tables enabled and let me select one row at at time.
Please do help me in this issue.
Regards,
Murthy.
Hi Murthy,
first create attripute "select"-set as type boolean,
add it radio button,
in table onLeadselect=TableLead
create action for radio button
and write this code
static int check;
Check = wdContext.node<name>().getLeadSelection();
and in "on action Table Lead u write this code,
wdContext.node<name>.get<name>ElementAt(Check).setSelect(false);
Regards,
vino
Message was edited by:
Vinoth Raja.V
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,
1)create 1 attribute as select,bind this attribute to radiobutton
2)insert radiobutton in table
3)click radiobutton->properties>onSelect->create action and write the code
Declare flag as global variable,
static int flag;
{
flag=wdContext.nodeViewFlightTest().getLeadSelection();
}
4)In table properties there is an option,onLeadSelection---->create action
it is used to select only 1 radiobutton, defaultly first record is in lead selection, u want to select some other record...u have uncheck first selected radiobutton....for that we using this code....
if(wdContext.nodeViewFlightTest().getViewFlightTestElementAt(flag).getSelect())
{
wdContext.nodeViewFlightTest().getViewFlightTestElementAt(flag).setSelect(false);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi suresh,
if(wdContext.nodeViewFlightTest().getViewFlightTestElementAt(flag).getSelect())
{
wdContext.nodeViewFlightTest().getViewFlightTestElementAt(flag).setSelect(false);
}
I have tried writing this code, but i could not see "getSelect()" and "setSelect()".
can you guide me regarding this
regards,
Murthy.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.