How to get the 'text' property value of a button in coding?

Hi Experts,
I'm using 10 buttons all are having common action('click'). when i click a button the 'text' value of the button should pass to a function.So the action is same but the passed value will be the 'text' value of the corresponding button.  I don't know how to get the 'text' property of a button in coding. Kindly help me to solve this problem.
Thanks and Regards
Basheer

Hi,
My event is like this.
public void onActionclick(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
     String s =  ?  ; // should get the 'text' property of clicked button
     fillInput(s);     // function to be called
The called function is,
public void fillInput( java.lang.String id )
    String str=wdContext.currentContextElement().getNum();
    str = str + id;
    wdContext.currentContextElement().setNum(str);
How can i get the 'text' property value of the corresponding button. Click action should be common to all buttons.
Thanks and Regards,
Basheer

Similar Messages

  • When and How to get the Text.ScrollPos value of a String control when scroll bar position changed

    Hi, 
    I'm working on a feature triggered by scroll bar position of a string control changed.
    But I could not find a good way to catch the scroll bar position changed event, 
    the scroll bar is controlled manually by mouse down → mouse move → mouse up, I want the get the Text.ScrollPos value when user mouse up, and compare with the maximum value.
    But the problem is,  mouse up on the scroll bar could not trigger String: Mouse up event!
    So I have to get the Text.ScrollPos continuously in the background in Timeout event, but I think it’s not efficient.
    Do you have any better idea on when to get the correct destination value of Text.ScrollPos?
    I plan to store the value of Text.ScrollPos in the bottom(maximum value) in a shift register, then compare the current Text.ScrollPos value with the max one.
    If it comes close to the bottom(90%~100% of the maximum value), then the close to bottom LED will turn on.
    Attachments:
    scroll bar pos changed.vi ‏15 KB

    Hello Cecilia,
    I don't think there is any build-in event for this.
    One solution would be to create your own user event at the initialisation of you main and launch a thread which is going to be pulling the value of your scrollbar position:
    Then you can build your main as if they were a scrollbar move event.
    And dont forget to close the thread and destroy the event at the end.
    Hope it helps.
    Attachments:
    Scrollbar event.PNG ‏10 KB

  • How to get the iView Property value in NWDS

    Hi all,
    I my requirement I need to get some of the iView Property Value in NWDS.
    Can anybody help me for this?
    Helpful answers will appreciate.
    Thanks & regards,
    Kathiresan R

    Steps
    1. Define the properties in portalapp.xml
    <component-profile>
    <property name="user" value="asterix">
      <property name="personalization" value="dialog"/>
      <property name="plainDescription" value="User name"/>
    </property>
    </component-profile>
    2. Within the doContent(request is a signature in doContent) method of your AbstractPortalComponent please
    add the following code to access the property:
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
        IPortalComponentProfile profile = request.getComponentContext().getProfile();
        String Name = profile.getProperty("user");

  • How to get Document Set property values in a SharePoint library in to a CSV file using Powershell

    Hi,
    How to get Document Set property values in a SharePoint library into a CSV file using Powershell?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    According to your description, my understanding is that you want to you want to get document set property value in a SharePoint library and then export into a CSV file using PowerShell.
    I suggest you can get the document sets properties like the PowerShell Command below:
    [system.reflection.assembly]::loadwithpartialname("microsoft.sharepoint")
    $siteurl="http://sp2013sps/sites/test"
    $listname="Documents"
    $mysite=new-object microsoft.sharepoint.spsite($siteurl)
    $myweb=$mysite.openweb()
    $list=$myweb.lists[$listname]
    foreach($item in $list.items)
    if($item.contenttype.name -eq "Document Set")
    if($item.folder.itemcount -eq 0)
    write-host $item.title
    Then you can use Export-Csv PowerShell Command to export to a CSV file.
    More information:
    Powershell for document sets
    How to export data to CSV in PowerShell?
    Using the Export-Csv Cmdlet
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to get the Text name to pass in the  parameter header in save_text

    Hi,
      I am trying to change the long text of operation for historical order by using the flat file.I am using the save_text to do this.I would like to know how  to get the text name in order to pass the parameter header in save_text.
      I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates and where is this value updated in the table so that i can link it thru the order no  to get the link and pass it in the text_name.
      can anyone help me out?
    krishnan

    Hi,
    Your query is.
    I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates
    In above number
    300 - Client
    1000000092 - AUFPL - Routing number of operations in the order (You can fetch this from table HIVG)
    00000001 - APLZL - General counter for order ( You can fetch this from table HIVG).
    BR,
    Vijay

  • How to get the current month value for a customer exit variable?

    How to get the current month value for a customer exit variable? 
    And also if we have an InfoObject with date value (including date, month, year), then how to derive the month value from this date type of Char.?
    Thanks!

    Hi Kevin,
    Check here........
    Re: Customer Exist for "From Current Date To Month End"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    Cal month
    Regards,
    Vijay.

  • How to get the previoulsy selected value in a combobox

    How to get the previoulsy selected value in a combobox. i WANT the current and the previously selected value of the combobox.

    Just add to combobox ItemListener. When item is changing in itemStateChanged arrives 2 events. ItemEvent.DESELECTED and ItemEvent.SELECTED with corresponding item's values. Just write something like this:
            comboBox.addItemListener(new ItemListener() {
                Object prevValue;
                public void itemStateChanged(ItemEvent e) {
                    if (e.getStateChange() == ItemEvent.SELECTED) {
                        //do what you need with prevValue here
                    } else {
                        prevValue = e.getItem();
            });

  • How to get the text present in JTextArea

    i am writing application for some system to be computerised and i am not getting how to get the text present in text area and set it into database...can anybody suggest me solution??

    You must have named the TextArea like
    JTextArea textArea;so, use the getText() method like
    String strTextAreaContents = textArea.getText();You can then use JDBC to connect to the database that you want and save your contents that is now in strTextAreaContents.
    -- Srikanth

  • How to get the latest procured value of a spare updated in material master

    How to get the latest procured value of a spare updated in material master

    J S S PRASAD
    See table MBEW via transaction SE16.
    However, you may need to look at the last PO created for that material.
    PeteA

  • How to get the anchor tag values in next jsp

    Hey all,
    I have two jsp files.
    in first jsp,
    I am getting the resultset.
    I am setting the resultset to the anchor tag.
    below is the code...
    <a target="_top" rel="contents" rev="contents" class="fordynamiclabel" href="ASCMasterTwo.jsp"><%=rSet.getString(1) %></a></td>
    whenever he click on any anchor tag,
    It will goes to ACSMasterTwo.jsp page for edit the compleate record.
    how to get the anchor tag value in that page...
    Please help me on this.

    You have to pass a parameter. An id is good.
    Of course you have to get an id from somewhere in the result set right?
    <a target="_top" rel="contents" rev="contents" class="fordynamiclabel" href="ASCMasterTwo.jsp?id=<%= rSet.getString("id") %>"><%=rSet.getString(1) %></a></td>Then you call
    request.getParameter("id");
    and look up the values related to that id in the database.

  • How to get the previous record value in the current record plz help me...

    In my sql how to get the previous record value...
    in table i m having the field called Date i want find the difference b/w 2nd record date value with first record date... plz any one help me to know this i m waiting for ur reply....
    Thanx in Advance
    with regards
    kotresh

    First of this not hte mysql or database forum so don;t repeate again.
    to get diff between two date in mysql use date_format() to convert them to date if they r not date type
    then use - (minus)to get diff.

  • How to set the 'text' property of a 'Header' region dynamically?

    Hi,
    I have a requirement to display the 'text' property of a 'Header' region, based on a query.
    So I need to set the text property programatically in CO.
    Can I use setText("..") by getting the handler to the 'Header' region?
    If so, How to get the handler for the 'Header' region?
    Message was edited by:
    user594528

    How to get the handler for the 'Header' region to call the setText()?
    OAHeaderBean Header1 = (OAHeaderBean)...........................
    Header1.setText("....");

  • How to get the text of the textArea ?

    Hi, expert
    i have created a new component com1,
    then i created a table view name 'result'.
    then i add a textarea by modifying the result.htm
    textArea id     = "TAMSG"
                     text   = "test......"
    then i add a button in the result.htm
    the method of the button is  'EH_ONSENDMSG'
    then i input some text into the textArea on the page.
    now, how can i get the text of the textArea in the method 'EH_ONSENDMSG' ?
    thanks.
    oliver.

    Hi,
    problem was solved.
    i put the text into a value node.
    <thtmlb:textArea id     = "TAMSG"
                     text   = "//TEXT/TEXT2"
                     encode = "TRUE"
                     width  = "100%" />
    method EH_ONSENDMSG.
      DATA lr_col_wrap      TYPE REF TO   cl_bsp_wd_collection_wrapper.
      DATA lr_query_values  TYPE REF TO   if_bol_bo_property_access.
      DATA lv_str_msg TYPE string.
      lr_col_wrap = me->typed_context->text->get_collection_wrapper( ).
      lr_query_values ?= lr_col_wrap->get_current( ).
      lv_str_msg = lr_query_values->get_property_as_string( iv_attr_name = 'TEXT2' ).
    endmethod.
    regards.
    oliver.

  • How to get the text from me52n/me52?

    I used rp-read-infotype in getting the text in HR. Please guide me how to get it in ME52. Thanks!

    HI
    GOOD
    CAN YOU GIVE SOME MORE BRIEF ABOUT YOUR REQUIREMENT.ANYWAY YOU CAN GO THROUGH THIS REPORT HOPE CAN HELP YOU SOMETHING
    REPORT Z_LEAVES_AND_COMMENTS  line-size 255 line-count 65 no
    standard page heading .
    =====================================================
    DATA DECLARATIONS
    =====================================================
    infotypes : 0002 ,
                2001 .
    TABLES : t554t .
    DATA : BEGIN OF ITAB_LEAVES OCCURS 100 ,
           PERNR LIKE P2001-PERNR ,
           NACHN LIKE P0002-NACHN ,
           VORNA LIKE P0002-VORNA ,
           SUBTY LIKE P2001-SUBTY ,
           ATEXT LIKE T554T-ATEXT ,
           YEAR(4) TYPE C ,
           SEQNR LIKE P2001-SEQNR ,
           BEGDA LIKE P2001-BEGDA ,
           ENDDA LIKE P2001-ENDDA ,
           KALTG LIKE P2001-KALTG .
    DATA : END OF ITAB_LEAVES .
    DATA : S_DATE_LOW LIKE SY-DATUM .
    =====================================================
    SELECTION SCREEN - DEFAULT
    =====================================================
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME .
    parameters : P_PERNR LIKE Pa0002-PERNR 
                 MATCHCODE OBJECT PREM  OBLIGATORY.
    PARAMETERS : S_DATE LIKE SY-DATUM DEFAULT SY-DATUM .
    SELECTION-SCREEN END OF BLOCK B1 .
    =====================================================
    TOP-OF-PAGE
    =====================================================
    TOP-OF-PAGE .
      WRITE : 'Report of Leaves - Infotype 2001'  COLOR COL_HEADING .
      ULINE .
      WRITE : /
         'CODE' COLOR COL_HEADING ,
         'DESCRIPTION OF LEAVE     '  COLOR COL_HEADING ,
         'YEAR'  COLOR COL_HEADING ,
         'STARTING  '  COLOR COL_HEADING ,
         'ENDING    '  COLOR COL_HEADING  ,
         'DURATION '  COLOR COL_HEADING .
      ULINE .
    ======================================================
    START OF SELECTION
    ======================================================
    START-OF-SELECTION .
      S_DATE_LOW = S_DATE - 365 .
      CLEAR : P2001 , P2001[] .
      RP-READ-INFOTYPE P_PERNR 2001 P2001 S_DATE_LOW S_DATE .
      IF SY-SUBRC = 0 .
        LOOP AT P2001 .
          CLEAR : ITAB_LEAVES .
          ITAB_LEAVES-PERNR = P2001-PERNR .
          ITAB_LEAVES-SUBTY = P2001-SUBTY .
          ITAB_LEAVES-SEQNR = P2001-SEQNR .
          clear t554t .
          select single * from t554t
          where MOABW = '99'
          and   awart = P2001-SUBTY
          and   sprsl = SY-LANGU .
          if sy-subrc eq 0 .
            ITAB_LEAVES-ATEXT = T554T-ATEXT .
          endif .
          ITAB_LEAVES-BEGDA = P2001-BEGDA .
          ITAB_LEAVES-ENDDA = P2001-ENDDA .
          ITAB_LEAVES-YEAR = P2001-BEGDA(4) .
          ITAB_LEAVES-KALTG = P2001-KALTG .
          CLEAR P0002 .
          REFRESH P0002 .
          RP-READ-INFOTYPE P_PERNR 0002
          P0002 '18000101' '99991231'.
          IF SY-SUBRC = 0 .
            ITAB_LEAVES-NACHN  = P0002-NACHN .
            ITAB_LEAVES-VORNA  = P0002-VORNA .
          ENDIF .
          APPEND  ITAB_LEAVES .
        ENDLOOP .
      ENDIF .
    ======================================================
    END OF SELECTION
    ======================================================
    END-OF-SELECTION .
      LOOP AT ITAB_LEAVES .
        WRITE : /
             ITAB_LEAVES-SUBTY ,
             ITAB_LEAVES-ATEXT ,
             ITAB_LEAVES-YEAR  ,
             ITAB_LEAVES-BEGDA ,
             ITAB_LEAVES-ENDDA ,
             ITAB_LEAVES-KALTG .
        PERFORM GET_NOTES_OF_AN_INFOTYPE
        USING '2001'
               ITAB_LEAVES-SUBTY
               ITAB_LEAVES-PERNR
               ITAB_LEAVES-BEGDA
               ITAB_LEAVES-ENDDA
               ITAB_LEAVES-SEQNR .
      ENDLOOP .
      uline .
      write : ' *** End of Report *** '  COLOR COL_HEADING .
      uline .
    *======================================================
    =========> FORM GET_NOTES_OF_AN_INFOTYPE <===========
    *======================================================
    FORM GET_NOTES_OF_AN_INFOTYPE
    USING MINFTY MSUBTY MPERNR MBEGDA MENDDA MSEQNR .
      DATA: TX-KEY LIKE PSKEY.
      DATA: BEGIN OF TEXT-VERSION,
             NUMMER TYPE X VALUE '02',
            END OF TEXT-VERSION.
      DATA: BEGIN OF PTEXT OCCURS 200.
      DATA:  LINE(78).
      DATA: END OF PTEXT.
      data : is_first type i .
      DATA : LINES_OF_NOTES TYPE I .
    Preparing Key for Reading Texts of
    Infotype
      CLEAR TX-KEY .
      CLEAR:   PTEXT             .
      REFRESH: PTEXT             .
      TX-KEY-PERNR = MPERNR .
      TX-KEY-INFTY = MINFTY .
      TX-KEY-SUBTY = Msubty .
      TX-KEY-ENDDA = MENDDA .
      TX-KEY-BEGDA = MBEGDA .
      TX-KEY-SEQNR = MSEQNR .
    READING CLUSTER TX - (Texts)
      IMPORT TEXT-VERSION
             PTEXT
      FROM DATABASE PCL1(TX)
      ID TX-KEY
      USING PCL1_EXP_IMP(SAPFP50P)  .
      IF SY-SUBRC NE 0        .
        CLEAR:   TEXT-VERSION      .
        CLEAR:   PTEXT             .
        REFRESH: PTEXT             .
        SY-SUBRC = 4               .
      ENDIF          .
    Writing texts retrieved
      DESCRIBE TABLE PTEXT LINES LINES_OF_NOTES .
      IF  LINES_OF_NOTES GT 0 .
        is_first = 1 .
        LOOP AT PTEXT .
          if is_first = 1 .
            WRITE : /  'Comments' , ptext-line  .
            is_first = 0 .
          else .
            WRITE : /  '        ' , ptext-line  .
          endif .
        ENDLOOP .
      ENDIF .
    ENDFORM.
    THANKS
    MRUTYUN

  • How to get the table of value field? and can we expand the technical limits

    Dear
    I have created value field in COPA with KEA6. And now, I need the table which the value fields are saved. Yet, I have tried a lot to find it and get failure? Can any guy help me? Please tell me how to get the table of a value field.
    And another question is that, can we extend the technical limits for the number of value field for ECC6.0?
    We have a note for R.4.x Please see below:
    OSS note 160892
    You can display the length of a data record using Transaction KEA0 ('Maintain Operating Concern'). After you have navigated to the 'Characteristics Screen' or to the 'Value field Screen' choose menu path 'Extras -> Technical Limits'.
    The maximum displayed here under 'Length in bytes on the DB' is the maximum length permitted by the Dictionary. The reserve required for the release upgrade must be subtracted from this value.
    To increase the allowed number of the value fields, increase the value that is assigned to field ikcge-bas_max_cnt (FORM init_ikcge_ke USING fm_subrc, approx. line 165) in Include FKCGNF20. It specifies the number of the possible value fields. The corresponding part of the source code is attached to the note as a correction.
    David Sun
    Regards!

    how to extend the limit of value numbers? please see the original question.

Maybe you are looking for

  • Error Message on the Log in screen

    Hi Why the following message appears as soon as I enter the username and password for login in to SAP B1.  The message is : "Module<Software Development Kit - Development Version> expired on <20080325>" How to get rid of this message? Thanks SV Reddy

  • Bug fixes in 10.1.2 AS (OC4J)

    Does anyone know of 10.1.2 bug fix list? We are migrating from 9.0.4 and want to understand how much has changed in the J2EE/OC4J core. On the functionality side there appears to be limited to no change?

  • How to redirect user on or before page load

    Hi, what is best practice for redirecting a user when he opens a specific page. I have a solution with a custom master page and several webparts. When a user opens my solution (every page based on the same master).  What i need to do now is, when the

  • BT Sport not working on my sky box

    Hi I registered for BT Sport at the beginning of July, and it has been activated, i know this cause I can access it on my phone, and computer, however it is not working on my sky box, I presume that the card no is wrong. I have phoned the call centre

  • Netweaver 2004s EP: Portal keeps dropping?

    We have rather recently installed NW04s EP and are having some real issues with it. Main issue being, after we get the portal up and running, after about 10 mins it drops completely. Initially (after SPS06 install) the problem was that the Portal wou