on 07-06-2009 5:47 AM
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.
Regards,
Suresh
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:
if(firstTime){
wdContext.currentContextElement().setView(view);
}
3) Now use following code in the onActionEvent of button:
IWDView view = wdContext.currentContextElement().getView();
IWDTextEdit textEdit = (IWDTextEdit)view.getElement("TEXTEDIT_ID");
textEdit.requestFocus();
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,
Pravesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.