How to show old value in webui when user press NO button on popup button.

Hi Experts,
As per requirement I have created custom field with dropbox and with popup box to cofirm user decision if value from field changes.
Now on Popup when user press Yes then its Ok as no need to change the current value in the field.
but when user press the NO button I want to display the old value on Web UI so now I am able to catch the old value and pass it into the field at backend but I am not able to make the change on the web page.
Please reply if anyone have solution for it.
BR
Gaurav    

Hi Gaurav,
First of all when all this is happening in UI why you need to pass the selected value to backend. I didnt get this.
I believe, this is only ui related and the old value which you got can be set in the IMPL class global variable and  trigger method set_on_close_event, say here 'CONFIRM_POPUP_CLOSED' as shown below:
  gr_popup->set_on_close_event( iv_event_name = 'CONFIRM_POPUP_CLOSED'
                                    iv_view = me ).
Retrive the answer as per selection from popup in method 'CONFIRM_POPUP_CLOSED'
by using:
  lv_answer = gr_popup->get_fired_outbound_plug( ).
if lv_answer is NO, then put back the globally stored old value back to dropdown attribute, using:
set_property_by_value method(   iv_attr_name = 'dropdown attr' iv_value = 'old value' )
Thats it. No need to do anything.
Regards,
Bhushan

Similar Messages

  • Apply my own formula when user presses sum button in a report

    Hi all,
    I have this requirement that when user presses SUM button for a particular field in a report instead of Summing it up and displaying I can apply my own formula and display its value. 
    For Ex :  When we press sum button for field efficiency :
    EFFICIENCY
    10
    11
    05
    26 - It would sum it up and display 26 , where as i don't want it to display 26 i want to apply a separate formula and display that value

    Suggest to add another custom button to the ALV toolbar and write the desired logic you want.
    Also to avoid confusion, disable the standard summation button. (you can add the same icon for the custom button if you wish)
    Thanks,

  • At selection-screen when user presses back button

    Experts,
    I have two radio buttons and two relative checkboxes ( one checkbox related to other ).
    Now when user selects one radio button and executes teh program, there is a summary page. When user presses back button from there, I return to the selection screen, however the selections are still there.
    Ideally I want a blank screen, as in nothing selected( similar screen when program is executed first ). Is it possible ?
    Kindly advise,
    Gols

    Hi,
    Try clearing radio buttons and check boxes at PBO of selection screen using AT SELECTION-SCREEN OUTPUT statement.
    PARAMETERS:
      p_rad1 TYPE c RADIOBUTTON GROUP rd1,
      p_rad2 TYPE c RADIOBUTTON GROUP rd1.
    PARAMETERS:
      p_chk1 TYPE c AS CHECKBOX,
      p_chk2 TYPE c AS CHECKBOX.
    AT SELECTION-SCREEN OUTPUT.
      CLEAR: p_rad1, p_rad2, p_chk1, p_chk2.
    Hope this helps.
    Regards,
    txhughes

  • How do I capture selected record ID when I pressed the Button

    Hi
    I have a repdort with below query.
    select
    empno, ename, job, sal,
    '<input type="button" value="Employee" />' "Select"
    from emp
    This query gives each row a button. When I press a button of a particular row I wanted to capture that row empno field value. How can I do this?
    Regards
    kiran Akkiraju

    If you are trying to make the button do a submit to this page or another page to see employee detail, you are probably better off creating a link on you column in the "Report Attributes" section that will make the column a hyperlink (text or image, you can pick) (see How can i make a linking column in a report it has a link to a how-to from Oracle and some HTML formatting hints to make the link more informative with ALT text)
    Here is one way to capture the selected employee number. Hopwever, it will not submit the form though. You can put the value of empno into another field using javascript. The Pxxx_destination_field is the name of the field on the page you want to push the empno into.
    select
    empno, ename, job, sal,
    '<input type="button" onclick="javascript:html_GetElement(''Pxxx_destination_field'').value = ' || empno || ';" value="Employee" />' "Select"
    from emp

  • Triggering POPUP to SAVE when user Presses BACK  Button

    h4.
    Hi Friends,
    h4.
    When the User Presses BACK Button in the PF Status, it should trigger POPUP_TO_CONFIRM  whether to SAVE or not.
    h4.
    Suppose if the user doesn't change any thing in the Screen, it should not ask the User.
    h4.
    How can i know whether the user changes something in the Screen.
    h4.
    Screen mean Table Control..
    h4.
    How can i track this.
    h4.
    Regards:.
    h4.
    Sridhar.J

    Hi Sridhar,
    Within the table control loop, create a chain of all the fields in the structure of line type. call a PAI module with addition ON CHAIN-REQUEST. This is a conditional module call which will be triggered ONLY when user changes something on the screen. In this module you can set a global variable DATA_CHANGED to say 'X'. When user chooses BACK function, check this global variable to decide on the confirmation popup.
    One small caution. If you have the ROW SELECTION field also included in the line type of your internal table associated with the table control, you need to exclude that from the CHAIN of fields above; otherwise even when user selects a line or de-selects, this module will be triggered.
    Read ON CHAIN-REQUEST and ON REQUEST online ABAP help for more clarity.
    Regards
    Suresh
    Edited by: Suresh Radhakrishnan on Sep 28, 2009 4:29 PM

  • Preventing app exiting when user presses cross button

    Hello,
    I can't seem to prevent the whole application closing down when the user presses the cross button at the top of any of the forms. For example I have a menu form which I want to keep running whilst the user closes other forms which are shown from it.
    Any suggestions?
    Thankyou,
    Karsten

    I could be wrong, but I thought that the default
    behavior of a JDialog is to not close the whole app
    when it closes. Is that not correct?You are correct, sir. The only way an application closes is by explicitly telling it to do so by EXIT_ON_CLOSE.

  • How to show a value in column when condition is true?

    Assume I have the following simplified SELECT statement:
    SELECT a, b, ???
    FROM tab;
    In the third column a value of "yes" should appear when the following condition is true:
    tab.c = tab.d
    Otherwise the value should be "no" (or even blank).
    How can I achieve this?
    The solution should be more general for situation if many tabs are involved,....
    Peter

    How can I achieve this?
    The solution should be more general for situation if many tabs are involved,....So do you expect a generalized SQL statement that handles are arbitrary number of tables with arbitrary column names?
    It would be helpful if you provided DDL (CREATE TABLE ...) for tables involved.
    It would be helpful if you provided DML (INSERT INTO ...) for test data.
    It would be helpful if you provided expected/desired results & a detailed explanation how & why the test data gets transformed or organized.

  • Flatten or Lock a fillable pdf when user presses submit button

    Hi.  I've been searching all over the net trying to figure this out.  I have a form that I created in LiveCycle and in the form I inserted a "REGULAR" button, with the following script:
    //Create a variable to hold the document object
    var 
    oDoc = event.target;oDoc.mailDoc({
    bUI
    : true,
    cTo
    : "[email protected]",
    cSubject
    : "New Procedure - Operator "+TextField1.rawValue+" - ID "+TextField2.rawValue,
    cMsg
    : "Attached is the New Procedure form for Operator "+TextField1.rawValue+" - ID "+TextField2.rawValue+".",
    This script is emailing to "[email protected]" and populating the subject line and body of the message with some text and some items from fields in the PDF.
    I want to have the PDF locked or flattened when the user hits the submit button, to ensure that the information put in the PDF isn't altered after they submit it.  I cannot find any way of doing this easily.  I found a script that will flatten the message (below), but I don't know how to add it to the email script I have noted above.  I don't want to add a second button to the form as I want to keep it as simple as possible for the user.
    Any suggestions someone might have would be greatly appreciated.  Thank you.
    Ryan

    The link at the bottom of the blog post takes you to Acrobat.com where you can download the file.
    Just tested it, the lin k is working fine for me.

  • How to Show total value in the header 2nd page but based on 1st page footer

    How to show total value in header in report builder but i have the total have related with the total in footer.
    Example
    ===============================================
    Page 1
    Empno Ename Sal
    1 Scott 1000
    2 ALlen 2000
    3 Susi 1000
    Total Sal Page 1: 4000
    ===============================================
    Page 2
    Total Sal Page 1: 4000 --> How to get it?????
    Empno Ename Sal
    4 Budi 1000
    5 Roger 200
    6 George 2000
    Total Sal Page 2: 3200
    Please Help..
    Thanks

    hmm .. what i would do is
    - create a placeholder column
    - create a field in the header and one in the footer
    - have the footer field reference the summary column
    - have the header field reference the placeholder column
    - create a fromat trigger on the footer field to
    store the value of the footer into the placeholder column
    so when the report is executed and the footer field is formatted, the format trigger stores the current value of the summary in the placeholder. then the pagebreak occures and the header field is formatted .. printing the value.
    there might actually be an easier way, just reference the two fields to the same summary column and in theory, since there is nothing happening between the time when the footer is formatted and the header is formatted, the values should be the same .. however this is a theory and i have not actually tested this. since reports does all kinds of fancy optimization this might have unexpected results, but it's worth a try.
    thanks,
    ph.

  • I changed e-mail address but i-phone still shows old e-mail address when I try to download a new app.

    I changed my e-mail address, but my I-phone still shows old e-mail address when I try to download an app and says my password is incorrect. How do I update my I-phone to my new apple id?

    on your phone go to settings - app store - apple id - sign out - then sign in with your new email address.

  • How to show "ALL" Values by default in Page Drop-Down Lists in Pivot Tables

    Hi Everyone,
    Iam stuck with 1 problem please can any 1 help me if u know the solution.
    Here is my problem:
    How to show "ALL" Values by default in Page Drop-Down Lists in Oracle BI Pivot Tables?
    For example, if you place Region in the pages area, a Region drop-down list allows the user to select a particular region, and see the data for only that region, rather than seeing all the Regions,But by default its not showing "ALL" option in the drop down list ,rather than doing that its showing result for only 1 region by default.
    And an other problem with this pages area is, if we palce the multiple attributes in the Pages area in the pivot table, the (Fields)result is showing in vertically, the attributes 1 by 1(Every attribute in a new line) ,rather than showing like that, is there any way to show the results in horizantally?(We want to have it as a seperate drop drown list for every field horizantally not as a concatenated list).

    Thanks Nikhil. But I am fetching the values from the LOVCache.java.
    I am using <af:selectManyChoice>. Is there any way I can use LOVCache.java value for selecting default values instead of hard coding?
    I mean to say can I write
    unselectedLabel="#{LOVCache.entityTypeSelectionList.anyValue}"
    where LOVCache.entityTypeSelectionList is used to populate the drop down box.
    Regards,
    Aseet

  • How to show 1 value in chart

    Hi there! just want to ask how to show the value 1 in chart?
    Thank you in advance!
    Best Regards,
    Jef

    Hi jefnavarro,
    According to your description, you hope the value 1 to be displayed in series. If so, please refer to the following steps to set minimum value of Horizontal Axis to zero:
    Right click anywhere of Horizontal Axis on the chart and open Horizontal Axis Properties dialog box.
    In Axis Options pane, in Axis range and interval section, click the expression (fx) button next to Minimum.
    In the expression text box, type =0, then click OK.
    The following screenshots are for your reference:
    If you have any questions, please feel free to let me know.
    Best Regards,
    Wendy Fu
    Hi there and good day to you! 
    First of all thank you for the clear steps that you share but I don't know why still won't come..
    maybe because my horizontal axis is starting from 1 as you can see on the lower part of my screenshot.. how can i set this to 0?
    thank you again.
    edited:
    just want to add that my data is only counting on data in Values [Count(Name)] in chart data maybe that's why i don't have 0 value?

  • How to pass the value to "Assignment" when submit the program RFITEMGL?

    Hello friends,
    I want to submit program RFITEMGL  (t-code FBL3N) with some screen fields, some fields are OK to fill such as u201COpen at key dateu201D, u201CG/L accountu201D and u201CCompany codeu201D。 But for the field "Assignment" (It will appear after cilck Dynamic Selection), I don't know how to pass value to it.
    Could you help me about how to pass the value to "Assignment" when submit the program RFITEMGL  (t-code FBL3N) ?
    Thanks a lot!

    Hi,
    Well you can create a small BDC.
    Regards,
    Harsh Bansal

  • Photoshop Elements 8, How to show  hue, value and saturation of a specific area of a pickture?

    Hello,
    Photoshop Elements 8, How to show  hue, value and saturation of a specific area of a picture?
    How should I select the area? Which tool?
    Thank you in advance, Karl

    First make sure your Info Palette is visible : menu Window / Info (shortcut F8)
    In this palette, click the small     icon 'more'
    Choose 'Palette Options'
    and choose HSB for the second palette readout.

  • How to open new window when i press submit button/submit button.

    Hi,
    When i press a button, I need to capture an item value in current from and I need to pass that value to another form. The child form should open in the new form.
    For that Iam using the java script, But when i use the java script my page is not able to re-size, scroll bars address bar and menu bars are missing. if any one did this kind of requirment please share with me how to solve this issue.
    Thanks

    Re: How to show Popup window in OAF on click of a button
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

Maybe you are looking for

  • Outlook 2010 corrupting incoming pdf attachments for one user

    I have one user here that is having incoming pdf attachments get corrupted in Outlook 2010. When she tries to open the file, it gives the error "Adobe Reader could not open filename.pdf because it is either not a supported file type or because the fi

  • Why can I only charge from mains ? .

    Why can I only charge from mains ? . If I charge via cigarette lighter it says not compatable and trickle charges . Tried two sources of USB ends and cables . Is there a software glitch ?

  • Oracle 10 isqlplussvc fails to start

    I am working on building a new ECC 6 EHP4 system on Windows Server 2008 64 bit. I am installing Oracle 10.2.0.4.0 and at the end of the installation I receive the following error: "Failed to start the service, Error: 0, the operation completed succes

  • I have purchased 20 gb space in icloud yesterday but still space is not showing

    Yesterday i have purchased 20 GB space in incloud to update ios 8 but still space is not showing while money deducted from my credit card

  • CONVT_NO_NUMBER

    Good Mornning, i'm facing a problem this morning, when i try to execute the Tcode DB12, i get this error page: What happened? The current ABAP/4 program "SAPLSDBO " had to be terminated because one of the statements could not be executed. This is pro