Making the button disabled in the pop up window

Hi experts,
I have created a pop up with button type as buttons_yesno. The pop automatically creates two buttons YES and NO
The pop up window contains two fields - Manufacturer and Description as input fields.
The requirement i need is -> till the user enters the data into both the input field i wanted the yes button to be disabled.
i have done the below code for the pop up to appear.
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            = 'YWD_CREATE_MANF'
                 title                  =
                  close_in_any_case      = abap_false
                   message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                 close_button           = abap_true
                   button_kind            = if_wd_window=>co_buttons_yesno
                   message_type           = if_wd_window=>co_msg_type_none
                  default_button         = if_wd_window=>co_button_ok
lo_window->open( ).
is there any option to make the button disabled initially and then enable it when the user enters both the input field.
Regards,
Vinod

Hi,
When ever you create the popup, store the window reference globally.
Use the method - SET_BUTTON_ENABLED of if_wd_window based on the input field values.
Use the GET_ATTRIBUTE for that input field get the value into lv_value,
if lv_value eq initial.
lo_window->set_button_enabled
exporting
button = button id
is_enabled = abap_false.
else.
lo_window->set_button_enabled
exporting
button = button id
is_enabled = abap_true.
endif.
Edited by: Lekha on Oct 14, 2009 6:25 PM

Similar Messages

  • Where can I find the button to permit a pop-up (I have Yosemite)

    Where can I find the button to permit a pop-up (I have Yosemite)

    launch your safari browser, then, on the top left corner of your desk top, enter into Safari browser preferences, then click on the security tab after your Safari preference pane pops up. once you click on Security, you'll see 5 boxes. the fourth one down will be the block pop up windows. unclick that puppy, and you'll be allowing pop ups. hope this helps.

  • HT4623 My husband just did the update for his iPhone 4, his phone is frozen with the iTunes page and a usb cable across the homescreen. He's tried holding down all the buttons all at the same time. can't shut it off. popped out the sim card, won't charge

    We just did the iPhone update ios 6. The screen is frozen with the iTunes logo and a picture of a USB cale across the screen. none of the buttons respond.The phone does not recognize the apple USB when connected. We tried holding all the buttons down at the same time and also removed the SIM card and reinserted.

    If it's not being recognized while it's in recovery mode in your itunes, try this
    plug the phone into the usb attached to the computer
    hold down the home and sleep/wake button on top simultaneously until the phone's screen goes black
    When the screen goes black, release your finger from the sleep/week button on top but continue holding the home button until you see a dialog on the itunes screen on your computer that says 'itunes has detected a device in recovery mode'
    then say 'ok,' select 'restore,' and say 'restore and update'

  • HT5312 I am trying to reset my security questions, I cannot locate the option for a rescue email address with My Apple Id. When I click on the button to reset the security questions, it states it is sending an email to the primay email address, but it doe

    I am trying to reset the Security Questions as I have forgotten them, when I have logged into My Apple Id, and click on the button to reset the Security Questions, it states it is sending an email to the Primary Email address. I do not have the option to input a Rescue Email address, the only option I have is to input an Alternate Email address, which I have done so.
    Also when I have tried to book an appointment throuth Online Support, I have not successful, I have rung a telephone number provided by the Mac Store in Perth, Australia and the reply provided is that we are closed. I was given to understand that Apple provided 24/7 Support to their users.

    Hot N Spicy wrote:
    I am trying to reset the Security Questions as I have forgotten them,
    Forgotten Security Questions / Answers...
    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
    Or Email Here  >  Apple  Support  iTunes Store  Contact
    More Info >  Apple ID: All about Apple ID security questions
    Note:
    You can only set up and/or change a Rescue Email Before you forget the questions/answers

  • How do I reinstate the information bar that shows the prevention of opening a pop-up window?

    After Firefox opened the information bar telling me they blocked a pop-up window I inadvertently clicked the option link and deleted the information bar from coming up again.
    How do I reinstate the information bar that shows the prevention of opening a pop-up window?
    == This happened ==
    Just once or twice
    == I clicked the option link and selected the "do not show this again" option

    I set browser.popups.showPopupBlocker to false, and information bar still appears.
    When I also set privacy.popups.showBrowserMessage to false, it doesn't appear.
    To test, whether the information bar appears, I use
    [http://www.popuptest.com/popuptest3.html]
    So, set to true preferences
    privacy.popups.showBrowserMessage
    and
    browser.popups.showPopupBlocker
    Both of them!!!
    Does it help you?

  • How do I enable the button to use the tree list in excel? (Enable the list type: Tree enabled in Office 2013 - VSTF 2013)

    Hi, I was looking to see if anyone knows how I can troubleshoot my connection problem with TFS view in excel. I'm trying to  produce a tree view in Office 2013 as described in the following KB -
    https://msdn.microsoft.com/en-us/library/dd286627.aspx
    I have followed the instructions on the KB all the way up to : 'Add backlog items and tasks and their parent-child links using a tree list' and at this point I can't seem to get it to work as the button is greyed out.
    Note that I have completed steps 1-6 for the previous procedure... all 6 steps work just fine. However on step 2 of the second procedure - the instructions state I should be able to 'Add Tree Level' - However the button is greyed out.
    Anyone know what I need to do to enable the button to use the tree list in excel? 
    Frank

    Frank,
    I believe your issue is that you have opened a Flat query and are trying to add tree levels. A flat query is just that and you cannot change the query type from Excel.
    The second process is managing a backlog (which is a tree). TFS web access has a link on the backlog view to create a query. That query will be a "tree of work items" query that returns the items in the backlog including their parent-child relationships.
    This type of query supports the Add Tree Level and Add Child functionality as does a new Input List (not bound to an existing query).
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Why the buttons created by Acrobat XI in window do not work in android mobile or ipod touch?

    Why the buttons created by Acrobat XI in window do not work in android mobile or ipod touch?

    Hi,
    Could you please send us a test file which has those form buttons? Please email that file to us at DL-adobereader-android <[email protected]>
    Thanks,
    - Reader Mobile team

  • G4 power mac PCI, cuda / pmu button (s),&#160; what is the button next to the cuda / pmu button for ??

    In this photo from Apple on resetting the "cuda" or "pmu", there is the proper button circled for the reset. My question maybe silly, but WHAT is the button just to the right of it for ??   .....  It must be important enough to HAVE a BUTTON ??  ..... shown in this photo.
    OK, here it is, just outside the red circle, to the right.  It must be Important enough to HAVE a BUTTON, yet I have not seen , or heard of it being mentioned anywhere ???   .....   I have this very machine and I am expierencing some problems with it, and I find myself so tempted and wanting to push it !!, ... But not knowing what it's for has the wheels inside my head spinning (like mad).  ....  It and other things maybe driving me crazy (ier) !!
    ANYONE KNOW WHAT IT'S FOR ?????  .............  Thank You, and Have a Nice Day !!,  wayne146

    japamac, thanks for the fast reply,
    I have done the cuda reset with some success, still not working correctly though, machine only responds to power button on the front, not to the k/b button, (it did before) even used another k/b, both known to be good. Since this problem started, cuda reset has been done a few times, with some time intervals between them, battery tested, new battery, etc., etc.
    On my screen here, near the top, is a column titled, "more like this", in it is a "green checked" answer that reads; After resetting cuda / pmu, doesn't power up, 400mhz imac (<not my machine, I know) what next" answered by "Spudnuty", IN his reply's he mentions a list called "Symptoms / Cures Tables", related to pmu / cuda problems as I read it. Yet I have not found any such list by doing searches varying how I word it.
    Would You know of this list ?, or if it is still available ? ..... I had no luck looking for it, ..... wayne146 ....    

  • Cannot select a music into slideshow and book slideshow presentations. In the older Mac this was easy. With new Mac OS X 10.6.8 it should work as I can stop the slideshow with cursor but pop up window for choosing music is dead. I cannot drag music into i

    Cannot select a music into slideshow and book slideshow presentations. In the older Mac this was easy. With new Mac OS X 10.6.8 it should work as I can stop the slideshow with cursor but pop up window for choosing music is dead. I cannot drag music into it. Preselected music just goes on.

    I am talking about iPhoto. In my old Mac even in Books choosing slideshow gives a pop up where you can select a music from I tunes library. In this new one I can stop the slideshow with cursor and it shows music option but it is, as I said dead. Does not response at all to commands.

  • Hello, I want to make DPS magazin for IOS and Android with a lot of text footnotes. There is about 200 footnotes per article. The idea is to make pop-up windows like in EPUB 3.0. Please help.

    Hello, I want to make DPS magazin for IOS and Android with a lot of text footnotes. There is about 200 footnotes per article. The idea is to make pop-up windows like in EPUB 3.0. Please help., Hello, I want to make DPS magazin for IOS and Android with a lot of text footnotes. There is about 200 footnotes per article. The idea is to make pop-up windows like in EPUB 3.0. Please help.

    Remember you can only build an iPad app using your Single Edition solution (which is included in your CC membership). So you'd need a Pro or Enterprise version of DPS to be able to create the Android version.
    You can create pop-ups in InDesign using the slideshow options and a multi-state object. But it's all manual labour so you'll spend a lot of time on this, also depending on the layout of your design.

  • Can I change the Caption (name) of the button Go for the dashboard prompt

    Hi,
    Can I change the Caption (name) of the button Go for the dashboard prompt
    I need to change the name of the button to Set Prompt Values.
    i did not see an option to do this
    Thanks

    Hello Yusuf,
    First follow the forum Etiquette, see this http://forums.oracle.com/forums/ann.jspa?annID=939
    You have to close the answered threads...
    And regarding your question
    Go to *{OracleBIDir}:\oraclebi\web\msgdb\l_en\messages*
    Open globalfiltermessages.xml file.
    Find this text
    <WebMessage name="kmsgGFPGo"><TEXT>Go</TEXT></WebMessage>Now edit the Go which is there between the TEXT tags..
    Ex: i am editing Go to Confirm
    <WebMessage name="kmsgGFPGo"><TEXT>Confirm</TEXT></WebMessage>Save this file and just restart your presentation service.
    Check your dashboard prompt now...
    (Editing this post from here)
    As per your requirement edit should be:
    <WebMessage name="kmsgGFPGo"><TEXT>Set Prompt Values</TEXT></WebMessage>Edited by: Kishore Guggilla on Jul 18, 2009 2:45 AM

  • Can user select the download directory in a pop-up window ?

    HI frndz,
    My question is simple .
    Is there any method or function which makes user select the download directory in a pop-up window ?
    Thank you

    HI,
    check the following program
    report Z_TEST2.
    DATA: filename_str        TYPE string,
            window_title_str    TYPE string.
    PARAMETERS: a(30) default 'PRESS F4'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR a.
      window_title_str = 'Select directory'.
      CALL METHOD cl_gui_frontend_services=>directory_browse
          EXPORTING
             window_title    = window_title_str
          CHANGING
             selected_folder = filename_str
          EXCEPTIONS
             cntl_error = 1.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      CALL METHOD cl_gui_cfw=>flush
           EXCEPTIONS
              cntl_system_error = 1
              cntl_error        = 2.
      IF sy-subrc <> 0.
      ENDIF.
      a = filename_str.

  • The buttons in main the vi get locked after opening a vi reference in a subpanel and using buttons within the subpanel.

    I am trying to open a reference to a vi in the subpanel of the main vi. However after the vi opens in the subpanel and after pressing a few buttons in the subpanel the buttons in the main vi get locked, i.e. I can't even close the main vi or control anything else. Is there any way how I can avoid this happening?

    > The buttons in main the vi get locked after opening a vi reference in
    > a subpanel and using buttons within the subpanel.
    >
    > I am trying to open a reference to a vi in the subpanel of the main
    > vi. However after the vi opens in the subpanel and after pressing a
    > few buttons in the subpanel the buttons in the main vi get locked,
    > i.e. I can't even close the main vi or control anything else. Is there
    > any way how I can avoid this happening?
    This is most likely happening because in either the top or sub panel,
    there is an event structure that is queuing events, and is set to lock
    the panel until the events are handled, and because of the logic in the
    diagram, the events aren't being pulled from the queue.
    So, you have a deadlock. You are waiting
    on the panel. The panel is
    waiting on the diagram. And the diagram is waiting on something else.
    So, if there are indeed event structures involved, determine where in
    the diagram things are delaying. Also, if you do not need the panel to
    lock until the event is handled, you can change the setting in the
    events dialog on the structure. But the events will still be queued
    until the diagram starts executing.
    Greg McKaskle

  • When I click on the button to download the new IOS software, I get a message saying that all the items on my iTouch will be removed.  Will I have to reload everything after updating the software?

    When I click on the button to download the new IOS software, I get a message saying that all the items on my iTouch will be removed.  Will I have to reload everything after updating the software?  Because I had to have my hard drive wiped a while back, I have items on my iTouch that are not in my iTunes.  Is there a way to copy everything on the iTouch into iTunes, if necessary, before I load the new software?

    It is possible to transfer purchases from your iPod back into iTunes before updating the OS. If you had any CDs from your personal collection, these you have to put back into iTunes manually. Hope this helps you & good luck!

  • It seems that there is an inaccuracy in flash games.  It is very difficult to hit the button especially if the button is small. How can I fix that problem ?

    It seems that there is an inaccuracy in flash games.
    it is very difficult to hit the button especially if the button is small.
    E.g. in Battle Pirate, it is difficult to switch screenview( zoom out - zoom in )
    Seen in many games, so I assume it has something to do with the flash player.
    Been looking in settings, but can't find  anything concerning mouse settings.
    How can I fix that problem ?

    You will just have to use other apps for Arabic.  You can ask Apple to fix this via
    http://www.apple.com/feedback/
    I think Apple's iBookstore does not yet really support Arabic books.

Maybe you are looking for