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)

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

  • 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 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 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 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  Application Integrator for iView Creation

    Hi all
    any one can help me how to create an iView(webshop b2b iview) by using the Application integrator in portal
    Regards
    sunil

    1) creating URL ivew , for that you can refer this
    URL iView Creation
    2) You can directly deploy your .net project from the Visual Studio itself(sound's amazing right!!). SAP have provided a add-on to deploy directly from VS 2003/2005.
    For that you need
    SAP Portal Add-in 2.5 for Visual Studio 2005 - Hotfix 1.exe
    SAP Portal Runtime 2.5 for Microsoft .NET - Hotfix 1.exe

  • How to use the km Discussion iViews in the enterprise portal

    hi ,
    i need to create a discussion forum in the EP.
    i want to make a KM discussion iview and then to customize it so that the look and feel is also changed.
    i am not getting how should i start?Is PDK development needed for this?
    please help.

    Hello Saurabh,
    For the cretaion of discussion forum kindly access my Article that i have published in SDN the link of it is .
    [Creation of Discussion Forum.|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20562528-a246-2b10-2988-f9b554a925ce]
    Here u will get Step by Step Solution for creation of Discussion forum.
    Now to change look and feel of ur Forum or say discaussion Iview Template u have to open template Par File in NWDS and can play with it (Codeing) to get desired output.
    I will sugest u to not to go with Discusasion Forum if u r haveing EP Ver7.0 then u can go for Installation of Forums on ur Portal.
    If want any other information i will be glad to help u .
    Hope this help's
    Regards.
    Soni Vinit

  • How to use an self-made iView in the Portal Content?

    Hi everybody,
    I followed the instructions to set up a Portal (6.0 SP 2) with the PDK. Now I just wrote a simple "Hello-World" iView and deployed it into the portal server. It worked fine when I clicked to test it in the Java Development Inspector.
    But...
    In the Portal Content I can not find my self-made iView? How do I get it there? I coudn't find any documentation.
    I'd appreciate your help!

    In the portal content try to create a new Iview and select the option (create new iview from portal Archive).
    After selecting that you will see all the PARs deployed on your server, just select yours and follow on.
    Hope that helps.
    Thanks
    Ankur

  • How to use ANYDATASET from jdbc (11g)

    Hi, the jdbc dev. guide for 11g doesn't even mention the word ANYDATASET.
    However this data type is listed within the set of 11g jdbc new features.
    I will much appreciate any example about using it, e.i. assuming a schema defines a type containing a ANYDATASET attribute to be managed on the jdbc side.
    Thanks.

    Hi ...
    Yeah BPEL connect from the back end rather than using weblogic, but to change it ... we need to change the code from BPEL side to connect from the weblogic JDBC services.

  • How to use % wildcard in jdbc plz help me

    Hello all,
    try
         PreparedStatement st=dbcon.prepareStatement("select * from stud2  where ename=? ");
    st.setString(1,ename+"%");
    ResultSet rs=st.executeQuery();
    while(rs.next())
    out.println("<td>");
    out.println(rs.getString(2));//this field is for name
    out.println(rs.getString(3));//this is for addresss
    }catch(Exception e){}This code is in servlets,and iam using MS-ACCESS as database.
    in this way iam trying this code , usage of %wild card but iam not getting the right anser, i want the anser if i will type any letter it should search the database and display me all names of that letter
    plz help me solving this problem
    vidya.

    PreparedStatement ps = con.prepareStatement("select blah from blah where blah like ?");
    ps.setString(1, "a%"); // everything that starts with 'a'
    rs = ps.executeQuery();

  • How to use JDBC iView to get data from MSSQL

    Hi Guru,
    I just try to follow the Demo (from SDN) to use JDBC iView. In the step of selecting query or existing function, I choose the query option to broswer the table. But the system is not display any tables. It just keep on displaying 'Loading ...'. Is there anything wrong with that?
    Thanks for your help,
    Bo

    Hi Bo,
    I got the same problem with your, do you know how to fix the problem?
    Thanks,
    Ku

  • How to Change the Visible names in JDBC IView ?

    While Creating a JDBC View, in one of the steps we select the column names from a schema which we want to view in a IView.While doing so in the next step there is a text field called <b>visible names</b> which is editable to change the column names.How to change the Column aliases or visibles names as is it not getting saved when we move onto the next screen ?.How to Configure the Visible Column names while configuring a JDBC IView ?.
    Can anybody please help me !.

    Hi Abhilash
    If I'm not wrong I saw something about this here (SDN), in a technical article about how to create a JDBC iView . I tried to get the link to the article but it seems there's a problem with the site, sorry...
    By the way, I had the same problem, and according to the   article this was not possible in the version EP6 SP2 but there was a plan to implement this in newer versions. I tried also to use a SQL command with the column names I wish to display but it didn't work either.
    Try to find this article in the EP Technical Article to confirm this info, ok ?
    Rgds,
    Fernando

  • How can I use ONE Text search iView to event/affect mutliple Result Sets?

    hello everyone,
    i have a special situation in which i have 6 flat tables in my repository which all have a common field called Location ID (which is a lookup flat to the Locations table).
    i am trying to build a page with a free-form text search iView on Table #1 (search field = Location ID).  when I execute the search, the result set for Table #1 is properly updated, but how do I also get Result Set iViews for Tables #2-6 to also react to the event from Text Search for Table #1 so that they are updated?
    i don't want to have to build 6 different text search iViews (one for each table).  i just want to use ONE text search iView for all the different result set tables.  but, in the documentation and iView properties, the text search iView doesn't have any eventing.
    if you have any suggestions, please help.
    many thanks in advance,
    mm

    hello Donna,
    that should not be a problem, since you are detailw with result sets and detail iviews because custom eventing can be defined for those iviews.
    Yes, it says "no records" found because an active search and record selection havent' been performed for it (only your main table does).
    So, yes, define a custom event, and pass the appropriate parameters and you should be fine.
    Creating a custom event between a Result Set iView and an Item Details iView is easy and works. I have done it.
    See page 35 of the Portal Content Development Guide for a step-by-step example, which is what I used.
    For my particular situation, the problem I'm having is that I want the Search Text iView's event (i.e., when the Submit button is pressed) to be published to multiple iViews, all with different tables.  Those tables all share some common fields, which is what the Search iView has, so I'd like to pass the search critera to all of the iViews.
    -mm

Maybe you are looking for

  • What di I need on a Mac Mini to import Pages documents from an iPad-mini

    What do I need on my MacMini to import Pages documents from an iPad-mini?

  • Convert jpg to bmp

    Hi I am new to the java programming. and I have to convert jpg images to bmp images. can you please give me suggestions what can be done. thanks.

  • OIM 11g Schedulars

    Hi OIM Experts, I am new to OIM. I have configured LDAP Sync with OID (11.1.1.5) and OIM (11.1.1.5). I need to delete all the users created in OIM under a particular OU. For Example: OU=Appadmin. Is there any default schedulars to configure this, to

  • How to avoide the control recipe creation step and control recipe complete

    Hi in process order procedure has configured in our syayrm ...like orde creation,release,control recipe created at time orede release, then order conformation ,order inal conformation, control recipe comlete , order TECH., ...Like ths our order proce

  • Bitmap type scans fuzzy

    I have InDesign CS4 with an iMac. I recently scanned some type faces (300 res.). When I imported them into an InDesign page and printed the bitmap type was ragged and rough. I printed one typeface in Photoshop and looked great. I made a PDF of my bad