Refresh af: table to fetch updated/additional records from db

Hi,
I have a jspx page having Create New Employee form and a table showing all the Employee records. I am using ADF Faces+Session Beans(EJB3.0)+JPA.
The create record form is not created from data control, but using adf input text boxes and binding them manually to backing bean properties, and on save button action, calling a session facade remote method, which inturn calls the persistEntity() of JPA. This is working fine.
The table is bound to data control , showing FindAll query results. This is also working fine.
The problem is,for example if i have 5 employee records in db, the table will show 5 records and then I create an employee record and click on save button, then i fire a sql query on db to 'select *' , it shows that record in db, but the table(on the same page) still shows 5 records. Table doesn't show the new record that I just created, even if I refresh the page.
So, in this case PPR and refreshing the iterator which shows the table, don't work. I even tried to invoke the method which fires FindAll query, again on save button click.But, that too, din't work. What is the solution?
Note: I am using JDev11g.

Hi,
Can you brief me how you are adding the records. Like ... on click of add button opening a inline pop up and is it through that???
Try to do the following from your backing bean.
Solution#
======
Use returnlistener of the button/action link, which you are using to open the popup.
Here is the action how the add/edit inline popup is getting opened.
<af:commandImageLink action="editHistory"
immediate="true" id="clEdit"
visible="#{row.editable and (pageFlowScope.borrowerHistoryMB.userId eq row.sourceId)}"
shortDesc="Click to edit this comment."
icon="/images/edit.png"
useWindow="true" windowHeight="300"
windowWidth="500"
*returnListener="#{pageFlowScope.borrowerHistoryMB.refreshTableData}"* >
Code that needs to be added inside a managed bean.
=================================
public void refreshTableData(ReturnEvent returnEvent) {
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(getHistoryTable());
Let me know if you have issue with any of these.
Thanks & Regards,
Kiran Konjeti

Similar Messages

  • How to fetch all the records from ztable

    Hi 
    My program is outbound program.
    According to the requirement i have to fetch all the records from ztable which are not tranmitted before to the third party and once the records are extracted and written to output file they will be marked as 'X' in the "status" field of that ztable for the next days run.
    How to fetch the records.Please suggest me.
    Thanks,
    Neelima

    HI,
    Fetch all the records whose status is equal to 'X' as whatever data is sent to third party system is marked as 'X' in status field of table after sending.
    You need to first fetch the data into internal table using the select statement where status EQ space. You get the data which is not yet transmitted to third part. And later in the program after trasmitting the data to third party modify the Records in the DB table which are transmitted with Staus eq 'X'.

  • Unique data record means you can't  update a record from ECC with same key.

    Unique data record means you can't  update a record from ECC with same key fileds right?
    Details: For example i have two requests Req1 and Req2 in DSO with unique data record setting checked. on day one Req1 has a filed quantity with value 10 in Active data table. On day two Req1 can not be overwitten from ECC with Req2 with the same key fields but different value 20 in the filed quantity because of the Unique data record settings. finally the delta load fails from ECC going to DSO because of this setting. is it right?
    I think we can only use unique record setting going from DSO to cube right?
    Please give me a simple scenario in which we can use this setting.
    I already search the threads and will assign points only to valuable information.
    Thanks in advance.
    York

    Hi Les,
    Unique Data Records:
    With the Unique Data Records indicator, you determine whether only unique data records are to be updated to the ODS object. This means that you cannot load a data record into the ODS object the key combination for which already exists in the system – otherwise a termination occurs. Only use this setting when you are sure that only unique data records are to be loaded into the ODS object (for example, single documents). A typical application of this is in the loading of mass data. It improves the load performance.
    Hope it Helps
    Srini

  • Update multiple records from a list

    Just trying to find some tutorials on how to update multiple
    records from 1
    page of checkboxes
    easiest example is hotmail
    i would like to be able to give my clients the ability to
    delete or update
    multiple records from 1 page... mind you that this type of
    update woudl only
    be for simple status changes, flags that need to be changed
    and so on...
    Delete... well if they made it to this page they are already
    sure and have
    been warned that they are going to delete the records..
    where can i find such a tutorial on how to complete multiple
    record updates
    or deletes from 1 form...
    thanks

    Server model and software below.
    And hotmail has nothing to do with anything.. its an example
    of what i would
    like to be able to do...
    If you log into hotmail. you have the option to check all the
    emails you
    want to delete.
    well thats what i want to do with my clients sites...
    Each record would have its own checkbox, they select the
    records they want
    to delete or update and they hit submit to process there
    request.
    Using ASP, SQL2005 and DW8
    "bregent" <[email protected]> wrote in
    message
    news:f21upb$nop$[email protected]..
    > >Just trying to find some tutorials on how to update
    multiple records from
    > >1
    >>page of checkboxes
    >
    > What server model?
    >
    >>easiest example is hotmail
    >
    > What does hotmail have to do with this.

  • Update/Insert records from Oracle to MySQL

    Hi team, 
    My application will insert/update records into Oracle database, I need to sync all of records into MySQL database.  I designed a package to load data from Oracle to MySQL, the Oracle database use OLE DB component and MySQL database use ADO.NET.
    How to insert new records into MySQL? If the old record exists, we also need to replace with new record. I did some research, someone suggest to create a stage table to handle this scenario, but I have 14 tables in this case. How to handle this scenario
    with high performance? 
    If there is anything unclear, please let me know. 
    Thank you in advance. 

    Finally, I created 14 tables as same as in our MySQL database system with prefix "updated" , they are use to store the updated records from Oracle system. All of new records we add a flag, the "1" means insert a new record into the system,
    and the "0" means we should updated. So, I can use the conditional split component to split all of new records. The new records insert into the target table and the updated records insert into the "updated_table". Finally, we can add a
    SQL Script task to run a update script to sync all of records. 
    I don't use Lookup Transformation because we must use Cache
    Transform transformation in this case, the Cache connection manager to save the data to a cache file (.caw), it will hard to
    trace the history data in the future.  
    In addition, I recommend to use ODBC connection if somebody face the similar scenario with me, there is a bug  if we use ADO.NET to
    load data from Oracle to MySQL by using SSIS. For more information, please refer the MSDN document: http://blogs.msdn.com/b/mattm/archive/2009/01/07/writing-to-a-mysql-database-from-ssis.aspx
    @Arthur, thanks again for your input.  Have a nice day! :)

  • 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.

  • Can't update mysql records from a web page

    Hi everybody,
    I am beginning with Dreamweaver CS5.
    I followed a video tutorial on how to visually design a data entry/update web page for a mysql database using server behaviors.
    My problem is that I was able to insert records and see inserted records but when I try to update a record it doesn't work.
    I don't get any error message, it just redirects me to the listing page as it's supposed to but doesn't take into account the changes I made.
    Below are 2 printscreens along with the corresponding code.
    Can someone help me please?
    Records list web page :
    Records list code :
    <?php require_once('Connections/dw_nouvellenaissance.php'); ?>
    <?php
    // *** Display of registered users
    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;
    mysql_select_db($database_dw_nouvellenaissance, $dw_nouvellenaissance);
    $query_users_videostream = "SELECT * FROM videostream_users";
    $users_videostream = mysql_query($query_users_videostream, $dw_nouvellenaissance) or die(mysql_error());
    $row_users_videostream = mysql_fetch_assoc($users_videostream);
    $totalRows_users_videostream = mysql_num_rows($users_videostream);mysql_select_db($database_dw_nouvellenaissance, $dw_nouvellenaissance);
    $query_users_videostream = "SELECT * FROM videostream_users";
    $users_videostream = mysql_query($query_users_videostream, $dw_nouvellenaissance) or die(mysql_error());
    $row_users_videostream = mysql_fetch_assoc($users_videostream);
    $totalRows_users_videostream = mysql_num_rows($users_videostream);
    ?>
    <!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=utf-8" />
    <title>Videostream Users List</title>
    </head>
    <body>
    <h3 align="center">Videostream Users List </h3>
    <table  align="center" width="75%" border="1" cellspacing="0" cellpadding="0">
    <tr align="center" BGCOLOR="#99CCFF">
          <th>Surname</th>
          <th>Name</th>
          <th>City</th>
          <th>UserID</th>
          <th>Password</th>
          <th>Edit</th>
          <th>Delete</th>
        </tr>
    <?php do { ?>
        <tr align="center">
          <td><?php echo $row_users_videostream['Nom'];?></td>
          <td><?php echo $row_users_videostream['Prenom'];?></td>
          <td><?php echo $row_users_videostream['Ville'];?></td>
          <td><?php echo $row_users_videostream['user_name'];?></td>
          <td><?php echo $row_users_videostream['user_password'];?></td>
          <td><a href="modifyuser.php?User_id=<?php echo $row_users_videostream['User_id']; ?>"><img src="images/edit.png" alt="modifier" width="15" height="15" hspace="5" /></a>
          <td><a href="deleteuser.php?User_id=<?php echo $row_users_videostream['User_id']; ?>"><img src="images/delete.png" alt="supprimer" width="15" height="15" hspace="5" /></a></td>
        </tr>
    <?php } while ($row_users_videostream = mysql_fetch_assoc($users_videostream)); ?>
    </table>
    <p> </p>
    <p align="center"><a href="formlogoutadmin.php">Deconnexion</a></p>
    </body>
    </html>
    </body>
    </html>
    <?php
    mysql_free_result($users_videostream);
    ?>
    Udate records web page:
    Update records code:
    <?php require_once('Connections/dw_nouvellenaissance.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;
    //*** Update User
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "usersform")) {
      $updateSQL = sprintf("UPDATE videostream_users SET Nom=%s, Prenom=%s, Ville=%s, user_name=%s, user_password=%s WHERE User_id=%s",
                           GetSQLValueString($_POST['Nom'], "text"),
                           GetSQLValueString($_POST['Prenom'], "text"),
                           GetSQLValueString($_POST['Ville'], "text"),
                           GetSQLValueString($_POST['user_name'], "text"),
                           GetSQLValueString($_POST['user_password'], "text"),
                           GetSQLValueString($_POST['User_id'], "int"));
      mysql_select_db($database_dw_nouvellenaissance, $dw_nouvellenaissance);
      $Result1 = mysql_query($updateSQL, $dw_nouvellenaissance) or die(mysql_error());
      $updateGoTo = "showusers.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    $colname_users = "-1";
    if (isset($_GET['User_id'])) {
      $colname_users = $_GET['User_id'];
    mysql_select_db($database_dw_nouvellenaissance, $dw_nouvellenaissance);
    $query_users = sprintf("SELECT * FROM videostream_users WHERE User_id = %s", GetSQLValueString($colname_users, "int"));
    $users = mysql_query($query_users, $dw_nouvellenaissance) or die(mysql_error());
    $row_users = mysql_fetch_assoc($users);
    $totalRows_users = mysql_num_rows($users);
    ?>
    <!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=charset=iso-8859-15" />
    <title>Modify User</title>
    </head>
    <body>
    <h1>Welcome Daniel</h1>
    <h3 align="left">Please modify user fields then click OK</h3>
    <form action="<?php echo $editFormAction; ?>" method="POST" name="usersform" id="usersform">
    <input name="User_id" type="hidden" value="" />
    <table align="left" width="50%">
      <tr align="left">
      <th>Surname: </th><td><input name="Nom" type="text" id="Nom" value="<?php echo $row_users['Nom']; ?>" /></td>
    </tr>
    <tr align="left">
      <th>Name :</th><td><input name="Prenom" type="text" id="Prenom" value="<?php echo $row_users['Prenom']; ?>" /></td>
    </tr>
    <tr align="left">
       <th>City: </th><td><input name="Ville" type="text" id="Ville" value="<?php echo $row_users['Ville']; ?>" /></td>
    </tr>
    <tr align="left">
      <th>User ID:</th><td><input name="user_name" type="text" id="user_name" value="<?php echo $row_users['user_name']; ?>" /></td>
    </tr>
    <tr align="left">
    <th>Password:</th><td><input name="user_password" type="text" id="user_password" value="<?php echo $row_users['user_password']; ?>" /></td>
    </tr>
    <tr align="left">
    <td> </td><td align="left"><input type="submit" name="valider" value="Update" /></td>
    </tr>
    </table>
    <input type="hidden" name="MM_update" value="usersform" />
    </form>
    </body>
    </html>
    <?php
    mysql_free_result($users);
    ?>

    Daniel Cronin,
    This link has information on preparing movies for viewing online by an iPhone:
    https://developer.apple.com/iphone/devcenter/designingcontent.html
    Click on the drop down menu for "Ensure a Great Audio and Video Experience".
    You may need to register for Apple Developer Connection in order to view that information.
    Hope this helps,
    Nathan C.

  • Server java trace error while updating bulk records from AIX to Oracle 10g

    Hi
    I am getting an error in TCL (Tool Command language) script that updates the records in a database table i.e around 2500 records are to be updated. I am using update statement with bind variables to insert the data.
    SQL "insert into netuser.visit_temp (FP_FROM,FP_TO,HOPS,FP_FROM_ID) values (:SN,:EN,:HP,:FPID)" [list SN $startnode EN $endnode HP $hops FPID $fpId]
    However, after processing 900 or so records (takes around 8 hours) I get the following error:
    environment variable "SERVER_JAVA_TRACE" undefined
    while executing
    "getenv SERVER_JAVA_TRACE"
    invoked from within
    "dotransaction {
         logm "Processing $fp"
         set value [SQL $query3 [list FP $fp]]
         logm "Found value $value"
         set fpid [Koplingspunkt quer..."
        ("foreach" body line 3)
        invoked from within
    "foreach fp $cmd2 {
         UtilityObject cleanCache
         dotransaction {
             logm "Processing $fp"
             set value [SQL $query3 [list FP $fp]]
         logm "Found v..."
    Could anyone please suggest the possible cause of error?

    Not a Java question. Locking.

  • Unable to fetch 50,000 records from SQL using Orchestrator

    Hi Team,
    I have a table in MS SQL which is having more than 50,000 records. I am trying to fetch 50,000 records using orchestrator, but unable to fetch the records..
    There is no problem with the SQL query because I can able to get 40,000 records..
    I am using SCORCH DEV - SQL Integration Pack.
    Regards,
    Soundarajan.

    Hi,
    Thanks for your query.
    I have also used timeout parameter but it is not working.. As you said I also tried with Query database Activity which is out of the box...
    Now i can able to fetch more than 80,000 records but the output what i am getting is not in the format which we are looking for..
    Attached the output...
    How to edit this..?
    I tried to write the output in excel but all the data sits in the first column itself..
    Regards,
    Soundarajan.

  • Update mutliple records from resultset

    Hi
    I execute a query which results in multiple records .I update a few checkboxes which come out with the records. I need to update these records into tables for which I call a servlet.How will I pass the record sets into the servlet to update
    Thanks
    Arn

    Here's what you do.
    1. Get a book about Servlets.
    2. Read it.
    Problem solved.

  • How to fetch first 4 records from database.

    hi experts.i am inexperience in this field.
    please tell me suppose i want to extract only 4 records from the database ,
    what is the select statement for this .
    best regards.
    subhasis.

    Hi
    use this program as example.
    u wil get solution.
    REPORT  ZSEN_ABAP_TABLE                         .
    Tables : mara.
    data : wa_mara type mara,
           it_mara type table of mara.
    SELECT * UP TO 4 ROWS FROM MARA INTO TABLE it_mara.
    loop at it_mara into wa_mara.
    Write : / wa_mara-MATNR,
             wa_mara-MTART,
             wa_mara-BISMT.
    endloop.
    Thanks
    Senthil

  • Updating multiple records from single form (ASP)

    I have a nested repeat region.
    I have created in the parent, a form with 3 fields and an update button.
    the child records all have multiple columns, 3 of which correspond to the parent.
    Athe parent is bound to the child records by the shipmentID
    I need to be able to update all child records from the form in the parent.
    The case is this.
    The child records are orders with shipdates and frequencies
    The parent contains a form with fields for shipdate and frequency
    The administrator needs to change the shipdate and/or frequency for all child records.
    (The child records are forms as well--but that's another issue that works fine)
    Shipment ID
    Date Field
    Freq Field
    UPDATE Button
    ShipmentID
    Record 1
    Data case1
    Date
    ShipmentID
    Record 2
    Data case 2
    Date
    I am doing this in classic asp with an SQL database.
    So how do I get the form to update all record
    [Subject title edited by moderator to make clear ASP involved]

    Hi,
    This is one of those questions that would require far more explanation that is reasonable to expect in a forum. You should do a little poking around in the nearest Barnes & Nobles. About a half hour in a chare with a good ASP book and vanilla latte should have you on the right track.
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF

  • Fetching 3 laks records from the database

    Hi All,
    I have a requirement that if we are fetchin 3 lakks records from the database, can we fetch the records in a single span of time ,if yes then how?
    If no, then we have to fetch the recods multiple times but since for the first time it is fetching 1 lakh records and for the next time how the bpel engine know that it has to fetch 1000001 record.
    Can anybody came this type of scenario. Please guide me on this.
    Regards,
    Ch

    There are some options given here @ http://myexperienceswithsoa.blogspot.com/2010/06/db-adapter-polling-tricks.html
    Check them out.
    But if you reading so much of data at once, you better have the necessary infrastructure to handle the load like memory, jvm tuning, etc ...
    If there is a limitation, you will need to assess your polling record count to be may 10K or so to strike a balance on the performance.
    Hope this helps.
    Thanks,
    Patrick

  • How to fetch the distict records from xcelsius excel column

    i have brought the datas from database using webservice
    from this data i want to fetch the distinct records in another column
    how to do this without using third party tool like "Centigon filtered summary"
    plz help me.
    Regards
    Ram.G
    Edited by: g.ram84 on Dec 1, 2009 6:57 AM

    Hi Ram,
    This can be achieved using functionalities within excel of the Xcelsius.
    Please try the steps below:
    1) From the excel menu choose Data | Filter | advaced Filter.
    2) choose your entire range.
    3) choose location to copy.
    4) choose Unique records only
    and only unique records will be copied.
    Hope this helps...
    Regards,
    Ankeet

  • Update multiple records from list box

    The idea is to present a list box to allow for the selection
    of multiple records. The records' primary key field having been set
    up as the value parameter in the list box. Then use a single update
    statement to update all selected records with a common value.
    I have tried to do this using code similar to:
    UPDATE MyTable SET MyTable.MyColumn = 1 WHERE (
    MyTable.MyKeyField IN ( @ListOfIntegers ) )
    Where the parameter is configured thus:
    <Parameter Name="@ListOfIntegers" Value='<%#
    ((Request.Form["MyListBox"]' Type="Int" />
    The idea is that the multiple selection listbox will return a
    comma separated list, which should l work nicely with the WHERE
    [column] IN ( .. ) syntax.
    Unfortunatley if more than one record is selected the
    Complier throws a type conversion error.
    I want to do this using Dreamweaver and C# on .NET.
    Any ideas how to proceed ?

    Are you wanting to update multiple records with the same
    information or
    different information for each record?
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "lyleja" <[email protected]> wrote in
    message
    news:f1cpe5$jj1$[email protected]..
    > The idea is to present a list box to allow for the
    selection of multiple
    > records. The records' primary key field having been set
    up as the value
    > parameter in the list box. Then use a single update
    statement to update
    > all
    > selected records with a common value.
    >
    > I have tried to do this using code similar to:
    >
    > UPDATE MyTable SET MyTable.MyColumn = 1 WHERE (
    MyTable.MyKeyField IN (
    > @ListOfIntegers ) )
    >
    > Where the parameter is configured thus:
    > <Parameter Name="@ListOfIntegers" Value='<%#
    ((Request.Form["MyListBox"]'
    > Type="Int" />
    >
    >
    > The idea is that the multiple selection listbox will
    return a comma
    > separated
    > list, which should l work nicely with the WHERE [column]
    IN ( .. ) syntax.
    >
    > Unfortunatley if more than one record is selected the
    Complier throws a
    > type
    > conversion error.
    >
    > I want to do this using Dreamweaver and C# on .NET.
    >
    >
    > Any ideas how to proceed ?
    >
    >
    >

Maybe you are looking for

  • Passing resultsets in a method

    Hello all I am curious what the general thought/idea is about methods passing result sets to the caller - I am guessing bad idea correct ?

  • Want to Avoid Loop for all entries with select query !!

    Hi Guru's  ! This is my following code . I want to avoid loop  to improve the performance of program. data: lt_cuhd type HASHED TABLE OF /sapsll/cuhd WITH UNIQUE key guid_cuhd,       ls_cuhd type /sapsll/cuhd. data: lt_comments type STANDARD TABLE OF

  • Layout for IMA3N

    hi ABAPERS, good day, i am creating a layout for IMA3N tcode, there are 3 fields, PRNAM, POSID, GJAHR, these are available in IMPR table, but the POSNR (appropriation request number), it is maintaining internally,not the one which i have given at IMA

  • CS4 Crash, Properties panel unresponsive

    Recently I had issue with Flash CS4 crashing repeatedly. Also the application would have trouble using the text tool to create TextFields it would not update the properties panel (Ctrl+F3) when switching between field types (dynamic, static and input

  • Execute in background, selecting target server

    Hi Gurus, System with DB-server and one applicationserver. for TC ZDOP, we increased Extendmemory on applicationserver only. With F9 - execute in background, there is no choice  to select the targetserver - like in SM36 for jobscheduling. Is thare a