How can I rename buttons in dialog popup ?

Hello.
I want rename buttons "OK", "Cancel" with my names in popups.
I create new values in domen WDR_POPUP_BUTTON_KIND
Next enhance interface IF_WD_WINDOW with new attributes:
CO_BUTTON_CP type WDR_POPUP_BUTTON_KIND
But i have problem in CL_WDR_INTERNAL_WINDOW->IF_WD_WINDOW~SET_BUTTON_KIND:
  case me->buttons-button_kind.
    when co_buttons_abortretryignore.
      wa_button-button      = co_button_abort.
      wa_button-button_text = cl_wdr_texts=>get_text( '201' ).
      wa_button-tooltip     = cl_wdr_texts=>get_text( '201' ).
      wa_button-is_enabled  = abap_true.
This code show only predefined type of buttons can use. 
How can I rename buttons in dialog popup ?

When you subscribe to button event  you can rename the button
* Popup
  DATA lo_window_manager TYPE REF TO if_wd_window_manager.
  DATA lo_api_component  TYPE REF TO if_wd_component.
  DATA lo_window         TYPE REF TO if_wd_window.
  lo_api_component  = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).
  lo_window         = lo_window_manager->create_window(
    window_name          = 'W_POPUP'
    message_display_mode = if_wd_window=>co_msg_display_mode_selected
    button_kind          = if_wd_window=>co_buttons_ok
    message_type         = if_wd_window=>co_msg_type_none
    default_button       = if_wd_window=>co_button_ok
  DATA:  l_api TYPE REF TO if_wd_view_controller.
  l_api = wd_this->wd_get_api( ).
" subscribe to button event
  lo_window->subscribe_to_button_event(
               button            = if_wd_window=>co_button_ok
               BUTTON_TEXT       = u2018Approveu2019 " renaming the button text
               action_name       = 'ON_OK_POPUP'
               action_view       = l_api
               is_default_button = abap_true ).
  lo_window->open( ).
Radhika

Similar Messages

  • How can I automatically close a dialog box using Javascript after I click the OK button to submit it?

    How can I automatically close a dialog box using Javascript after I click the OK button to submit it? I don't want to have to X out of the dialog box after I am done.
    Thanks
    Linda

    JS can not interact with open dialogs in any way, unless it's a dialog
    created in JS using the Dialog object.
    On Thu, Jul 24, 2014 at 11:13 PM, lindaeliseruble <[email protected]>

  • How can I rename my pics in Bridge CS5?

    How can I renams my pics in Bridge CS5?

    Here's what is in the Bridge cs5 help pdf file.  (I was not able to find this same help info from clicking help in Bridge cs5).
    Batch rename files
    You can rename files in a group, or batch. When you batch rename files, you can choose the same settings for all the selected files. For other batch-processing tasks, you can use scripts to run automated tasks.
    1  Select the files that you want to rename.
    2  Choose Tools > Batch Rename.
    3  Set the following options:
    Destination Folder
    Place the renamed files in the same folder, move them to another folder, or place copies in another folder. If you choose to put the renamed files in a different folder, click Browse to select the folder.
    New Filenames
    Choose elements from the menus and enter text as appropriate to create new filenames. Click the Plus button [+] or Minus button [-] to add or delete elements.
    •String Substitution
    Allows you to change all or part of a filename to custom text. First, choose what you want to replace: Original Filename replaces the string from the original filename. Intermediate Filename replaces a string that is defined by preceding options in the New Filenames pop-up menus. Use Regular Expression allows you to use regular expressions to find strings based on patterns in filenames. Replace All replaces all substrings that match the pattern in the source string.
    Options
    Select Preserve Current Filename In XMP Metadata to retain the original filename in the metadata. For Compatibility, select the operating systems with which you want renamed files to be compatible. The current operating system is selected by default, and cannot be deselected.
    Preview
    One current and new filename appear in the Preview area at the bottom of the Batch Rename dialog box. To see how all selected files will be renamed, click the Preview button.
    4  (Optional) Select a preset from the Presets menu to renaming with frequently used naming schemes. To save batch rename settings for reuse, click Save.

  • How can i rename time time capsule

    how can i rename time capsule?

    I was frustrated too.  After reading a couple of other posts, I launched Airport Utility, selected my Time Capsule, and clicked Edit in the popup menu.  A dialog box dropped down, with five tabs at the top.  I clicked the Disks tab, and saw the dialog below.  In this dialog, I just retyped the name and clicked Update--I did NOT want to erase the disk!
    I have Airport Utility version 6.1, OS X 10.7.  Hope this helps!

  • How can I rename files without creating a duplicate?

    How can I rename files without creating a duplicate?  And secondly, for some reason I can no longer save pdf files [i.e., bank statements] where I want - the Save As function is gone?

    In many new cases, Save As is now called Duplicate in ML. It uses the same command-S keystroke. Older apps still have Save As. When you do a Duplicate operation, you will create an UNTITLED document. You have to save that duplicated document to complete the process.
    So in 10.6.x, you would do ...
    * Save As ...
    * Give the file a new name + Chose the location for the file
    * Click the Save button
    Now in 10.8.x, you do ...
    * Duplicate ...
    * Save ...
    * Give the file a name + Chose the location for the file
    * Click the Save button
    As baltwo mentioned, you have to search the Preferences of your browser to determine what is has set for the default Download folder.
    JJW

  • How can i use Button in BEx  7.0

    Dear Folks,
    Could you help me please ..
    In BI 7.0, for BEx analyzer i see we can use button, combo box, analysis grid.
    If i have a requirement like this:
    1. I have sales report, where it has information about sales person.
    2. And i want to filter that report with the sales person that i choose from combo box.
    For that requirement, i tried to :
    1. I Create a query to Sales info-provider for displaying sales.
    2. I Create a query to either to MD Sales person / Sales info-provider in order to get Sales persons data.
    3. I assign point no 1 to Analysis Grid.
    4. I assign point no 2 to Combo box.
    My questions are:
    a. Is my techniques correct ??
    b. How can i use button to execute filter into the corresponding report ???
    c. Is there any tutorial regarding this ?? Could you share it to me please ..
    Really need your guidances..
    regards,
    Niel..

    Hi Niel,
    You can use the method you specified.
    In Bex Analyzer you have design mode where you can have the following items Button, Analysis Grid and Combo box.
    To work with the button you need to use the Command Wizard which consists of pre-defined functions, out of those select the one which suits your requirement and supply the parameters. As it is done thorugh a Wizard it would be easy to do.
    Also,
    The Button Name displays the name of the button, which is generated automatically and is unique. This name is used on the BEx Analyzer Design Toolbar menu to refer to a particular instance of the button.
    · Range u2013 Manipulate coordinates for a cell or cells in this field to move or resize the button.
    · Button Text - The text (caption) you want to display on the button. You can use this to describe the command the button executes.
    · Command Range (optional) - Specify a three-column range of cells in the worksheet that contains command parameters. In these cells, you provide the same parameters (Name, Index, and Value) as in the Static Parameters, but in the worksheet these can be variable, changing during
    navigation based on query results or on a value you manually specify.
    Button in Bex analyzer
    Regards,
    Neelesh Jain.

  • How can I rename open PDF files on my android tablet

    How can I rename open files on android tablet

    However, you can rename a file from document browser like this : http://forums.adobe.com/message/4753337

  • How can I rename my device as it suddenly changed to a series of dashes?

    My device name in ITunes suddenly changed to a series of dashes..How can I rename my device?

    Hello marthadp
    The article below will assist with renaming your device in either iTunes or from within the device itself.
    iTunes and iOS: Change the name of your iPhone, iPad, or iPod
    http://support.apple.com/kb/ht3965
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • How can I rename my iPad 2?

    How can I rename my iPad 2?

    Connect the iPad to your computer and launch iTunes. Double click on the iPad's name on the left side of iTunes under the Devices heading -place your cursor in the name field  - delete the old name and type the new name. Hit return on your keyboard.

  • HT1789 How can you rename your iPod in iTunes 11?

    How can you rename your iPod in iTunes 11?
    I am using a Mac and an iPod Nano (the old longer one)

    Double-click the name in the device summary screen to get a cursor, and edit the name. In previous versions of iTunes, you could change the name by clicking it once.

  • How can i make buttons in an article to go for other articles in Folios Builders for Ipad?

    I am trying to make buttons in an index, for goingo to other articles, but they never worked here. When a i put Go to Destination, and choose de Indd file, it does not work.
    Can i make a scrollable frame a button either? When i tryed, it did not work, not even the button, and the scrollable frame.
    Please, need some help here.

    WHat is navto? is navegate to...?   How can i do this?
    thanks a lot for your attenttiosn.
    Em 29 jan 2014 às 06:26, Bob Levine <[email protected]> escreveu:
    Re: How can i make buttons in an article to go for other articles in Folios Builders for Ipad?
    created by Bob Levine in Digital Publishing Suite - View the full discussion
    Go to destination is unsupported in DPS. You should be using go to url with a navto: command.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6064623#6064623
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6064623#6064623
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6064623#6064623. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Digital Publishing Suite at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How can i rename a jar file using only java code

    i have tried everything i can think of to accomplish this but nothing works.

    ghostbust555 wrote:
    In case you geniuses haven't realized I said I tried everything I can think of not that I tried everything. So help or shut up I realize that I didn't try everything but if you can't figure it out either DO NOT POST.
    And the question is how can i rename a jar file using java code? As it says in the title. Read.I would tell you to use the File.renameTo method, but surely that would have been obvious, and you would have tried it already? But maybe you didn't. You were kind of lacking in details in what you tried.
    And yes, I am a genius. Just don't confuse "genius" with "mind-reader".

  • How can I rename a Bluetooth device on my iPad?

    How can I rename my Bluetooth device on my iPad?  I just bought the same model of a Bluetooth speaker that my daughter uses and since I babysit for her often, I want to be able to connect to either device.  And I want to be able to distinguish by name each device.

    On your iPad you cant. There are no settings/preferences in the bluetooth section.

  • My brother gave me his i pod how can i rename it?

    My brother ghave me his ipod how can i rename it??

    Hi,
    Over in the iPod Communities is this thread
    https://discussions.apple.com/message/6304574#6304574
    (it's actually in the Nano area)
    8:27 PM      Monday; January 2, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How can I rename a bluetooth connection on my iPhone?

    How can I rename the bluetooth connections on my iPhone? I have 2 cars with the same handsfree bluetooth systems and they show up with the same name under my iPhone's bluetooth connections. I'd like to rename them so I can identify which car belongs to which connection.

    I was afraid you were going to say that was the case. I couldn't find any way to do it. It's amazing that something so simple, and something that's been available on every phone I've owned for the last 15+ years, isn't available on an iPhone.

Maybe you are looking for

  • No subsequent document found in Accounting

    Hi Experts, we have created subcontractiong PO for 250 QTY.....The user done the g/r for 200 qty on march 5th 2014...MM Document created but there is no FI Document,,, bellow is the Error message.. No subsequent document found in Accounting Message n

  • Storing co-ordinate data in Table

    Dear all, Can any one suggest what is the best (I mean data type) way to store vector information (line, Pline) information into a oracle database. I am having average of 45 to 75 pair of X,Y coordinate for a pline. Thanks In advance Jesu.

  • Change Preferred Viewing Locale by a paramter field in the report template

    Hello, Is there a method that allows to change the Preferred Viewing Locale at the report template level? Actually I have some templates for final clients in different countries, and these reports should be generated in Infoview. In order to generate

  • HELP!!! APERTURE WILL NOT OPEN!!!

    Regardless of how I try to open the app it will not open! I have already serialized the product yet, it continously asks for a serial number. Once re-serialized it takes me to the welcome screen. Regardless of the method used or option selected I get

  • RSS feed FROM a iweb page?

    Is it possible to create an RSS feed FROM one of my pages created in iweb, so that I can link to it on another site, such as Flavors.me? thanks