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

Button

Hi,

I have created one login page in that two input field & one button is there. Input fields for user name & password & button is for login. after entering username & password then we click on login, login button should be inactive that means only one user can login at a time. How can i do this. Please give me the sample code for this.

please help me.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 04:16 AM

    hi shyja......

    consider you are having an user id user1.... so the user alone must be loged on at a single moment.... jsut have another field as flag in your data base table..... which has user id as primary key....

    now as soon as you click the login button, update this field with x and disable teh button dynamicallly.

    bind the enabled propery of the button to wdy_boolean adn pass the value abap_false.....

    but in the wddoinit method.......

    check for the userid and the flag and do the coding correspondingly.

    ---regards,

    alex b justin

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi shyja........

      for testing purpose.....

      do not write any coding with respect to the enable part, inside wddoinit.....

      just write coding in the on action method part and check whether it is working....

      ---regards,

      alex b justin

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.