Update the database.

Hi,
I have a (server 1) 10.2.0.3 on RHEL. I have upgraded it to (server 2) 11.2.0.1.0 on Windows 2003 Server. Tis was done three months back. The user have tested server 2 and said it is OK. Now they are ready to make it "the production" one. Now I have to update the database. (since during the period of testing, the server 1 was production and have more updated data.) How would I do that? Do I have to delete the old database on server 2, again create a new database, and then do the exp and imp? or is there another way?
Thanks,

Make a full export but only import the application schema's.
Before doing that you have to drop the application schema user (cascade) and create the user again.
The related tablespaces will still be there but they are empty because of dropping the schema user.
After that you can import only the application schema's from the full export.
Finally your production database is still the same but the application schema is updated with the latest data from the export dump.

Similar Messages

  • Regardig error while updating the database table

    hi experts,
       i m trying to update the database table from the values containig in my internal table  ,,,but the system is giving this error plz help me::::
    The type of the database table and work area (or internal table)
    "ITAB_UPDATE" are not Unicode convertible. Unicode convertible.          
    my internal table name itab_update and the database table name yitab.i m using this statement::
        modify yitab from itab_update.

    Hi
    1. You  have to Declare the Itab with the same structure as DB table.
    2. Use the statement
        Modify <DBtable> from TABLE <itab>.
    or
       Update <DBtable> from TABLE <itab>.
    Hope this will solve.
    Reward .....if so.
    Regards.

  • Application Compatibility does not update the database.

    Hi,
     I am using application compatibility manager 6.1, and SQL server 2012 as database. ACT run ok and it create the XML file but it does not update the database at "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA" location.
    I can see the valid XML file but somehow the MDF file of database is not updated so my ACT windows does not showing anything on it.
    Any Help would be appreciated.
    Thanks
    Rakesh Patel
    rakesh patel

    Hi Rakesh,
    I am not sure if you have resloved your issue.
    But for helping others to know what to do if they meet the same issue as yours, I consider to mark the post as answered.
    If you would like further assistance, please post back and we will be always here to help you.
    Any concern about this mark behavior, you can just unmark it.
    Thanks for your understanding.
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Change the data in fieldcat and update the database table in alv oops

    Hi,
    my requirement is i have displayed a fieldcat in change mode and when i change the data and click on save it has to be updated the database table..
    this has to be done using alv oops...

    Hi,
    This code will reflect all the changes into the internal table that is being displayed.
    * to reflect the data changed into internal table
          DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
          IF ref_grid IS INITIAL.
            CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
              IMPORTING
                e_grid = ref_grid.
          ENDIF.
          IF NOT ref_grid IS INITIAL.
            CALL METHOD ref_grid->check_changed_data.
          ENDIF.
    Now after this code is executed the internal table is modified as per the changes done in alv output.
    Now you can use this internal table to update the database table.
    Hope this helps you.
    Regards,
    Tarun

  • Update the database structure from entity Framework Model

    Hello !
    I'm using VB.net , EF6 with SQL server 2008R2 database.
    This is the situation :
    I have created the application. Using wizard I have created the Entity model from an existing database.
    A client start using this application using this database on his computer.
    After some month , I made some modifications on the database and I have updated the model on my application .
    Now I have a new .exe file that has the new model from the new database.
    I put the new .exe file on the client computer.
    Now on his computer : The .exe file has the new database model , but the sql server database has the old structure.
    I want to know : Is possible to update the database structure from the entity model on application ?
    I want to add a command on application that can make ( if is possible ) this update , so the database become up to date according to entity model ?
    Thank you !

    Hello,
    From your description, it seems that you want to apply a migration for a database first approach, unfortunately, as far as I know, EF Migrations is a product targeted at Code First and doesn't support Database First operations. A workaround I know is to
    use update-scripts. If your database structure would be changed frequently, it is recommended to use the Code First approach which would have a better workaround for migrations, for details, you could refer to this
    video,
     and with the
    Entity Framework Power Tools, it is easy to create a code first based project form an existing database.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Using Tabstrip update the database table

    Hi Guy's,
    I created two screens(100 & 110).
    Click 1 pushbutton HRP1000 related information is displayed.
    Click 2 pushbutton it displays HRP1001 relatd information.
    worked to read the data from the Database tables and output displayed sucessfuly .   However i want to entered data in those fields wants to update to database table.
    Please friends help me how to work this senario.
    Thanks and Regards,
    Sai.

    Hi Guy's,
    To update the database records, wrote the logic in PAI
       WHEN 'SAVE'.
        INSERT HRP1001.
    INSERT INTO HRP1001  VALUES wa_P2.
    it displaying an error message " the work area wa_p2 is not long enough.
    and also i tried using it_p2
    it displaying an error message " you can't use internal table as work area".
    Please help me friends  it is very urgent.
    Thanks and Regards,
    Sai.

  • Update the database table

    Hi All,
      i need to do  direct update to the database table and the table has apprx 60,000 records . i am getting all records from database table to internal table and has to chnage the one of the field value and pass it to the database table .  So  i am looping  the internal table and what is the best approach to update the database table is it to  use UPDATE Pa0001 SET KOSTL = it_0001-KOSTL from table it_0001  each time in the loop to update each record  and commit work which hits database for each record or use the statement UPDATE  pa0001 from table it_0001 and if count = 1000 then  COMMIT work in this way it will hit the database for every 1000 records . Appreciate your suggestions,
    Thanks,
    Latha.

    My Code to update PA0006 is :
    DATA:  t_pa0006 TYPE STANDARD TABLE OF pa0006 INITIAL SIZE 0,
           wa_pa0006 LIKE LINE OF t_pa0006,
           w_lin TYPE i.
    FIELD-SYMBOLS:  <fs_pa0006> LIKE LINE OF t_pa0006.
    SELECT * FROM pa0006 INTO TABLE t_pa0006 WHERE uname = 'PKHAROR'.
    LOOP AT t_pa0006 ASSIGNING <fs_pa0006>.
      <fs_pa0006>-stras = 'My Street'.
    ENDLOOP.
    DESCRIBE TABLE t_pa0006 LINES w_lin.
    UPDATE pa0006 FROM TABLE t_pa0006.
    IF sy-subrc EQ 0.
      COMMIT WORK.
      WRITE:/ w_lin, ' Records have been updated..'.
    ENDIF.
    Reward points for useful answers
    Regards
    Pradeep
    Regards
    Pradeep

  • Update the database table inside an user exit.

    Hi Experts,
    I have a issue where i have to update a custom table in an User exit.
    I am using Lock object for ENQUE/DEQUE.
    I have tried to use statements like UPDATE/MODIFY inside the user exit.
    But the problem is that it's not updating the database table at the same time.
    I know if i use COMMIT WORK it can update at the same time but it's not advisable to use COMMIT inside a work.and also it gives a short dump.
    The real issue is that this custom table is read for batch creation at the same time for different users.
    Now if it the program does not update the database table at the same time then other users also read the same data and create the same Batch number..
    While requirement is to create a different/unique batch numbers.
    Program is updating the table but it's taking time..so in between other users are creating the same batch number.
    Please guide me what would be the best solution for this.
    Regards,
    Amit Kumar Singh

    Thanks for your quick reply.
    My actually requirement is like that.
    I have to create a Process Order using tcode COR1.
    After passing some input value it goes inside an User Exit.
    There one Custom table is maintained which stores some fields like month,year,numeric key field,etc.
    The new batch number is created using the combination of these table fields.
    Once a new batch number is created it increment the numeric key field number by one.
    Issue is we have to update this new numeric field value into the database field so that other users can read a diffrent numeric field value.hence it will create a new/different batch number.
    Here i am not able to update the database table inside this User Exit.
    Table is geeting updated but after some time and out of this User Exit.
    Please suggest what's required in that case?
    Regards,
    Amit Kumar Singh
    Edited by: Amit  Singh on Feb 3, 2009 11:33 AM

  • Master-Detail table on the JSF is unable to update the database

    Hi all,
    In my ADF application I am using a master-deatail relationship datasource. I have to enter the detail rows for a master table row and submit the detail rows it should update the
    database. For this I created a master-detail table and dragged the same on to my JSF page as ADF Forms. I created the forms as ADF Form included all the buttons and submit button. I
    dragged CreateInsert operation from the detail table datacontrol on to the detail form. When I enter the detail and click on submit the data is not getting submitted in the database.
    Please help me in this.
    Thankd In Advance.

    There is no such thing as an iPhone 's3'.  There is a 3G which can only be updated to iOS 4.2.1 and a 3GS which can be updated to iOS 6.1.3.
    Which model iPhone is this?
    Identifying iPhone models

  • An error occurred while attempting to update the database

    Hi
    the update from 2.82 to 2.9.0 fails for me with following message
    An error occurred while attempting to update the database.
    the update log ends like this
    [Microsoft][ODBC SQL Server Driver][SQL Server]DELETE failed because the
    following SET options have incorrect settings: 'QUOTED_IDENTIFIER'. Verify
    that SET options are correct for use with indexed views and/or indexes on
    computed columns and/or filtered indexes and/or query notifications and/or XML
    data type methods and/or spatial index operations.
    1> 2> 3> [16:56:20] RunShellCommand: Command: osql exited with code: 1
    [16:56:20] RunShellCommand: Exit code indicates failure.
    [16:56:20] UpdateDatabase: Failed to run database update script.
    hope that anyone can solv this for me

    It seems that my problem is with one of ldapservers.
    When the periodic update runs.
    then there will be error periodic update failed
    log file mdm_error looks like this
    [00:01:46] Failed running query:
    IF NOT EXISTS(SELECT LDAPContainerName FROM LDAPContainers WHERE LDAPContainerName=? AND LDAPServerSAKey = ?)
    BEGIN INSERT INTO LDAPContainers(LDAPContainerName, DisplayName, LDAPContainerType, ParentContainerSAKey,
    LDAPServerSAKey, LDAPMemberType, AllowHandsOffEnrollment) VALUES (?,?, 2,
    (SELECT LDAPContainerSAKey FROM LDAPContainers WHERE LDAPContainerName =? AND LDAPServerSAKey =?) , ?, 1, 1) END
    SQLError:
    I think this is the reason that the upgrade fails.
    How can i solve this?

  • Field value is getting double while updating the database table

    Hi Experts,
    A simple doubt :
    there is a standard program through which a zfunction module is getting triggered, through this zfunction module i am updating the database table.
    Now what happening is one of the field(KCQTY) value in database is getting double at a time when i am executing the Program with same variant only.
    I have also done the CLEAR & REFRESH internal tables starting of the Function module.
    Can you please help me out.
    Max points wil be awarded.
    thanks
    rico.

    Hi Nicole,
    this is the part of the coding where you can see how the field KCQTY is getting moved in the loop statement.
      DELETE IT_CE20002B_815 WHERE
          KONDA = SPACE  OR
          WERKS = SPACE  OR
          VVB01001 < 0.
        LOOP AT IT_CE20002B_815.
          INDX = SY-TABIX.
          CONCATENATE IT_CE20002B_815-PERBL0(4) IT_CE20002B_815-PERBL5(2)
                                                    INTO MONAT.
       MOVE itab_ce20001b-perbl TO monat.
          CLEAR S815.
          READ TABLE IT_ZPL_MCS5 WITH KEY KONDA = IT_CE20002B_815-KONDA
                                           BINARY SEARCH.
            SELECT SINGLE * FROM S815 WHERE VRSIO = '000'
                                         AND SPMON = MONAT
                                         AND KONOB = 'APO'
                                         AND MVGR2 = IT_CE20002B_815-KONDA
                                         AND PRODH = IT_CE20002B_815-PRDHA
                                         AND WERKS = IT_CE20002B_815-WERKS.
                                        AND VTWEG EQ CO_VTWEG_99.
    BREAK SAMEE.
          IF SY-SUBRC EQ 0.
    Eintrag in S810 existiert
            IF S815-AEMENGE <= IT_CE20002B_815-VVB01001.
    wenn die Auftragseingangsmenge kleiner gleich der Kontingentsmenge
    wird die Kontingentmenge in das Steploop übernommen
              MOVE IT_CE20002B_815-VVB01001 TO  W_T_DATA_815-KCQTY.
    *Liste ausgeben
             PERFORM AUSGABE4.
              PERFORM AUSGABE4_815.
            ELSE.
    Ausgabe Fehlermeldung, wenn die Auftragsmenge größer als die
                           Kontingentmenge ist.
    *Liste mit fehlermeldungen ausgeben, Kontingent trotzdem übernehmen
              MOVE IT_CE20002B_815-VVB01001 TO  W_T_DATA_815-KCQTY.
             PERFORM AUSGABE_FEHLER4.
              PERFORM AUSGABE_FEHLER4_815.
            delete it_ce20002b index indx.
            continue.
            ENDIF.
          ELSE.
    Es existiert kein Eintrag in S810, dann direkt eingeben
            MOVE IT_CE20002B_815-VVB01001 TO W_T_DATA_815-KCQTY.
            MODIFY IT_CE20002B_815 INDEX INDX.
    *Liste ausgeben (Kein Eintrag in S810)
           PERFORM EINTRAG2.
            PERFORM EINTRAG2_815.
          ENDIF.
    *Übergabestructur für die Weiterverarbeitung durch das Copymanagement
    *im Functionsbaustein wird gefüllt.
          W_T_DATA_815-SPMON = MONAT.   "itab_ce20001a-perbl.
          W_T_DATA_815-KONOB = CO_KONOB_APO.
          READ TABLE IT_ZPL_MCS5 WITH KEY KONDA = IT_CE20002B_815-KONDA
                                          BINARY SEARCH.
          IF SY-SUBRC EQ 0.
            W_T_DATA_815-MVGR2 = CO_MVGR2_999.
          ELSE.
            W_T_DATA_815-MVGR2 = IT_CE20002B_815-KONDA.
          ENDIF.
          W_T_DATA_815-WERKS = IT_CE20002B_815-WERKS.
          W_T_DATA_815-PRODH = IT_CE20002B_815-PRDHA.
         W_T_DATA_815-VTWEG = '99'.
         W_T_DATA_815-KUNNR = '9999999999'.
          W_T_DATA_815-KCQTY = IT_CE20002B_815-VVB01001.
          W_T_DATA_815-BASME = IT_CE20002B_815-VVB01_ME.
    JR181005 - begin of ins.
         w_t_data_810-matkl = it_ce20002b-matkl.
    JR181005 - end of ins.
          APPEND W_T_DATA_815 TO TAB_DATA.
          CLEAR IT_CE20002B_815.
        ENDLOOP.
    thanks for reply
    rico

  • Rfc enabled function module for the updating the database table

    Hi,
            I need one rfc enabled function module for the updating the database table from the legacy system.currently i am using the rfc_read_table to read the database table.similarly i need for the update.

    Hi
    I believe you need to create one by yourself
    Max

  • REUSE_ALV_GRID_DISPLAY - updating the database with new values

    Hi,
    I am using the function module 'REUSE_ALV_GRID_DISPLAY' to display records. I have managed to open a field for input/edit mode. Once this data has been changed , where will this data be? I have checked the internal table - no joy. I need to use this new/changed data to update the database with the new values.
    Thanks,
    Leanne

    Hi,
    The data is stored in table tab. After the changes the data does not reflect in table tab. Where can I get the data so that I can update my database?
    I have coded the process as follows:
        when '&SUSPEND'.
          loop at tab
            where box = 'X'.
              update zzzz
                set status       = 'SP'
          endloop.
    Regards,
    Leanne

  • Console Application not updating the database

    Dear all,
    I am new to c# development. I have a console application front end in program.cs
    I have a local database on visual studio.
    When I execute the stored procedure locally on the database the data is getting updated in the database.
    When I update the same through Console Application - the data is not appearing in the database.
    Can somebody throw light on this? Where I am missing
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Data;
    using System.Data.SqlClient;
    namespace AssetApp
    class Program
    static void Main(string[] args)
    bool value = true;
    while (value)
    value = getdisplay();
    //Console.ReadLine();
    //value = false;
    private static bool getdisplay()
    Console.WriteLine("-------------------------------------- ");
    Console.WriteLine("---------------------------------------");
    Console.Clear();
    Console.WriteLine("----------Asset Application------------");
    Console.WriteLine(" 1 Company Asset ");
    Console.WriteLine(" 2 Standby Laptop Register ");
    Console.WriteLine(" 3 Scrap Register ");
    Console.WriteLine(" 4 Purchase Register ");
    Console.WriteLine(" 5 Service Call Report ");
    Console.WriteLine(" 6 IT Helpdesk ");
    Console.WriteLine(" 7 Exit ");
    Console.WriteLine("---------------------------------------");
    string input = Console.ReadLine();
    switch (input)
    case "1":
    CompanyAsset();
    break;
    case "2":
    Console.WriteLine("Standy Laptop Register");
    break;
    case "3":
    Console.WriteLine("Scrap Register");
    break;
    case "4":
    Console.WriteLine("Purchase Register");
    break;
    case "5":
    Console.WriteLine("Service call Report");
    break;
    case "6":
    Console.WriteLine("IT Helpdesk");
    break;
    case "7":
    return false;
    default:
    break;
    return true;
    private static void CompanyAsset()
    Console.WriteLine("------Company Asset------------------------");
    Console.WriteLine("Type the Department Name");
    string departmentName = Console.ReadLine();
    Console.WriteLine("Type the First Name");
    string firstName = Console.ReadLine();
    Console.WriteLine("Type the Last Name");
    string lastName = Console.ReadLine();
    Console.WriteLine("Type the User Name");
    string userName = Console.ReadLine();
    Console.WriteLine("Type the Model Number");
    string modelNumber = Console.ReadLine();
    Console.WriteLine("Type the AssetTypeID");
    string assetTypeID = Console.ReadLine();
    Console.WriteLine("Type the SerialNumber");
    string serialNumber = Console.ReadLine();
    Console.WriteLine("Type the WarrantyStartDate");
    DateTime warrantyStartDate = Convert.ToDateTime(Console.ReadLine());
    Console.WriteLine("Type the WarrantyEndDate");
    DateTime warrantyEndDate = Convert.ToDateTime(Console.ReadLine());
    Console.WriteLine("Company");
    string company = Console.ReadLine();
    Console.WriteLine("EngineerID");
    string engineerID = Console.ReadLine();
    Console.WriteLine("ITHelpdeskID");
    string itHelpdeskID = Console.ReadLine();
    Console.WriteLine("EmpID");
    string empID = Console.ReadLine();
    //Handshake
    SqlConnection myNewConnection = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\AssetApp.mdf;Integrated Security=True");
    //open the database
    myNewConnection.Open();
    //create command
    SqlCommand myCommand = myNewConnection.CreateCommand();
    //using the stored procedue to update the database using parameters add
    myCommand.CommandText = "InsertAsset";
    myCommand.CommandType = CommandType.StoredProcedure;
    myCommand.Parameters.Add(new SqlParameter("@DepartmentName", departmentName));
    myCommand.Parameters.Add(new SqlParameter("@FirstName", firstName));
    myCommand.Parameters.Add(new SqlParameter("@LastName", lastName));
    myCommand.Parameters.Add(new SqlParameter("@UserName", userName));
    myCommand.Parameters.Add(new SqlParameter("@ModelNumber", modelNumber));
    myCommand.Parameters.Add(new SqlParameter("@AssetTypeID", int.Parse(assetTypeID)));
    myCommand.Parameters.Add(new SqlParameter("@SerialNumber", serialNumber));
    myCommand.Parameters.Add(new SqlParameter("@WarrantyStartDate", warrantyStartDate));
    myCommand.Parameters.Add(new SqlParameter("@WarrantyEndDate", warrantyEndDate));
    myCommand.Parameters.Add(new SqlParameter("@Company", company));
    myCommand.Parameters.Add(new SqlParameter("@EngineerID", int.Parse(engineerID)));
    myCommand.Parameters.Add(new SqlParameter("@ITHelpdeskID", int.Parse(itHelpdeskID)));
    myCommand.Parameters.Add(new SqlParameter("@EmpID", int.Parse(empID)));
    int recordsAffected = myCommand.ExecuteNonQuery();
    if (recordsAffected == 1)
    Console.WriteLine("Successful your entry");
    else
    Console.WriteLine("Your entry is not successful");
    myNewConnection.Close();
    Console.WriteLine("");
    Console.WriteLine("Press Enter to continue");
    Console.ReadLine();
    public static void StandbyLaptopRegister()
    Console.WriteLine("-------------------------------");
    Console.WriteLine("Select the Date & Time");
    string DateTime = Console.ReadLine();
    Console.WriteLine("");
    ALTER PROCEDURE dbo.InsertAsset
    @DepartmentName NVARCHAR(50),
    @FirstName NVARCHAR(50),
    @LastName NVARCHAR(50),
    @UserName NVARCHAR(50),
    @ModelNumber NVARCHAR(50),
    @AssetTypeID INT,
    @SerialNumber NVARCHAR(50),
    @WarrantyStartDate SMALLDATETIME,
    @WarrantyEndDate SMALLDATETIME,
    @Company NVARCHAR(50),
    @EngineerID INT,
    @ITHelpdeskID INT,
    @EmpID INT
    @parameter1 int = 5,
    @parameter2 datatype OUTPUT
    AS
    /* SET NOCOUNT ON */
    BEGIN
    INSERT CompanyAsset(DepartmentName,
    FirstName,
    LastName,
    UserName,
    ModelNumber,
    AssetTypeID,
    SerialNumber,
    WarrantyStartDate,
    WarrantyEndDate,
    Company,
    EngineerID,
    ITHelpdeskID,
    EmpID)
    VALUES(@DepartmentName,
    @FirstName,
    @LastName,
    @UserName,
    @ModelNumber,
    @AssetTypeID,
    @SerialNumber,
    @WarrantyStartDate,
    @WarrantyEndDate,
    @Company,
    @EngineerID,
    @ITHelpdeskID,
    @EmpID)
    /*RETURN @@IDENTITY*/
    END
    Cheers
    Sathya

    Hello,
    Usually when I see
    AttachDbFilename=|DataDirectory| ...
    The database was added into the project via the IDE add new data source and if so make sure under the property window for the database that "Copy to Output Directory" is set to either the first or last option as the default "Copy always"
    copies the database each time you build the project thus overwrites the last time you ran the project.
    I would recommend the "Copy if Newer" which means the database is only copied if you make changes to the database. Set "Copy if newer", build run check results.
    Of course this may not be the issue but may very well be too.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Trouble updating the database

    Hi,
    I using java studio creator 2 update 1. I have two pages. The first page contains a table with hyperlinks in serial_no column. When the user clicks on a hyperlink(serial_no) it redirects to another page which displays the details of the product that can be edited as drop down lists and text areas. I am not able to update the database with the edited values. I have been struggling with this since a week. Please help me. The code in the second page is as follows
    public void prerender() {
    serialNo = (String)getExternalContext().getRequestParameterMap().get("SerialNo");
    try
    getSessionBean1().getTblSampleRowSet4().setCommand("select Username, Problem_Type, Priority , Enhancement, Time, Source_req, Assigned_To,substring_index(Comment,'<END>',-1) as 'userComment', Solution, serial_no from tblSample where serial_no = " + serialNo);
    stUserName.setText(getSessionBean1().getTblSampleRowSet4().getString("Username"));
    ddlProblemType.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Problem_Type"));
    String priority = getSessionBean1().getTblSampeRowSet4().getString("Priority");
    outputText1.setValue(priority);
    ddlPriority.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Priority"));
    // ddlp.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Priority"));
    ddlEnhancement.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Enhancement"));
    ddlTime.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Time"));
    ddlSourceReq.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Source_req"));
    ddlAssignedTo.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Assigned_To"));
    taSolution.setText(getSessionBean1().getTblSampleRowSet4().getString("Solution"));
    taUserComment.setText(getSessionBean1().getTblSampleRowSet4().getString("userComment"));
    catch(Exception e)
    * <p>Callback method that is called after rendering is completed for
    * this request, if <code>init()</code> was called (regardless of whether
    * or not this was the page that was actually rendered). Customize this
    * method to release resources acquired in the <code>init()</code>,
    * <code>preprocess()</code>, or <code>prerender()</code> methods (or
    * acquired during execution of an event handler).</p>
    public void destroy() {
    tblSampleDataProvider4.close();
    // tblSampleDataProvider.close();
    public String btnSave_action() {
    // TODO: Process the button click action. Return value is a navigation
    // case name where null will return to the same page.
    try {
    tblSampleDataProvider4.setValue("tblSample.Problem_Type", ddlProblemType.getSelected());
    tblSampleDataProvider4.setValue("tblSample.Priority", ddlPriority.getSelected());
    tblSampleDataProvider4.setValue("tblSample.Enhancement", ddlEnhancement.getSelected());
    tblSampleDataProvider4.setValue("tblSample.Time", ddlTime.getSelected());
    tblSampleDataProvider4.setValue("tblSample.Source_req", ddlSourceReq.getSelected());
    tblSampleDataProvider4.setValue("tblSample.Assigned_To",ddlAssignedTo.getSelected());
    tblSampleDataProvider4.setValue("tblSample.Comment",taUserComment.getText());
    tblSampleDataProvider4.setValue("tblSample.Solution", taSolution.getText());
    tblSampleDataProvider4.commitChanges();
    tblSampleDataProvider4.refresh();
    } catch (Exception ex) {
    outputText1.setValue("error");
    return null;
    If i use
    getSessionBean1().getTblSampleRowSet4().execute(); after setting the command, it doesnt work. But if i comment it out, data corresponding to the serial no passes gets displayed. But I am not able to update the table with edited data.
    S

    Just a quick comment--
    You won't need rowset.getString(..) and dataprovider.setValue(...) if you bind the components and it could make it much simpler.
    There's a step by step tutorial on how to achieve this:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    If you can zip up the Project and email to me at CreatorFeedback AT sun DOT com, i can take a quick look at it. I would need your schema/SQL script as well.
    HTH,
    Sakthi

Maybe you are looking for

  • Planning file entries missing for some materials in MD21.

    Hi gurus, when i check the MD21, i found that some materails are not having planning file entries i.e netch and netpl indicator .and because of this we found that these materials are not being in planning. From my understanding these planning file en

  • ITunes 7 unknown error

    when ever i install itunes 7 and try to run it i get a softwear licence agreement, then i click agree, then a box comes up and says "The ITunes application could not be opened. An unknown error occured (0x666D743F)". Anyone got any ideas on how to fi

  • How to stop while loop for particular time

                    public void test()                new Thread(new Runnable()                     public void run()                          //Thread.currentThread().setPriority(Thread.MIN_PRIORITY);                          System.out.println("test");

  • Crystal 8.5 Preview on Dual Screens

    I have an application that uses the Crystal 8.5 VCL to preview and print reports. When the user has dual monitors, the application can be moved from one monitor to another. If the application is moved from monitor 1 to monitor 2, all subsequent forms

  • Validating Internal Order Settlement Rule during creation

    Does anybody know of a user exit, badi, anything, that can be used to validate assignement data when creating/changing the settlement rule on an internal order? Appreciate the help... Sam