Database Connection through Event Handler

Hi,
i wanted oim database connection through post event handlers . Any idea how to achieve this.
Thanks In Advance
Swati Pandey

Got the solution.
- Swati Pandey

Similar Messages

  • Can i change the database connections through MAXL Scripts?

    Hi,
    just want to know whether i can change the database connections through MAXL Scripts. i am using essbase 9.3.1.

    Hi John,
    I have built my rulefile by connecting to a database & now i want to change the database connections. I know i can change the database connections through frontend. ( File--> open file). I want to know whether i can change the database connections by writing any MAXL Scripts.

  • First time data is not transported to pop up window through event handler

    Hi all,
    I am using NWDS 7.0, Now I want to open a pop up on click of a action link.
    There are two DCs DC-A and DC-B.
    I am calling action from DC-A to DC-B. DC-B contains view of pop up window.
    In DC-A I am using intreface controller of DC-B by using used coponents.
    Now In the DC-B used components I have created one fireplugin which is connected ith pop up view of DC-B and that firplugin is called from DC-A action to transport data from Dc-A to DC-B.
    Problem : when I click first time to open pop-up window then event handler is not called but the windows opened. When I close that window and again open the transported data start displaying on pop up window.
    So can you please help me that why first time data is not transported to pop up window.
    Thanks
    Kaushal

    You'll need to use an OARawTextBean. Oracle doesn't support opening links in new windows using OAFormattedTextBean. Just be aware that you'll need to set the CSS class in the HTML as well if you need it formatted a certain way.

  • Populating database tables in event handler method - error

    Friends,
    I am trying to insert values into ztable in an event handler method in a WDA application.
    This is the code. ZDATA1 is a ztable with two fields: MANDT and ZKTOKD of data element char01.
    types: begin of zs,
    zktokd type char01,
    end of zs.
    data: zitab type table of zs,
    zstruct like line of zitab.
    zstruct-zktokd =  's'.
    append zstruct to zitab.
    INSERT zdata1 FROM TABLE zitab.
    I am getting the error: "The Work area "ZITAB" is not long enough...
    Please let me know what is missing.
    Thanks and Regards.

    Hi,
    The error is here
    types: begin of zs,
    zktokd type char01,
    end of zs.
    data: zitab type table of zs ,
    zstruct like line of zitab.
    "passed the Internal table name which is wrong
    Correct one
    data:
    zitab type table of zs,
    zstruct like line of ZS. " Here we have to give the type you have declared above.
                                    " Zstruct acts like a workarea.
    Regards
    Lekha

  • Is there any way to send value to my attribute through event handler method

    While I give value to the img array it does not print while I call object for this class. Is there any way that I could give value for img attribute
    // Attribute
    public var img:Array;
    // Constructor
    public function ReadXML(myfile:String) {
                img=new Array();
                xmlFile=myfile;
                var loader:URLLoader=new URLLoader;
                var url:URLRequest=new URLRequest(xmlFile);
                loader.addEventListener(Event.COMPLETE,onXMLLoad);
                loader.load(url);
    // Event handling Method
            function onXMLLoad(event:Event):Array {
                var xml:XML=new XML(event.target.data);
                //trace(xml);
                //trace("Number of Contacts : " + xml..person.length());
                //trace("First contact’s favorite food : " + xml.contacts.person[0].@favoriteFood);
                img["height"]=100;
                img["width"]=200;
                return img;

    what are you trying to do?
    if img has anything to do with an image, explain.
    if img is supposed to be an associate array, use:
    var img:Object;
    img=new Object();
    etc

  • REMOTE SERVER  MYSQL  DATABASE  CONNECTION THROUGH PROXY SERVER

    I want to connect to remote server through my proxy server, I have done all required parameter but the Exception is comming as follows :-
    Exception while connecting to database: java.sql.SQLException: Unable to connect to any hosts due to exception:java.net.ConnectException: Connection refused: connect
    Please help

    To clarify, if it helps, I have a database of event dates and and details which I wish to query in order to show the most imminent event on one page, and to display all forthcoming events on another.
    I would be happy to delve into whatever package is required to achieve this, but would prefer not to go down a whole set of blind alleys to get where I am going.
    If the recommendation is to find and install the original extensions, then great, but I don't have them in my Dreamweaver CC package. If there is a better, more up to date option then great; I am guessing/hoping that Adobe would not have taken one method away if there wasn't a better alternative.
    A push in the right direction would be most appreciated.

  • Database Connection through Applet

    Hello All,
    I want to connect to Access Database through Applet. But I am getting access denied error. How to allow an Applet to connect to the database ?.
    Waiting for reply.
    Thanks and regards,
    Sachin

    I believe it's possible to change the security policy for the java plugin that runs applets, (though I haven't found an appropriate policy file). However, there seems little point in writing an applet that requires that. The whole point of applets is that anyone can run your applets over the net without any special installation. If whoever is going to run your applet has to muck about with security policy files, they'd be a lot better off just running a stand-alone GUI program.
    Even if you signed the applet there would still be the problems associated with having the access file in the right place on the client machine.
    In short you're falling between two stools. Either make the thing a standalone Swing program and install it alongside the database it accesses or do the database access in a web server environment and have the client side obtain the data from the database through http access.

  • Database connection through JSP

    I am trying to connect JSP to MySql database.
    <body>
    <div id="container">
         <div id="containerleft">
         <!--     <img src="wildfern.jpg" width=200 height=1000> -->
         </div>     
    <div id="containerright"><center><h1>List Of Deliverables</h1></center><br><br>
    <table cellpadding="10">
    <tr>
    <td><h3> Number of Deliverables</h3></td>
    <td><input type="text" name="deliverableSize" size="20" onchange="DynamicBox(deliverableSize.value)"></td>
    <td></td>
    </tr>
    <tr></tr>
    <tr></tr>
    </table>
    <table>
    <tr>
    <td><h3><center>  Week</center></h3></td>
    <td><center><h3>       Deliverable name       </h3></center></td>
    <td></td>
    <td><center><h3>Weightage </h3></center></td>
    <td></td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    <% 
                              try
                              Class.forName("com.mysql.jdbc.Driver");
                                catch(ClassNotFoundException e)
                                    out.println("Class nai milli bhai");
                                Connection dbh=null;
                               try
                                   dbh=DriverManager.getConnection("jdbc:mysql://172.20.200.21/B2","B2","ignite#1234");         
                                   Statement stmt = dbh.createStatement();
                                    String query = "select * from Parameters_Details;";
                                    ResultSet rs = stmt.executeQuery(query);
                                     while(!rs.next())
                                 %>       
                                 <td><%=rs.getString(2)%> </td>   
                                 <%  
                               }catch (SQLException sqle)
                                    System.out.println("SQL Error : " + sqle);
                               catch(Exception e)
                                   System.out.println("HELLLO"+e);
                               finally
                               //    dbh.closeConnection();
                                %>   
                                   <%--<td></td>
    <td></td>
    <td><center><h3> Core</h3></center></td>
    <td><center><h3>    SE</h3></center></td>
    <td><center><h3>      PE</h3></center></td>--%>
    </tr>
    </table>
    <div id="bottom">
    </div>
    <center> <input type="submit" value="Create" name="Submit">
    <input type="reset" value="Reset" name="Cancel"></center>
    </div>
    </div>
    </form>
    </body>
    It is showing following Exception.
    1>> org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to load class for JSP
    2>> java.lang.ClassNotFoundException: org.apache.jsp.DeliverablesList_jsp

    1)<%--<td></td>
    <td></td>
    <td><center><h3>Core</h3></center></td>
    <td><center><h3>SE</h3></center></td>
    <td><center><h3>PE</h3></center></td>--%>
    :- Jasper exception indicates that it seems syntax error . You need to check out your code carefully. Give comments like this
    <% // %> OR <% /* */ %>.
    Or if you wanna comment only html code use <!-- <td> --> like this.
    Second thing why did you write while( !rs.next()) ? it should be while(rs.next())
    Best luck.

  • Please Help me in Labview and MS Access Database Connective

    Please Help me in LabVIEW and MS Access Database Connective through an example . I am new to LabVIEW .I need simple example that take a data from a table and display it on front panel .
    thanks in advance .

    duplicate post

  • Jsp-database connectivity problem

    hi
    There is a problem, when ever i write a jdbc code for database connectivity through MsAcess, in general applications it works fine. But when ever i try to the same using Jsps it throws an exception that " Microsoft jdbc-odbc driver not fount, Default driver not specified"
    please do help regarding this
    the code i used is
    package Products; import java.sql.*;import java.util.*; public class product{          public Vector getCategories()     {          Connection con;          Statement st;          ResultSet rs;          Vector ret=new Vector(1,1);          try          {               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");               con=DriverManager.getConnection("jdbc:odbc:Web");               st=con.createStatement();               rs=st.executeQuery("Select * from Categories");               while(rs.next())               {                         ret.add(rs.getString(2));                    );               }          }          catch(Exception e)          {               //System.out.println("Exception...");               ret.add(e.getMessage());          }          return ret;     }}

    Have you downloaded the driver and put it in your Web-Server?
    In tomcat you simply need to copy the file in:
    Tomcat 5.0\common\lib

  • Host Database Connection

    When I run an applet locally it fails to connect to a DB2 host database. The following error occurs even though the DB2 drivers are included in the CLASSPATH:
    com.ibm.ivj.eab.dab.DAException: NO_SUITABLE_DRIVER Unable to load
    DAMessages ResourceBundle.COM.ibm.db2.jdbc.app.DB2Driver
    Some of the code is shown below. I'd appreciate any ideas on why the connection fails. Thanks very much.
    private com.ibm.ivj.eab.dab.DatastoreJDBC getCRDatastore() {
    return crDatastore;
    public void connectCurrentDatastore() throws com.ibm.ivj.eab.dab.DAException {
    getCRDatastore().setDriver("COM.ibm.db2.jdbc.app.DB2Driver");
    String serverURL = new String("jdbc:db2:tsoca");
    getCRDatastore().setURL(serverURL);
    java.util.Properties userInfo = new java.util.Properties();
    String username = new String("Username");
    pw = "Password";
    userInfo.put("user", username.toString());
    userInfo.put("password", pw);
    getCRDatastore().setProperties(userInfo);
    try {
    getCRDatastore().connect(); <=== ERROR

    I should clarify that I'm trying to run my applet in an IDE called VisualAge. The class of the applet is in the same directory as the DB2 classes. I have one further question though. I've read a number of forum entries suggesting that some JDBC connection problems can be resolved by running the usejdbc2.bat file in the java12 directory after first shutting down all DB2 services. Is it possible that this might resolve the connection problem that I've described? I'm reluctant to run usejdbc2.bat simply because I can now establish a database connection through DB2 and do not want to lose this capability. Any suggestions?
    Thanks very much.

  • How to add event handler for outlook build in control through programmatically

    Hi,<o:p></o:p>
         There is requirement in my plug in where i need to intercept outlook native attach file method.If user attach more than specified
    exchange limit , i need to perform some operatoin. I found  that there is way to add "Onaction" method for built in control  like this " <command idMso="AttachFile" onAction="CatchExchangeWarning"/> ".
    I have to do the same thing via programmatically .I need to attach this event handler through programmatically since my add is not developed by xml file.
    <o:p>Thanks</o:p>

    Hello,
    It looks like you are interested in the
    BeforeAttachmentAdd event of Outlook items. It is fired before an attachment is added to an instance of the parent object. So, you can analyze the attachment object passed as a parameter and set then Cancel argument - set
    it to true to cancel the operation; otherwise, set to false to allow the Attachment to
    be added.
    Also the Outlook object model provides the
    AttachmentAdd event for Outlook items. It is fired when an attachment has been added to an instance of the parent object. You can also analyze the attachment object passed as a parameter to the event handler. You will not be able to
    cancel the action in that case.

  • Not able to connect to oracle 11g database source through OBI Server

    Hi,
    I am having an issue regarding the database connectivity.
    Iam unable to connect to the oracle 11g database through OBI server. However its connecting through SQL Plus with same username/password@hoststring. Its giving the error as :
    [nQSError: 17001]Oracle Error code:1017,message:ORA-01017: invalid username/password; logon denied at OCI call OCILogon
    [nQSError: 17014]Could not connect to Oracle database.
    Please help me out in resolving the issue.

    If it's working in one place and not the other then it's obviously not an OBIEE problem.
    Are you typing it in right??
    Do you have multiple tnsnames.ora files pointing to different databases, maybe sqlplus is picking up one and toad & OBIEE the other and so the username/pw is wrong for that database?
    There's a limited amount that can be said to help, as the error is 100% clear what the problem is :) it's just working out whether you're connecting to the database that you think you are connecting to, and then whether the username & PW you're entering is correct for that DB.
    BTW OBIEE 10.1.3.4 is supported with 11g, and we're using it without problem here.

  • I want to connect a DataBase(oracle) through Tomcat5.

    i want to connect a DataBase(oracle) through Tomcat5.
    pls tell me the steps how can i do this .or pls give me any link
    thanks previously

    The bottom line is. If you can't figure this part out on your own then you have no business doing any JDBC programming anyway. Think of it as a minimal competency test to make sure it's safe for you to proceed. It isn't safe yet.

  • Event 26330 "Database connectivity is lost"

    Hi there,
    at our customer we're using SCOM to monitor the productive SCSM Environments for alerts.
    We had now couple of times the alert with ID 26330 and Source OpsMgr SDK Service. Here are some more details of the Event from the OperationsManager Log
    The System Center Data Access service lost database connectivity.
    Database name: ServiceManager
    Server instance name: S000243\SCSMINSTANCE
    Exception message: Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    In most cases the Connection was re-established again within seconds. So my colleague and I started wondering why this alert is then still active. In the monitor details he checked what the healthy state conditions are so that this kind of alert gets auto-resolved
    in SCOM. The monitor is apparently looking for another Event with ID 26331 to become healthy again. The weird thing though is that we never had such an Event logged yet, even if we forcely restart the Data Access Service and we can ensure that the Connection
    is fine again this Event ID is not logged.
    So after some research in the Internet we stumble upon this blog post:
    http://blopon.blogspot.ch/2007/10/sdk-service-event-id-26330-is-raised.html
    That's exactly what we're experiencing as well. He's saying this was a bug in SCOM 2007 and is most likely fixed by now. But we all know that SCSM is built upon the (old?) SCOM Framework. So is it possible that this bug has been fixed in SCOM 2007 but never
    in SCSM?
    We're running currently SCSM 2012 SP1 CU2 (about to updated to CU6 soon).
    Had someone of you ever experienced the same Events and knows how to fix it properly? Just closing the alert and the Incident is just stalling the Event from happening again :)
    Thanks
    Alex

    It is very possible. the Service Manager 2012 SDK is based on the 2010 SDK, which was itself based on the Ops Manager 2007 SDK. I can't find any documentation to this effect right now, but i would be more then willing to believe it was based on the RTM,
    rather then a later Service Pack or CU. 
    This seems like an ideal time to test the new product team's suggestions on
    recent LyncUp calls that https://connect.microsoft.com/WindowsServer/Feedback is a vital and open point of contact for issues and concerns. I'm personally skeptical of this claim,
    given that (at the time of this post) there are three issues, one has been summarily dismissed, and the other two have no comment, but i haven't had anything to submit since I've been working with other system center components recently. If their claims hold
    up, then this would be the perfect case for them to prove their new commitment beyond doubt, since this is an easily reproducible, seemingly easily diagnose-able, and possibly easily repairable fault. 
    I encourage you to throw this up there, with as much documentation as you can. i will watch with baited breath, to abuse an idiom, to see the response. 

Maybe you are looking for

  • To run the java application without jdk package

    i would like to know whether possible to make the java .class file as .exe file to run in window environment without the help of jdk package.....if the answer is yes,,,,,is it going to use the jvm???is it come together with window os or not and start

  • How intelligent is the garbage collector?

    Hi all, I've got a question about how garbage collection works in an ABAP objects context. If there are no more references an object is cleaned up and the memory released. Fine. What about an object O1, which in turn creates another object O2. O2 how

  • Ipad mail issues....

    Hi all, I have been using my ipad Mail account for two different hotmail accounts and an academic one too. Only issue is I can't seem to be able to create sub folders on my ipad. Does anyone know how you can do this? Doing it on my academic account (

  • Capture Date issues in Lightroom !

    Hello, I have a 30k picture database (mixed scanned and digital camera images) in Photoshop Elements v3. I really would like to shift to LR, I even tried several betas about it (it was awful how slow it was on XP :). Now I downloaded the Lightroom v1

  • What is the blue lego looking icon with a "?"

    What is the blue, lego looking icon that has a "?" on it? It seems like every other website that I navigate to has it and I can't view anything. It's really getting frustrating. I tried looking for information online but couldn't find anything. Thank