Skip to Content
avatar image
Former Member

cursor focus

HI ,

I have text edit UIelement in my application.Intially i am displaying data in that UI element.Now my requirement is i have edit button when i click that edit button i am displaying current date and i need mouse cursor focus("|" blinking) in that textedit UI elemnt after the date.Could anyopne give clue on this.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jul 06, 2009 at 04:57 AM

    Hi Suresh,

    Follow these steps:

    1) Create a attribute in the context named view of type IWDView.

    2) Write following code in the wdDoModify Funtion:


    3) Now use following code in the onActionEvent of button:

    IWDView view = wdContext.currentContextElement().getView();
    IWDTextEdit textEdit = (IWDTextEdit)view.getElement("TEXTEDIT_ID");

    This will take your cursor to the text edit box.

    I hope this solves the issue. Please revert back in case you need further help on this.

    Thanks and Regards,


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      No this is not possible. You can just set the cursor focus to the UI element field, not specifically at the end of the date.

      I hope this information helps.

      Thanks and Regards