Skip to Content

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

Focusing a text field


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.



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


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