HELP! ISSUE UPDATING DATABASE RECORDS

Hi All
Thank you for looking at my post.
I have a form which interacts with a SQL database.
The process starts with one member of the team partially completing the form and submitting this.
xfa.sourceSet.DataConnection.addnew(); on form initiaise function
then
xfa.sourceSet.DataConnection.update(); on the submit button.
This process works great.
The next member of the team then gets the information by entering the requirement in two textboxes.
var nIndex = 0;
while(xfa.sourceSet.nodes.item(nIndex).name != "DataConnection")
nIndex++;
var oDB = xfa.sourceSet.nodes.item(nIndex).clone(1);
oDB.nodes.item(1).query.setAttribute("text", "commandType");
oDB.nodes.item(1).query.select.nodes.item(0).value = "Select * from repairform where (A4 = '" + TextField11.rawValue + "') & (A5 = '" + TextField12.rawValue + "')";
oDB.open();
oDB.close();
This then populates the form with the record relating to the search term including the partially completed information from the previous team member.
The user then poplulates the rest of the form and suibmits
xfa.sourceSet.DataConnection.update();
This is where is fall down....
On the final submission the form seems to update first record in the database not the one that is currently showing.
I am relatively new to this so it may be me doing something stupid.
Please help.

Hi Paul
Sorry, I now understand the global sripting
My only issue now is updating the record.
I can get the form to grab the information using the global variable
I am just not sure how to update the record as xfa.sourceSet.DataConnection.update(); does not work (well it still updates the first record).
Do I still have to close the oDB from the first call to grab the specific record and then re-open odb when I want to update or leave it open the whole time?
Do I have to create an SQL command (such as the select command given when searching for a record) to update the records manually?
e.g. UPDATE formname SET etc etc
as this would be a long process with 122 data fields.
any thoughts to finish this process off would be greatly appreciated.

Similar Messages

  • Update database record from email link or attachment ?

    Hello,
    Is there any way to send email from application with a link to update database record (like oracle workflow in selfservice).
    This is applied for approval process.
    Rather than the approval will log onto the application, he will click on the attachment or link then the update statement will fire.
    Is it  possible?

    You didn't add a forms version, so this is hard to guess. If you are on 10g and higher then you are using Oracle Application Server; in the installation there is the mod_plsql apache module included as well:
    http://docs.oracle.com/cd/B14099_19/web.1012/b14010/concept.htm
    so you could simply call a stored procedure via a HTTP request which updates your record. If you are on a lower version of forms you could make use of the free mod_owa module which you could configure with a plain apache installation on e.g. your database server: https://oss.oracle.com/projects/mod_owa/dist/documentation/modowa.htm
    you should implement some sort of authentication as well; both mod_owa and mod_plsql also have the facility to do so via +owa_custom+
    OWA_CUSTOM
    (see the OwaAuth directive in mod_owa for example).
    Of course you could do the very same via a custom Java Servlet; however you'd have to implement the database connection pool, the call of your stored procedure, the authentication e.g. as well which you would get for free with the apache modules.
    cheers

  • Update database records

    Hello,
    I am in the process of updating 100,000 records using Oracle 9i. Currently I am reading all records from the database using .NET, read the CLOB(which contains XML file) field and find and replace the text and updating each one. At the end I committed a transaction. But it's displaying rollback errors. Could you please help with this problem? Thanks..

    Exact error please. Error number plus text.
    From the sounds of it, your database's rollback area is too small. This is at times the case as some see this area as an "additional overhead" to Oracle and size it incorrectly. Rollbacks are a critical component of Oracle - not an overhead. And thus needs to be sized correctly.
    It also needs to be used correctly - for example committing after each row (and not at the end of the business transaction) can generate a lot more redo.
    But we need the actual error number.

  • Need help in updating database table from screen fields

    Hi,
    Can anyone tell me how to update the database table with the entries given in the fields of a screen ?...a procedure-wise explanation would be very helpful.
    Thank you.
    Moderator message: sorry, no beginner forums here, please search for available information or attend training.
    locked by: Thomas Zloch on Aug 12, 2010 3:16 PM

    Hi,
    Can anyone tell me how to update the database table with the entries given in the fields of a screen ?...a procedure-wise explanation would be very helpful.
    Thank you.
    Moderator message: sorry, no beginner forums here, please search for available information or attend training.
    locked by: Thomas Zloch on Aug 12, 2010 3:16 PM

  • Problem in update database record with torque

    Can anybody correct my mistake. please........
    Torque.init("E:/Upendra_working_directory/msh2.0/Torque.properties");
    System.out.println("State:     " + Torque.isInit());
    System.out.println("Connection Sucessfully........");
    Criteria crit = new Criteria();
    crit.add(AttachmentPeer.DISPOSITION, "buildfail09.xml");//selecting particular record
    List attachment = AttachmentPeer.doSelect(crit);
    System.out.println(attachment.size());
    Attachment obj = (Attachment)attachment.get(0);
    System.out.println("Attachment Location:     "+ obj.getAttachmentName());
    System.out.println("Attachment MessageID     "+ obj.getMessageId());
    obj.setAttachmentName("sssss"); //setting new value
    AttachmentPeer.doUpdate(obj); //update
    obj.save();
    System.out.println(Attachment Location:     (afterupdate)"+ obj.getAttachmentName());
    console print updated value.but if i check the table in database, it is not updated.
    Thanks in advance

    For anyone referencing this... I had missed adding the field to the MapBuilder so I can definitely suggest that you check the field is present everywhere it should be as no errors will be found if its only looking for the first 4 fields but you want 5 fields to be updated!!

  • Help with Update if record exists else insert record  "upsert"

    Hi Friends,
    i have this table:
    CREATE
      TABLE TB_GEN_COMPANY
        "ID_COMPANY"   NUMBER NOT NULL ENABLE,
        "COD_CODIGO"    VARCHAR2(10 BYTE) NOT NULL ENABLE,
        "DES_NAME"    VARCHAR2(64 BYTE) NOT NULL ENABLE,
        "DES_DIRECTION" VARCHAR2(128 BYTE) NOT NULL ENABLE,
        "COD_RUC"       CHAR(11 BYTE) NOT NULL ENABLE,
        "FLG_EST"    CHAR(1 BYTE) NOT NULL ENABLE,
        "COD_USR_CR"  VARCHAR2(16 BYTE) NOT NULL ENABLE,
        "FCH_FEC_CR" TIMESTAMP (6) NOT NULL ENABLE,
        "COD_USR_MOD" VARCHAR2(16 BYTE) NOT NULL ENABLE,
        "FCH_FEC_MOD" TIMESTAMP (6) NOT NULL ENABLE,
        CONSTRAINT "TB_GEN_COMPANIA_ESTADO_CHK" CHECK (FLG_ESTADO IN ('A', 'I'))
        CONSTRAINT "TB_GEN_COMPANIA_PK" PRIMARY KEY ("ID_COMPANIA")
      )I want to validate the code (cod_codigo). if the record exists, i will have to update with the news inputs parameters, otherwise it should create a new one i mean, an Insert.
    Thanks for t he help.
    Sorry for bad engl.

    i have this:
    DECLARE
        strCod_Compania  VARCHAR2(10):='123';
        strdes_Nombre  VARCHAR2(64):='compname';
        strdes_Direccion  VARCHAR2(128):='calle las 123 santa beatriz';
        strCod_CompaniaRuc  VARCHAR2(11):='12345678911';
    BEGIN
    MERGE INTO TB_GEN_COMPANIA e
    USING
    TB_GEN_COMPANIA d
    ON (e.cod_codigo=strCod_Compania)
    WHEN MATCHED THEN
      UPDATE
      SET e.DES_NOMBRE=strdes_Nombre,
          e.DES_DIRECCION=strdes_Direccion,
          e.COD_RUC=strCod_CompaniaRuc,
          e.FLG_ESTADO='A'
    WHEN NOT MATCHED THEN
    INSERT (COD_CODIGO,
            DES_NOMBRE,
            DES_DIRECCION,
            COD_RUC,
            FLG_ESTADO,
            COD_USR_CREA,
            FCH_FEC_CREA,
            COD_USR_MOD,
            FCH_FEC_MOD)
    VALUES
            (strCod_Compania,
            strdes_Nombre,
            strdes_Direccion,
            strCod_CompaniaRuc,
            'A',
            'rmolina',
            SYSDATE(),
            'rmolina2',
            SYSDATE());
    END;
    /this is my table:
    CREATE TABLE "TB_GEN_COMPANIA"
       (     "COD_CODIGO" VARCHAR2(10 BYTE),
         "DES_NOMBRE" VARCHAR2(64 BYTE),
         "DES_DIRECCION" VARCHAR2(128 BYTE),
         "COD_RUC" CHAR(11 BYTE),
         "FLG_ESTADO" CHAR(1 BYTE),
         "COD_USR_CREA" VARCHAR2(16 BYTE),
         "FCH_FEC_CREA" TIMESTAMP (6),
         "COD_USR_MOD" VARCHAR2(16 BYTE),
         "FCH_FEC_MOD" TIMESTAMP (6)
       )OK, when i execute the first query, 4 records are inserted in my table, and i don't know why,
    any idea to solve this please?
    Thanks

  • I want to update multiple record in database which is based on condition

    hi all,
    I am using Jdev 11.1.2.1.0
    I have one table named(Pay_apply_det) in this table i want to update one column named(Hierarchy) every time and according to change i want to update or i want to maintain my log table named(pay_apply_appr).It based on level wise approval when the lowest person approve the record show on next level but if the second
    level person back it will be show only previous level hierarchy.And when the final approval happen the Posting_tag column of pay_apply_det will be updated too with hierarchy column.
    i have drag pay_apply_det's data control as a table in my .jsf page and add one column approve status in UI .in the approve status i used radio group which return A for approve B for back R for reject through value binding i make it get or set method in it baking bean.
    in backing bean class i have written code
        public void approveMethod(ActionEvent actionEvent) {
            ViewObject v9=new UtilClass().getView("PayApplyDetView1Iterator");
            int h5=0;
            Row rw9= v9.getCurrentRow();
            String x=(String) rw9.getAttribute("RemarkNew1");
            System.out.println(x);
            String z=getR2();
            System.out.println(z);
            if(( z.equals("R") || z.equals("B") )&& x==null)
                FacesMessage fm1 = new FacesMessage("Plz Insert Remark Feild");
                fm1.setSeverity(FacesMessage.SEVERITY_INFO);
                FacesContext context1 = FacesContext.getCurrentInstance();
                context1.addMessage(null, fm1);  
            else{
            ADFContext.getCurrent().getSessionScope().put("Radio",getR2().toString());
            String LogValue=(String)ADFContext.getCurrent().getSessionScope().get("logid");
            ViewObject voH=new UtilClass().getView("PayEmpTaskDeptView1Iterator"); 
            voH.setWhereClause("task_cd='449' and subtask_cd='01' and empcd='"+LogValue+"'");
            voH.executeQuery();
            Row row1= voH.first();
            int h1=(Integer)row1.getAttribute("Hierarchy");
              System.out.println("Login Person Hierarchy on save button press.."+h1);
            ViewObject vo9=new UtilClass().getView("PayApplyDetView1Iterator");
            Row row9= vo9.getCurrentRow();
            if(getR2().equals("A")&& h1!=1)
             row9.setAttribute ("ApprHier",h1);
                row9.setAttribute("IsClaimed","N");
                row9.setAttribute("ClaimedBy",null);
                row9.setAttribute("ClaimedOn", null);
            else if(getR2().equals("B") ) {
                ViewObject voO=new UtilClass().getView("LoHierViewObj1Iterator");
                voO.setNamedWhereClauseParam("QHVO", LogValue);
                Row rowO = voO.first();
               h5=(Integer)rowO.getAttribute("LPrehier");
                System.out.println("Back lower hier..."+h5);
                row9.setAttribute ("ApprHier",h5);
                row9.setAttribute("IsClaimed","N");
                row9.setAttribute("ClaimedBy",null);
                row9.setAttribute("ClaimedOn", null);
              else if((h1==1) &&(getR2().equals("A")) )
                      row9.setAttribute ("PostingTag","Y");
                      row9. setAttribute ("ApprHier", h1);
                        row9.setAttribute("IsClaimed","N");
                        row9.setAttribute("ClaimedBy",null);
                        row9.setAttribute("ClaimedOn", null);
              else if(getR2().equals("R"))
                row9.setAttribute ("ApprHier",-1);
                row9.setAttribute("IsClaimed","N");
                row9.setAttribute("ClaimedBy",null);
                row9.setAttribute("ClaimedOn", null);
            BindingContext BC=BindingContext.getCurrent();
            BindingContainer ac=BC.getCurrentBindingsEntry();
            OperationBinding ob=ac.getOperationBinding("Commit");
            ob.execute();
           vo9.executeQuery();
            FacesMessage fm = new FacesMessage("Your Data Successfully Commited..");
            fm.setSeverity(FacesMessage.SEVERITY_INFO);
            FacesContext context = FacesContext.getCurrentInstance();
            context.addMessage(null, fm);
        }here i put my approve status radio value in session variable because i also want to update my pay_apply_appr table which code i written in pay_apply_det IMPL class.
    Every thing is running well when i update single record but when i want to update multiple record then my current row only updated in pay_apply_det but log table( pay_apply_appr) created for all record.
    so is there any solution plz help me.
    thanks
    RAFAT

    Hi Rafat,
    If you are able to insert into, all you need to do is iterate through the rows. For this , before the first IF condition
    if(getR2().equals("A")&& h1!=1)Get the row count using int numRows =vo9.getRowCount(); , and then write it before the IF condition
    if (int i=0;i<numRows;i++} After
    row9.setAttribute("ClaimedOn", null);
            }write vo9.next(); to iterate to next row,
    Hope this will work.
    Nigel.

  • Need help in the code for updating a record ( conditional update)

    all set
    Edited by: 871431 on Jul 9, 2011 6:30 PM

    871431 wrote:
    Hi
    I am looking to update a table which contains approved & unapproved records, for that date & fund combination it should allow only one unapproved record.
    what I did is check if the record is U if the incoming value is Unapproved for that fund & date combination raise error, but if I need to update that Unapproved record it raises error....so I need to update that record, and raise error if trying to insert another unapproved record.
    Hope I am clear....Not clear for me
    Help needed plsPlease realize & understand that everyone here speaks SQL
    please post DDL for table
    please provide sample/test data & then explain using actual test data what the results should be & why

  • Update new record in database table

    I'm working with TestStand 4.2 and MySQL database with user-defined tables.
    There is "test_results" table with autoincrement "id" (primary index).
    I want to:
    1. write a new record to the test_results table - some data and status "Running"
    2. run a test (pass to a test sequence its "id", test uses this id for writing data to database)
    3. update the record: set execution time and update status.
    So, the steps are as below:
    1. Open database
    2. Open SQL statement: "select * from test_results".
    3. Data Operation: operation - "Set and Put", record to operate on - "New - Create New Record". In the "Column/Parameter Values" tab I set the new record values.
    Here I want to retrieve the new record "id". How to do it?
    Thanks in advance.

    I am not sure how to implement this in Test Stand, but from an SQL programming perspective, you want to run:
    SELECT @@IDENTITY
    Here is a link to the description:  http://msdn.microsoft.com/en-us/library/ms187342.aspx
    It will retrieve the record ID of the row you just inserted.

  • Updating a database record

    I am trying to update a database record using the following :-
    update adv_order_progress set adv_action_out = to_char(sysdate, 'DD-MM-YYYY HH24:MI:SS') where adv_order_progress.adv_order_id = :adv_order.adv_order_id and adv_order_progress.adv_ord_number = :adv_order.adv_ord_number;
    at trigger WHEN-BUTTON-PRESSED but it doesn't update any at all. When I do the same from ISQL*plus it worked fine !!.
    would you please advise

    did you only have ISQL for testing it?
    Can you debug the form and look, if someone happens - exceptions, ... ?
    after the update you can use
    message (SQL%ROWCOUNT); pause ;
    to look, how many records were updated

  • Cfgrid updating issue with multiple records

    I have a cfgrid within cfform, it fetches the records and shown in the screen properly. refer screenshot.
    have a new field "sortfield" as a editable field and updating the record as 1,2,3,4 (instead - 1,6,2,4) but after updated in the db. The datas updated differently and not clearly updating the relevant data in the relevant record in the sort field. value was shuffled sometimes.
    used the below code:
    http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c2 4-7acf.html
    under Update the data source with the cfquery tag

    I have a cfgrid within cfform, it fetches the records and shown in the screen properly. refer screenshot.
    have a new field "sortfield" as a editable field and updating the record as 1,2,3,4 (instead - 1,6,2,4) but after updated in the db. The datas updated differently and not clearly updating the relevant data in the relevant record in the sort field. value was shuffled sometimes.
    used the below code:
    http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c2 4-7acf.html
    under Update the data source with the cfquery tag

  • Help with update,add, delete records

    Hi every one,
    This is a problems that I have been trying to figure out for
    a little while now and I hope you all can help me out. So this is
    the situation.
    I am useing CFX XLS 2 Query to create a query from an excel
    doc I have. Now my problem is how can I loop through and delete the
    records that no longer are in the spreadsheet?
    So in other words my client will be uploading a new XLS each
    day, this xls will have some new data, some of the same and some
    will be gone. So I need the system to check and see if the
    stocknumber is there, if it is it will just update that record, now
    if the record is new it will add the record but for the life of me
    I can't figure out how it can delete record.
    I had thought maybe doing a select where the stock numbers
    dont match but that didnt work out too well :)
    Thanks for any help you may be able to provide

    You could consider using ValueList() to create a list of
    stocknumbers from your excel query, then do something like this:
    <cfset sCurrentStockNumbers =
    ValueList(myQuery.stocknumber)>
    <cfquery name="removeStockNumbers"
    datasource="myDataSource">
    DELETE from myTable
    WHERE stocknumber NOT IN (<cfqueryparam
    value="#sCurrentStockNumbers#" list="Yes">)
    </cfquery>

  • Update a record is updating the first record in the DB...HELP!

    I am going over and over this again and cant find the problem.
    i have a form that sends email to emails that are on a php mysql db however when i update certain records it always is updating the first record in the DB...i have looked over this so many times and cant see what is going wrong
    the userid is not auto_increment but is based on the username (these are all unique)
    i have uncluded the code to see if i am missing something
    <?php require_once('../Connections/hostprop.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE plus_signup SET email=%s, emailerSubject=%s, emailerContent=%s WHERE userid=%s",
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['emailerSubject'], "text"),
                           GetSQLValueString($_POST['emailerContent'], "text"),
                           GetSQLValueString($_POST['userid'], "text"));
      mysql_select_db($database_hostprop, $hostprop);
      $Result1 = mysql_query($updateSQL, $hostprop) or die(mysql_error());
          // Email Guarantor
              $to = $_POST['email'];
              $subject = "Email From Host Student Property";
              $message = "
              <html>
                        <head>
                                  <title>Dear ".GetSQLValueString($_POST['userid'], "text")."</title>
                        </head>
                        <body>
                                  <img src=\"http://www.hoststudent.co.uk/beta/images/hostlogo.gif\" alt=\"www.HostStudent.co.uk\" />
                                  <h2>An Email From Host Students</h2>
                                  <br /><br />
                                  <table>
                                            <tr>
                                                      <td>Email Subject:</td>
                                            </tr>
                                            <tr>
                                                      <td>".GetSQLValueString($_POST['emailerSubject'], "text")."</td>
                                            </tr>
                                            <tr>
                                                      <td>Email Content</td>
                                            </tr>
                                            <tr>
                                                      <td>".GetSQLValueString($_POST['emailerContent'], "text")."</td>
                                            </tr>
                                  </table>
                        </body>
              </html>
              // Always set content-type when sending HTML email
              $headers = "MIME-Version: 1.0" . "\r\n";
              $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
              $headers .= 'From: HostStudent.co.uk <[email protected]>' . "\r\n";
              $send = mail($to,$subject,$message,$headers);
      $updateGoTo = "TenantEmailSent.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    mysql_select_db($database_hostprop, $hostprop);
    $query_Recordset1 = "SELECT userid, email, emailerSubject, emailerContent FROM plus_signup";
    $Recordset1 = mysql_query($query_Recordset1, $hostprop) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    <?
              session_start();
              if(!$_SESSION['loggedIn']) // If the user IS NOT logged in, forward them back to the login page
                        header("location:Login.html");
    ?>
       <script type="text/javascript">
    function loadFields(Value) {
             var Guarantor = Value.split("|");
              var userid1 = Guarantor[0] ;
                          var GuName = Guarantor[1];
              var GuPhoneEmail = Guarantor[2] ;
              document.getElementById('userid1').value=userid1;
                          document.getElementById('GuName').value=GuName;
              document.getElementById('GuPhoneEmail').value=GuPhoneEmail;
    </script>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form2" id="form2">
                  <table align="center">
          <tr valign="baseline">
            <td nowrap="nowrap" align="right"> </td>
            <td><select name="userid" id="userid" onchange="loadFields(this.value)">
              <option value="Select Guarantor">Select Guarantor</option>
              <?php
    do {
    ?>
    <option value="<?php echo $row_Recordset1['userid'] . '|' . $row_Recordset1['GuName'] . '|' . $row_Recordset1['GuPhoneEmail'];?>"><?php echo $row_Recordset1['userid'] . " , " . $row_Recordset1['GuName'] . " , " . $row_Recordset1['GuPhoneEmail']; ?></option>
              <?php
    } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
      $rows = mysql_num_rows($Recordset1);
      if($rows > 0) {
          mysql_data_seek($Recordset1, 0);
                $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    ?>
            </select></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">Tenant Name</td>
            <td><input type="text" name="userid1" id="userid1" readonly="readonly" value="<?php echo htmlentities($row_Recordset1['userid'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">GuName:</td>
            <td><input type="text" name="GuName" id="GuName" readonly="readonly" value="<?php echo htmlentities($row_Recordset1['GuName'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">GuPhoneEmail:</td>
            <td><input type="text" name="GuPhoneEmail" id="GuPhoneEmail" readonly="readonly" value="<?php echo htmlentities($row_Recordset1['GuPhoneEmail'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">GuEmailerSubject:</td>
            <td><input type="text" name="GuEmailerSubject" value="" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">GuEmailerContent:</td>
            <td><textarea name="GuEmailerContent" cols="45" rows="5"> </textarea></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right"> </td>
            <td><input type="submit" value="Send email" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right"></td>
            <td> </td>
          </tr>
                  </table>
        <input type="hidden" name="MM_update" value="form2" />
        <input type="hidden" name="userid" value="<?php echo $row_Recordset1['userid']; ?>" />
    </form>

    i have found the problem, there were two forms with the same name..
    thanks

  • Getting timeout error while updating a record from c#

    Hi,
    I have around 30k records in a tables. When I update that record inside the Transaction (Enterprise Data Library, c#) , it takes long time and throws timeout error.
    But I am able to update the same record via Toad.
    In the morning I tried same updating the record, it works without any change in the code or script.+
    is it due table lock or db related issue? please adivse, how to resolve if occurs again.
    anand

    Code:
    private static void Save()
    using (DBTransactionManager dbTransactionManager = new DBTransactionManager())
    try
    DataTableDAL.Instance.ExecuteDML("Update Voyage SET BallastBonus = 30000 WHERE ID = 'AE53B610BEA743EC8AFBAED0C8349BF8';");
    //commit database
    dbTransactionManager.Commit();
    catch
    dbTransactionManager.RollBack();
    throw;
    Table
    Column Name     ID     Pk     Null?     Data Type     Default     Histogram     Encryption Alg     Salt
    ID     1     1     N     NVARCHAR2 (32)          None          
    CALCNUMBER     2          N     NUMBER (10)          None          
    CURRENCYID     3          N     NVARCHAR2 (32)          Frequency          
    CALCTYPE     4          N     NUMBER (5)          Frequency          
    ESTIMATEDESCRIPTION     5          Y     NVARCHAR2 (200)          None          
    ESTIMATEGROUPDESCRIPTION     6          Y     NVARCHAR2 (200)          None          
    BALLASTBONUS     7          Y     NUMBER (12,2)          None          
    BALLASTBONUSCOMMPCT     8          Y     NUMBER (6,3)          None          
    ISESTIMATE     9          N     NUMBER (1)          None          
    ADDITIONALSTEAMVALUE     10          Y     NUMBER (8,4)          None          
    ISADDITIONALSTEAMPCT     11          Y     NUMBER (1)          None          
    ADDITIONALPORTVALUE     12          Y     NUMBER (8,4)          None          
    ISADDITIONALPORTPCT     13          Y     NUMBER (1)          None          
    CREATEDBY     14          N     NVARCHAR2 (32)          Frequency          
    CREATEDDATE     15          N     DATE          None          
    UPDATEDBY     16          Y     NVARCHAR2 (32)          None          
    UPDATEDDATE     17          Y     DATE          None          
    LUMPSUMCARGOCOST     18          Y     NUMBER (1)          None          
    BUNKERPRICEMETHOD     19          Y     VARCHAR2 (30 Byte)          None          
    INCCONTCALCRESULT     20          Y     NUMBER (1)          None          
    FINAL_EST     21          Y     NUMBER          None          
    SPOT_VOYAGE     22          Y     NUMBER (1)          None          
    ISRUNCOSTEDIT     23          Y     NUMBER (1)          None          
    Index
    Table doesnt have any index, except primary key index.
    Total Records
    35,000
    Hope this input might sufficient to help me.

  • UPDATE Database (using Schema) based on current START_DATE_TIME

    Hi,
    I  am using the TestStand Schema and a MYSQL datababse.
    I have added a new table the MYSQL database that comes with TestStand. I am using the database tools to insert some local variable results into this table.
    I also add the start date and time to this table, using
    Str(RunState.Root.RunState.Sequence.Locals.StartDate.Month) + "-" +Str(RunState.Root.RunState.Sequence.Locals.StartDate.MonthDay) + "-" + Str(RunState.Root.RunState.Sequence.Locals.StartDate.Year) + " " + Str(RunState.Root.RunState.Sequence.Locals.StartTime.Hours) + ":" +Str(RunState.Root.RunState.Sequence.Locals.StartTime.Minutes) + ":" + Str(RunState.Root.RunState.Sequence.Locals.StartTime.Seconds)
    I am trying to use the Schemato update the a colum with the parent ID, so I have it set up as a foreign key. I can get this to work when I use hardcode the the date/time in the SQP statement.
    Example:
    "UPDATE UUT_CTO_DATA SET ID=? ,UUT_RESULT=? where START_DATE_TIME='2009-03-20 15:13:24'"However I would like to change this so the SQL statement using the TestSTand Variables to figure out which is the current record to update...Is this possible..All help is greatly appreciated.
    Regards,
    Don1.

    Hi Mark,
    Thanks for the quick response,Some comments below: 
    I need some clarification on the issue and your progress.  In the first poast you had said "I can get this to work when I use hardcode the the date/time in the SQP statement."  When you hardcode the date and time, does it update the ID & UUT_RESULT columns for all devices in a bath? 
    When I hardcode the update SQL statement with a specific date, Example: "UPDATE UUT_CTO_DATA SET ID=? ,UUT_RESULT=? where START_DATE_TIME= '2009-03-24 10:31:13'"   , it will update the ID & UUT_RESULT columns for all devices in a batch, (I manually delete it from the MYSQL database after each device in the batch to confirm it updates on subsquent runs)
    So do you think it now looks like my original SQL statement is somehow incorrect for all bar the first device in the batch?
    I did try the following:
    Created a StationGlobal called Test.
    Assigned it as follows, to ensure it matches the database record format ('2009-03-24 10:31:13')
    StationGlobals.Test =Str(RunState.Root.RunState.Sequence.Locals.StartDate.Year) + "-" +Str(RunState.Root.RunState.Sequence.Locals.StartDate.Month,"%02i") + "-" + Str(RunState.Root.RunState.Sequence.Locals.StartDate.MonthDay,"%02i") + " " + Str(RunState.Root.RunState.Sequence.Locals.StartTime.Hours,"%02i") + ":" +Str(RunState.Root.RunState.Sequence.Locals.StartTime.Minutes,"%02i") + ":" + Str(RunState.Root.RunState.Sequence.Locals.StartTime.Seconds,"%02i")
    Change my SQL statement to "UPDATE UUT_CTO_DATA SET ID=? ,UUT_RESULT=? where START_DATE_TIME= '"+StationGlobals.Test+"'"
    As before it updated for the first device in the batch and none of the rest.
    Also, which version of TestStand are you using? 
    I am using TestStand 4.1.1
    Thanks & Regards,
    Don1

Maybe you are looking for

  • Flash player is not working whenever I switch to airport connection

    The flash player is not working in both Safari and firefox, when I switch the internet connection to the airport (WiFi), but the Ethernet connection is working fine with flash player. reinstall of Mac os x 10.6 --> not working repair disk and permiss

  • Outbound file interface  in CSV format ( ABAP OO )

    Hello folks,           I am new to the OO ABAP and trying to write outbound interface for couple of HCM tables. It is the piece of cake for me if I do it in regular ABAP but I choose the to it hard way because I want to do it in OO ABAP. I have read

  • Captivate 4 suddenly freezing for no reason.

    Hello.  I have been using Captivate for years.  I have a dozen completed modules developed in this software.  Today for seemingly no reason, Captivate (4) suddenly started freezing about every 30 seconds.   It doesn't seem to matter what type of edit

  • Additional AGate process

    Hi, Kindly advise on the queries to add a additional AGate node. We have 4GB of Physical Memory and our process is not completely utilised but the AGate stops responding when the MaxThreads goes to 0. So we have analysed and decided to add a addition

  • Cleaning up ANE Android leftovers?

    After seeing the duplication of resources in assets/META-INF folders, I investigated this further to find that there's a huge amount of unneeded leftover files left here that can *and should* be deleted for a release build. For us, this is 11.5MB of