Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Focusing a text field

Hi,

I have an input field in a view. This field is not getting focused when the view appears. What I mean is the cursor is not appearing in the field when the view appears and once the user taps on the field, it is focusing. So without tapping, how we can acheive this functionality.

Regards

MQ

Former Member
Former Member replied

get the AttributeInfo of the Context Node represented by the form element.

IWDAttributeInfo attribute = wdContext.nodeA().getNodeInfo().getAttribute(A.theattribute);

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

(assuming you an element named A with an attribute called "theattribute")

Hope that helps

Jan

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question