cancel
Showing results for 
Search instead for 
Did you mean: 

On Click of Button

Former Member
0 Kudos

Hi Friends,

I have a small issue over setting the Cursor to the Input Field when i click a Pop Up Window in which i have an OK Button.

I am unable to place the Cursor in the Input Field.

For example if i have two I/P fields and i just entered one field and clicked on execute i get a Pop Up message asking me to fill the second one too.

Now my requirement is such that when i click OK button the cursor must be placed in the I/P field.

How is this possible?

Please let me know.

Thanks and regards,

Chandrashekar.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can give a try by using the following code


IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Your attribute");

wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), attributeInfo);

Method :void requestFocus(IWDNodeElement nodeElement, IWDAttributeInfo attribute)

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

On Ok action just use the requestFocus() method for the second inputfield.

thanks & regards,

Manoj