Using textboxes in insert command

Sir,
I had a doubt about insert command while I was trying to give the content of the swing text boxes as the arguments to the insert command.Is it possible?.How can i give values to the fields of a table through GUI components.

Hi,
I meant using text boxes in insert statement.because all time we should not give literals.we should have got inputs from swing panel from which we have to
insert data into tables.So I asked how can i give variables or input GUI Components as arguments of insert statement. Also I gave the code below
//CRM Sections Campaign
//package marketing;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class CRM_Marketing_1B extends JFrame implements ActionListener
JOptionPane joptMessage;
JButton jbtnSave;
JButton jbtnClear;
JButton jbtnExit=new JButton("Exit");
public CRM_Marketing_1B(String title)
Container conMarketingPane=getContentPane();
conMarketingPane.setLayout(new FlowLayout());
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel lblCustomer_Id=new JLabel("Customer ID");
JLabel lblCustomer_Name=new JLabel("Customer Name");
JLabel lblCompany_Name=new JLabel("Company Name");
JLabel lblDesignation=new JLabel("Designation");
JLabel lblAddress1=new JLabel("Address1");
JLabel lblAddress2=new JLabel("Address2");
JLabel lblQuantity=new JLabel("Quantity");
JLabel lblUnit_Price=new JLabel("Unit Price");
JLabel lblInterest_Level=new JLabel("Interest Level");
JLabel lblContact_No=new JLabel("Contact No");
JLabel lblMobile_No=new JLabel("Mobile No");
JLabel lblEmail=new JLabel("Email Address");
JLabel lblEmployee_Id=new JLabel("Employee ID");
JLabel lblCampaign_Date=new JLabel("Campaign Date");
JLabel lblNext_Appointment=new JLabel("Next Appointment");
JLabel lblCampaign_Id=new JLabel("Campaign ID");
JLabel lblTeam_Id=new JLabel("Team ID");
JLabel lblOrder_No=new JLabel("Order No");
JLabel lblResult=new JLabel("Result");
JTextField txfCustomer_Id=new JTextField(30);
JTextField txfCustomer_Name=new JTextField(30);
JTextField txfCompany_Name=new JTextField(30);
JTextField txfDesignation=new JTextField(30);
JTextField txfAddress1=new JTextField(30);
JTextField txfAddress2=new JTextField(30);
JTextField txfQuantity=new JTextField(30);
JTextField txfUnit_Price=new JTextField(30);
JTextField txfInterest_Level=new JTextField(30);
JTextField txfContact_No=new JTextField(30);
JTextField txfMobile_No=new JTextField(30);
JTextField txfEmail=new JTextField(30);
JTextField txfEmployee_Id=new JTextField(30);
JTextField txfCampaign_Date=new JTextField(30);
JTextField txfNext_Appointment=new JTextField(30);
JTextField txfCampaign_Id=new JTextField(30);
JTextField txfTeam_Id=new JTextField(30);
JTextField txfOrder_No=new JTextField(30);
JTextField txfResult=new JTextField(30);
JButton jbtnSave=new JButton("Save");
JButton jbtnClear=new JButton("Clear");
JButton jbtnExit=new JButton("Exit");
conMarketingPane.add(lblCustomer_Id);
conMarketingPane.add(lblCustomer_Name);
conMarketingPane.add(lblCompany_Name);
conMarketingPane.add(lblDesignation);
conMarketingPane.add(lblAddress1);
conMarketingPane.add(lblAddress2);
conMarketingPane.add(lblQuantity);
conMarketingPane.add(lblUnit_Price);
conMarketingPane.add(lblInterest_Level);
conMarketingPane.add(lblContact_No);
conMarketingPane.add(lblMobile_No);
conMarketingPane.add(lblEmail);
conMarketingPane.add(lblEmployee_Id);
conMarketingPane.add(lblCampaign_Date);
conMarketingPane.add(lblNext_Appointment);
conMarketingPane.add(lblCampaign_Id);
conMarketingPane.add(lblTeam_Id);
conMarketingPane.add(lblOrder_No);
conMarketingPane.add(lblResult);
conMarketingPane.add(txfCustomer_Id);
conMarketingPane.add(txfCustomer_Name);
conMarketingPane.add(txfCompany_Name);
conMarketingPane.add(txfDesignation);
conMarketingPane.add(txfAddress1);
conMarketingPane.add(txfAddress2);
conMarketingPane.add(txfQuantity);
conMarketingPane.add(txfUnit_Price);
conMarketingPane.add(txfInterest_Level);
conMarketingPane.add(txfContact_No);
conMarketingPane.add(txfMobile_No);
conMarketingPane.add(txfEmail);
conMarketingPane.add(txfEmployee_Id);
conMarketingPane.add(txfCampaign_Date);
conMarketingPane.add(txfNext_Appointment);
conMarketingPane.add(txfCampaign_Id);
conMarketingPane.add(txfTeam_Id);
conMarketingPane.add(txfOrder_No);
conMarketingPane.add(txfResult);
conMarketingPane.add(jbtnSave);
conMarketingPane.add(jbtnClear);
conMarketingPane.add(jbtnExit);
setSize(900,900);
setVisible(true);
lblCustomer_Id.setLocation(50,50);
lblCustomer_Name.setLocation(50,70);
lblCompany_Name.setLocation(50,90);
lblDesignation.setLocation(50,110);
lblAddress1.setLocation(50,130);
lblAddress2.setLocation(50,150);
lblQuantity.setLocation(50,170);
lblUnit_Price.setLocation(50,190);
lblInterest_Level.setLocation(50,210);
lblContact_No.setLocation(50,230);
lblMobile_No.setLocation(50,250);
lblEmail.setLocation(50,270);
lblEmployee_Id.setLocation(50,290);
lblCampaign_Date.setLocation(50,310);
lblNext_Appointment.setLocation(50,330);
lblCampaign_Id.setLocation(50,350);
lblTeam_Id.setLocation(50,370);
lblOrder_No.setLocation(50,390);
lblResult.setLocation(50,410);
txfCustomer_Id.setLocation(250,50);
txfCustomer_Name.setLocation(250,70);
txfCompany_Name.setLocation(250,90);
txfDesignation.setLocation(250,110);
txfAddress1.setLocation(250,130);
txfAddress2.setLocation(250,150);
txfQuantity.setLocation(250,170);
txfUnit_Price.setLocation(250,190);
txfInterest_Level.setLocation(250,210);
txfContact_No.setLocation(250,230);
txfMobile_No.setLocation(250,250);
txfEmail.setLocation(250,270);
txfEmployee_Id.setLocation(250,290);
txfCampaign_Date.setLocation(250,310);
txfNext_Appointment.setLocation(250,330);
txfCampaign_Id.setLocation(250,350);
txfTeam_Id.setLocation(250,370);
txfOrder_No.setLocation(250,390);
txfResult.setLocation(250,410);
jbtnSave.setLocation(250,450);
jbtnClear.setLocation(350,450);
jbtnExit.setLocation(450,450);
txfCustomer_Id.setRequestFocusEnabled(true);
txfCustomer_Id.requestFocus();
jbtnSave.addActionListener(this);
jbtnClear.addActionListener(this);
jbtnExit.addActionListener(this);
public void actionPerformed(ActionEvent ae)
if(ae.getSource().equals(jbtnSave))
//' &txfAddress1& ',' &txfAddress2& ',' &txfQuantity& ',
//' &txfUnit_Price& ',' &txfInterest_Level& ',' &txfContact_No& ',
//' &txfMobile_No& ',' &txfEmail& ',' &txfEmployee_Id& ',' &txfCampaign_Date& ',
//' &txfNext_Appointment& ',' &txfCampaign_Id& ',' &txfTeam_Id& ',' &txfOrder_No& ',' &txfResult& '
try
Class.forName("jdbc.odbc.JdbcOdbcDriver");
Connection connCampaign=DriverManager.getConnection("jdbc:odbc:CRMSource");
Statement stmtCampaign=connCampaign.createStatement();
/* stmt.executeUpdate("insert into Campaign values('" &jtxfCustomer_ID& "',&jtxfCustomer_Name&,
' &jtxfCustomer_ID& ',' &txfCompany_Name& ',' &txfDesignation& ',' &txfAddress1& ',' &txfAddress2& ',
' &txfQuantity& ',' &txfUnit_Price& ',' &txfInterest_Level& ',' &txfContact_No& ',
' &txfMobile_No& ',' &txfEmail& ',' &txfEmployee_Id& ',' &txfCampaign_Date& ',
' &txfNext_Appointment& ',' &txfCampaign_Id& ',' &txfTeam_Id& ',' &txfOrder_No& ',' &txfResult& ')");*/
JOptionPane.showMessageDialog(this,"Statement was saved");
catch(Exception ex)
ex.printStackTrace();
I got "unclosed character literal" error when i tried to execute the above java source file .
help me to get the required result.

Similar Messages

  • Via Form using TextBox to insert a Paragraph in the place of text

    I developed a form in VBA in Word but it shows error here, actually i a beginner to macros
    The word "2Details2" to be replace with 5 to 8 line paagraph
    So by searching internet I am doing this, 
    Dim para As Paragraph
        para = TextBox23.Text
        Selection.MoveRight Unit:=wdCharacter, Count:=28, Extend:=wdExtend
        Selection.Copy
        Selection.Find.ClearFormatting
        Selection.Find.Replacement.ClearFormatting
        With Selection.Find
            .Text = "2Details2"
            .Replacement.Text = para
            .Forward = True
            .Wrap = wdFindContinue
            .Format = False
            .MatchCase = False
            .MatchWholeWord = False
            .MatchWildcards = False
            .MatchSoundsLike = False
            .MatchAllWordForms = False
        End With
        Selection.Find.Execute Replace:=wdReplaceAll
    Thanks in advance

    First, you have defined:
    Dim para As Paragraph
    yet you're trying to populate what you've defined as a paragraph object with what appears to be text:
    para = TextBox23.Text
    Second, you're doing a lot of stuff with Selection which is inefficient. In general, you should use range objects instead. Moreover, you have 'Selection.Copy', but it's not apparent that you doing anything with what you've copied to the clipboard.
    It appears your code could be reduced to:
    With ActiveDocument.Content.Find
      .ClearFormatting
      .Replacement.ClearFormatting
      .Text = "2Details2"
      .Replacement.Text = TextBox23.Text
      .Forward = True
      .Wrap = wdFindContinue
      .Format = False
      .MatchCase = False
      .MatchWholeWord = False
      .MatchWildcards = False
      .MatchSoundsLike = False
      .MatchAllWordForms = False
      .Execute Replace:=wdReplaceAll
    End With
    though, other than extending the selection, I don't know what you're trying to achieve with:
    Selection.MoveRight Unit:=wdCharacter, Count:=28, Extend:=wdExtend
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Using SQL DML INSERT how can I put a ref atrib with out a select

    What i am trying to do is use the insert statment to insert into a object table that has an atribute that is scope to another table as a REF of that type.
    something like this:
    INSERT INTO TABLE_AAA (NAME, SOMETHING) VALUES ('AAA','BBB');
    SELECT REF(P),P.NAME FROM TABLE_AAA WHERE P.NAME='AAA';
    IT GIVES ME THE REF THAT ARE 85 NUMBER AND LETTERS AND THE NAME=AAA
    SO WITH THIS INFORMATION I COPY THE REF AND PUT IT IN TABLE_BBB AS:
    INSERT INTO TABLE_BBB (REF_TYPE_AAA, SOMETHING)
    VALUES(1234567890123456789012345678901234567890123456789012345678901234567890123456789012345,'QQQ');
    THIS IS NOT WORKING I TRY DIFERENT THINGS, BUT NOTHING WORKS
    WHAT I DONT WANT IS TO USE THE SELECT IN THE INSERT, I JUST WANT TO PUT THE VALUE OF THE REF IN THE INSERT.
    WHAT FUNTION DO I NEED TO CAST OR CONVERT TO A REF DOES NUMBERS AND LETTERS THAT I HAVE, THAT I CAN USE A SIMPLE INSERT COMMAND.
    THANK IN ADVANCE FOR YOUR KIND

    Hi,
    Could you give structures of objects (tables/type objects)?
    It may help to clarify your doubt.
    Regards,
    Sailaja

  • Using insert command in NVL function

    How can we use insert command in a NVL function
    exapmle : INSERT INTO employee
    VALUES ( (NVL ( (SELECT emp_id
    FROM employee
    WHERE emp_name LIKE 'Test'),
    (insert into employee values((select max(emp_id)+1 from employee),'Test')))));
    I mean i will check for the record to exist in the table and if not exist i will add it to the table.

    998504 wrote:
    How can we use insert command in a NVL function
    exapmle : INSERT INTO employee
    VALUES ( (NVL ( (SELECT emp_id
    FROM employee
    WHERE emp_name LIKE 'Test'),
    (insert into employee values((select max(emp_id)+1 from employee),'Test')))));
    I mean i will check for the record to exist in the table and if not exist i will add it to the table.The first thing caught my eye is this
    max(emp_id) +1A real bad piece of code. Never do that. Ever thought about multi user environment? Use a SEQUENCE.
    If you want EMP_NAME to be unique (Which looks strange to me), then just add a UNIQUE constraint. You dont try to do what oracle already does really well.

  • IDOC to JDBC scenario: Does INSERT command expect a result value?

    Hello,
    we have an IDoc-to-JDBC-scenario configured on our XI 3.0, which uses the INSERT command to put a dataset coming from R/3 into a SQL database. This works fine.
    Now a trigger has been activated on the database, which sets a flag to each dataset after inserting.
    Because of this a system error occurs in the Adapter Engine and I found in the AuditLog (logSQLStatement=true), that the INSERT command is processed correcty, but in the next step an error is shown up: 'SQLServerException. A result set was generated for update.'
    Could it be, that the trigger returns a result value, which can't be handled on the XI ?
    If yes, how can I solve this issue? I have read something about the different methods execute(), executeUpdate() and executeQuery(), but I don't know how and where this has to be configured...
    Thanks in advance,
    Juergen

    Hi Upendra,
    I got some more information from the database adminstrator:
    He used the following command 'exec xp_cmdshell @ExportCmd , no_output'
    whereas @ExportCmd contains the command.
    With the no_output option, the xp_cmdshell does not return a recordset.
    I hope this will be helpful to you.
    Grtz,
    Juergen

  • Splitter operator doesnt use multi table inserts in OWB...very very urgent

    Hi,
    I am using OWB 9i to carry out tranformations. I want to copy the same seuence numbers to the two target tables.
    Scenario:
    I have a source table source_table, which is connected to a splitter and the splitter is used to dump the records in two target tables namely target1_table and target2_table. I have a sequence which is also an input to the splitter, so that I can have the same sequence number in the the two output groups of he splitter. I then map the sequence number from the two output groups to the two target tables expecting to have the same sequence number in the target tables. But when I see the generated code it creates two procedures and effectively inserts sequencing numbers in the target tables which are not consistent. Please help me so that I have the same sequencing numbers in the target tables which are consistent.
    Well the above example works in row based operating mode but not in set based mode. Please give me a valid explanation.
    OWB pdf says that splitter uses multi table inserts for multiple targets. After seeing the generated code for set based operations I dont agree to this.
    Its very urgent.
    thanks a lot in advance.
    -Sharat

    Hi Mark,
    You got me wrong, let me explain you the problem again.
    RDBMS oracle 9.2.0.4
    OWB 9.2.0.2.8
    I have three tables T1,T2 and T3.
    T1 is the source table and the remaining two tables T2 and T3 are target tables.
    Following are the contents of table T1 -
    SQl>select * from T1;
    DEPTNAME LOCATIO?N
    COMP PUNE
    MECH BOMBAY
    ELEC A.P
    Now I want to populate the two destination tables T2 and T3 with the records in T1.
    For this I am using splitter operator in OWB which is suppose to generate multi table inserts, but unfortunately its not doing so when I generate the SQL. There si no "insert all" command in the sql it generates.
    What I want is, when I populate T2 and T3 I use a sequence generator and I want the same sequences for T2 and T3 eg.
    SQl>select * from T2;
    NEXT_VAL DEPTNAME LOCATIO?N
    1 COMP PUNE
    2 MECH BOMBAY
    3 ELEC A.P
    SQl>select * from T3;
    NEXT_VAL DEPTNAME LOCATIO?N
    1 COMP PUNE
    2 MECH BOMBAY
    3 ELEC A.P
    I am able to achieve this when I set the operating mode to ROW BASED. I am not geting the same result when I set the operating mode to SET BASED.
    Help me....
    -Sharat

  • INSERT command in CLM1 tcode

    Hi,
    I have done BDC recording for CLM1 tcode. Later In costs Tab of CLM1 Tcode, There is a ALV.As ALV can not be Inserted or Updated with BDC recording. I have directly moved into table CKIS. I am gettingDUMP at INSERT command,When ever I run the Tcode.
    Insert ckis from table lit_ckis.
    Regards,
    Deepthi.

    Hi,
    I have tried to Use UPDATE and MODIFY then the values are not getting updated in cost tab of ALV.My code is below.
        SELECT SINGLE * INTO lwa_qmel
                        FROM qmel
                        WHERE qmnum = w_src-qmnum.
    Update the ALV in Costs TAB.
        LOOP AT i_src_temp INTO w_src_temp WHERE indicator = w_src-indicator.
          MOVE w_src-qmnum TO w_src_temp-qmnum.
          lwa_ckis-wertn = w_src_temp-menge * w_src_temp-gpreis.
          lwa_qmel-estimated_costs = lwa_qmel-estimated_costs + lwa_ckis-wertn.
    Conversion Exit for Cost Element
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = w_src_temp-kstar
            IMPORTING
              output = lwa_ckis-kstar.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = c_lednr
            IMPORTING
              output = lwa_ckis-lednr.
    Increment the POSNR value,so that to Update in the Next Line of ALV of Cost Tab
          lv_itemno = lv_itemno + 1.
    Alpha routine also exists for lednr.
          MOVE :
                  w_src_temp-typps         TO lwa_ckis-typps,
                  w_src_temp-menge         TO lwa_ckis-menge,
                  w_src_temp-meins         TO lwa_ckis-meeht,
                  w_src_temp-gpreis        TO lwa_ckis-gpreis,
                  lwa_qmel-kalnr           TO lwa_ckis-kalnr,
                  lv_itemno                TO lwa_ckis-posnr,
                  lc_x                     TO lwa_ckis-kstar_manual,
                  lc_1                     TO lwa_ckis-peinh,
                  lc_x                     TO lwa_ckis-price_manual,
                  lwa_ckis-wertn           TO lwa_ckis-wrtfw_kpf,
                  lwa_ckis-wertn           TO lwa_ckis-wrtfw_pos,
                  lc_usd                   TO lwa_ckis-fwaer_kpf,
                  lc_usd                   TO lwa_ckis-fwaer,
                  sy-datum                 TO lwa_ckis-steas,
                  w_src_temp-gpreis        TO lwa_ckis-opreis,
                  w_src_temp-gpreis        TO lwa_ckis-tpreis,
                  lc_1                     TO lwa_ckis-peinh_2,
                  lc_1                     TO lwa_ckis-peinh_3,
                  lv_itemno                TO lwa_ckis-component_id,
                  gc_bzobj                 TO lwa_ckis-bzobj,
                  gc_kalka                 TO lwa_ckis-kalka,
                  gc_tvers                 TO lwa_ckis-tvers,
                  gc_kokrs                 TO lwa_ckis-kokrs_hrk.
          APPEND  lwa_ckis TO lit_ckis.
          CLEAR lwa_ckis.
        ENDLOOP.
    Check if CSIK is locked if not then update else wait.
        lv_tab = lc_ckis.
        lv_locked = lc_4.
        WHILE lv_locked <> 0.
          CLEAR lv_locked.
          PERFORM f8000_check_lock USING    lv_tab
                                   CHANGING lv_locked.
        ENDWHILE.
         INSERT ckis FROM TABLE lit_ckis.
        MODIFY ckis FROM TABLE lit_ckis.
    Regards,
    Deepthi.

  • Insert Command In eCATT

    Hi,
      I tried to use the insert command in eCATT. The script passed but the values are not shown in the database table. Could you please help me.
    Thanks and Regards,

    Hello Jubish,
    The insert command inserts a row into table parameter. This table can also be a field of complex structure.
    Along with the row index, work area needs to be specified then only the value will be passed. And if the structure of the work area differs from the table then only same name fields will be inserted.
    If only row index is specified without any work area, blank row will be inserted into the table.
    SAP Help link for Insert command is as follows -
    http://help.sap.com/saphelp_erp2004/helpdata/en/db/f4383fe58d5900e10000000a114084/content.htm
    PS If answer solves your query, do reward points to everyone responding.
    Regards

  • Insert command in Sql

    Dear Team ,
    I need to insert a values into an table starts with 1 and ends with 1000 .
    Insert the values manually will be tough one .
    May I want to insert the values Manually ?
    or Any other insert command to do this above task .
    Kindly help me to solve this Issues .
    Regards ,
    Augustine

    Augustine Vinish wrote:
    My table Structure
    SQL> desc office;
    Name Null? Type
    NAME VARCHAR2(20)
    AGE NUMBER
    DEPT VARCHAR2(19)
    EMPID                                             VARCHAR2(20)
    SALARY NUMBER
    The table contains already values ,I altered this table for adding one more column (EMPID).
    Now I am a in need to insert values for the column EMPIDThen just do this
    update office set empid = rownumor create a sequence and use it
    create sequence seqEmpid
    update office set empid = seqEmpid.nextval
    /

  • Insert command do not work on MII

    I have the following insert command in a Fixed SQL action:.
    insert into SOLICITACAO
        (USUARIO_CRIADOR, LOCAL_ORIGEM, CAPACIDADE, SITUACAO, DATA_CRIACAO, TIPO, USUARIO_SOLICITANTE)
    values
        (1, 1, 25, 'A', TO_DATE('10-10-2009 12:33:33', 'DD-MM-YYYY HH24:MI:SS'), 'M', 1)
      This insert command works with no problem when I execute it using some software to connect to my oracle database.
      Inside MII I have an error:
    com.sap.xmii.Illuminator.logging.LHException: SQL error has occurred on query ORA-00900: invalid SQL statement
      What could be wrong here?
    Nuno Cunha

    Hi,
      Oooops! Thank you very much.
    Nuno Cunha

  • The data source control failed to execute the insert command

    Hi,
      We have installed SharePoint 2010 on Windows Server 2008 Enterprise Edition. We've started using the "Employee Training Scheduling and Materials" template that is available at
    http://www.microsoft.com/government/en-us/campaigns/Pages/SharePoint-Templates.aspx. Till last friday (17th Oct,2013) everything was working fine, but after that we are getting an error "The data source failed to execute the insert command"
    when I click on the "Save" button available on the Registrations.aspx. Could any one help me resolve this issue?
    Kinldy revert if you need more details.
    Though I see many posts regarding this, most of them are associated with Windows Server 2008 R2. So, most of the hot fixes mentioned there could not help me.
    Your help me is greatly appreciated. Thanks for taking time to go through this post.
    Thanks and Regards
    Praveen.
    Thanks and Regards Praveen.

    I have the exact same problem. I updated the 2007 Employee training template to the 2010 version and then 2 months ago, presumably when our Sharepoint had the July 10th patch 14.0.7102.5004 applied, it all broke. An attempt to register for a class always
    comes back with "Failure to execute insert command".
    I tried changing the DateSourceMode from "ListItem" to "List"  that gets rid of the error but does NOT update the registrations list.
    Anyone have any success fixing this?

  • Failed to execute the insert command

    I have a sign up training calendar that runs on sharepoint 2010, over the weekend i went to install the latest cumulative update http://support.microsoft.com/kb/2817552 and it seems to have broken the signup process. Whenever some goes to sign up for an
    event they see the following error what can i do to fix this?
    Error
    The data source control failed to execute the insert command. d8b915be-5355-4d63-97bb-c9cf3aacad75
    Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: d8b915be-5355-4d63-97bb-c9cf3aacad75
    the error occurs when someone tries to add an event in the calendar & this issues seems to be across the entire sharepoint 2010 foundation farm. How can i resolve this without rebuilding the farm?

    Hi, We are having the same issue. Did anyone get a solution for this? I tried following solution. 
    open
    the page with SPD and update this value.
    OLD: <SharePoint:SPDataSource
    runat="server" DataSourceMode="List"
    NEW: <SharePoint:SPDataSource
    runat="server" DataSourceMode="ListItem"
    That gives me "Access Denied" error.
    User has contribute permission
    for the list. 
    Any solution???

  • How to overcome Dump during Insert Command

    Hi Abappers,
    When I am trying to upload the text file into the Database,
    I am using Insert command using internal table.
    When the record exist, it gives dump saying duplicate records.
    How to convert that dump into the error message?
    Please Reply.
    Regards,
    Rahul

    Rahul,
    Insert FROM TABLE itab [ACCEPTING DUPLICATE KEYS]
    Effect
    If you specify an internal table itab, several rows are created from its content for insertion in the database table. A row for insertion into the table is taken from each row of the internal table according to the same rules as for a single work area Einfügenwa. The line type of the internal table has to meet the prerequisites for use in Open-SQL statements.
    If a row witht he same primary key or a same unique secondary index does not already exist in the database table for any of the rows to be inserted, all rows are inserted and sy-subrc is set to 0. If the internal table is empty, sy-subrc is also set to 0. The system field sy-dbcnt is always set to the number of rows that were actually inserted.
    If a row with the same primary key or a same unique secondary index already exists in the database table for one or more of the rows to be inserted, these rows cannot be inserted. In this situation, there are three possibilities:
    Use of ACCEPTING DUPLICATE KEYS
    If the addition ACCEPTING DUPLICATE KEYS is specified, all rows are inserted for which this is possible. The remaining rows are rejected and sy-subrc is set to 4. The system field sy-dbcnt is set to the number of lines that are inserted.
    Handling an exception
    If the addition ACCEPTING DUPLICATE KEYS is not specified, a treatable exception occurs CX_SY_OPEN_SQL_DB (it always occurs since Release 6.10). Rows are inserted until the exception occurs. The number of rows that are inserted is not defined. The system fields sy-subrc and sy-dbcnt retain their previous value.
    Runtime error
    If the addition ACCEPTING DUPLICATE KEYS is not specified and if the exception is not handled, then a runtime error occurs (it always occurs prior to Release 6.10). This executes a database rollback that reverses all changes to the current database LUW. This applies in particular to rows that were inserted before a double entry occurred.
    i would also suggest you to see SAP help by pressing F1 because some time may we miss but SAP never.
    Amit.

  • Data source control failed to execute the insert command

    I have a sign up training calendar that runs on sharepoint 2010, over the weekend i went to install the latest cumulative update http://support.microsoft.com/kb/2817552 and it seems to have broken the signup process. Whenever some goes to sign up for an
    event they see the following error what can i do to fix this?
    Error
    The data source control failed to execute the insert command. d8b915be-5355-4d63-97bb-c9cf3aacad75
    Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: d8b915be-5355-4d63-97bb-c9cf3aacad75
    Date and Time: 7/31/2013 9:51:25 PM

    0
    Vote
    Thanks!!!
    It worked for me too

  • Using of bulk insert create problem

    How to use the bulk insert statement in my jsp and which should be updated into the database.
    I've tried this one:
    bulk insert test from test1.txt with (fieldterminator=':')but it gives an error as:
    u don't have permission to use bulk statement.
    Could any1 get me rid off from this problem.
    in advance thanks.....

    Most likely the person responsible for permissions in your database could help you out there. If you're here looking for a way to execute commands that you aren't authorized to execute, you are wasting your time.

Maybe you are looking for

  • PAYMENT_METHOD_LOOKUP_CODE on AP open interface import

    Hi all, in the standard concurrent "AP open interface import" when import invoices records, its was created with Payments Method retrive from Suppliers. (this is standard function). But in the scripts (see down) there is a parameter "PAYMENT_METHOD_L

  • Pattern b/w Remote interface & Container implementation  class

    Which pattern is followed by EJB Remote interface & Container implementation class of that interface?Is there anyting mentioned in specs? This questoin was asked to me by many people.I think it is Command design pattern as it hides away all the detai

  • Captivate 7 - Copying slides with Advanced Actions

    Hello, I have a number of slides that I want to copy and paste into a new project. Many of these slides have click to display type advanced interactions.  When I copy and paste the slides into a new project, the advanced interactions don't seem to co

  • Can I download Firefox 3.5 if I have Windows 7

    ancestry.com advises that only Firefox 3.5 will work on their website. I have Windows 7. Is it possible to use this prior version with the new OS? Thanks, Sheshie

  • Upgrading Flash

    Hello, I purchased Flash MX 2004 a few years ago as an educational version for about $100. Now I am cosidering putting some flash animations on my web site, though I'm assuming I will need a professional liscence for that. Without having to pay the f