Skip to Content
0
Former Member
Jul 18, 2008 at 11:17 AM

Strange behaviour of requestFocus

24 Views

Hi,

I want to set focus on one of the fields in the form. I am using following code:

IWDAttributeInfo attribute = wdContext.nodeNode1().getNodeInfo().getAttribute(IPrivateMyViewView.INode1Element.ATT);

wdThis.wdGetAPI().requestFocus(wdContext.nodeNode1().currentNode1Element(), attribute);

Its working fine most of the time, i.e. , focus is set on the field and cursor also.

But sometimes only the field is surrounded by dotted lines, but cursor is not set at the required field. User has to click & set cursor on this field.

Why is it behaving in such strange way? Setting cursor sometimes and sometimes not? Anyone knows the reason?

Thanks,

Apurva