cancel
Showing results for 
Search instead for 
Did you mean: 

search help

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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