To create buttons on the popup or another window

hi,
My requirement is to validathe the contents on the web dynpro page which has the SUBMIT button, after submitting if the fields are blank then a warning message " do you want to continue " is to be displayed,
the window should have  two buttons "yes" and " no " if i click yes than an email is to be sent and if no than continue.
How can i create two buttons on the secondary window or popup.
Thanks,
Nishant

Hi,
I had the same requirement last year.
you can use the same given below.
DATA:          l_api  TYPE REF TO  if_wd_view_controller,
                     lo_window_manager TYPE REF TO if_wd_window_manager,
                     lo_api_component       TYPE REF TO if_wd_component,
                     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_popup_to_confirm(
          text          =  'give your text'
          button_kind   = if_wd_window=>co_buttons_yesno ).
   To set popup window size                                              ------>  OPTIONAL
      CALL METHOD lo_window->set_window_size
        EXPORTING
          width  = 100
          height = 50.
   open popup window
      lo_window->open( ).
      l_api = wd_this->wd_get_api( ).
    subscribe action for NO button
      lo_window->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_no
                   action_name       = 'NO'
                   action_view       = l_api
                   is_default_button = abap_true ).
   subscribe action for YES button      
      lo_window->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_yes
                   action_name       = 'YES'
                   action_view       = l_api
                   is_default_button = abap_true ).
This will work very well

Similar Messages

  • Creating buttons on the fly and setting button properties

    If I have a view and want to add buttons to it "on the fly" from values in an array, is that something straightforward to do?
    I have an array of UIImageVIew objects and would like to create buttons from them (showing the image on the buttons) and associate those buttons with a method in my implementation file. That would be a lot more general and flexible than creating the buttons in the Interface Builder I would imagine.
    And one more question - can I freely set button properties while doing that? Or in Objective-C can I only set properties that are already pre-defined for that class?
    Thanks!
    doug

    Thanks for your reply.
    That.... works! Thanks!
    And I can generate the button and click on it and it calls my other method and that works too. Cool!
    The syntax is still very mysterious to me, but I suppose eventually I'll understand what it all means.
    Breaking it down to see what it means:
    [button1 addTarget:self action:@selector(selectedHandler1:) forControlEvents:UIControlEventTouchUpInside];
    * button1 is the object I created (I'm going to try to do this in a loop next.)
    * addTarget is a message I am sending to button1 and the content of the message is "self", which refers to - this button? I'm not sure why such a message would be necessary.
    * action is another message sent to button1 and the contents of that message are a little harder to parse. I see the result, and can mimic the syntax now that I've seen it, but I don't really understand what the @ is for, or the : after the method name or why this wouldn't just be "action: selectedHandler". I'm sure the language designers have a logical reason for all that, but I don't quite "grok" those extra symbols yet.
    * forControlEvents is another message sent to button1 and the event message itself is clear in its meaning.
    Anyway, that is working and I can refer more to the UIButton class reference now and try to set more stuff, like position it better, etc.
    Thanks very much!
    doug

  • In an older version I could create buttons above the tabs for easy access to websites I chose. Is there a similar feature in the new version?

    In the older version if you clicked on a tab and dragged it to the area directly above the tab, then a button was created. I want to make buttons or preset links in the newer version. Is such a feature or add on available?

    omg I figured it out....Go to the bookmarks button on the right hand side of window (near the home button) click on it, then it has an option that says "view bookmarks toolbar" click on it. You should see a space appear below the web address bar area. You can drag tabs into this area like before. YAY. Hope this helps!

  • Create buttons in the workbook?

    Hello Experts,
    Any information on how to create buttons to point to workbooks. These bottons correspond to different WorkBooks (not worksheets within workbook )
    button1: WorkBook1
    button2 : WorkBook2.
    Thanks,
    Sweatha

    Hi Sweatha,
    Are the workbooks already open?
    Are the workbooks stored on a local PC or LAN drive (and referred to using Microsoft reference), or are they stored on BW server (and referred to using SAP server ID)?
    If the workbooks are already open:
    Code behind button #1:
    Private Sub CommandButton1_Click()
        ActiveCell.Activate
        Workbooks(Workbook1).Activate
    End Sub
    Code behind button #2:
    Private Sub CommandButton2_Click()
        ActiveCell.Activate
        Workbooks(Workbook2).Activate
    End Sub
    If the workbooks are stored on PC or LAN as *.xls files:
    Code behind button #1:
    Private Sub CommandButton1_Click()
    Dim FileToOpen as String
        ActiveCell.Activate
        FileToOpen = Workbook1 'full path + name
        Workbooks.Open FileName:=FileToOpen
    End Sub
    Code behind button #2:
    Private Sub CommandButton2_Click()
    Dim FileToOpen as String
        ActiveCell.Activate
        FileToOpen = Workbook2 'full path + name
        Workbooks.Open FileName:=FileToOpen
    End Sub
    If the workbooks are stored on BW server and referred to using SAP server ID
    Code behind button #1:
    Private Sub CommandButton1_Click()
    Dim wbID as string
        ActiveCell.Activate
        wbID = Workbook1 'example: "2A024RULBDK33U5BNZH60RATU"
        Run "SAPBEX.XLA!SAPBEXreadWorkbook", wbID
    End Sub
    Code behind button #2:
    Private Sub CommandButton2_Click()Dim wbID as string
        ActiveCell.Activate
        wbID = Workbook2 'example: "2A024RULBDK33U5BNZH60RATT"
        Run "SAPBEX.XLA!SAPBEXreadWorkbook", wbID
    End Sub
    Regards, Pete

  • How do I close just the top toolbar, the one with the create button and the Quick Tools?

    Just upgraded from 9 to X.
    The manual says, "When your work does not involve using the tools in a toolbar, you can close the toolbar to tidy up the work area." But then after that it only provides instructions on how to hide all toolbars. I want to have only one row of tool visible, not two, and I can work best with the Common Tools toolbar. So how do I close the other one?

    Would you please be more explicit? I have tried dragging the "Create" and "Customize Quick Tools" buttons from the top row to the second row and they don't drag. I've tried dragging the buttons on the second row into the top row and they don't drag. I've tried dragging the rows themselves into each other and outside the window to see if I could get one to diappear, and they don't drag. So would you please state specifically what is possible in order to reduce the two rows of the toolbar to one row?
    Especially if it's documented somewhere, that would be most helpful to see. But I'm also open to learning an undocumented method, if it works.
    Thank you.

  • How to disable or Invisible the Change and Create button in the PF-STATUS

    Hi all,
    For the table CEPCT, when we display the table entries, there are Create,Change,Display etc button in the standard application tool bar.
    My requirement is to disable or Invisible 2 buttons Create and Change
    Can any one help me in this issue as early as possible
    Regards
    Srinivas

    Hi,
    Check the below statement for more help Press F1
    SET PF-STATUS <MENU> EXCLUDING <FCODES>.

  • Google Calendar will not print in Firefox 19.0 and adobe reader x when one presses the print button in the popup window.

    I have the monthly calendar on screen, click the more button, click print. Another window pops up and when I click the print button nothing happens. I am using Firefox 19.0 and Adobe Reader 10.1.6. The print function works in IE and Chrome.

    this solution did NOT work for me. I still cannot print a Google calendar page in Firefox. I can in IE. And I can print Gmail.

  • How to Create Buttons outside the stage area

    I am able to create my flash project and make it function
    they way I intended, however, I need to be able to place the
    buttons, that control the flash, outside of the flash stage, in a
    different location on the web page, is this possible ?

    Could it be as simple as naming the external button the same
    as the potential flash button, or does the flash movie only
    recognize button presses within the flash movie. I suspect this is
    true.
    Is there any example code that would enable this ?

  • Create Buttons in the Query Designer, is that possible??????????

    Hello,
    When I Start the Query, I want to choose. For Expample:
    For Display the Query with the Rows or not....
    1.Button with Film Production
    2.Button without Film Production
    Can I realize 2 Buttons for that ?`??
    Thanks and Happy Easter..
    Barish
    Edited by: Baris Ozcan on Mar 19, 2008 8:12 AM

    Hi,
    Selections means... your column or row.
    In 7.0 QD .Select your keyfigure from column. right side you can see property window. where you have tab "Display". check that whether it should be "Always show". if it is there, definitely the keyfigure will show the result. and also, if you are not getting any output value, when u r executing the query. check that any filter have u used in Query..
    might be ur query restriction doesn't give any value, that's y ur report looks empty.
    note: there is no Query change mode in BI7.0 query designer, as we have in bw3.5.
    Regards,
    senthil

  • Exist or can you add possibility to place menu bar(all buttons) on the right side of window?

    Something like MS Windows menu bar which can be placed on each screen side. On 16:9 screen this will add more space for site and navigation still will be very easy. I wanted attach image with concept but it's not possible here :(.
    I'm not sure if I'm writing in correct place but this support system isn't too user friendly :/

    You could try using Firefox's Safe Mode to reset your toolbars. Not sure whether this is a toolbar problem, but it's probably worth a try.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, check this article on how to start Firefox in
    [https://support.mozilla.com/kb/Safe+Mode Safe Mode] and use the dialog to reset toolbars.
    Any luck?

  • Can't open files from an application by dragging the file from another window

    In Mac os x 10.6, i was able to to open a file by simply dragging it and placing it on the 'open' Window which automatically changes the location to where the dragged file is. Ever since updating to Lion, i'd have to go folder by folder from the 'Open' window until i get to where the file is and selecting it.
    i

    I tried it with so many applications Like When i'm sending a file via bluetooth, i tried opening a file with iTunes too by dragging to see if it'll work, it didn't. I tried uploading a Photo to facebook too by dragging it to the select photo window, it didn't work.

  • Where did the "Next/Previous" buttons in the iTunes "Get Info" window go?

    Can I no longer edit items quickly and efficiently? These buttons disappeared in iTunes 11!

    It is still there in my version. Are you sure you are not selecting a whole album?

  • PC-UI: Modify the "Create" button in Opportunities

    Hello,
    I would like to change the behavior of the "Create" button in the OIC toolbar in the Opportunities app. Right now when you press this button, a popup asks for the kind of opportunity you wish to create (out of a list of 3), but what we want is a complete new application (think ZCRMD_BUS2000111A, ZCRMD_BUS2000111B, ...) for each kind of Opportunity. So in each of the apps the create button should directly create the correct opportunity and not ask. I know it is asking because there is an event group attached to it, and removing that only triggers the regular create event, but I do not know how to set which opportunity gets created.
    Any hints? I would guess I have to create new access classes for each of the apps and change some method, but after some digging I have not yet found a place where I could change things.
    Any help would be appreciated.
    Thomas

    Hi Abdul,
    this actually sounds pretty much to what I thought was the way to do it. Problem now is that I just don't know how to delete all but the corresponding events from the group.
    Could you tell me how I can do that? Somewhere in SPRO, where I can edit the toolbars and such, or in SE80 in the fill dropdown list box method (as you mentioned) for the model access class? And especially in the last case, any hints for how to do it?
    <i>Edit: Ah, I think what you described in the thread Service order in PCUI is basically the same problem. Will check that now.</i>
    Thanks
    Thomas
    Message was edited by: Thomas Hettenhausen

  • Need to personalize the Remittance screen making 'Manual Create' Button invisible

    Dear All,
    I highly appreciate you people responding to my before questions. All are solved/clarified.
    Below is the requirement from my friend, I am trying to help him. Please suggest.
    In Receivables>Receipts>Remittance screen
    Need to disable the 'Manual Create' button, if the user selects the 'Receipt Method' field as 'XX_REC_METH1'.
    I tried just to disable the 'Manual Create' without the receipt Method condition, even that also doesnt work.
    Version : R12.1.3
    Function Name: AR_ARXRWMAI_REMITTANCES
    Form Name: ARXRWMAI
    Manual Create Button: AR_BATCHES_SUM. REMIT_MANUAL_CREATION                               <block>.<field>
    Receipt Method: AR_BATCHES_SUM.M_REMIT_RECEIPT_METHOD_NAME                            <block>.<field>
    Kindly suggest any work around.
    Thanks a lot in advance.
    Regards,
    Afzal.

    Hi Afzal,
    your question is about an eBusiness Suite form.  Our forum here (and the team that moderates it) deals with Fusion Applications questions.
    Please repost this question in one of these forums that deal with EBS:
    Technology - General Discussion
    Financials
    Thanks for your understanding.
    Regards,
    Oliver
    Fusion Apps Developer Relations
    https://blogs.oracle.com/fadevrel

  • How to close the detach popup on click of a button in the panel collection

    Hi,
    I'm using Jdeveloper 11.1.2.3.0.
    I have an af table surrounded by panel collection. There is a button on panel collection to commit the changes in the table.
    Clicked detach button to view the table in full browser.
    On click of Commit button, the detach popup is not closed. I have set partialSubmit of that button to false. Then also detach popup is not closed.
    Can anybody suggest me how to close the detach popup on click of a button in the toolbar.
    Thanks,
    Vinod

    Hi Frank,
    Thanks for your response. Popup is not closed.
    I tried this approach, when the view tree is navigated on the Detach, I see that the tree is same as if it is traversed on the page without detach.
    Printed client id and UI component class in the while loop, result is as below.
    r1:0:pc1:t3 class oracle.adf.view.rich.component.rich.layout.RichToolbar
    r1:0:pc1 class oracle.adf.view.rich.component.rich.output.RichPanelCollection
    r1:0:ph2 class oracle.adf.view.rich.component.rich.layout.RichPanelHeader
    r1:0:pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
    r1 class oracle.adf.view.rich.component.rich.fragment.RichRegion
    pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
    db2 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
    db1 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
    psl1 class oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout
    ps1 class oracle.adf.view.rich.component.rich.layout.RichPanelSplitter
    f1 class oracle.adf.view.rich.component.rich.RichForm
    Tried with setting partialsubmit property to false on the command button, still the popup is not closed and my Faces Message are shown behind the detach popup.
    Thanks,
    Vinod

Maybe you are looking for

  • Error while executing WAD report

    Hi Gurus,   While executing the wad report in the web getting an error, can u brief me, and provide me any step by step procedure for WAD template creation Reference to data provider "%NM%" is invalid In the Web Application Designer, create a data pr

  • I have a problem regarding sales order line item with confimed quanity

    Hi Experts, I have a problem regarding sales order line item with confimed quanity with '0'  with delivery block but confirming the sales order quantity once the order is released from credit check. The situation arises as per the below scenarios. Sc

  • HT201210 recovery mode loop

    My iphone 4s is in recovery mode since I tried to updated it  to the new version of ios.Any help please .Everytime that I restart the phone keeps in recovery mode and when I connect it to the computer and Itunes try to updated it,and  after extract t

  • Problem with fax t38 protocol

    hi i have an mpls nework with equipment cisco 2821, 2901 and 2801, and i have problems with fax calls, i configured the fax protocol t38 in all routers but when i want to send a fax to the 2821 equipment from either 2801 and 2901, the protocol t38 is

  • Error due MSVCR80.dll when trying to install Wirel...

    Hi, A search of Nokia discussion threads and elsewhere on the web shows that a range of problems are being caused by MSVCR80.dll but there appear to be no definitive solutions. I have a Nokia6120Classic. When I run the CD and select to install the Ph