Call javascript funtion after posting the data

Hi...
I have to show confirmation message in client side using JavaScript after I am getting the value from server side when I submit the page.
please help me for getting the solution for this problem...
I am going to create new active credit card data to a particular member, so while saving new credit card, I have to check whether this person already having the credit card or not in the server side, if he have then we have to show pop up message in client side for replacing the existing one?

Mahantesh wrote:
After getting confirmation message i need to call different action in jsf if data exist. if I press ok button it has to perform again action for deactivating the existing active card and putting new card in request tableYou can simulate a normal click on a button and invoke it's action method on the server. Place an unvisible button on the page and let the script call the click() method.
document.getElementById('myUnvisibleOkButton').click();You can avoid all the Javascript the following ways:
Use a panel with two ordinary buttons "Yes", "No" and manipulate it's rendered attribute.
variant 1
Let the panel cover all controls using CSS. We have successfully tried this approach:
                       <ui:panelLayout binding="#{personal$Mitarbeiterauswahl.layoutPanelConfirm}" id="layoutPanelConfirm" panelLayout="flow" style="height: 700px; left: 0px; top: 24px; position: absolute; width: 100%">
                            <h:panelGrid binding="#{personal$Mitarbeiterauswahl.gridPanelConfirm}" columns="1" id="gridPanelConfirm" style="margin-left:auto; margin-right:auto; margin-top:300px; background-color:#FF3333;">
                                <ui:staticText binding="#{personal$Mitarbeiterauswahl.staticTextConfirm}" id="staticTextConfirm" text="#{msg.global_loeschen}"/>
                                <ui:panelLayout binding="#{personal$Mitarbeiterauswahl.layoutPanelConfirmButtons}" id="layoutPanelConfirmButtons" panelLayout="flow">
                                    <ui:button action="#{personal$Mitarbeiterauswahl.buttonConfirmYes_action}"
                                        binding="#{personal$Mitarbeiterauswahl.buttonConfirmYes}" id="buttonConfirmYes" text="#{akt.button_ja}"/>
                                    <ui:button action="#{personal$Mitarbeiterauswahl.buttonConfirmNo_action}"
                                        binding="#{personal$Mitarbeiterauswahl.buttonConfirmNo}" id="buttonConfirmNo" text="#{akt.button_nein}"/>
                                </ui:panelLayout>
                            </h:panelGrid>
                        </ui:panelLayout>variant 2
"Disable" all other controls on the page. In general we are using this approach.

Similar Messages

  • Making a javascript jump menu post the parameter value to a jsp

    I have got a HTML page with a javascript jump menu on it which is intended to post the user selected parameter to a jsp. However I do not know how to get the jump menu to post the data in the same way that it is done with a submit button. I don't want to use a submit button, hence the jump menu. Does anyone have an example that they can let me use.
    function jumpPage(form) {
    i = form.SelectMenu.selectedIndex;
    if (i == 0) return;
    window.location.href = url[i+1];
    document.writeln('<FORM><SELECT NAME="SelectMenu" onChange="jumpPage(this.form)">');
    This bit of Javascript just opens the selected window but submits no data to it.
    Any help is greatly appreciated.

    In order to get your data passed through to your second page via parameters, you must do one of two things.
    1) Actually submit the document. Since you don't want a submit button, you can accomplish this with document.form.submit(). However, you must specify a URL in the "action" attribute of your form tag.
    2) Construct the URL with the parameters listed in it. (ie. myJSP.jps?user=foo&password=bar ). This is not too bad if you've only got a few parameters... rather tedious for more than a few.
    What situation are you in where there are multiple parameters to pass with a Quick Jump setup? Usually, all you need to do is determine which page they need to head to, and simply forward. If there are other fields in your form, an automatically forwarding Quick Jump is potentially problematic, since they could select that field before filling out other necessary fields... just something to think about.

  • Call javascript function after submit process

    Hi,
    How can I call javascript function after my submit process ?
    Thanks.

    Hi Carl,
    You say that I must have an Item or region that contains my js with conditionnal display. With this method I can execute my js with specific request value.
    My problem is that I tried to integrate the "save large value workaround" in my application with the APEX wysiwyg (fckeditor). To do that I have to call the javascript function clob_submit on the save button. This function save the value of my field but if I want to save other item value, how can I do that ?
    If I use your method, I will submit the page, save the other field and after that, I will branch on the same page. At this moment, I will execute my javascript file.
    Is it what did you said ?
    Sylvain Michaud
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

  • In va02 tocde after entering the data only storage location field is not saving.why?

    Hai
    in va02 tcode after entering the data only storage location field is not saving. why?

    Hi Purnaiah,
    Are you using any user exit for this or not?
    Check for the below exit, this may be the place where you can implement your code for saving the value.
    SAP MV45AFZZ calling the user exit with a form USEREXIT_SAVE_DOCUMENT
    Regards,
    Rafi

  • I need to add the doc no once after posted the manual bank reconc statmt.

    once after posting the manual bank recon statement in ff67 i have to see the statement with that ref.doc no, for this what i have to do in ff67. In ff67 proceeding to next while entering the amount i gave doc no but system showing only amount, there is no doc no,what i have to do?

    i got the doc no detail but while i am doing ff67 i am giving the amt, doc no, value date and transaction everything but system picking according to the amount not document no. For example vendor payment Rs:5000 doc no 50 in bank statement also same, this one if i am uploading in ff67, after posting i am going and checking in fbl3n instead of clearing the doc no 50, system clearing the open which one is first in a list the amount Rs:5000 . System posting according to the amount not to the doc no, can any one tell me to rectify this one.
    Edited by: MANISFICO1 on Jul 26, 2011 8:30 AM

  • How to post the data to a new window and control the new window's property?

    When we submit the form data to another page, we usually do the following:
    <form action="display.jsp" method="post"> will submit the form data and open
    display.jsp in the current browser
    <form action="display.jsp" method="post" target="_blank"> will submit the form data
    and open display.jsp in a new browser
    Now, what I want is to open display.jsp in a new browser, but control the window's size,
    and disable the status bar, title bar, and address bar of a new browser.
    If I do this, it can only open a html page, but not post the data to display.jsp.
    window.open('display.jsp', "newWin", "scrollbars=0,menubar=0,toolbar=0,location=0,status=0");
    any ideas? thanks!!

    <html>
    <head>
    </head>
    <script language="JavaScript">
        function doSubmit() {
           displayWindow = window.open('', "newWin", "scrollbars=0,menubar=0,toolbar=0,location=0,status=0");
           document.submitForm.submit();
    </script>
    <body>
    <form name="submitForm" action="display.jsp" method="post" target="newWin">
      <input type="text" name="param1"><br>
      <INPUT TYPE="button" NAME="button" Value="Click" onClick="doSubmit()">
    </form>
    </body>
    </html>

  • HT4623 I have an IPhone4 and is updated with version 6.1.3 and I am not able to connect with face time calls. I have checked the date ant time. I used to be able to use face time with no problem. since the late os upgrace I have not been able to connect w

    I have an IPhone4 and is updated with version 6.1.3 and I am not able to connect with face time calls. I have checked the date ant time. I used to be able to use face time with no problem. Since the late os upgrace I have not been able to connect with face time.

    Read http://support.apple.com/kb/ts3367

  • Are there any standard Idocs or Bapis for posting the data into transaction

    Hi,
    Are there any standard Idocs or Bapis for posting the data into transactions ME42N and IK11?
    Thank You.

    Thank you.
    Any idea of the other one?

  • After adjusting  the date to 2011, the date changes to 1609!!  And goes back in time each time I try it.

    After adjusting the date to 2011, iphoto changes it to 1780 and when I try again it goes back farther and farther..it is now 1609!

    Try going forward in small increments - 30 years or so
    LN

  • Table Maintenance Events - "Event 02 After Saving the Data in the Database"

    Hi,
    Can we identify the record marked for deletion in the "Event 02 After Saving the Data in the Database" ?
    Thanks & Regards,
    Esha Raj

    Look at online documentation :
    - [Event 02: After Saving the Data in the Database|https://help.sap.com/saphelp_nw04/helpdata/en/77/06b11859f511d2a6070000e82deaaa/frameset.htm]
    . - [Internal Table TOTAL|https://help.sap.com/saphelp_nw04/helpdata/en/77/06b11859f511d2a6070000e82deaaa/frameset.htm]
    . . - [Field Symbols <ACTION> and <ACTION_TEXT>|https://help.sap.com/saphelp_nw04/helpdata/en/77/06b11859f511d2a6070000e82deaaa/frameset.htm]
    . . . - [Constants for Field Symbols <ACTION>, <ACTION_TEXT>, <XACT> and <XACT_TEXT>|https://help.sap.com/saphelp_nw04/helpdata/en/77/06b11859f511d2a6070000e82deaaa/frameset.htm]
    Regards,
    Raymond

  • Outbound function module to post the data in to WMMBID02 IDOC

    Hi Experts,
    I am using standerd idoc WMMB1D02 to post the goods recipt data.
    I am using the outbound idoc , how to post the data in to idoc using FM or BAPI ?.
    please help me on this.
    Thanks,
    Venkat.

    Hi Hakim ,
    Thanks for tour replay , we are using the standerd message type and standerd idoc are WMMBXY,
    WMMBID02. I did't notice any standerd  FM or BAPI which will create the outbound idoc for the same.
    please help me on this.
    Thanks,
    Venkat.

  • With out inbound Idoc can we post the data using we19

    Hi,
            with out inbound idoc can we post the data using we 19.........
    for testing any idoc type particular to inbound FM is posting application data..in TABLES.....
    Regards,
    Raghunadh.

    HI Raghunadh Babu 
    The main purpose of given WE19 Transaction by SAP... To generate test IDoc and check whether the data is posting according to business requirement....
    Answer for your question.....Yes U can generate IDoc...
    Enjoy playing with we19...
    RR

  • IDOC:Master Data Records are not going to be updated after posting the IDOC

    I need to create employee Master data records in R/3 .I am using the IDOC HRMD_A07, though the IDOC posting is successful no tables, corresponding to employee master Data are getting  updated,
    Can anybody plz Let me know the possible reasons and solutions for this?
    Thanks in Advance,
    Sandhya

    hi i hecked the job log entries in SM37 in source system, the idocs were returned with '0' records. i took the Idoc number and checked in BD87 it displays some logs in that one node shows the red status with the detail as follow  IDoc entries in tRFC queue      3383
    the next one is green                Data passed to port OK                    1
    i selected the red staus node and clicked 'process'  button but it displays as
    The operation cannot be carried out with this node type
    wht should i do now, wht may be the reason for the datasource not pulling the data from R/3 to BI?

  • Calling a package function in the data template

    Hello All,
    I am not able to understand the concept of calling a function from the data template.
    In my data template, I put the sql statement as
    <sqlStatement name="Q_SEL">
    <![CDATA[  Select l_period_name PERIOD_NAME
                             from xla_tb_ap_report_pvt.get_period_name(1) ]]>
    </sqlStatement>
    Is it possible to call a specific package function as shown above in a select statement?
    I am getting the message "ORA-00933: SQL command not properly ended" when I tried with the above. Could you pls. point out what the error is in the above sqlStatement?
    1) My instance is R12.1.3
    2) The base pkg function 'xla_tb_ap_report_pvt.get_period_name' expects a number to be passed in as 'IN' parameter.
    Thanks,
    Monkey

    I tried another version of the sql statement (after going through some older posts) like:
    <sqlStatement name="Q_SEL">
    <![CDATA[  Select xla_tb_ap_report_pvt.get_period_name(1) PERIOD_NAME
                            from  dual]]>
    </sqlStatement>
    My group is :
    <group name="G_PERIOD_NAME" source="Q_SEL">
    <element name="PERIOD_NAME" value="PERIOD_NAME"/>
    </group>
    Now getting the error message:
    ORA-00904: xla_tb_ap_report_pvt.get_period_name : invaild identifier
    What is it that i am doing wrong?
    Thanks,
    Monkey
    Edited by: OAF_Monkey on Mar 26, 2012 11:52 AM

  • Error in Posting the data from  SAP ABAP Progra,

    Hi,
    I am sending sap data from ABAP Program,
    I called RFC in the Function Module and given the RFC Destination,
    While I am Executing it is going to short Dump.
    Data is not posting.
    Points will be awarded.
    Regards,
    Jayasimha.

    Dear jaya,
    execute FM once without RFC destination.
    now collect the data in intermediate variable.
    now execute FM with RFC destaination passing collected data as input.
    second RFC is genrally treated as dummy which is used only  for sending data to XI,it doesnt do any "function" as such.
    this should solve your problem gurnteed.
    if you still find short dump please paste your abap code,ll get back to you.
    reason for short dump:
    record set is high and executing module at remote system at a stretch  doesn't work sometimes.
    Thanks & Regards,
    Rama Krishna

Maybe you are looking for

  • Highlight current row on Interactive Report

    What is the best way to highlight (or identify) the current row in an Interactive Report? I've created an interactive report, based on a custom SQL query, with a link (on the primary key (id)) to give the user the possibility to select a certain reco

  • BT drop line socket. No! I do not have an NTe5 soc...

    Hi, the drop line enters my house (built 1977) and connects to a simple oval junction box with four screw connections for incoming and outgoing wires. As I am getting very erratic (not erotic) broadband speeds varying from 150kbps to the best 3.9meg

  • @count for first names beginning with "

    I was trying to come up with a formula for counting club members and partners by using an "&" in front of the first name of partners. I could not find a conditional function whereby I could count the names that begin with the "&". I used trial and er

  • Please help me out with embedding!

    HI CAN ANYBODY HELP ME OUT. OUR TEAM IS WORKING ON A SITE N I HAVE JUST CREATE A ANIMATION IN FLASH CS3 BUT WHEN I MAKE .SWF FIE IT WILL NOT SHOW UP ON WINDOWS I THINK WE NEED TO EMBEDD FONTS. PLEASE HELP ME OUT ASAP.

  • Show/ Hide Tables in SSRS based on Multiple Parameters

    Hi Is it possible to show/ hide multiple different tables based on a multivalued parameter?  I have 6 tables and I want 1 or 6 displayed dependent on what is selected from the multivalued parameter. When I add the IN operator and select multivalues,