Skip to Content
author's profile photo Former Member
Former Member

On Click of Button

Hi Friends,

I have a small issue over setting the Cursor to the Input Field when i click a Pop Up Window in which i have an OK Button.

I am unable to place the Cursor in the Input Field.

For example if i have two I/P fields and i just entered one field and clicked on execute i get a Pop Up message asking me to fill the second one too.

Now my requirement is such that when i click OK button the cursor must be placed in the I/P field.

How is this possible?

Please let me know.

Thanks and regards,

Chandrashekar.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2008 at 08:52 AM

    Hi,

    On Ok action just use the requestFocus() method for the second inputfield.

    thanks & regards,

    Manoj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2008 at 08:52 AM

    Hi,

    You can give a try by using the following code

    IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Your attribute");
    
    wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), attributeInfo);
    
    Method :void requestFocus(IWDNodeElement nodeElement, IWDAttributeInfo attribute)
    
    

    Regards

    Ayyapparaj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.