datasource

Getting Current Data from KendoUI TreeView

做~自己de王妃 提交于 2019-12-18 08:47:56
问题 I'm using a kendo UI tree with a remote data source from a JSON file. I have a button on the tree page which gets the current data of the tree,sends it through a POST to a server and the server saves the current data to the JSON file so as the next time I reload the page,the changes I made will be kept.That's what I want to happen. So I know the current data of the tree is in: $("#treeview").data("kendoTreeView").dataSource.data() Which means the data changes real time in there for example

Using datasource with CheckBoxList

三世轮回 提交于 2019-12-18 07:40:11
问题 I use CheckBoxList in my Windows Forms application and am trying to apply a datasource for it. Having a DataTable, 'dt', with columns id , name and ischecked , I use such code: ((ListBox)MyCheckBoxList).DataSource = dt; ((ListBox)MyCheckBoxList).DisplayMember = "name"; ((ListBox)MyCheckBoxList).ValueMember = "id"; How do I set CheckState for all items in MyCheckBoxList? I keep this value in my datatable and want to link them with MyCheckBoxList. 回答1: I've decided my problem in two steps.

Database connections not closed after idle-timeout in wildfly Datasource

十年热恋 提交于 2019-12-18 05:49:09
问题 I have an application running under wildfly 8.1 The database connections used in the applications are taken from a Datasource defined in standalone.xml file. Problem: I don't know why but the Connection from the Pool never goes Idle and are released. Eventually the Pool gets filled will all active Connection and application starts throwing javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:/bo/datasource At the same time when I look at the database, most of

Changing datasource connection url runtime

左心房为你撑大大i 提交于 2019-12-17 22:57:30
问题 I am working on a project which uses spring + hibernate + mysql and c3p0 for connection pooling. Currently the properties for the connection pool are loaded via properties defined outside the src. (eg: ${db_uname}) Everything starts fine when we create the spring bean. It might so happen that the database to which we have connected is inaccessible for some reason, and we would like to switch hosts. Need to implement a call back, where it is supposed to connect to the new host and re

Weblogic datasource disappears from JNDI tree

寵の児 提交于 2019-12-17 18:35:14
问题 We are using weblogic version 12C. Steps to reproduce the issue: - Create the datasource. Deploy the application to weblogic. Application works fine. Update the deployed ear with the new one. Application is not able to connect the datasource. Datasource not available in the JNDI tree. We need to create either a new datasource everytime or save the datasource setting again. Can someone please check and let me know if you know some solution for this? 回答1: I had the same problem. Adding

Listing all Data Sources and their Dependencies (reports, items, etc) in SQL Server 2008 R2

若如初见. 提交于 2019-12-17 18:05:11
问题 I am new to SQL Server, and I am sorry if there is an obvious solution to my question but I can't seem to find it. I am looking to generate a report (or list) of all the data sources and their individual dependencies on an SQL Server 2008 R2 (reporting server). I know that I can access each individual data source to get a list of all the items that are dependent on it. I have done this in the past but it is time consuming. Is there a way to get a report that would display all the data sources

Where can I find historical raw weather data? [closed]

旧街凉风 提交于 2019-12-17 17:25:02
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Where can I find historical raw weather data for a project I am doing with focus on the USA and Canada. I need temperatures mainly, but other details would be nice. I am having a very hard time finding this data. I really dont want to have to scrape a weather site. 回答1: At the United States National Severe

Can I configure Grails with no datasource?

二次信任 提交于 2019-12-17 15:54:34
问题 I have a Grails app that loads its data from xml files and delivers rss feeds via rome. I don't have any domain classes and my app has no datasource. I don't want Grails to load an in memory hsql db when the application has no need for it. Deleting the DataSource.groovy file prevents me from launching the web app, it seems as though the datasource is required, but is there anything I can do if my application doesn't need a datasource? 回答1: The following steps work for a new app (Grails 1.1.1)

Binding Combobox Using Dictionary as the Datasource

岁酱吖の 提交于 2019-12-17 15:35:26
问题 I'm using .NET 2.0 and I'm trying to bind a combobox's Datasource to a sorted dictionary. So the error I'm getting is "DataMember property 'Key' cannot be found on the Datasource". SortedDictionary<string, int> userCache = UserCache.getSortedUserValueCache(); userListComboBox.DataSource = new BindingSource(userCache, "Key"); //This line is causing the error userListComboBox.DisplayMember = "Key"; userListComboBox.ValueMember = "Value"; 回答1: SortedDictionary<string, int> userCache = new

How do I manually configure a DataSource in Java?

荒凉一梦 提交于 2019-12-17 15:23:00
问题 I'm trying to follow Sun's JDBC tutorial at http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html It gives the following example code: DataSource ds = (DataSource) org.apache.derby.jdbc.ClientDataSource() ds.setPort(1527); ds.setHost("localhost"); ds.setUser("APP") ds.setPassword("APP"); Connection con = ds.getConnection(); This code doesn't compile because the DataSource interface has none of these methods, except for the getConnection() method invoked last. (Here's the javadoc