cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get Cursor Position in a Table

Former Member
0 Kudos

Hi Experts,

I have a table, with input fields. I have a button to add as many rows as I want. For the second column I have

a OVS. Now assume I have added 3 rows and I want to edit the first row again. So I click the first row and click

on the OVS selector, and finally when I select a value in the OVS it comes to the Third row, that is the row

with the Lead Selection. How do I get it to come in the first row?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member197348
Active Contributor
0 Kudos

Hi Murli,

If I understand your requirement correctly, you have table which has OVS for one field. If this problem is only because of leadselection you can disable the lead selection by setting selectionMode property of the table to none. Try it out once.

But I guess the problem might be different, you can try like this.

Create a child node for the table node with Cardinality 1...1 Singleton false

Create the attribute and impliment OVS and bind this to your second column of the table.

Regards,

Siva

Former Member
0 Kudos

Hi,

Following is the method to use this

wdThis.wdGetAPI().requestFocus(nodeElement, attribute)

Sample code

ISales_OrdersElement element = wdContext.nodeSales_Orders().getSales_OrdersElementAt(0);

IWDAttributeInfo attribute = wdContext.nodeSales_Orders().getNodeInfo().getAttribute("Batch");

wdThis.wdGetAPI().requestFocus(element, attribute);

Regards

Ayyapparaj