How to identify which button is clicked in an action

Hi,
I am just checking whether it is possible to build calculator or not in webdynpro for abap.
I have some buttons and i have associated same action for all the buttons and in that action i would like to know which button is clicked.
Please let me know the code for that
Thanks
Bala Duvvuri

Hi Bala,
Its possible. Just go to the action handler for the button & read the attribute ID of the WDEVENT which is passed by the framework. This id will contain the id of the button which triggered the event. Consider the code fragment below:
method ONACTIONACTION .
    DATA:  lv_button_name type string.
    lv_button_name = wdevent->get_string( name = 'ID' ).
endmethod.
At the end of execution lv_button_name will have the ID of the button which triggered the event.
Regards,
Uday

Similar Messages

  • How can I find which button is clicked?

    I have two buttons on my page.Is there any way so that I can find which button is clicked in my JSP page?I do not know javascript I tried to pass a parameter by url rewriting through a Javascript function to another page.
    But it did not work? how can I do this?
    Can I return a parameter from javascript to a JSP page?
    Plz help me
    Thanks in advance
    Amit Varshney

    If you give the submit button a "name" attribute, the name of the button you pushed will come through as a parameter, along with its "value" (the text on the button)
    ie
    // in your jsp page
    <input type='submit' name='button1' value='FromB1'>
    <input type='submit' name='button2' value='FromB2'>
    // in your servlet code...
    boolean b1Pressed = request.getParameter("button1") != null;
    boolean b2Pressed = request.getParameter("button2") != null;

  • How to identify Which function modules are used in the planning area?

    Hi all,
    there are couple of function module derviation is used to derive the calendar year, month, fiscal period etc.
    But how to identify which function module is used in which planning area?
    I cant find out from the where used list from function modules?
    Thanks
    pooja

    Hi Pooja,
    Go to characteristic relationship tab,click on detail icon on extreme left of the derivation,there you will get the name and the details of function module used for derivation.
    Regards,
    Indu

  • Which button is clicked?

    hello,
    I have a an array of buttons, which has 20 buttons.
    How can I know which button is clicked inside actionPerformed method.
    THANKS
    Chamal.

    Search for the Java Tutorial and carefully read the section on event listeners. You can find lots of sample code there.
    Basically, you can branch on action commands (typically the label on the button) or event sources (a reference to the object which fired the event). The second method is preferrable to the first, particularly with regard to internationalized applications.

  • How to identify which is rootsite/webapplication url and which are site collection url ?

    How to identify which is rootsite/webapplication url and which are site collection url underneath of web application using powershell script in following code?
    # Get site objects
    $webapplication = Get-SPWebApplication $siteUrl
    # Walk through each site in the site collection
    foreach($site in $webapplication.Sites)
    foreach($subWeb in $site.AllWebs)
    $_ = AddLevel123($subWeb.Url)

    Hi,
    Hope you wanted to know which API is Site collection (SPSite) and Sub site(SPWeb) 
    $webapplication.Sites = Site Collection (SPSite)
    and $site.AllWebs = Subsite (SPWeb)
    and see these links - to get webApplication URL
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/e223b607-ab35-454a-a050-1db3005687e5/spwebapplication-url?forum=sharepointdevelopmentlegacy
    SPSite Url - SPSite.Url (http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.spsite.url.aspx)
    SPweb URl - SPWeb.URL (http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.spweb.url.aspx)
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/b4dfb645-69f4-4abd-947c-64ca42af3a26/script-to-get-list-of-sites-and-subsites
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • How to identify which videos

    I took a dozen or so short clips of an event. I know which three I want to combine and edit. But I can't figure out how to identify which they are in imovie in order to put those clips in my project. It shows them all as consecutive clips or frames, without file numbers or names.

    I'll try to explain better.
    A dozen clips or videos, 1 min to 5 min in length. In one case all along a mountain road.
    I want to produce a 5 min project or video with the best parts of 3 of those 12.
    All 12 have thumbnails almost identical (the dashboard across the bottom, roof line at the top)
    I only want to start editing the 3, not put all 12 in.
    How do I identify those 3?

  • How to identify Which ports are using in RAC setup?

    Hi,
    how to identify Which ports are using in RAC setup?
    Thnaks,

    [Viewing Port Numbers and Access URLS|http://download.oracle.com/docs/cd/B19306_01/install.102/b14205/ports.htm#sthref1208]

  • How to change the button's clicked color

    Dear all,
    How to change the button's clicked color
    I want it to be white in color as my button's background color is white
    Thanks

    How to change the button's clicked colorvia the UIManager

  • How to identify which DC to modify?

    I need to change the iView u201CChange Own Datau201D in ESS.
    ESS -> Employee search -> Change Own Data
    How to identify which DCs to modify in development configuration?
    Greatly appreciated for any comment/suggestion!

    Hi,
           The purpose of each DC is modifying different Iviews (Ex:you need to modify Change Own data like that some other needs to change some other Iview may be this Iview will be present in another DC).
    based on our requirement we need to modify different different DCs.
    yes you need to modify in the DC as i mentioned..
    Regards,
    Anil.

  • How to identify which key figure will the numeric pointer for deltas?

    Hi All,
    I have created a numeric pointer for generic extraction ? but how to identify which key figure will the numeric pointer will use for deltas ?
    how to identify the key figures which is suitable for numeric pointer. And the generic extraction is based upon the copa table?
    Can anyone suggest me how the numeric pointer works and how to identify deltas are carried out at numeric pointer?
    Thanks
    Pooja

    Pooja,
    If you are using a generic extractor which is based on COPA table, then numeric pointer may not be the suggested delta extraction mechanism. 
    A time stamp would be the better one to use.  In a time stamp, you can give a lower limit value of 300 seconds.. so that it will try to fetch the missed records.
    Moreover, a delta would be based on a character, preferably a time char.
    In your requirement, try to figure out the character on whichdeltas will be based.
    Sasi

  • How to identify which record(s) the user hasbeen checked

    i have a internal table in which first field is represented as check box in the output .
    like bellow
      loop at g_it_final into g_wa_final.
            write : 5 sy-tabix ,
                   20 g_wa_final-g_v_check as checkbox,
                   25 g_wa_final-TRKORR,
                   40 g_wa_final-AS4TEXT.
      endloop.
    now the user will select some records from the output checking the check box
    NOW the QUESTION is
    how to identify which record(s) the user hasbeen checked(selected) ?
    so that i can disply only the selected records in the secondary list.

    Hi,
    You will have to use the 'READ LINE' command within a loop to retrieve the data back into your program.
    You may want to use the HIDE command to ease the retrieval of the checkbox value.
    Check out the online help for both of these.
    Darren

  • How to identify which Internal order type is relevant for Budget manager

    Hi,
        How to identify which Internal order type is relevant for Budgeting i.e Budget Manager.
    regards,
    Rajesh

    controlling-internal orders-budegeting and availability control -define tolerance limits for availabilty control
       in which it is defined whether mail be sent to budget manager against the budget profile(budget profile is assigned to order type).
    controlling-internal orders-budegeting and availability control -define tolerance limits for availabilty control-maintain budget manager
    here budget manager is assigned to  order type
    assign me points if it is useful

  • How to identify which applicarion is using the DVD burner?

    How to identify which applicarion is using the DVD burner? Ot is not allow me to burn the DVDs genetrated in the Final Cut 7

    I think you'll find that the application is Final Cut Pro...  the message is bug.  I get a similar message when disconnecting external drives after using them with FCP (even when the project is no longer loaded.)
    As I mentioned above, the accepted workflow is to export the sequence to one of your hard drives using the Export>QuickTime Movie path with Settings:Current Settings and Make Movie Self-Contained checked like this:
    This gets you a high quality "master copy" which you open in Compressor for transcoding. You should use the DVD: Best Quality setting for the duration of your movie.
    this gets you the high quality MPEG-2 and AC-3 files for DVD Studio Pro authoring.
    If you've never used DVD Studio Pro before, you can use iDVD instead. For iDVD, you just drag and drop your "master" on iDVD and it takes it from there. Both make a very professional product.
    hope this helps.

  • How to identify which root certificate is used?

    How to identify which root certificate(on terminal) is used when a terminal is connecting to a https website?
    SecurityInfo.getServerCertificate() only returns the certificate send from the https server.
    But how could know the which local root certificate is used to verify the certificate send from the https server?
    Is there a method or class in MIDP 2.1?
    Thanks

    UP�Cthis question is urgent. Hope anyone can answer me!

  • How to identify which Hub is at 0x4b300000

    Most recent instances;
    2/18/12 9:13:19 PM kernel USBF: 160.386 AppleUSBHubPort[0xb52b200]::FatalError - Port 4 of Hub at 0x4b300000 reported error 0xUSBF: e00002eb while doing 160.setting port power
    2/18/12 9:13:35 PM kernel AppleUSBHubPort[0xb533500]::FatalError - Port 4 of Hub at 0x4b300000 reported error 0xUSe00002eb while doing BF: setting port power
    2/18/12 9:13:39 PM kernel 354 AppleUSBHubPort[0xb52b400]::FatalError - Port 4 of Hub at 0x4b300000 reported error 0xe00002eb while doing setting port power
    as we have  several hubs attached to this machine we are hoping it is possible to identify which hub is causing the problem based on 0x4b300000 address. Yes; no; how to?
    Open to any suggestions.
    Thanks in advance!
    ciniod
    ps What happened to the nice easily searchable discussions of old where we could find simililar problems based on question?

    Hello,
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware>USB, expandthe triangles at the top right pane, select a Hub, you should see something like this...

Maybe you are looking for

  • Error while assigning Smartform in Sale Order

    Dear All, For taking the sale order printout, I do not want to create a SAP SCRIPT Form. So in NACE transaction, I have created one output type 'ZA01' and assigned a new Smartform to that output type. Now, after adding this output type in Sale Order,

  • USB port does not work properly on Tecra M3

    I need help with my Tecra M3 USB problems. It has 2 USB ports. Awhile back the USB ports refused to recognise any non-driver USB memory sticks (I do not have any driver required sticks to try). Recently I've had to re-install my Siemens ADSL modem, d

  • Book pdf file

    Does anyone know if once you send off a book to be ordered (and only order one) can you buy more books without having to send the book off again? I know they have a pdf file of the book once it gets where its going to be printed. Can they use that pd

  • Starting J2EE Server error

    I installed J2ee I don't know if I set my java_home correct, I set it to C:\j2sdl1.4.2_2 because I downloaded and insrtalled j2sdk When I try to start the default domain from the start button of windows xp professional I get the error: Could not find

  • ASR not working as expected

    On my virtual machine with Windows 7 32-bit and internet Explorer 11 I was testing a webpage with an old Java applet which is hosted on one of our servers. I opened the page and got the Java message 'Application blocked by security settings'. I added