How to use a portal jdbc system to delete or insert by IExecution.execute

hi everyone:
I create a jdbc system in portal. Then I use following codes to query a table
IQuery query = client.newQuery();
query.execute("SELECT * FROM [Categories]");
It is fine.
Now, I wanna do insert or delete operation. I can't use the IQuery object. I think it is only for query and it is Deprecated. I find there is a method: IExecution.execute(IOperation). But I don't know how to use that method. Can I insert/delete records using that method? The last question is how to control the sql transaction by that IExecution object.
thanks
elliot

Hi,
I followed the interface framework to complete a query.
The code is shown under
How to Modify DB Records Using JDBC Connector FrameWork
But I got this exception and I don't know how to go further:
com.sapportals.connector.execution.ExecutionException: Exception during execution of SQL statement at com.sapportals.jdbcconnector.execution.objects.JDBCExecution.execute(JDBCExecution.java:118) at iview.Simple.doContent(Simple.java:43) at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209) at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at

Similar Messages

  • How to use triger in jdbc

    Could anyone give me a example to show me how to use triger in JDBC, please.
    Thanks

    JDBC doesn't enter into it. You can find examples and tutorials about triggers with google. Google will even fix the typo "triger" to "trigger" for you :-)

  • How to use BPM itegrate different system aysnchronously

    for example, 3 enterprise applications need to be integrated together with BPM, which are Bid system, ERP system, Finance system,
    and erery business document should be approved  by persons one by one in the 3 different application system with its workflow respectively, we can't change the workflow in the
    different system, and only when the document is finished approved in the BID system asynchronously, it can enter the ERP system, an so on .
    after the business document is approved in the Bid system, it should be returned in the BPM contexts,and the BPM user will dicide whether it will be enter the next system.
    so how to integrate the 3 application system?
    I draw a[ BPM process|http://www3.picturepush.com/photo/a/2586651/640/Picture-Box/aaa.jpg], but in this process,  the "ERP human activity" activity, this activity how to get data from the "BID system asyn workflow" which is an asynchronized
    wrokflow?

    Gavin,
    For asynchronous cases, you should adopt the "wait and trigger" principle.  In BPM, you can acheive it by using a timer and an automated activity. Set the timer repeat time to say 15 mins (you should change it as per your business scenario), and then execute / trigger an automated activity, which will call your Bid system to check the state (whether the data entry / specific workflow is over). If the state is completed, (you may check using exclusive choice), move to next step. Else, pass back the control to timer which will again make the process wait. This way the objective could be attained.
    Hope this helps.
    Br,
    Bala

  • How to use setCLOB with JDBC.

    Hi,
    from oracle jdbc document, i know how to use getClob method. but i wonder how to insert a new record included a clob field (setClob). but clob is an interface.
    it seem that it can not be successful to use setclob directly.
    my friend has a way : insert an empty clob into database, then seek this record, and update it with full info again.
    please help me!
    thank in advance.
    wu jianhua.

    A few ways:
    1. Use the LOBs got from a ResultSet, for example,
    Clob x = rs.getClob(1); //you get an oracle.sql.CLOB object
    pstmt.setClob(1, x);
    2. use oracle.sql.CLOB
    public static CLOB empty_lob() throws SQLException;
    creates an empty lob.
    public static BLOB createTemporary(Connection conn, boolean isCached, int
    duration);
    creates temp lob.
    Those methods create object of type oracle.sql.CLOB.
    refer to Oracle jdbc doc for this.

  • How to use a portal service in portal component(DynPage)

    Hi,
    I have made a portal service and i want to use this in my portal component .
    Please tell me how can i use it.
    also can anyone tell me step wise creation of portal component and portal service and their connectivity by using a smalll example in which connectivity is done in Dynpage and using stored procedure .

    Hi,
    Check this link:
    [How to Create a Portal Component and a Portal Service Tutorial|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0b57e590-0201-0010-a29f-abd37a436f54?QuickLink=index&overridelayout=true]
    Thanks and Regards,
    Shyam

  • How to use AET in a system without any masterdata?

    Hello,
    we know how to use the AET in general.
    But we have a developmentsystem where it is not allowed to create masterdata or documents.
    Therefore it is not possible in this system to open for example an existing customer in WebU and enhance a new field to BP_HEAD\details for example.
    Is there a way to use the AET without having master data available in the dev-system?
    Thank you.
    Kind regards
    Manfred

    Hi,
    thank you for this very helpfull answer.
    This works for the most components like BP_HEAD.
    It does for some reason not work for component ERP_H.
    "Exception during toolbar processing".
    The component is displayed but without buttons - also no configuration button for AET.
    Any ideas.
    Kind regards
    Manfred

  • How to use third party jdbc drivers ?

    Hi,
    Im new to sun one app server.i have some existing CMP
    bean (currently testing under J2EE RI).database used is
    SQL server 2000 and using a 3 rd party JDBC Driver.
    my question is. if i switch to sun one app server, do i need
    anyother third party stuff to support CMP using SQL
    Server? (other than the exisiting jdbc driver andSQL Server).
    I read somewhere that in sun one we need to get a
    persistance manger from the 3 rd part. is it necessary?
    can i use my plain jdbc driver with the builtin persistance
    manager of sun one app server?. how can i do that ?
    thanks in advance
    -mr ex

    Hi,
    Persistence manager from 3rd party is not required.You
    can use the built in persistence manager of Sun one application server.
    You can refer the following link for creating new persistence manager
    http://docs.sun.com/source/816-7156-10/agj2eres.html#47595
    Get back in case of issues

  • How to use the portal Calendar

    Hi,
    I want to post a calendar of events for my portal users and I'm looking for documentations or tutorial in using the portal calendar feature.
    Thanks,
    Leonard

    hi leonard,
    there are 2 samples in the PDK for a lotus notes calendar portlet and a microsoft exchange calendar portlet. you can access them at portalcenter.oracle.com - PDK - Samples.
    another possibility would be to use the calendar portlet that is provided by the portlet builder. in you portal go to the navigator - providers - locally built providers - example applications: there you find a sample of a calendar portlet. you can create a new one by clicking on Create New...Calendar
    another possibiliy is to look at the portlets from our partners: on portalcenter click on Portal Catalog - Search the Portal catalog - type in 'calendar' as search word and you get back a list of available calendar portlets.
    thanks,
    christian

  • How to use the latest jdbc driver in weblogic61beta?

    weblogic61 comes with mssqlserver4v65.jar,
    currently the latest jdbc driver is mssqlserver4v70sp10
    but seems the license and directory structure is only for
    weblogic51. I tried to use it for weblogic61beta, but it failed.
    please advice. thanks

    here's the stack trace when I tried to use the latest jdbc driver
    other than the one comes with weblogic61beta
    The WebLogic Server did not start up properly.
    Exception raised: java.lang.NoSuchMethodError
    java.lang.NoSuchMethodError
    at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.parseMBeanAttri
    butes(ConfigurationParser.java:300)
    at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.startElement(Co
    nfigurationParser.java:185)
    at weblogic.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
    at weblogic.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:
    1183)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1
    862)
    at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumen
    tScanner.java:1005)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381
    at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
    at weblogic.management.internal.xml.ConfigurationParser.parse(ConfigurationParser.java:104)
    at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:261)
    at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:223)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:587)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:31
    9)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
    at $Proxy1.loadDomain(Unknown Source)
    at weblogic.management.AdminServer.configureFromRepository(AdminServer.java:186)
    at weblogic.management.AdminServer.configure(AdminServer.java:171)
    at weblogic.management.Admin.initialize(Admin.java:229)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:354)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:197)
    at weblogic.Server.main(Server.java:35)
    Reason: Fatal initialization exception
    "Jason Chen" <[email protected]> wrote:
    >
    weblogic61 comes with mssqlserver4v65.jar,
    currently the latest jdbc driver is mssqlserver4v70sp10
    but seems the license and directory structure is only for
    weblogic51. I tried to use it for weblogic61beta, but it failed.
    please advice. thanks

  • How to use a portal defined alias for a system

    Hello,
    we have in the portal Netweaver 2004s, sp11, defined systems, which contain SAP-Routerstrings. For Everey System we have given a Systemalias.
    No we want to use the Systemalias managed by the portal use in our Java-Applivcation deployed on the portal-server.
    How to to this?
    Best regards
    Oliver Prodinger

    Oliver,
    From whatever I could understand from your question I would answer that in this way. You need to create a iView out of the application. It will ask for a System parameter. One needs to provide the system alias name into the System paramter.
    If this does not answer your query, plz elaborate your question.
    Warm regards,
    Sukanta

  • How to use a cofigured JDBC iView?

    Hello,
    I ghave configured an iView which implements a JDBC connection to my SQLServer, let's call it "myJDBC".
    Can someone please show me a simple code example
    (including relevant descriptors)of another iView which uses the JDBC iView in order to Query the Database and display the results?

    Hi,
    I assume by JDBC iView you mean that you have created a system that points to a database. <i>Not</i> JDBC iView as if you had created one of these you would already be able to configure the output at the time of the iView creation.
    What Praveen has said is correct one way is to do a custom development using JSP. (He makes it sound easy!).
    There are a number of options using the standard iViews provided out of the box rather than getting into java code.
    There are two types that are quite basic but easily configurable.
    They are JDBC Stored Procedure iView & Query iView.
    The stored procedure iView obviously requires a stored procedure on the database that provides a response.
    The iView creation wizard will enable you to be able to browse and select your stored procedure and for the query iView you should be able to select the tables etc and organise there output inside the wizard.
    If you have difficulty when creating these iViews check you configured the system correctly so make sure you follow the steps of:
    Create Alias on the system and Test connection
    Provided usrpwd details to DQE on the system.
    Configured your user mapping to the Alias using the personalize option on the portal header.
    Once you have this all working you might like to look at a bigger challenge and get unification iViews working...
    See Weblog :
    1-2-3 Drag&Relate (or D&R for dummies)

  • How to use the Portal Connection Service in a standard J2EE application

    Hi,
    We want to use portal connection service to connection backgend system from a standard j2ee application.
    But the connection need a connectionProperties object which is created in this way:
    ConnectionProperties connectionProperties =
    new ConnectionProperties(
    request.getLocale(),
    request.getUser());
    Because the "request" object is IPortalComponentRequest object, which is a portal object. In our standard application, we can use this way.
    So how?
    Thanks and Best Regards,
    Xiaoming Yang

    Does anybody has any idea? Many thanks and points will definitely be awarded.
    Best Regards,
    Xiaoming

  • How to use the oracle jdbc driver

    hi all,
    i have use the jdbc driver for oracle before but this time i<m under a hp-ux system and it seems to be different
    the dba here said the odbc driver and the jdbc driver where install but i get this error when i compile the code
    Class oracle.jdbc.driver.OracleDriver not found in type declration.
    if i try to use a odbc driver i can compile(since the classes are in jdk1.3) but i get this error at run time
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:126)
    at TestOracle.<init>(TestOracle.java:33)
    at TestOracle.main(TestOracle.java:126)
    can someone help me out to better understand what is wrong
    it seems the drivers are not install but again the dba assures me they are
    import java.sql.*;
    import java.io.*;
    public class TestOracle {
    public TestOracle()
    // Load the Oracle JDBC driver
    // Connect to the database
    // search the dossiers numbers in the right table depending on criteria
    // if demands comes from extranet verify to only send back the dossier
    // numbers that are linked to the customer
    // Load the Oracle JDBC driver
    try
         //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
         //Class.forName("oracle.djbc.driver.OracleDriver");
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    catch( Throwable t ){t.printStackTrace();}
    //SQLException,IOException,ClassNotFoundException,
    //IllegalAccessException,InstantiationException
    try
         // Connect to the database
         // You can put a database name after the @ sign in the connection URL.
         Connection conn =
              //DriverManager.getConnection ("jdbc:oracle:oci8:@COLDDEV", "USER", "PPP");
              DriverManager.getConnection("jdbc:odbc:COLDDEV","USER", "PPP");
         Statement stmt = conn.createStatement ();
         ResultSet r = stmt.executeQuery("select * from Dossier");
         stmt.close();
         System.out.println("trouver:" + r.getString("Dossier_Number"));
    catch (SQLException e){e.printStackTrace();}
    public static void main(String[] args)
    TestOracle testOracle1 = new TestOracle();
    here is the code iuse

    http://forum.java.sun.com/thread.jsp?forum=48&thread=187964&start=0&range=15#608968
    The above link is a comprehensive "How to get set up and on my way" that I made for someone else learning Oracle/jdbc. Kind of a self-help resource page. I would start from the beginning and download the newest drivers, then set up your environment,...etc.
    hope this helped,
    Jamie

  • How to use BAPI get out system language as Chinese?

    hi, expert,
    i use BAPI get R3 sytem data,but BAPI get data as English,i want get R3 system Chinese data.i set language property value ZH in Model porpery,but BAPI always get english data.
    how to solve this problem?
    thanks

    Hi Jun,
    has you read the following wiki entries:
    <a href="https://wiki.sdn.sap.com/wiki/display/VC/WrongLanguage">https://wiki.sdn.sap.com/wiki/display/VC/WrongLanguage</a>
    <a href="https://wiki.sdn.sap.com/wiki/display/VC/LanguageMapping">https://wiki.sdn.sap.com/wiki/display/VC/LanguageMapping</a>
    Best Regards,
    Marcel

  • How to use JMF in p2p system ??

    I want to develop a system about p2p stream,and I use the jmf as the client.
    could you guys suggest me ?? and provid some material to me ??
    PLEASE !!!!

    Find on the net AVReceive2, AVTransmit2, AVReceive3, AVTransmit3 and RTPSocketAdapter Java source files. Just search in google or yahoo, for instance, they are available everywhere. These are the the most used when beginning to work with JMF. Number "3s" are actually the ones you might be looking for. Something like p2p video/audio streaming.
    Hope that helps

Maybe you are looking for