Skip to Content
avatar image
Former Member

Cursor in a perticular field

Hi experts,

I need to set cursor in a perticular field after a button click event,

How can I do that. PLease explain me in detail.

If possible provide me with code.

Thanks,

Points are sure.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 11, 2007 at 01:52 PM

    Hi,

    you can do it like this in the wdDoInit():

      IWDInputField input = (IWDInputField)view.getElement("<IDName>");
      input.requestFocus();
    /code]
    
    or like this somewhere else:
    [code]
    IWDAttributeInfo attribute = wdContext.nodeV_Data().getNodeInfo().getAttribute(IPrivateNameView.IV_DataElement.FIELD);
    		wdThis.wdGetAPI().requestFocus(wdContext.currentV_DataElement(), attribute);	

    Regards,

    Dennis

    Add comment
    10|10000 characters needed characters exceeded