datasource

Disable or hide row/column in detailsview when inserting?

When in insert mode detailsview, there are some parameters that I would like to disable or hide. The columns are autogenerated. Doesn't work: DetailsView3.Rows(5).Visible = False or DetailsView3.Rows(5).Enabled = False I'm lost. ...

How can I bind a DataSource to an InitialContext for JUnit testing?

I'm trying to run JUnit tests on database "worker" classes that do a jndi lookup on an InitialContext to get a DataSource. The worker classes are usually running on a Glassfish v3 App Server which has the appropriate jdbc resources defined. The code runs just fine when deployed on the App Server but doesn't run from the JUnit testing en...

Context specific usernames for connections on a JEE Datasource (JBoss 5.1)

We have an application that needs to access a database that is owned by a different team. That database has security inside the database (triggers, table permissions, etc) and so we need to establish a connection to the database using the same username/password that connected to our EJB. We're running on JBoss 5.1. Standard JEE solution...

Block columns in DataGridView

Hi Everybody, Again a c# question I cant't seem to figure out: I have a datagridview on my form. In Visual Studio design mode, I enter 4 columns: refernce, country, name & city. After a searchform is filled in, I try to refresh the datasource: A custom class fetches all the data from the selected table and fills the datagridview. The p...

Remove row from gridview with datatable datasource

Hello. I am using VB.net. I have a gridview with a datatable datasource. What is the best option to update the datatable when i delete a row in the gridview and then show the gridview without that row? Thanks. ...

Object persistence terminology: 'repository' vs. 'store' vs. 'context' vs. 'retriever' vs. (...)

I'm not sure how to name data store classes when designing a program's data access layer (DAL). (By data store class, I mean a class that is responsible to read a persisted object into memory, or to persist an in-memory object.) It seems reasonable to name a data store class according to two things: what kinds of objects it handles; ...

How to solve the jboss + oracle problem: "the network adapter could not stablish the connection"?

Hello I'm using Oracle 10.2.0.4 server and we are testing Java Application Servers in order to chose the most appropriate for our needs. So far we managed to get OpenEJB and GlassFish working, but not JBoss. We have a simple fat Java client connecting to a simple EJB 3.0 (stateless session bean), which in turn, tries to perform a simpl...

How to read ListView data into generic List

I have a ListView which is filled by generic list of type MyClass. I can easily bind data from this list into ListView. But I have problems with reading data in opposite direction. This is my class: public class MyClass { public int id { get; set; } public string name { get; set; } } I have also generic list of type MyClass: ...

Slow Visual Studio 2008 performance from IDE when viewing all data sources

We are using Visual Studio 2008 for our development of our core product. We have a C# solution with roughly 5 projects and 250 data sources. It takes anywhere from 15-25 seconds any time I do either Data > Show Data Sources, or if I click a (DataBindings) control property drop-down to bind a value of a control to a Data Source. Aside ...

How do I treat multiple API functions for a single CakePHP DataSource ?

I am using CakePHP 1.3. I have successfully created an Indeed DataSource and am looking to create more complicated ones. I am looking into creating a Yahoo Answers DataSource and was wondering about a few best practices. The API exposes a few functions: 1) Ability to search for questions 2) Ability to get questions in a category 3) Ab...

weblogic datasource automatically getting deleted

I do have a cluster with four managed servers with datasources created in the nodes. How would a datasource in some of the managed servers in a weblogic cluster get deleted automatically? ...

How to hookup a UITableview when it is part of of a UIView

I have a UIViewController that has a UITableView sitting on a UIView that is hidden. I have created a data view object and implmented the data methods and hooked it up in the Interfaced builder as a datasource. I can get the table to show but not populate. I have tried creating a UITableViewControler and adding that the the UIViewContro...

User control with enumerable datasource

I'm trying to create a user control which has a DataSource, which can accept any form of collection, such as List<string> or string[] If I check for is IEnumerable then it requires a type, checking is IEnumerable<Type> returns false, as does is IEnumerable<object> What's the correct way to go about this? I presume I set the DataSource ...

Eclipse Helios + BIRT 2.6 - Cannot add/create datasource

I cannot create any datasource including the "Classic Models Inc. Sample Database". I do not get any error on the UI but the data source does not get created / does not show up in the Data Explorer. Has anyone else encountered this issue? How can I fix this? TIA ...

Databind ListView datasource and joined tables

Hi all. I am not expert in ASP so i would be appreciated for the help. Issue connected to Entity FW, ListView Control, its Datasource and type convertion. I have the following LINQ query : RoutesEntities routesModel = new RoutesEntities(); LocalesEntities localesModel = new LocalesEntities(); ObjectQuery routesQuery = (ObjectQuery) f...

OC4J 9.0.4.1 Connection Pool and Datasource

I would need to connection to Oracle database via connection pool. Please correct me IF I am wrong that I only need to modify/add the datasources in data-sources.xml. Thanks. ...

notifyDataSetChanged() doesn't update ListView

protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == RESULT_OK) { deserializeQuotes(); quotesAdapter.notifyDataSetChanged(); } } My array clearly has been updated, and I can see the change when my app starts, but why doesn't it update in this metho...

JDBC reconnect problems with Teradata driver using Spring and Apache DataSource

I'm using the Apache BasicDataSource for both commons DBCP and connection pool: org.apache.commons.dbcp.BasicDataSource and managing it through Spring: org.springframework.jdbc.datasource.DataSourceTransactionManager While using this combination with the Teradata JDBC driver if my database goes down or there is a network glitch I r...

Does the appserver need a bounce everytime the database is bounced?

Hello, I have my app server resin and oracle database connected. If the db is bounced for any reason, I have to bounce my app server as well to clear the bad connections. Is there any way to get around this? Any property set to the datasource? Other than FCF... ...

Advanced manipulation on automatic data binding in .NET, architectural problem

I have application with following data flow: SqlDatabase -> SqlDataAdapter + SqlCommandBuilder -> DataSet -> DataGridView All conversions and bindings are automatic. This is all simple and functional and I can load all kinds of databases with simple code. Problem is with BLOBs, they are treated as Image in DataGridView. My question is...