Using data source to update user defaults

I have a default entry in my user defaults that is a list. Each item of the list is a list of records. I use the following code to delete an entry.
on deletePlaylist()
set tableView to table view "Playlist" of scroll view "Playlist" of window "Schedule Window"
set selectedDataRows to selected data rows of tableView
if (count of selectedDataRows) > 0 then
delete (item 1 of selectedDataRows)
set contents of default entry "specialList" of user defaults to contents of data source "Specials"
register
end if
end deletePlaylist
This code seems to work; when I open my plist the entry looks just as it should. The problem is that the next time I open my program, I get a 1728 error when I try to read that default entry.

I'm not using pipes anyplace in my program.
I'm reading my user defaults like this
set theList to contents of default entry "specialList" of user defaults
tell data source "Specials"
set update views to false
delete every data row
repeat with a from 1 to length of theList
set theRow to make new data row at end of data rows
tell theRow
set contents of data cell "thisDay" to thisDay of item a of theList
set contents of data cell "thisTime" to thisTime of item a of theList
set contents of data cell "thisFinalPlay" to thisFinalPlay of item a of theList
set contents of data cell "thisPlaylist" to thisPlaylist of item a of theList
end tell
end repeat
set update views to true
end tell
I'm writing my user defaults like this in my delete routine.
delete (item 1 of selectedDataRows)
set theList to content of data source "Specials" --I think this is the problem line
set contents of default entry "specialList" of user defaults to theList
When I open my plist in Property List editor, the pipes do not show. The entries are identical to those in the plist before it is screwed up. I think that when my program asks for user default thisList it is actually finding |thsList|. Does that make sense?
When I add to the data source, I make the changes to theList and then rebuild the data source and write theList to user defaults. This works fine.
If I could get the line number of the selected data row in the table view, I could use that index to delete the appropriate item from theList and then write theList directly to user defaults like I do when I add to the data source.

Similar Messages

  • Adhoc Reporting using Data Sources instead of Report Model

    Hi Gurus,
    I'm working on SSRS 2008. I'm trying to create Adhoc Report using Report Builder 3.0. To select Data Source, both *.rsds and *.smdl are listed. I selected a Data Source which points to a SQL database. When I add New datasets, I'm able to add the fields and
    it automatically detect relationships (Joins) using Primary Key and Foreign Key defined in the tables. I'm also able to edit the query. I ran the report and it ran successfully.
    My question is I couldn't find any documentation regarding using Data Source for Adhoc Reporting. MS SQL documentation and forums insists that Report Model is required for Adhoc Reporting.
    Please let me know if someone tried to create Adhoc Report using Data Source instead of Report Model. While I understand there are more benefits using Report Model (define entities/attributes, show/hide entity/attributes, organize entities/attributes etc.),
    I just want to know if this is possible.
    Are there any known limitation using this method?
    Thanks In Advance!

    Hi Ereswaran,
    Yes, we can create ad hoc report using report using data source instead of Report Model. Ad hoc reports typically are used to answer a specific question at appoint in time, so consequently people don’t spend a lot of time arranging and formatting the data
    in a precise way. Other report development tools are available in Reporting Services to support more sophisticated reporting requirements.
    Using Report Builder, we can build a simple report that display data form a single data source as defined by a report model. This tool is most useful for business users who need access to information but lack the skills to write a SQL query. If we have full
    experience of SQL query, of course we can use data source instead of Report Model.
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    Charlie Liao
    TechNet Community Support

  • Using data source in adf application.

    Hi ,
    JDev version : 11.1.1.6.0
    I am planning to use data source in the application  , but there is an issue facing while running with data source.
    Exception in thread "main" javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at com.cisco.complianceutil.WizardDataSourceUtil.main(WizardDataSourceUtil.java:42)
    Caused by: java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    So I used "Weblogic.jar" once and "wlfullclient.jar" . By using one of these jars issue fixed but because of it while loading the application it is throwing the below error .
    <Sep 10, 2013 2:42:05 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "weblogic.wsee.jaxws.client.async.AsyncTransportProvider" failed to preload on startup in Web application: "ComplianceWizard".
    javax.xml.ws.WebServiceException: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
        at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:36)
        at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)
        at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)
        at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)
        at weblogic.wsee.jaxws.EndpointAwareLateInitTube.postCreateEndpoint(EndpointAwareLateInitTube.java:48)
        at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:150)
        at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:64)
    For this I observed that solution is removing the wlfullcient.jar or weblogic.jar from the libraries. But If I do not use any one of them then data source does not work. Please guide me with your suggestions.

    This is configured in your database access layer - if it is using ADF BC then in the Application Module go to the configuration tab and edit the local configuration to see the information about which DB you are accessing.

  • How to use data-sources tag in struts-config.xml

    hi all,
    I am doing programs in sturts. My program purpose is to retrieve data from the database.My database is MySql. I know that we can write connection code in Action Class, it is ok for some less prog's if i want to use the sane connection code in more Action Classes it is vasting time and so.
    So i want to use <data-sources> tag that is available in struts-config.xml. I know that thre is tag with this name, but the problem is i don't know how to use this tag. If any budy know how to use this please tell me the syntax or any example.
    plese... reply soon..

    hi all,
    I am doing programs in sturts. My program
    My program purpose is to retrieve data from the
    database.My database is MySql. I know that we can
    write connection code in Action Class, it is ok for
    some less prog's if i want to use the sane connection
    code in more Action Classes it is vasting time and
    so.I don't think it's a good idea to put database code in Action classes. (That's one of the biggest drawbacks of Struts - it's completely tied to Actions, HTTP, and the Web.) Better to move that code into plain old Java objects and let the Actions call them.
    You'll be able to test them without the container or Struts, and you'll be able to reuse those objects in other, non-Web contexts.
    So i want to use <data-sources> tag that is available
    in struts-config.xml. I know that thre is tag withThis is the wrong place to configure a connection pool, too. Struts should have nothing to do with it. What if you change Web frameworks to WebWork or Spring? The connection pool should be configured in the container that hosts your app, not Struts.
    this name, but the problem is i don't know how to use
    this tag. If any budy know how to use this please
    tell me the syntax or any example.
    plese... reply soon..Don't do it. Think about doing it in your container, not Struts.
    %

  • Tomcat error when using data source.

    Hello,
    I have a problem in that Tomcat does not seem to be recognising my DB Driver. I have tried linking a global data source to my application as well as adding a project specific one with no luck. Here is some of my files:
    //Web.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <web-app
    version="2.4"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd"
    >
    <display-name>DataSourceExample</display-name>
    <servlet>
    <display-name>welcome</display-name>
    <servlet-name>welcome</servlet-name>
    <jsp-file>/welcome.jsp</jsp-file>
    </servlet>
    <servlet>
    <display-name>DataSourceExample</display-name>
    <servlet-name>DataSourceExample</servlet-name>
    <jsp-file>/DataSourceExample.jsp</jsp-file>
    </servlet>
    <welcome-file-list>
    <welcome-file>welcome.jsp</welcome-file>
    </welcome-file-list>
    <resource-ref>
    <res-ref-name>jdbc/DataSourceExample</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </web-app>
    //server.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Server>
      <Listener className="org.apache.catalina.core.AprLifecycleListener"/>
      <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
      <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
      <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
      <GlobalNamingResources>
        <Environment
          name="simpleValue"
          type="java.lang.Integer"
          value="30"/>
        <Resource
          name="jdbc/DataSourceExample"
          type="javax.sql.DataSource"
          maxActive="4"
          maxIdle="2"
          username="hr"
          maxWait="5000"
          driverClassName="oracle.jdbc.driver.OracleDriver"
          password="secret"
          url="jdbc:oracle:thin:@127.0.0.1:1521:xe"/>
        <Resource
          auth="Container"
          description="User database that can be updated and saved"
          name="UserDatabase"
          type="org.apache.catalina.UserDatabase"
          factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml"/>
      </GlobalNamingResources>
      <Service
          name="Catalina">
        <Connector
            port="8084"
            redirectPort="8443"
            minSpareThreads="25"
            connectionTimeout="20000"
            maxThreads="150"
            maxSpareThreads="75">
        </Connector>
        <Connector
            port="8009"
            redirectPort="8443"
            protocol="AJP/1.3">
        </Connector>
        <Engine
            defaultHost="localhost"
            name="Catalina">
          <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
          <Host
              appBase="webapps"
              name="localhost">
             <Context
                path="/DataSourceExample"
              <ResourceLink
                global="jdbc/DataSourceExample"
                name="jdbc/DataSourceExample"
                type="javax.sql.DataSource"/>
            </Context>
          </Host>
        </Engine>
      </Service>
    </Server>
    //A java snippet I am using to access the DB
    InitialContext context = new InitialContext();
    DataSource dataSource =
    (DataSource) context.lookup("java:comp/env/jdbc/DataSourceExample");
    Connection conn = null;
    Statement stmt = null;
    ResultSet rset = null;
    try {
    conn = dataSource.getConnection();
    stmt = conn.createStatement();I also have my DB drivers in the commons/lib file. I know the connect string works fine because I can access the DB from Eclipse when writing standard Java code.
    This is a common problem and I have been searching Google for the last 3 hours but nothing I have tried has fixed my problem.
    I am using Tomcat 5.5 and J2EE 5. I am creating the links and resources in Tomcat manager.
    I don't get any logs or stacktrace, the only error I get is as follows in the returned JSP page:
    DataSource Example
    Cannot create JDBC driver of class '' for connect URL 'null'What am I doing wrong?
    Cheers
    EDIT:
    Actually there was some output from the shell. Here it is:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla
    ss '' for connect URL 'null'
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
    aSource.java:780)
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSo
    urce.java:540)
            at org.apache.jsp.DataSourceExample_jsp._jspService(DataSourceExample_js
    p.java:61)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:332)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    14)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :869)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
    rocessConnection(Http11BaseProtocol.java:664)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
    int.java:527)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
    lowerWorkerThread.java:80)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:684)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NullPointerException
            at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
            at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
            at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
            at java.sql.DriverManager.getDriver(DriverManager.java:253)
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
    aSource.java:773)
            ... 22 more
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla
    ss '' for connect URL 'null'
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
    aSource.java:780)
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSo
    urce.java:540)
            at org.apache.jsp.DataSourceExample_jsp._jspService(DataSourceExample_js
    p.java:61)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:332)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    14)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :869)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
    rocessConnection(Http11BaseProtocol.java:664)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
    int.java:527)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
    lowerWorkerThread.java:80)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:684)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NullPointerException
            at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
            at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
            at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
            at java.sql.DriverManager.getDriver(DriverManager.java:253)
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
    aSource.java:773)
            ... 22 moreI am using ojdbc14.jar driver and as I mentioned it is in commons/lib
    Message was edited by:
    helloWorld
    Message was edited by:
    helloWorld

    Putting the driver into [TOMCAT]/common/lib is sufficient.
    The error I think is not related to finding the driver, but actually not retrieving the correct connection string info.
    I never had much luck putting this definition info into server.xml
    I have had success putting it into a custom context.xml file for a web app as described [url http://tomcat.apache.org/tomcat-5.5-doc/config/context.html]here
    in individual files (with a ".xml" extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory. The name of the file (less the .xml) extension will be used as the context path. Multi-level context paths may be defined using #, e.g. context#path.xml. The default web application may be defined by using a file called ROOT.xml.
    eg [TOMCAT]/conf/catalina/localhost/DataSourceExample.xml
    Hope this helps,
    evnafets

  • Logical column using data source from 2 generations of same hierarchy

    Hi experts,
    I'm using Essbase as my data source in CEIM physical layer,
    and I have a hierarchy called "Entity" which contains different level of companies,
    in Generation 2 I have only one member called "group totals" and in Generation 3 are 5 members representing 5 different industries,
    I need to use these total 6 members as slider on the top of the view(a Dial),
    and the measure I want to show is scaled in rate, which I can't simply sum up those five members in Gen3 to get Gen2 measurement.
    I tried to create a logical column using Entity-default(the alias table) as datasource, it worked but was not sorted in outline style.
    I tried to sort them using calculate items in selection steps, but calculate items seemed cannot be shown as section or slider.
    So I wonder if I can simply create a logical column that sourced from different generations(in this case, my Gen2 and Gen3) of same hierarchy,
    is it possible to do such things?
    Thanks for reply.

    You could try General Database Discussions the main db foum.
    What are you using to migrate your database? Why is it being mapped from varchar2(8) to varchar2(32). It sounds like someone/something is intervening here.
    Barry

  • Weblogic & JNDI Data Source with proxy user.

    We're trying to use Oracle proxy user authentication on a data source configured in WebLogic 10.3.6, however, we want to approach it in a programatic way. So we want to obtain the DataSource, and set the proxy related properties inside the application.
    We came up with the following snippet:
    Hashtable<String, Object> env = new Hashtable<String, Object>();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, "t3://10.1.1.10:7003");
    env.put(Context.SECURITY_PRINCIPAL, "weblogic");
    env.put(Context.SECURITY_CREDENTIALS, "weblogic");
    Context context = new InitialContext(env);
    javax.sql.DataSource ds = (javax.sql.DataSource) context.lookup("ds_puser");
    OracleConnection oconn = (OracleConnection) ds.getConnection();
    The problem comes up when we try to cast the connection to OracleConnection, the thing is that the returned type is actually a 1036_WLStub.
    How can we avoid that type or cast to it to something useful? I found this reference on Oracle forums and he's being able to cast it directly:
    Re: My problem in using weblogic Datasource and proxy user
    Can someone help us out?
    Thanks a lot in advance!
    Edited by: 990800 on 27-feb-2013 13:26

    A DataSource is an Interface. What the code gets from the jndi tree is some concrete object that
    the code doesn't need to know the name of, or anything specific about it, as long as it implements
    the DataSource Interface, which it successfully casts to, to allow calling the methods defined in the
    DataSource Interface. If you call for a plumber, you don't need to know his name as long as you
    can get a plumber, and can call the "Fix this leak" method, defined in the Plumber Interface.

  • Problem in data loading in 0PM_DS05 using data source 0PM_MEASUREMENT

    Hi Gurus,
    I have to load data in OPM_DS05 ODS using 0PM_MEASUREMENT data source.
    Now the problem what I am facing is, there is a field equipment number which was there in data source but not mapped to infoobject then I mapped that field
    EQUNR(R3 field) to 0EQUIPMENT(BI infobject) after this  when I try to load data error is comming and when I check the dump I understand that there is some routine written in update rules which refers master data of 0EQUIPMENT thus what I got is I have to load master data first then the ODS but when I load master data then request is not comming in the ATTRIBUTES 0EQUIPMENT.
    I am using 0EQUIPMENT_ATTR data source to load data to 0EQUIPMENT.
    Please help me out from the situation what should I do and also suggest whether it is necessary to load master data for 0EQUIPMENT.
    Your efforts will be appreciated.

    Hi,
    in generally it is always a good idea to load the master data first. In your case there are still some questions.
    a) did you activate the master data after loading?
    b) what kind of short dump are you getting while loading the transactional data?
    c) what is the routine doing?
    I guess your loading issues are more related to the routine than anything else.
    regards
    Siggi

  • How make connection using data source with db2

    hiiiiii,
    please tell me the procedure to connect with db2 through data source (driver should support updatable ResultSet)

    Read the documentation of the application server used how to create a datasource. Once done that, you can obtain it in your Java code by JNDI. After retrieving the DataSource instance from JNDI, you can just use DataSource#getConnection() to acquire a connection from that datasource.

  • POS Analytics Data Sources Full update  0RT_PA_TRAN_CONTROL 7.3

    Hi Gurus,
    We still face this issue in BW 7.3, is there any work around?
    The following Notes is out dated it represent BI 3.0 and 3.5, was updated in 25.05.2004.
    The application program for extracting data from the POS Inbound Processing Engine (PIPE) was called
    using the "Full Upload" update mode. However, this is not supported by the 0RT_PA_TRAN_TOTALS,
    0RT_PA_TRAN_CONTROL, 0RT_PA_43_POSCAS, 0RT_PA_44_POSREC, 0RT_PA_TRAN_GDS_MOV or 0RT_PA_TRAN_MOV_FIN DataSources.
    The InfoPackages for the aforementioned DataSources must be created in the following sequence:
    Initialization of the delta process WITHOUT a data transfer
    Delta update
    Refer Note: 739970 - No full upload for the POS Analytics Content.
    Thanks and Regards,
    Ramesh D

    Hi Ramesh,
    all POS Analytics data sources still do not support full updates. Regarding the OSS not I would assume that is was created in 2004 and never updated in later releases.
    What you can do if you still have the transactions in PIPE is to reset the task status für te BW task and run this again.
    Kind regards
    Carsten

  • JDBC runtime error using data source (Oracle 9i server & Oracle 8i client)

    Hi,
    Wud someone help me with this? Why am I getting this run-time error?
    D:\shilpa\javaprogs>java -classpath %classpath%;.; CreateMovieTables
    javax.naming.NoInitialContextException: Need to specify class name in environmen
    t or system property, or as an applet parameter, or in an application resource f
    ile: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    40)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav
    a:280)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at CreateMovieTables.initialize(CreateMovieTables.java:18)
    at CreateMovieTables.main(CreateMovieTables.java:101)
    This is how I have created the data source:
    public void initialize() throws SQLException, NamingException
              Context initialContext = new InitialContext();
              DataSource dataSource = null;
              dataSource = (DataSource) initialContext.lookup("jdbc/Oracle");
              connection = dataSource.getConnection();
    I have set the classpath to: C:\j2sdk1.4.2_08\jre\lib where the jndi.properties file exists.
    Here's the jndi file:
    datasource.name=jdbc_1
    datasource.url=jdbc:oracle:thin:@10.119.5.98:1521:sea77db0
    datasource.classname=oracle.jdbc.driver.OracleDriver
    datasource.username=tr1
    datasource.password=tr1
    What am I doing wrong? Cud someone help me with this? It's working fine when I don't use the data source. Maybe I am doing something wrong.
    Regards,
    Shipf1

    After reading your posts, I noticed that my eyes were bleeding...
    Wud someone help me with this?
    Cud someone help me with this?
    Thanks. It worked. BUt, IF i wanna ...
    I don't[b] wanna...
    what shud i do then?
    Thought I should return the favor encapsulating the essence of this writing style:
    So, IF i cud, I wud, but If i don't wanna shud i anyway?
    Just funnin around... Good luck on your problem though.
    Darn it, my eyes are bleeding again!

  • Delta enabled generic data source not updating delta

    HI,
       Created one Delta enabled generic datasource with the help of ztable .Fill the content of table by manual entries.
       While executin init,records are extracted from R/3 system. After made a change in table entries , it is not captured in RSA3.
       Data source is avaialble in RSA7 after execueting init.
       Delta type== TIME STAMP
       fIELD NAME=zTIME
      SAFETY LIMIT=30 SEC
    ITS FROM 'NEW STATUS FOR CHANGE RECORDS'
    Please help me on this issue..
    Regards,
    MohammeD

    how did you create your data source? - based on view, table for Function Module?
    If it is based on a View or table, ideally delta should have worked. If it is not working, please chedk the data type of the field. Make sure that delta field (i.e. ZTIME) is getting updated evertyime you change any record in ztable. While extracting data in RSA3 in delta (D) mode, make sure you also give the target system ID. Also try runnign the delta infopackage in BW if it fetches data.
    If nothing works, try creating your data source again.
    If it is based on Fuction Module, you will have to include the delta functionality in your code.
    Regards,
    Gaurav

  • CUP - Using several Parameters ID in User Default

    Hello everybody,
    I have a problem with using User Default section in CUP.
    In fact I want to use the User Default Mapping to define two different parameter ID in the SU01.
    For example: the Company Code (BUK parameter) and the Cost Center (KOS parameter).
    If I define two different User Default (one for the company code and the other for the cost center) with two different User Default Mapping Condition (Custom fields Company code with the good value for the first one and cost center custom fields for the second one) it doesn't works.
    It seems to use only one User Default even if the both User Default Mapping Conditions are different.
    Does anyone know how to define two different User Defaults that works together?
    Thanks in advance.
    BMW

    BEN,
       I have never tried this scenario. It seems to me that this might not work.
    Regards,
    Alpesh

  • BI Data Source 6DB_PRODUCT - DB USER issue..

    HI All,
    We have the issue  - Bi Data Source 6DB_PRODUCT  at DB USER in EXTRACTION tab.
    Source = MS SQL DB View
    Target  = SAP Bi 7.0 (Sp23)
    We have a Bi Data Source 6DB_PRODUCT . Gets from Product - DB View.
    This Data source is working fine earlier with the below.
    In the 6DB_PRODUCT Data Source - FILED TAB -> DB-user = ' '  . i.e. EMPTY. 
    Source team, added one field recently and we seen :
    In the 6DB_PRODUCT Data Source - FILED TAB - DB-user = SERVICEBWD 
    This 6DB_PRODUCT is working fine in BI Dev system.
    We transported this 6DB_PRODUCT  to BI Quality Syaytem. When We click "READ PREVIEW  DATA " button it throws an ERROR:
    Unknown error while uploading data from the DB table
    Message no. RSDS_ACCESS027
    If we run INFO PACK - it shows ERROR in SOURCE SYSTEM.
    Please let me know - what is the reason ? Suggest me how to follow.
    Thanks in Adavnce.
    Nara

    That are the possible reasons:
    - View STORE_VW_SAP does not contain any data.
    OR
    - its caused by a truncation problem. Sometimes the problem occurs because there's a view called STORE_VW_SAP
    on the remote SQL Server, containing some fields of datatype bit. Check the mapped fields(the type), if they are mapped to one SAP object. In some cases the value of fields cannot be mapped. The solution in this case would be to modify this view STORE_VW_SAP on the remote SQL Server to another way in that these fields are converted to datatype. It can be defined in the select clause of the view. Then you have to recreate the datasource and check again which values are submitted to the BW system.
    I hope it helps!
    Regards,
    Sinara

  • How can I use Data Source Explorer to connect soap service with my work manager project?

    Hello,
           I am new in Agentry and I want to Consume soap service in work manager project.For that I add my service in data source explorer but I dont have any Idea that how can I go further in that to use this service in my project.

    Are you consuming OData service or SOAP service ?  Your heading says something but looking at screen it is OData service.
    I have not worked on OData service in Agentry but hopefully you can figure out rest of the steps:-
    Here are some high level steps you can follow  depending on what your trying to do.
    1. Open "Data Source Explorer" view->Eclipse, select "Window/Show View/Other->"Data Management/Data Source Explorer"
    2. On "Data Source Explorer" view, ->"OData Connections"->right click and select "New...
    3. Enter name of the connection profile.
    4. Enter Service URI of in OData Connection Details
    5. After "Test Connection", press "Finish" or click "Next" to view Summary.
    6. Right click "Yourproject" node under "OData Connection", select connection. You will see "Entities"
    7. Expand "ODataEntities", right click "Entityset", select "Agentry: Connector Studio\Object Wizard for OData".
    8. Select a module to add odata connection, click "Next"; and click "Next"; and click "Next"
    9. Check "Add", "Edit" and "Delete" on "Transaction Selection" screen.
    10. Create your own screenset and platform as required.
    11. Test the changes.
    Thanks
    Manju

Maybe you are looking for