Simple Javascript date() function not executing.

If I open the javascript input window from a button and enter a simple js date function:
vDate = new Date();
alert(vDate();
This code executes flawlessly when the button is clicked.
However,  if I place the exact same code in the Execute Advacned Actions javascript window "on enter frame" Action, the alert popup code not exdecute/appear, it will fail silently.
I'm simple trying to get a javascript funtion to execute on... the On Enter Action.
Any suggestions?
Thanks

Hello,
I just tried the scenario and I can see that JS code is executing properly. I used the same JS as you have given (just corrected the syntax in the second line). So, I create an Advanced action that has this JS, and I assigned that to "On Slide Enter" action of the slide. Other thing that I did is that I chose "current" as the window in the Execute Javascript options.
Ashish

Similar Messages

  • Javascript Date() function not working

    Hi,
    I'm experiencing some problems with the Date() function in javascript. The problem is that the function doesn't seem to work. For example when I do "var date = new Date(); xfa.host.messageBox(date);" in the enter event of a date field, I get "Date is not a function" error message in de javascript debugger.
    Is there anyone out there who knows how why the Date function is not working in LiveCycle Designer. Am I using the Date function in an improper way or maybe I am using the wrong function?
    Please can anyone help me out?

    Hi Paul,
    Thanx for you reply. It worked fine.
    I also found out that following works as well:
    var MyDate = util.scand("dd-mm-yyyy",new Date());
    console.println("this date: "+util.printd("dd-mm-yyyy", MyDate));

  • CRM Javascript Date Functions

    Hi all,
      I have a Javascript Date object with the datetime translated from UTC to the current user timestamp, but I need to obtain the day of the week of this datetime according to this timestamp, not according to the local time from the machine and not according
    to UTC. Can anyone help me?
    Thanks,
    David N.

    function checkEstimatedCloseDate() {
    var date = Xrm.Page.getAttribute("estimatedclosedate").getValue();
    if (date != null) {
    var today = new Date();
    var currentDate = today.getDate().toString() + "/" + (today.getMonth() + 1).toString() + "/" + today.getFullYear().toString();
    var dateWithNoTime = new Date(today.getFullYear(), today.getMonth() + 1, today.getDate());
    if (Xrm.Page.getAttribute("estimatedclosedate").getValue() < dateWithNoTime) {
    alert("Estimated Close Date Cannot Before " + currentDate);
    Xrm.Page.getAttribute("estimatedclosedate").setValue(null);
    event.returnValue = false;
    Regards Faisal

  • Javascript sort() function not working correctly

    I have an image gallery that automatically loads via a PHP readdir function which populates an array, and then I have a Javascript sort() function which sorts the images in order numerically. In Chrome and Safari, the images display as numbered in the directory. However, in Firefox and Internet Explorer, they display out of order (firefox) and not at all (ie). Here is the code for the php file: <?
    Header("content-type: application/x-javascript");
    function returnimages($dirname=".") {
    $pattern="(\.jpg$)|(\.png$)|(\.jpeg$)|(\.gif$)";
    $files = array();
    $curimage=0;
    if($handle = opendir($dirname)) {
    while(false !== ($file = readdir($handle))){
    $file = basename($file,".jpg");
    echo 'myImg['.$curimage.']="'.$file .'";';
    $curimage++;
    closedir($handle);
    return($files);
    echo 'var myImg=new Array();';
    returnimages()
    ?>
    and here is the code for the javascript sort:
    function sortNumber(a,b)
    return a - b;
    myImg.sort(sortNumber);
    // Tell browser the type of file
    myImgEnd = ".jpg";
    var i = 0;
    // Create function to load image
    function loadImg(){
    document.imgSrc.src = myImg[i] + myImgEnd;
    Any ideas as to why Firefox is behaving this way?

    After you check the box to sort on the column, are you making sure to select a sort order for the same column?
    Earl

  • Trunc date function not working correctly

    Hi,
    Another quick question if people don't mind. Bit confused about the trunc date function. I'm following the sql fundamentals exam guide and using their examples:
    select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy hh24:mi')) day from dual;
    this returns the 2nd of june, as it should, because, as far as i'm aware, leaving the optional variable out defaults the precision to 'day'. but when i explicitly add the variable 'day', as the guide has done with 'week' 'month' and 'year' in the following examples (so i assume this format is correct rather than dd/mon/yyyy), something goes wrong:
    select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy' hh24:mi'), 'day') day from dual;
    this returns the 31st of may. which is incorrect.
    however replacing 'day' with 'dd' provides the correct answer of the 2nd again.
    this isn't a major issue, it just bothers me that the guide seems (again) to be mistaken, something that is rapidly becoming a trend in their examples. i'd also quite like to know why this is happening, as it will help improve my understanding of sql in general - perhaps there is some sort of default to allow the correct use of the variable 'day' i'm overlooking and that the guide hasn't made clear.
    btw, i'm working in sqlplus - although developer has some odd results too.
    thanks alot,
    nick

    967660 wrote:
    Hi,
    Another quick question if people don't mind. Bit confused about the trunc date function. I'm following the sql fundamentals exam guide and using their examples:
    select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy hh24:mi')) day from dual;
    this returns the 2nd of june, as it should, because, as far as i'm aware, leaving the optional variable out defaults the precision to 'day'. but when i explicitly add the variable 'day', as the guide has done with 'week' 'month' and 'year' in the following examples (so i assume this format is correct rather than dd/mon/yyyy), something goes wrong:
    select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy' hh24:mi'), 'day') day from dual;
    this returns the 31st of may. which is incorrect.
    however replacing 'day' with 'dd' provides the correct answer of the 2nd again.
    this isn't a major issue, it just bothers me that the guide seems (again) to be mistaken, something that is rapidly becoming a trend in their examples. i'd also quite like to know why this is happening, as it will help improve my understanding of sql in general - perhaps there is some sort of default to allow the correct use of the variable 'day' i'm overlooking and that the guide hasn't made clear.
    btw, i'm working in sqlplus - although developer has some odd results too.
    thanks alot,
    nick'day' doesn't trunc to the beginning of the day. It truncates to the first day of the week: in your case 31st May.
    'ddd' truncates to the beginning of the day.
    So, leaving the second parameter out defaults to 'ddd' not 'day'.

  • Standard XSLT 2.0 date functions not working in PI 7.11

    What do I need to include to use the standard XSLT 2.0 functions - such as format-date,  Current-date() ?
    The code below works correctly in XMLSpy... but when I import the XSL as an Imported Archive in PI - it fails with...
    Method fatalError called, terminate transformation, because of
    javax.xml.transform.TransformerException: com.sap.engine.lib.xsl.xpath.XPathException: Function with name 'current-date' not found in context library. at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:250)
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:attribute name="today">
       <xsl:value-of select="format-date(current-date(),'[Y0001][M01][D01]')"/>
    </xsl:attribute>

    Hi,
    Try to use SAP XML ttol kit option in Operation mapping and let us know the result.
    Regards,
    Raj

  • Function not executing in oracle 10g

    Hi ALL,
    I have a problem executing below Function in oracle 10g.
    Pls do help me solve the prblm it wud be a great help.
    Thanks in advance.
    Here is a below function and the error i am getting:
    create or replace FUNCTION UnpackArray
    Source IN VARCHAR2 DEFAULT NULL,
    Delimiter IN CHAR DEFAULT ','
    RETURN reSourceArray0 PIPELINED
    IS
    SourceArray00 SourceArray0:=SourceArray0(NULL);
    TYPE REFCURSOR IS REF CURSOR;
    CURSOR0 REFCURSOR;
    DelLen int;
    Pos int;
    Cnt int;
    str int;
    LEN int;
    Holder VARCHAR2(220);
    BEGIN
    --Check for NULL
    IF Source is null or Delimiter is null THEN
    Return;
    END IF;
    --Check for at leat one entry
    IF RTRIM(LTRIM(Source)) = '' THEN
    Return;
    END IF;
    /*Get the length of the delimeter*/
    SELECT LENGTH(RTRIM(Delimiter)) INTO DelLen FROM DUAL;
    SELECT INSTR(UPPER(Source), UPPER(Delimiter)) INTO Pos FROM DUAL;
    --Only one entry was found
    IF Pos = 0 THEN
    BEGIN
    INSERT INTO UnpackArray_TBL
    ( Data )
    VALUES ( Source );
    return;
    OPEN CURSOR0 FOR SELECT * FROM UnpackArray_TBL;
    END;
    END IF;
    /*More than one entry was found - loop to get all of them*/
    SELECT 1 INTO str FROM DUAL;
    << LABEL4 >>
    WHILE Pos > 0
    LOOP
    BEGIN
    /*Set current entry*/
    SELECT Pos - str INTO len FROM DUAL;
    SELECT SUBSTR(Source, str, len) INTO Holder FROM DUAL;
    /* Update array and counter*/
    /* Update array and counter*/
    INSERT INTO UnpackArray_TBL
    VALUES ( Holder );
    /*Set the new strting position*/
    SELECT Pos + DelLen INTO str FROM DUAL;
    SELECT INSTR(UPPER(Source), UPPER(Delimiter), str) INTO Pos FROM DUAL;
    OPEN CURSOR0 FOR SELECT * FROM UnpackArray_TBL;
    END;
    END LOOP;
    /*Set last entry*/
    SELECT SUBSTR(Source, str, length(RTRIM(Source))) INTO Holder FROM DUAL;
    -- Update array and counter if necessary
    IF length(RTRIM(Holder)) > 0 THEN
    INSERT INTO UnpackArray_TBL
    VALUES ( Holder );
    OPEN CURSOR0 FOR SELECT * FROM UnpackArray_TBL;
    END IF;
    --Return the number of entries found
    Return; LOOP
    FETCH CURSOR0 INTO
    SourceArray00.Data;
    EXIT WHEN CURSOR0%NOTFOUND;
    PIPE ROW(SourceArray00);
    END LOOP;
    CLOSE CURSOR0;
    RETURN;
    END;
    Error is : Compilation failed,line 6 (12:13:25)
    PLS-00201: identifier 'RESOURCEARRAY0' must be declared
    Compilation failed,line 0 (12:13:25)
    PL/SQL: Compilation unit analysis terminated

    user11917384 wrote:
    Error is : Compilation failed,line 6 (12:13:25)
    PLS-00201: identifier 'RESOURCEARRAY0' must be declared
    Compilation failed,line 0 (12:13:25)
    PL/SQL: Compilation unit analysis terminatedHave you created a sql user defined type with name RESOURCEARRAY0...??
    Ravi Kumar

  • Date Function not working properly

    Dear Gurus,
    I have a plan app and the pertinent essbase cube, I need to retrieve the no. of days for the curr month/year combination.
    On version 11.1.1.3 I used something like : @TODATE("dd-mm-yyyy",@CONCATENATE("01-01-",@NAME(@ALIAS(@CURRMBR("year"))))) / 86400;
    and it worked fine.
    When I moved the formula on the 11.1.2 version I get an error " invalid argument in function @_TODATE".
    I know that essbase was never really good with dates.
    Any help I appreciate.
    yannis

    Hi Yannis,
    1. I see no reason for it not to work on 11.1.2, when it had run flawlessly on 11.1.1.3.
    2. Looking at the tech reference of @TODATE, nothing seems to have changed , there is only one difference.which is the latest data supported by the function in 11.1.2 is 12-31-2037,while its 01-01-2038 in version 11.1.1.3.
    3. Sounds silly, but try to validate the formula which was resulting in errors in 11.1.2 , on 11.1.1.3 once.
    Sandeep Reddy Enti
    HCC
    http://hyperionconsultancy.com/

  • To date function not working

    Hi,
    I have been searching for hours to solve this problem.
    I can´t convert a date to only year, month or day etc...
    select sysdate, TO_DATE(sysdate,'YYYY') from dual
    ORA-01830: date format picture ends before converting entire input string
    01830. 00000 - "date format picture ends before converting entire input string"
    select sysdate, TO_DATE(sysdate,'MM') from dual
    ORA-01843: not a valid month
    01843. 00000 - "not a valid month"
    select sysdate, TO_DATE(sysdate,'DD') from dual
    ORA-01830: date format picture ends before converting entire input string
    01830. 00000 - "date format picture ends before converting entire input string"
    Please, if this is not the right category to post in just address me to the right one.
    Thanks,

    user12981132 wrote:
    Many thanks to all,
    Indeed in worked on the sysdate. But I still have a similar problem. I wanted to provide an example you could reproduce on your own, that´s why I used the sysdate from dual. But my main problem is that I have a VARCHAR2(8 BYTE) data type for a date, when a try to format it to a date it returns the same error:
    Ok, so because your real data is a varchar instead of a DATE, your example with sysdate was nothing like reality.
    select fealta from david.socipart
    returns for example: 19140731So it looks like your varchar data that represents a date is in the format yyyymmdd.
    >
    when I want to change it to date and get year, month, day as before it doesn´t work. And in this case I am not trying to convert the same data type:
    select to_date(fealta,'yyyy') from david.socipartAnd here you try to convert your varchar to a DATE, but you are telling to_date to interpret the character string as if it were simply YYYY, which of course ends before the actual data ends .....
    ORA-01830: date format picture ends before converting entire input string
    01830. 00000 - "date format picture ends before converting entire input string"
    ... resulting in an error message that tells you that.
    select to_date(fealta,'rrrr') from david.socipart
    ORA-01830: date format picture ends before converting entire input string
    01830. 00000 - "date format picture ends before converting entire input string"
    select to_date(fealta,'mm') from david.socipart
    ORA-01843: not a valid month
    01843. 00000 - "not a valid month"
    select to_date(fealta,'dd') from david.socipart
    ORA-01830: date format picture ends before converting entire input string
    01830. 00000 - "date format picture ends before converting entire input string"
    But when I do this it works fine:
    select to_date(fealta,'yyyymmdd') from david.socipart
    1914/07/31
    So, finally you gave to_date the correct description of your character string. And when you did, oracle then had to follow up with an implied use of to_char to convert the DATE back to a character string for presentation in the output. It used the controlling setting of NLS_DATE_FORMAT to do so.
    * I did a alter session to change the date format to yyyy/mm/ddYour fundamental error is not understanding the difference between a DATE and a character string (VARCHAR2) the represents a DATE.
    And from that misunderstanding comes a misunderstanding of the use and purpose of the to_date and to_char functions, as well as the horrible design error of using a VARCHAR column to try to store a DATE.
    see: [url http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/] But I want to store my date as ...
    Edited by: EdStevens on May 14, 2013 10:15 AM

  • Format Date function not working correctly

    Hi,
    I am using the following code to display a system date:
    <?xdofx:sysdate('DD-Month-YYYY')?>
    However the date always appears as:
    18-March -2011 (with space after 'March')
    rather than
    18-March-2011 (no space after the month)
    Can anyone tell me how to get the date to display without the space after the month?
    Thanks

    Some options:
    http://winrichman.blogspot.com/2008/08/xslt-extended-functions.html (right side screen shot)
    BI Publisher:formating date using xdofx
    Modify the output from current_date

  • Date function not returning any rows

    I am trying to pull back rows for data of people who were born in the 90s
         a.birthday >= to_date('01/01/90','dd/mm/yy')
         and     
              a.birthday <= to_date('31/12/90','dd/mm/yy')
    I know that there is definately users born in the 90s in my database but it returns 0 rows with the above ouptut Date format is like "05-FEB-93", have tried using dd/mon/yy but that gives an error

    user8652681 wrote:
    I am trying to pull back rows for data of people who were born in the 90s
         a.birthday >= to_date('01/01/90','dd/mm/yy')
         and     
              a.birthday <= to_date('31/12/90','dd/mm/yy')
    I know that there is definately users born in the 90s in my database but it returns 0 rows with the above ouptut Date format is like "05-FEB-93", have tried using dd/mon/yy but that gives an errorFirst off to_date('01/01/90','dd/mm/yy') is Jan 1, 2090. You need to use a four digit year.
    Secondly a.birthday >= to_date('01/01/1990','dd/mm/yyyy') and a.birthday <= to_date('31/12/1990','dd/mm/yyyy')
    is not everyone born in the 90's, it's everyone born in 1990. If you want everyone born in the 90's you need:
    a.birthday between to_date('01/01/1990','dd/mm/yyyy') and to_date('31/12/1999 23:59:59','dd/mm/yyyy hh24:mi:ss')I realize your birthdays are most likely trunc'ed so the time portion probably isn't necessary but I included it just to be safe.
    Edited by: kendenny on Jul 22, 2009 6:13 AM

  • Data is not showing from tables

    Hi,
    I have drag some tables in report but data is not executed from the tables.
    Regards,
    Chetan

    Hi Chetan,
    Please provide more info.
    1) What database are you connected to?
    2) What is the version of CR with Patch Level
    3) Does the query generated by CR work when run on the database server directly?
    4) If this an SAP datasource, have you imported the right transports on the SAP Server and does the user running the report have enough Authorizations?
    -Abhilash

  • JSF 2.0 beta2 - JavaScript not execute in ajaxreponse +  Parameters: Invali

    Hi,
    I'm testing JSF2.0 beta2.
    I found the following problems:
    1) The JavaScript is not executed in the ajaxresponse.
    I solved it by adding the following JavaScript code to my xhtml file:
              function executeScripts(data) {
                  if (data.status == "success") {
                        var rXML = data.responseXML;
                        //alert(data.responseText);
                        document.getElementById("log").value = data.responseText;
                        if(i++ %2 == 0)alert(data.responseText);
                        var updates = rXML.getElementsByTagName("update");
                        for (var u = 0; u<updates.length; u++) {
                             var update = updates[u];
                             var children = update.childNodes;
                             for(var i=0; i<children.length; i++) {
                                  var child = children;
                                  if(child.nodeType == 4) { // CDATA
                                       var tmp = document.createElement("span");
                                       tmp.innerHTML = child.nodeValue;                              
                                       var scripts = tmp.getElementsByTagName("script");
                                       for(var s=0; s<scripts.length; s++) {
                                            eval(scripts[s].innerHTML);
         window.onload = function init(){
              jsf.ajax.addOnEvent(executeScripts);
    2de problem:
    When I add extra params to the jsf.ajax.request function i got a warning in my tomcat6 console:jsf.ajax.request(document.getElementById("f:surname"), null,{execute:'@this',render:'@this',frmAjaxSuggestExecuteAjax:'true'});
    Warning:
    26-jul-2009 23:08:48 org.apache.tomcat.util.http.Parameters processParameters
    WARNING: Parameters: Invalid chunk ignored.
    I only has this warning on adding extra params.
    I know this error from the past.
    Then it was caused by using wrong syntax for the request parameters. example:
    http://myhost/mypage&paramA=1&paramB=2 (note there is no ?)
    http://myhost/mypage?paramA&paramB=2 (note there is value for paramA)
    3de problem
    It's more a question than a problem.
    The following javascript is added to my xhtml code:
    <script type="text/javascript" src="/xhtml/javax.faces.resource/jsf-uncompressed.js?ln=javax.faces"></script>
    I don't have any idea how this javascript cames into my sourcecode.
    I did not add it as resouce to my component@ResourceDependencies({
         //@ResourceDependency(name="ajax.js",library="javax.faces",target="head"),
    Regards,
    Pieter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I'm testing JSF2.0 beta2.
    I found the following problems:
    1) The JavaScript is not executed in the ajaxresponse.
    I solved it by adding the following JavaScript code to my xhtml file:
              function executeScripts(data) {
                  if (data.status == "success") {
                        var rXML = data.responseXML;
                        //alert(data.responseText);
                        document.getElementById("log").value = data.responseText;
                        if(i++ %2 == 0)alert(data.responseText);
                        var updates = rXML.getElementsByTagName("update");
                        for (var u = 0; u<updates.length; u++) {
                             var update = updates[u];
                             var children = update.childNodes;
                             for(var i=0; i<children.length; i++) {
                                  var child = children;
                                  if(child.nodeType == 4) { // CDATA
                                       var tmp = document.createElement("span");
                                       tmp.innerHTML = child.nodeValue;                              
                                       var scripts = tmp.getElementsByTagName("script");
                                       for(var s=0; s<scripts.length; s++) {
                                            eval(scripts[s].innerHTML);
         window.onload = function init(){
              jsf.ajax.addOnEvent(executeScripts);
    2de problem:
    When I add extra params to the jsf.ajax.request function i got a warning in my tomcat6 console:jsf.ajax.request(document.getElementById("f:surname"), null,{execute:'@this',render:'@this',frmAjaxSuggestExecuteAjax:'true'});
    Warning:
    26-jul-2009 23:08:48 org.apache.tomcat.util.http.Parameters processParameters
    WARNING: Parameters: Invalid chunk ignored.
    I only has this warning on adding extra params.
    I know this error from the past.
    Then it was caused by using wrong syntax for the request parameters. example:
    http://myhost/mypage&paramA=1&paramB=2 (note there is no ?)
    http://myhost/mypage?paramA&paramB=2 (note there is value for paramA)
    3de problem
    It's more a question than a problem.
    The following javascript is added to my xhtml code:
    <script type="text/javascript" src="/xhtml/javax.faces.resource/jsf-uncompressed.js?ln=javax.faces"></script>
    I don't have any idea how this javascript cames into my sourcecode.
    I did not add it as resouce to my component@ResourceDependencies({
         //@ResourceDependency(name="ajax.js",library="javax.faces",target="head"),
    Regards,
    Pieter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Simple Javascript to set date

    Hello,
    My simple JavaScript to set the date runs in Acrobat Pro but when I open the same document in reader it set the date but it fails with a dialog pop out of getField error... here is the script followed by the error...
    function populate_date()
    var f = this.getField("ToDay_Date");
    if (!f.value) f.value = util.printd ("m/d/yyyy", new Date());
    populate_date(); // call my function
    Above scripts run when document is opened... In Pro it is stored under Tools/JavaScripts/Document JavaScript...
    When I open it in Reader then I get the following while it set the date on the date filed too!
    Acrobat EScript Built-in Functions Version 11.0
    Acrobat SOAP 11.0
    TypeError: this.getField is not a function
    2:Folder-Level:App:Search Script.js
    What am I not setting right that I get this error...
    Regards,
    Jeff P.

    Hi,
    No it did not do and did not help still same error came out... Let me ask you this... this is a combination of 6 pages of 5-6 forms that this field of "ToDay_Date" is repeated at least 4 times on 4 pages of this combined form and it really populates all the repeated "Today_Date" on all pages in PDF Pro and  Reader but while it does not pop up the error dialog on PDF Pro and runs with no problem but in Reader it pup up the error dialog even after populating all the repeated fields!  Could it be because field has been repeated?  How come it runs and populates all the fields but also gives the error?  I think it is a bug in Reader... don't you think so?
    Regards,
    Jeff P.

  • Delete command are not executed in function of Java Bean

    Hello Sir,
    In Java bean have a function submitData.I want in this function run delete command through PreparedStatement..But Its not executed.
    Please review..
    public void submitData()
         try
    System.out.println("Printed*************************************************************");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Loading....");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
    System.out.println("Connection created");
    PreparedStatement st=con.prepareStatement("delete  from simple where NAME='?' and BNAME='?' ");
    String User=getUserName();
    st.setString(1,User);
    String Bname=getBookName();
    st.setString(2,Bname);
    int y= st.executeUpdate();
    System.out.println(y);
    System.out.println("Query Executed");
    con.commit();
    con.close();
    System.out.println("Your Book are Submitted *****************");
    catch(Exception e)
    e.printStackTrace();
    }Thanks.

    Dear Sir,
    I removed the singleaquotes from preparedstatement.But Its not executed in this function.Like:
    public void submitData()
         try
    System.out.println("Printed*************************************************************");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Loading....");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
    System.out.println("Connection created");
    PreparedStatement st=con.prepareStatement("delete  from simple where NAME=? and BNAME=? ");
    String User=getUserName();
    st.setString(1,User);
    String Bname=getBookName();
    st.setString(2,Bname);
    int y= st.executeUpdate();
    System.out.println(y);
    System.out.println("Query Executed");
    con.commit();
    con.close();
    System.out.println("Your Book are Submitted *****************");
    catch(Exception e)
    e.printStackTrace();
    }Allthough Insert command is properly executed in another function of Java Bean.
    Please review...
    Thanks.

Maybe you are looking for

  • Print a web-report to a local printer

    Dear All I have a form(10g) with a report object that its destination type is 'PRINTER'. This form is run from application server (Form services 10g).The report is now sent to printer that set on AppServer machine. But I want to have it on local prin

  • Error while deploying the Adapter Module

    Expets, i am getting below error in communication channel: Message processing failed. Cause: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during lookup operation of object with name localejbs/WriteExcelFile, cannot re

  • Is there a way to send a group text message to more than 10 recepients?

    Is it possible to send a group text message to more than 10 recipients? I called AT&T tech support and they said the phone's software limits group messages to no more than 10.

  • How to Show Day and Date

    In the upper right of the display screen, it shows "Wed 8:13 AM EDT." How can I get it to add the date also so I don't have to click on it to see the date? Thanks.

  • Setting up personal domains

    How do I add a personal domain name that I bought from GoDaddy to my mobileme account to use with iWeb?