on 11-06-2007 9:32 AM
Hi
I have table with 2 columns and three rows and one button.
That button is search help button.
If my cursor is on 2nd row and i clicked the button corresponding search help should be open.
If my cursor is on 3rd row and i clicked btn then for that search help should open.
Like this according to cursor position i want search help to be detected for that row.
And when i select the value from search help it should display in the second column of the corresponding row.
Is it possible?and how?
Please reply...
Thanks
Prajakta
Hi Prajakta,
U can use lead selection to get the selected row. use this code for that "int leadSelect = wdContext.node<xyz>.getLeadSelection();"
then if u want 2nd column, u can get it directly since u already know the column number,so u can get the value from the context attribute for that row.
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Prajakta
leadSelection will give you the index of selected row of the table
wdContext.<Your node>().getLeadSelection(); // which returns an integer value
if you want to retrive the selected record's column value use the following code
String sample=wdContext.current<your node>Element.get<attribute>();
now you can directly use that <b>sample</b> string in your search method
Best Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.