Get Null when updating multiple records

Hi all

super.processFormRequest (pageContext, webBean);
Am = (XxSupppacklistAMImpl) pageContext.getApplicationModule (webBean) XxSupppacklistAMImpl;

String s1 = pageContext.getParameter ("ItemNumber");
System.out.println ("The Parent point Nukmber is:" + s1);

If (PageContext.GetParameter ("ParentItem")! = null)
{
String s2 = pageContext.getParameter ("ParentItem");
System.out.println ("the Parent element will be", + s2);
}
System.out.println ("Hello I'm in the selectAll method," + s1);

I was null, when executing the above code.
could you please, help me on this.


ThankswithRegards,

Hello

B4 value to write more if condition

If (Row.GetAttribute ("ParentItem")! = null)
{
parent = row. GetAttribute("ParentItem").toStrring ();
}

Regards
Meher Irk

Tags: Oracle Applications

Similar Questions

  • extract OGG gets NULL when updated

    RDBMS version: 10.2.0.3 (RAC)

    OGG version: 11.2.1.0.1(for 10g)

    I'm confused by something like this for ten days:

    There is a 10.2.0.3 RAC cluster and using ogg 11.2.1.0.1 for record extraction of 10g, files of parameters as follows:

    EXCERPT:

    EXTRACT extte

    SETENV (ORACLE_HOME = / u01/oracle)

    SETENV (NLS_LANG = AMERICAN_AMERICA. ZHS16GBK)

    Username ogg@test,PASSWORD oggpassword

    TRANLOGOPTIONS ASMUSER sys@OGGASM,ASMPASSWORD asmpassword

    KEYNAME AES192 ENCRYPTTRAIL exttekey

    EXTTRAIL/ogg/dirdat/you

    FETCHOPTIONS FETCHPKUPDATECOLS

    TABLE TEST.*;

    I've added some exttrail of following commands:

    dblogin USERID ogg@test,PASSWORD oggpassword

    ADD THE EXTRACT OF EXTTE, TRANLOG, BEGIN NOW, NET 2

    ADD EXTTRAIL/ogg/dirdat/you, EXTRACT of EXTTE

    and began to extract. Then create and insert records in test schema:

    drop table t is serving;

    create table t (key primary number name age number);

    Insert values into t (1100);

    commit;

    update of age set t = 200, where name = 1;

    commit;

    And I see the strangest thing has happened using logdump:

    Open/ogg/dirdat/te000000

    HDR - Ind: E (x 45) Partition:.  (x 04)

    UndoFlag:.  (X 00)     Brutal: A (x 41)

    RecLength: 20 (x 0014) IO time: 16:55:56.000.000 23/12/2013

    IOType: 5 (x 05) OrigNode: 255 (xff)

    TransInd:.  (X 03)     FormatType: R (x 52)

    SyskeyLen: (0x00) incomplete:.  (X 00)

    AuditRBA: 17 AuditPos: 4146564

    Next: N (x 00) RecCount: 1 (x 01)

    23/12/2013 16:55:56.000.000 insert Len 20 RBA 1054

    Name: TEST. T

    After Image: Partition 4 G s

    0000 0005 0000 0001 3100 0100 0700 0000 0331 3030 | ........ 1... 100

    Column 0 (x 0000), Len 5 (x 0005)

    0000 0001 31                                      | .... 1

    Column 1 (x 0001), Len 7 (x 0007)

    0000 0003 3130 30 | .... 100

    Logdump 393 > n

    ___________________________________________________________________

    HDR - Ind: E (x 45) Partition:.  (x 04)

    UndoFlag:.  (X 00)     Brutal: A (x 41)

    RecLength: 19 (x 0013) IO time: 16:55:57.000.000 23/12/2013

    IOType: 15 OrigNode (x0f): 255 (xff)

    TransInd:.  (X 03)     FormatType: R (x 52)

    SyskeyLen: (0x00) incomplete:.  (X 00)

    AuditRBA: 17 AuditPos: 4147728

    Next: N (x 00) RecCount: 1 (x 01)

    23/12/2013 16:55:57.000.000 FieldComp Len 19 RBA 1182

    Name: TEST. T

    After Image: Partition 4 G s

    0000 0004 ffff 0000 0001 0007 0000 0003 3230 30 | ................ 200

    Column 0 (x 0000), Len 4 (x 0004)

    ffff 0000                                         | ....

    Column 1 (x 0001), Len 7 (x 0007)

    0000 0003 3230 30 | .... 200

    the primary key has become ffff 0000 which is NULL in "after the image. So I replicate in the target databases, complained ogg who found no documents that have a NULL value as the primary key.

    And I have it reproduced in the environment of the product, it again in ogg 11.2.1.0.1 for 11g on 10.2.0.3 (RAC) RDBMS.

    Earlier, I installed 10203 database on the single node (no CARS) and make the extraction of ogg even totally:

    HDR - Ind: E (x 45) Partition:.  (x 04)

    UndoFlag:.  (X 00)     Brutal: A (x 41)

    RecLength: 20 (x 0014) IO time: 17:21:02.000.000 23/12/2013

    IOType: 5 (x 05) OrigNode: 255 (xff)

    TransInd:.  (X 03)     FormatType: R (x 52)

    SyskeyLen: (0x00) incomplete:.  (X 00)

    AuditRBA: 40333 AuditPos: 42779524

    Next: N (x 00) RecCount: 1 (x 01)

    23/12/2013 17:21:02.000.000 insert Len 20 RBA 1600

    Name: TEST. T

    After Image: Partition 4 G s

    0000 0005 0000 0001 3100 0100 0700 0000 0331 3030 | ........ 1... 100

    Column 0 (x 0000), Len 5 (x 0005)

    0000 0001 31                                      | .... 1

    Column 1 (x 0001), Len 7 (x 0007)

    0000 0003 3130 30 | .... 100

    ___________________________________________________________________

    HDR - Ind: E (x 45) Partition:.  (x 04)

    UndoFlag:.  (X 00)     Brutal: A (x 41)

    RecLength: 20 (x 0014) IO time: 17:21:02.000.000 23/12/2013

    IOType: 15 OrigNode (x0f): 255 (xff)

    TransInd:.  (X 03)     FormatType: R (x 52)

    SyskeyLen: (0x00) incomplete:.  (X 00)

    AuditRBA: 40333 AuditPos: 42781160

    Next: N (x 00) RecCount: 1 (x 01)

    23/12/2013 17:21:02.000.000 FieldComp Len 20 RBA 1735

    Name: TEST. T

    After Image: Partition 4 G s

    0000 0005 0000 0001 3100 0100 0700 0000 0332 3030 | ........ 1.. 200

    Column 0 (x 0000), Len 5 (x 0005)

    0000 0001 31                                      | .... 1

    Column 1 (x 0001), Len 7 (x 0007)

    0000 0003 3230 30 | .... 200

    everything seems fine.

    Am I wrong in PAP/ASM configuration for extraction?

    I thank you very much for reading and appreciate all of the advice.

    the reference to

    https://community.Oracle.com/thread/2395043

    Read the answer by amardeep.sidhu, and I checked

    SUBSECTIONS SUP SUP SUP SUP

    -------- --- --- --- ---

    NO YES NO NO NO

    only a minimum extra newspaper was saved again log.trandata was not enabled.

    further adjustment of the sessions to:

    change the database adds additional log data (primary key) columns;

    and I get good data.

    Thanks a lot to this thread.

    And now I have the time to find a way for another problem of ASM password which includes '%' while ogg unable connect instance asm :)

  • Update multiple records at once

    First, thank you very much the people who have helped me out several times now. I put things together and came across another issue of 'beauty' begin as follows. In the previous topics, I had a way to get to an array of automated classification based on the inputs of a fixtures table and some simple calculations. Now, which has been accomplished which resulted in me having to update all the teams by simply clicking a button.

    As you can see in the code below, using a table with every row a form, at the end of the line, there is a button called 'OK' I have to push to update the record according to. A repeat region for all teams in this query shows the ranking of 'new', but is not yet inserted in the League table. Is it possible to have this repeat region without having to push 18 or 20 times a button update? At the end of the table, one (1) button update all records? The primary key is composed like this ' 0000 - u00a "(4 numéros un tiret puis un «u» 1 ou 2 numéros et 1 ou 2 lettres à nouveau)."

    <?php require_once('Connections/connection.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
      $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"] == "klassement")) {
      $updateSQL = sprintf("UPDATE klassement SET wedstrijden=%s, overwinning=%s, verlies=%s, gelijkspel=%s, goalsvoor=%s, goalstegen=%s, goalverschil=%s, punten=%s WHERE ploegid=%s",
                           GetSQLValueString($_POST['wedstrijden'], "int"),
                           GetSQLValueString($_POST['overwinning'], "int"),
                           GetSQLValueString($_POST['verlies'], "int"),
                           GetSQLValueString($_POST['gelijkspel'], "int"),
                           GetSQLValueString($_POST['goalsvoor'], "int"),
                           GetSQLValueString($_POST['goalstegen'], "int"),
                           GetSQLValueString($_POST['goalverschil'], "int"),
                           GetSQLValueString($_POST['punten'], "int"),
                           GetSQLValueString($_POST['ploegid'], "text"));

      mysql_select_db($database_koscw, $koscw);
      $Result1 = mysql_query($updateSQL, $koscw) or die(mysql_error());

      $updateGoTo = "klassement-ploegen.php?reeksid=" . $row_klassement['reeksid'] . "";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      }
      header(sprintf("Location: %s", $updateGoTo));
    }

    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;
    }
    }

    $reeks_klassement = "-1";
    if (isset($_GET['reeksid'])) {
      $reeks_klassement = $_GET['reeksid'];
    }
    mysql_select_db($database_koscw, $koscw);
    $query_klassement = sprintf("select * from klassement where reeksid = %s order by status asc, punten desc, overwinning desc, goalverschil desc", GetSQLValueString($reeks_klassement, "text"));
    $klassement = mysql_query($query_klassement, $koscw) or die(mysql_error());
    $row_klassement = mysql_fetch_assoc($klassement);
    $totalRows_klassement = mysql_num_rows($klassement);

    $id_reeks = "-1";
    if (isset($_GET['reeksid'])) {
      $id_reeks = $_GET['reeksid'];
    }
    mysql_select_db($database_koscw, $koscw);
    $query_reeks = sprintf("select reeksnaam from reeksen where reeksid = %s", GetSQLValueString($id_reeks, "text"));
    $reeks = mysql_query($query_reeks, $koscw) or die(mysql_error());
    $row_reeks = mysql_fetch_assoc($reeks);
    $totalRows_reeks = mysql_num_rows($reeks);

    mysql_select_db($database_koscw, $koscw);
    $query_seizoen = "select * from seizoen";
    $seizoen = mysql_query($query_seizoen, $koscw) or die(mysql_error());
    $row_seizoen = mysql_fetch_assoc($seizoen);
    $totalRows_seizoen = mysql_num_rows($seizoen);

    $huidig=$row_seizoen['huidigseizoen'];
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" type="text/css" media="all" href="../_styles/koscw-admin.css" />
    <title>Klassement <?php echo $row_reeks['reeksnaam']; ?> | Beheerpaneel | 1349</title>
    </head>
    <body>
    <div id="container">
    <h1 class="overzichth1">Klassement <?php echo $row_reeks['reeksnaam']; ?></h1>
    <?php if ($totalRows_klassement > 0) { // Show if recordset not empty ?>
    <table cellpadding="5" cellspacing="0" border="0" id="klassement">
    <tr>
      <td class="klassementsmall bgccc bold"></td>
           <td class="klassementteam bgccc bold">Ploegnaam</td>
           <td class="klassementsmall bgccc bold">+</td>
           <td class="klassementsmall bgccc bold">-</td>
           <td class="klassementsmall bgccc bold">=</td>
          <td class="klassementsmall bgccc bold">#</td>
           <td class="klassementsmall bgccc bold"><img src="../_img/goalsmade.png" alt="Goals +" /></td>
           <td class="klassementsmall bgccc bold"><img src="../_img/goalsagainst.png" alt="Goals -" /></td>
           <td class="klassementsmall bgccc bold"><img src="../_img/goalsdifference.png" alt="Goals &asymp;" /></td>
           <td class="klassementsmall bgccc bold">PTN</td>
          <td class="klassementsmall bgccc"> </td>
    </tr>
    <?php
    $i=0;
    do {
    $i++;
    if($i % 2) { //this means if there is a remainder
         echo "<tr class=\"calendareven\">";
    } else { //if there isn't a remainder we will do the else
         echo "<tr class=\"calendarodd\">";
    }
    ?>
    <td>
    <?php
    $rank += 1;
    echo $rank;
    ?>      </td>
           <td class="klassementteam">
              <?php
            $thuisploeg=$row_klassement ['ploegid'];
              $sql_select_thuisploeg="select ploegnaam from ploegen where ploegid = ('$thuisploeg')";
              $resultset_thuisploeg=mysql_query($sql_select_thuisploeg);
              while ($data_thuisploeg=mysql_fetch_array($resultset_thuisploeg))
              {echo $data_thuisploeg['ploegnaam'] . " ";}?></td>
           <form action="<?php echo $editFormAction; ?>" method="POST" name="klassement">
          <input type="hidden" name="ploegid" value="<?php echo $row_klassement ['ploegid']; ?>" />
           <td>
          <?php
           $tw=$row_klassement['ploegid'];
           $sql_select_tw="SELECT COUNT( * ) AS twin FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND thuisploegid = '$tw' AND thuisploeggoals > bezoekersgoals";
           $resultset_tw=mysql_query($sql_select_tw);
           $data_tw=mysql_fetch_array($resultset_tw);
           $data_tw['twin'];
          
           $uitwin=$row_klassement['ploegid'];
           $sql_select_uitwin="SELECT COUNT( * ) AS awin FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND bezoekersid = '$uitwin' AND thuisploeggoals < bezoekersgoals";
           $resultset_uitwin=mysql_query($sql_select_uitwin);
           $data_uitwin=mysql_fetch_array($resultset_uitwin);
           $data_uitwin['awin'];
          
           $win=($data_tw['twin'])+($data_uitwin['awin']);
           ?>
          <input type="text" name="overwinning" value="<?php echo $win; ?>" class="inputscore" readonly="readonly" />
          </td>
           <td>
          <?php
           $tv=$row_klassement['ploegid'];
           $sql_select_tv="SELECT COUNT( * ) AS tver FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND thuisploegid = '$tv' AND thuisploeggoals < bezoekersgoals";
           $resultset_tv=mysql_query($sql_select_tv);
           $data_tv=mysql_fetch_array($resultset_tv);
           $data_tv['tver'];
          
           $uitverlies=$row_klassement['ploegid'];
           $sql_select_uitverlies="SELECT COUNT( * ) AS aver FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND bezoekersid = '$uitverlies' AND thuisploeggoals > bezoekersgoals";
           $resultset_uitverlies=mysql_query($sql_select_uitverlies);
           $data_uitverlies=mysql_fetch_array($resultset_uitverlies);
           $data_uitverlies['aver'];
          
           $ver=($data_tv['tver'])+($data_uitverlies['aver']);
           ?>
          <input type="text" name="verlies" value="<?php echo $ver; ?>" class="inputscore" readonly="readonly" />
          </td>
           <td>
          <?php
           $thuisdraw=$row_klassement['ploegid'];
           $sql_select_thuisdraw="SELECT COUNT( * ) AS tdraw FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND thuisploegid = '$thuisdraw' AND thuisploeggoals = bezoekersgoals";
           $resultset_thuisdraw=mysql_query($sql_select_thuisdraw);
           $data_thuisdraw=mysql_fetch_array($resultset_thuisdraw);
           $data_thuisdraw['tdraw'];
          
           $awaydraw=$row_klassement['ploegid'];
           $sql_select_awaydraw="SELECT COUNT( * ) AS adraw FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND bezoekersid = '$awaydraw' AND thuisploeggoals = bezoekersgoals";
           $resultset_awaydraw=mysql_query($sql_select_awaydraw);
           $data_awaydraw=mysql_fetch_array($resultset_awaydraw);
           $data_awaydraw['adraw'];
          
           $draw=($data_thuisdraw['tdraw'])+($data_awaydraw['adraw']);
           ?>
          <input type="text" name="gelijkspel" value="<?php echo $draw ?>" class="inputscore" readonly="readonly" />
          </td>
          <td>
          <?php $wedstrijden=$win+$ver+$draw; ?>
          <input type="text" name="wedstrijden" value="<?php echo $wedstrijden; ?>" class="inputscore" readonly="readonly" />
          </td>
           <td>
           <?php
          $tgv=$row_klassement ['ploegid'];
           $sql_select_tgv="SELECT SUM( thuisploeggoals ) AS tgv1 FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND thuisploegid = '$tgv'";
           $resultset_tgv=mysql_query($sql_select_tgv);
           $data_tgv=mysql_fetch_array($resultset_tgv);
           $data_tgv['tgv1'];

          $ugv=$row_klassement ['ploegid'];
           $sql_select_ugv="SELECT SUM( bezoekersgoals ) AS ugv1 FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND bezoekersid = '$ugv'";
           $resultset_ugv=mysql_query($sql_select_ugv);
           $data_ugv=mysql_fetch_array($resultset_ugv);
           $data_ugv['ugv1'];

           $gv=($data_tgv['tgv1'])+($data_ugv['ugv1']);
           ?>
          <input type="text" name="goalsvoor" value="<?php echo $gv; ?>" class="inputscore" readonly="readonly" />
          </td>
           <td>
           <?php
          $tgt=$row_klassement ['ploegid'];
           $sql_select_tgt="SELECT SUM( thuisploeggoals ) AS tgt1 FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND bezoekersid = '$tgv'";
           $resultset_tgt=mysql_query($sql_select_tgt);
           $data_tgt=mysql_fetch_array($resultset_tgt);
           $data_tgt['tgt1'];

          $ugt=$row_klassement ['ploegid'];
           $sql_select_ugt="SELECT SUM( bezoekersgoals ) AS ugt1 FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND thuisploegid = '$ugv'";
           $resultset_ugt=mysql_query($sql_select_ugt);
           $data_ugt=mysql_fetch_array($resultset_ugt);
           $data_ugt['ugt1'];

           $gt=($data_tgt['tgt1'])+($data_ugt['ugt1']);
           ?>     
          <input type="text" name="goalstegen" value="<?php echo $gt; ?>" class="inputscore" readonly="readonly" />
          </td>
           <td>
           <?php $goals=$gv-$gt; ?>
          <input type="text" name="goalverschil" value="<?php echo $goals; ?>" class="inputscore" readonly="readonly" />
          </td>
           <td>
           <?php $punten=($win*3)+($draw*1); ?>
          <input type="text" name="punten" value="<?php echo $punten; ?>" class="inputscore" readonly="readonly" />
          </td>
          <td>
          <input type="submit" value="OK" />
          </td>
          <input type="hidden" name="MM_update" value="klassement" />
           </form>
      </tr>
      <?php } while ($row_klassement = mysql_fetch_assoc($klassement)); ?>
    </table>
    <?php } // Show if recordset not empty ?>

    </div>
    </body>
    </html>
    <?php
    mysql_free_result($klassement);

    mysql_free_result($reeks);

    mysql_free_result($seizoen);
    ?>

    Each record is separated, as well as a record can be updated at once, unless you want that all records have the same value.

    To update multiple records in a single operation, you must send the form tabular data. You do this by adding an empty pair of brackets at the end of the name attribute of each entry on the form like this:

     
    

    This translates by $_POST ['ploegid'] which contains a table of all IDS: $_POST ['ploegid'] [0], $_POST ['ploegid'] [1], $_POST ['ploegid'] [2] and so on. All the attributes of the repeat region name need to have added hooks. The following hidden field should be outside of the repeat region and may not have the brackets:

    
    

    You can then use a loop for updating the values like this:

    for ($j = 0, $len = count($_POST['ploegid']); $j < $len; $j++) {  $updateSQL = sprintf("UPDATE klassement SET wedstrijden=%s, overwinning=%s,   verlies=%s, gelijkspel=%s, goalsvoor=%s, goalstegen=%s, goalverschil=%s,   punten=%s WHERE ploegid=%s",                       GetSQLValueString($_POST['wedstrijden'][$j], "int"),                       GetSQLValueString($_POST['overwinning'][$j], "int"),                       GetSQLValueString($_POST['verlies'][$j], "int"),                       GetSQLValueString($_POST['gelijkspel'][$j], "int"),                       GetSQLValueString($_POST['goalsvoor'][$j], "int"),                       GetSQLValueString($_POST['goalstegen'][$j], "int"),                       GetSQLValueString($_POST['goalverschil'][$j], "int"),                       GetSQLValueString($_POST['punten'][$j], "int"),                       GetSQLValueString($_POST['ploegid'][$j], "text"));
    
      mysql_select_db($database_koscw, $koscw);  $Result1 = mysql_query($updateSQL, $koscw) or die(mysql_error());}
    
  • Get "null" when I call getCurrentRow

    Hello

    I have a request from 10g to Oracle ADF and I'm having a problem. I'm in a servlet get an Application Module and executing a ViewObject:
        BindingContext context = (BindingContext) session.getAttribute("data");
        DCDataControl dc = context.findDataControl(MvcDefs.DATA_CONTROL_PEOPLE);    
        InfoImpl service = (InfoImpl) dc.getDataProvider();
        ViewObjectImpl dataView = service.getDataView();
        dataView.setNamedWhereClauseParam("documentCode", documentCode);
        dataView.executeQuery();
        Row data= dataView.next();
        String dataColumn= (String) data.getAttribute("dataColumn");
    So far, everything works fine. After this code, the servlet insert a record into a table (make a commit with the module of the application) and then try to recall the same front displayed view data:
         ViewObjectImpl dataView = service.getDataView();
         Row data= dataView.getCurrentRow();
         String dataColumn= (String) data.getAttribute("dataColumn");
    But I don't know why "dataView.getCurrentRow ()"; return null, if I get a NullPointerException when running "data.getAttribute".

    All the code shown in this post is run in the same call to the servlet.

    Why I am not getting null in the call "data.getCurrentRow"?

    Thank you

    The problem is that you make a commit after calling next(). This will reset the iterator and if no row is selected a current line.
    You will need to run the query again (not sure if you get the new line otherwise) and do the navigation to get what you want, or go with Suresh advise.

    Timo

  • Update multiple records with PHP

    Hey,.

    I want to update multiple lines with a single click on the submit button.

    Unfortunately, it does not work. What's not in the code?

    <? php require_once('.. / Connections/ikon.php');? >
    <? PHP
    If (! function_exists ("GetSQLValueString")) {}
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    If (via 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 "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }
    }

    $editFormAction = $_SERVER ['PHP_SELF'];
    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);
    }

    for ($j = 0, $len = count($_POST['id']); $j < $len; $j ++) {}
    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "openingsuren_wijzigen")) {}
    $updateSQL = sprintf ("UPDATE ikon_openingsuren SET dag = %s voormiddag = %s, namiddag = WHERE id = %s %s",
    GetSQLValueString ($_POST ['dag'] [$j], "text").
    GetSQLValueString ($_POST ['voormiddag'] [$j], "text").
    GetSQLValueString ($_POST ['namiddag'] [$j], "text").
    GetSQLValueString ($_POST ['id'] [$j], "int"));

    @mysql_select_db ($database_ikon, $ikon);
    $Result1 = mysql_query ($updateSQL, $ikon) or die (mysql_error ());
    }
    }

    @mysql_select_db ($database_ikon, $ikon);
    $query_rsWijzigOpeningsuren = "SELECT * from ikon_openingsuren";
    $rsWijzigOpeningsuren = mysql_query ($query_rsWijzigOpeningsuren, $ikon) or die (mysql_error ());
    $row_rsWijzigOpeningsuren = mysql_fetch_assoc ($rsWijzigOpeningsuren);
    $totalRows_rsWijzigOpeningsuren = mysql_num_rows ($rsWijzigOpeningsuren);
    ? >


    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > ""
    "< html xmlns ="http://www.w3.org/1999/xhtml">".
    < head >
    < meta http-equiv = "content-type" content = text/html"; charset = utf-8 "/ >"
    < title > < / title >
    < / head >
    < body >
    < form action = "<?" PHP echo $editFormAction;? ">" method = "POST" name = "openingsuren_wijzigen" id = "openingsuren_wijzigen" >
    < input name = "id []" type = "hidden" id = "id" value = "<?" PHP echo $row_rsWijzigOpeningsuren ['id'];? ">" / >
    < table id = "tbl_openingsuren" >
    < thead >
    < b >
    < scope = "col" th > Dag < /th >
    < scope = "col" th > Voormiddag < /th >
    < scope = "col" th > Namiddag en Avond < /th >
    < /tr >
    < / thead >
    < tbody >
    <? PHP {? >}
    < b >

    < td > < input name = "dag []" type = "text" id = "dag" value = "<?" PHP echo $row_rsWijzigOpeningsuren ['dag'];? ">" size = "15" maxlength = "15" / > < table >
    < td > < input name = "[to] voormiddag" type = "text" id = "voormiddag" value = "<?" PHP echo $row_rsWijzigOpeningsuren ["voormiddag"];? ">" size = "15" maxlength = "15" / > < table >
    < td > < input name = "[of] namiddag" type = "text" id = "namiddag" value = "<?" PHP echo $row_rsWijzigOpeningsuren ["namiddag'];? ">" size = "15" maxlength = "15" / > < table >
    < /tr >
    <? PHP} while ($row_rsWijzigOpeningsuren = mysql_fetch_assoc ($rsWijzigOpeningsuren));? >
    < / tbody >
    < /table >
    < p > < input type = "submit" name = "submit" id = "submit" value = "Stayed" class = "knop" / > < / p >
    < input type = "hidden" name = "MM_update" value = "openingsuren_wijzigen" / >
    < / make >
    < / body >
    < / html >
    <? PHP
    mysql_free_result ($rsWijzigOpeningsuren);
    ? >

    Powerlait wrote:

    I want to update multiple lines with a single click on the submit button.

    Unfortunately, it does not work. What's not in the code?

    It would be more useful if you were to say what is happening. "It doesn't work" is not very useful.

    However, a quick look at your code is your hidden field that contains the ID outside the loop (repeat region) in your form. Place it inside the loop like this:

    
    
       
       
       
    
    
    
    
    
  • DB update multiple records in a table with a form

    I'm developing an online proofing system that displays a number of images and then allow the client to approve each image, but also to comment.

    I currently have a configuration table with the different elements (an image dynamically takes its name, details about the image and the required form fields). See this Image for layout

    I would then apply a repeat region (the number of signs vary) and you want to update all records with feedback from the customer and approval with a single form. How this is done? I downloaded a trial of the Toolbox for developers, but the documentation is horrible. I'd be willing to buy an extension that will allow, as appropriate.

    I found an extension that does this in two minutes:

    http://www.WebAssist.com/Professional/products/ProductDetails.asp?pid=117

    Great software, highly recommended. Easy to figure out and got this "problem" solved quickly.

  • Get BSOD when updated in Windows Vista Ultimate Edition

    I got the Windows Update for Monday, 30/11/09. Under the option updated, I clicked on the update Realtek for my wireless 801.11 b / g driver.  During the download on the window updates screen, he says that he was downloading updates. Then he went to install the updates and I got the BSOD about 3/4 of the way through.  Reboot the computer and to the Welcome screen, it said it was set up the updates.  He crossed the 1st to the 3rd stage, but remained at 0% and then in Windows. When the desktop is loaded, the window "Windows has recovered from an unexpected shutdown" came.  When I click on "Find solutions", he went the BSOD and restarted all over again with the same message "install updates" at the Welcome screen.  When I tried to cancel the window "windows has recovered...". ', he went the BSOD again and restarted again with the same method. The next time I tried to restart the computer and during the stop, he went to the BSOD and restarted everything again. This also happens when I try to shut down the computer.  The stop on the BSOD error message is Stop: 0x0000001A. Windows error that appears under Windows is 80070103.  I am running Windows Vista Ultimate Edition.  Help, please. How can I get out of this loop.  I tried the "Fix - It" program, but it's the same thing when he went to restart the computer. I know it has something to do with the appearance of the Windows Update, but I do not know how to break the loop of update.

    Bob,
    Run the Microsoft Fix - It from this link:reset Windows Update components

    It has all the steps that you have already done, but includes a couple that you don't.  After you run reboot and post back with the results.  Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Unity 4.0.3 sr 1-users get error when trying to record greetings by phone

    Hello

    the components are:

    Unity 4.0.3 sr1

    CCM 4.0.2.sr2

    If connection of users to http://server/web/aa - and try to record a new greeting by phone - the GET the following error:

    Reading and recording of phone:

    Unknown problems are Preventng the call.

    It is no problem to record a greeting with the pc, I can also initialize record greetings in web/South Africa for the user - it works too. so only if the user tries to record greetings by phone get this error.

    in settings - the right user ID and the ip address of the unit is entered.

    I have luckily able to find something which helped me to solve this problem.

    You have any ideas?

    Best regards

    Markus

    Hi Markus -.

    Check out this post - other people have problems with SP2 and Media Master - http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40%5E1%40%40.1dd68f83/6#selected_message

    One more thing - 4.0 release notes (4) HOV - http://www.cisco.com/en/US/customer/products/sw/voicesw/ps2237/prod_release_note09186a008022dffa.html#wp1097906

    ViewMail customer requires 4.0 (4) to fix the errors of trap when the clients are running WinXP SP2.

    Ginger

  • How to update multiple records

    Hello

    I have this problem

    I have this table whith 100,000 records with the State of the column = DONE

    NUM_CUSTSTATUSDATE
    00931754FACT05/05/2015-00:00:00
    00931741FACT05/05/2015-00:00:00
    00931742FACT05/05/2015-00:00:00
    00931744FACT05/05/2015-00:00:00
    00931743FACT05/05/2015-00:00:00
    00931747FACT05/05/2015-00:00:00
    00931746FACT05/05/2015-00:00:00

    I need to update the State of the column with values from another table

    AU_NUM_CUSTAU_DATEAU_STATUS
    0093175405/05/2015-00:00:00FACT
    0093174105/05/2015-00:00:00DELETE
    0093174205/05/2015-00:00:00DELETE
    0093174405/05/2015-00:00:00DELETE
    0093174305/05/2015-00:00:00DELETE
    0093174705/05/2015-00:00:00DELETE
    0093174605/05/2015-00:00:00DELETE

    Thanks if you can help

    Hello

    You can use the merge sql stmt:

    merge into target_table t

    using s source_table

    on (t.num_cust = s.au_num_cust and = t.date s.au_date)

    When matched then

    update set s.au_status = t.status

    Greetings,

    SIM

  • How update multiple records at once?

    Hi all

    I'm using oracle 11g 1.2.1.0.

    I have table below

    emp_id, emp_name

    1                     X

    2                      Y

    3                      Z

    4                     M

    5                      Q

    ..                   ..

    .                     ...

    ..                    ....

    as I have 10 records and emp_id is unique

    I have an added email column more

    Now I want to update e-mail as a column as [email protected] [email protected] ... [email protected] .

    I created the sequence to concatenate the x and gamil.com.

    But how I will update to the atime all records with the e-mail data.

    Concerning

    Dale

    Or

    as you said that you have created a query sequence will look like:

    Update emp

    the value email = 'x '. seq_name.nextval | ' @gmail.com';

    In general, if you want to update all rows in a table do not put a clause where clause, even if I avoid using these updates its place to the user to use them or not.

    Cheerz,

    Stako

  • Update multiple records with one submit?

    For the life of me I can't figure out how to do this. I have boxes with the ID primary key listed as the value of a repeat region. I want to perform an update on 2 columns for all checked IDs.

    CODE SUDEO

    < form >

    < cfoutput query...

    other textfields...

    < input name = "checkbox" type = "checkbox" id = "checkbox" value = "" #table.id # "/ >"

    < / cfoutput >

    SUBMIT BUTTON

    < / make >

    My update statement:


    UPDATE table
    SET 1 = Column1, column2 = 'whatever '.
    WHERE id IN (< cfqueryparam cfsqltype = "cf_sql_integer" value = "#TRIM (FORM.checkbox) #" >)
    < / cfquery >

    It updates only if I check a box has no effect when more than one is selected.

    I also tried a loop during the update statement, but nothing seems to work.

    You must use the cfqueryparam list attribute.

  • I bought the CC license but still get trial when updating

    Capture.PNG

    Could you please tell me why?

    Your subscription to cloud shows correctly on your account page?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    If you have more than one email, you will be sure that you use the right Adobe ID?

    .

    If Yes

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • How can I get my tab open all when update my firefox?

    now I'm still using very old Firefox 3.6.12 and I want to upgrede. I always using "save and exit" to my tab all open when quitting and not using bookmarks. total approximately 300 + tab open.
    I already try to upgrade my tab and once all is lost. and because of that I do system restore and reintall with old new.

    How can I get my tab open all when update my firefox?
    Sorry my English is a mess...

    already installed, but all the connection site became logout.
    and when right-clicking, page list too...
    and when I choose open in new tab or windown and something else happened...
    loading longer become page (already stop the other tabs)
    and when I block a text/link and drag it to the input tab or the navigation text or input search nothing happenend too...

    and when I close it, no other choice to save and exit...

    Edit:

    Resolved:

    1. Save and quit already solved with the help of addons.

    2. right click and drag the problem is already solved, I close firefox and restart.

    unsolved:

    1. all the connection still in State of disconnection site (can't stay as before connection).

    Edit:

    unsolved:

    2. on option, the images block list is missing.

  • Windows Update lists an important update, but I get error when downloading it. "Fix" suggested did not work.

    Windows Update lists an important update, but I get error when downloading it.  I ran update readiness tool and two logs in Windows\logs appear no error at all and nothing fixed.  The update that will not download is KB974332, which can solve some problems I encounter.  What else can be done, or should I ignore this update?
    Just upgraded to Win7 64-bit, Vista 64 - bit Edition Ultimate Home premium.

    Hello

    Welcome to the Microsoft Vista answers Forum!

    We would like to ask you some questions to help us focus on the right place.

    (a) what is the error that you receive on the computer?

    (b) since when you are facing this problem?

    You can try the steps below and check if the problem is resolved.

    Note: this problem may occur if some of the windows update components are corrupt, so we will try to reset the windows update components and look for the number.

    You must follow the link provided below to run the fixit which will automatically fix the problem if you find problems with the fixit, then you can follow the procedure to manually reset Windows component update.

    How to reset the Windows Update components?

    http://support.Microsoft.com/default.aspx/KB/971058

    Also, visit the following link for more reference on the particular update.

    http://support.Microsoft.com/kb/974332

    Hope this information is useful.

    Thank you, and in what concerns:

    Suresh Kumar-Microsoft Support.

    Visit our http://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads/ Microsoft answers feedback Forum and let us know what you think.

  • When I try I get the windows update error number: 0x8024400A

    When I try I get the windows update error number: 0x8024400A

    Hello


    This problem is limited to a particular update or all updates? Thanks for mentioning the number of KB.
     

    Follow the suggestions below for a possible solution:
     
    Method 1
    I suggest you consult the site mentioned below:
    Temporary connection related errors may occur when you use Windows Update or Microsoft Update
    http://support.microsoft.com/kb/836941.
    Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.
     
     
    Method 2
    If the problem is not solve I suggest you try the procedure described in the link mentioned below.
    You cannot install some programs or updates
    http://support.Microsoft.com/kb/822798
    WARNING: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
    How to back up and restore the registry in Windows
    http://support.Microsoft.com/kb/322756/
     
     
    Let us know the status of the issue.

Maybe you are looking for