datasource

Restoring old value of a textbox (or any other control)

Probably a very basic beginner question. Imagine the following situation: I have an ASP.NET page with a textbox and a button. In the textbox I enter let's say a name "Laurel" and click the button. The textbox is related as a control parameter to a data source and this data source pulls the content "Laurel" from the textbox to build a q...

What type of data storage should I use if I have a list of data that contains 100 objects and each object has its own data?

My plan is to display a list of items alphabetically in a table view that has about 100 items. Each item has an image, a list of times and a description that the tableview will drill down to. What I am struggling with is the correct way to store and load this data. Some have told me that a plist will be too data heavy and that core da...

ASP.NET XML as Datasource error

Hello I am trying to use an XML as a datasource in ASP and then display it as a datagrid. The XML has the following format: <?xml version="1.0" encoding="UTF-8"?> <people type="array"> <person> <id type="integer"></id> <first_name></first_name> <last_name></last_name> <title></title> <company></company> <tags...

Overwriting ControlParameters of DataSources in code-behind

I have an ObjectDataSource (but perhaps this question is the same for all kinds of DataSources which support parameter collections): <asp:ObjectDataSource ID="MyObjectDataSource" runat="server" TypeName="MyData" OldValuesParameterFormatString="original_{0}" SelectMethod="GetMyData" > <SelectParameters> <asp:Con...

Oracle Weblogic JNDI Datasource set Default Auto Commit

Hi. In my J2ee web application I am using a datasource accessed stored in the weblogic server and accessed through jndi. In normal datasource bean declaration there is a property defaultAutoCommit which can be set to false. Is there a similar property or is there a way to set something like this when using datasource in JNDI. Because cur...

Databind List Of Objects To A WinForms DataGridView, But Not Show Certain Public Properties

I'm not even sure if i'm doing this correctly. But basically I have a list of objects that are built out of a class. From there, I am binding the list to a datagrid view that is on a Windows Form (C#) From there, it shows all the public properties of the object, in the datagrid view. However there is some properties that i still need ac...

How does [self.tableView reloadData] know what data to reload?

It bugs me to death that my viewcontroller, which happens to be a tableViewController, knows without being told that its property that is an NSArray or an NSDictionary holds the data that is to be loaded into the table for display. Seems like I should explicitly say something like: [self.tableView useData:self.MyArray]; I want to ha...

Define DataSource bean on code

I would like to make a "First Access Database Setup Process" in my spring application and the only thing I can imagine as a solution would be to initialize the DataSource bean programatically. My current bean is defined as: <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name=...

[Closed] Oracle JDBC connection with Weblogic 10 datasource mapping, giving problem java.sql.SQLException: Closed Connection

Oracle JDBC connection with Weblogic 10 datasource mapping, giving problem java.sql.SQLException: Closed Connection I am using weblogic 10 JNDI datasource to create JDBC connections, below is my config <?xml version="1.0" encoding="UTF-8"?> <jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/90" xmlns:sec="http://www.bea.com/ns/web...

how do i know when to use a datasource or delegate protocol when using a UI object in my project?

for example the UIPickerView, in the tutorial that i am learning i had to include the datasource and delegate protocols in my project for the pickerview to work. how would i know on other objects? ...

Does anyone know the whereabouts of a CakePHP Datasource for the Mailchimp API?

After much Googling the only Mailchimp CakePHP stuff I can find are two different Components. Whilst these are great (big thanks to the authors for sharing them), I'm looking for a datasource that I can use. This will give me my automagic validation as usual. I've heard rumours on the #CakePHP IRC channel that one exists, but can't t...

Can I change the datsource of report model at runtime

I've some adhoc reports developed on some report models which are published on Report Server (we're using SSRS 2008). Everything is running well. Now in our production environment we've near about forty (40) customers who have their own database (each have the same table structures and other database objects). Now the challenge is whenev...

Tomcat6 MySql JDBC Datasource configuration

I've always used Spring's dependency injection to get datasource objects and use them in my DAOs, but now, I have to write an app without that. With Spring I can write something like this: <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.mysql...

How do I initialize the controls in an InsertItemTemplate?

I have - for instance - an asp:FormView which supports Read, Insert, Update, Delete and is bound to a DataSource: <asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1" > <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%# Bind("MyText") %>' /> </ItemTemplate> <EditItemTemplate> ...

Multiple db with SQL

Hi, I tried with using groovy SQL . This worked on my machine and also on test site too very good. But failed when moved war to Beta site. Here are the steps i did for portlet . In portlet file: import javax.portlet.* import groovy.sql.Sql class MaintenancePortlet { def dataSource def db = new Sql(dataSource) def organizat...

Is it possible to have a connection to LotusNotes and use it as a data source for a C# project?

Is it possible to have a connection to LotusNotes and use it as a data source for a C# project? We use LN for email/calendar. Management wants a web page that would interact with the calendar. I think this can all be done within Notes, but I would much rather do it in .NET. Some very specific functionality is wanted, some of whic...

LINQ Query to DataTable.DataSource

I am trying to perform a LINQ query on a DataTable and show the result in another DataTable. My source DataTable looks something like this: DataTable myDataTable = new DataTable(); myDataTable.Columns.Add("OrderID", typeof(int)); myDataTable.Columns.Add("Date", typeof(DateTime)); myDataTable.Columns.Add("UnitsPurchased", typeof(int)); ...

Why does grails use hsqldb when I ask for mysql?

I'm following the racetrack example from Jason Rudolph's book at InfoQ, using grails-1.2.1. I got up to the part where I was to switch from hsqldb to mysql. I think I've deleted every reference to hsqldb in the DataSource.groovy file, but I get an exception and the stack trace shows it's still using hsqldb. DataSource.groovy dataSourc...

vb.net using SortedDictionary as combobox datasource

I have a combobox which i am binding to a sortedDictionary list, so it displays in ascending order. My question is, I need to display "--Select--" as the first option. Is there any way to either: 1) add another item besides for the datasource or 2) add an unsorted item to the top of the sortedDictionary any other ideas welcome as well :...

How do I lookup a JNDI Datasource from outside a web container?

I have the following environment set up: Java 1.5 Sun Application Server 8.2 Oracle 10 XE Struts 2 Hibernate I'm interested to know how I can write code for a Java client (i.e. outside of a web application) that can reference the JNDI datasource provided by the application server. The ports for the Sun Application Server are all at ...