datasource

VB.NET: Clear DataGridView

孤街醉人 提交于 2019-11-30 01:43:37
I've tried - DataGridView1.DataSource=Nothing and DataGridView1.DataSource=Nothing DataGridView1.Refresh() and DataGridView1.RefreshEdit() None of them works.. I've written a method that sets the DataSource of the DataGridView when executed. but each time i execute it, it replicates the data with new value and appends it to the previous contents of the DGV.. I wanna clear the content and then add the values.. Is that possible? If the DataGridView is bound to any datasource, you'll have to set the DataGridView's DataSource property to Nothing . If the DataGridView is not bound to any data

SQLite 1.0.82.0 (latest) in Visual Studio 2012 not showing in Designer Data Source

你说的曾经没有我的故事 提交于 2019-11-29 21:13:59
问题 I am using the latest version, 1.0.82.0 (sqlite-netFx40-setup-bundle-x86-2010-1.0.82.0.exe), and am using the released version of Visual Studio 2012 with all the latest everything. I do not see the SQLite in the Designer Data Source in Source Explorer (new Connections). The download on SQLite states, "This setup package is capable of installing the design-time components for Visual Studio 2010". I presume the "Visual Studio 2010" part is why I do not see the designer in VS2012, which is what

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

送分小仙女□ 提交于 2019-11-29 20:44:41
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 their defaults. There is a JNDI datasource named jdbc/xxxx in the server configuration, but I noticed that the Hibernate configuration for the web application uses the name java:comp/env/jdbc/xxxx instead. Most of the examples I've seen so far involve code like

Xcode storyboard delegate datasource scenes

♀尐吖头ヾ 提交于 2019-11-29 17:37:23
问题 After updating Xcode 7, some of my viewcontrollers' names changed to Delegate Scene, what to do about this? Thanks! Changing the title doesn't help 回答1: Try renaming the controller to whatever you want it to be: Step 1 Select the "controller", named "Delegate" in your screenshot. Step 2 Click again on "Delegate", or press [Enter] to enter renaming mode. Step 3 Rename it to something meaningful. Step 4 Deselect or press [Enter] again to save the changes. The scene name will be updated to match

Location data for filling the report in JasperServer

安稳与你 提交于 2019-11-29 16:46:44
I have developed a template design in JasperSoft Studio and upload jrxml file to JasperServer. I want to send data (JSON or XML) to filling report template from my python application and take back report in some popular formats like PDF, XLS using REST API. I do not want to store the data on the server . How can I do this? Or data must be stored on the server and there is no alternative way of their transmission by WEB-Service? The data does not necessarily have to reside on the server. You could design your template in such way that you can pass the data via input control parameters as @tobi6

How to properly keep a DB connection from a Connection Pool opened in JBoss

烂漫一生 提交于 2019-11-29 16:29:13
I'm using JBoss AS 7.1 as a server and I have my DataSource configured with pooling. I'm quite new to this so please excuse any rookie mistakes... after all I'm here to learn. When a client logs-in it gets a connection to the database and I need to keep that connection(from the pool) open until the user logs-out or the HttpSession expires. This is an absolute requirement coming from our DB Admin. who says that he needs the DB session variables. I am using a servlet for all this. Playing with the possibilities I have encountered 2 major problems: As far as I see JBoss automatically closes

JasperReports Server: Switching JDBC datasources depending on user

女生的网名这么多〃 提交于 2019-11-29 15:31:07
Can anyone provide instructions on how to do this? I have several different JDBC DataSources set up and would like to be able to configure users to run the same report using different datasources. E.g. when user A logs in and runs report A, datasource 1 is used; when user B logs in and runs report A, datasource 2 is used. I am using version 4.0. Julian Cardenas I'm working with release 6.2 of JasperReports Server and this is perfectly possible, as users have attributes and you can reference these attributes in the datasource connection settings. For example you would not set an specific ip for

xPages repeat control with scoped variable as data source

最后都变了- 提交于 2019-11-29 14:52:46
I need to build repeat control or (view or data table) that uses scoped variable as data source. And the scoped variable should be an array.. Or even just javaScript array.. scoped variable: viewScope.MY_TEST = new Array(); viewScope.MY_TEST.push("Test1"); viewScope.MY_TEST.push("Test2"); or array: var my_arr = new Array(); my_arr.push("Test1"); my_arr.push("Test2"); or even an object/two dimensional array: viewScope.MY_TEST = []; viewScope.MY_TEST .push([value1, value2]); so repeat control should contain e.g. two computed fields one is bind to value1, another to value2... Or give me an

Getting Current Data from KendoUI TreeView

随声附和 提交于 2019-11-29 14:45:49
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 when someone drag and drops a node of the tree. My problem starts when this data doesn't seem to change

Using datasource with CheckBoxList

一世执手 提交于 2019-11-29 13:39:29
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. Grinart I've decided my problem in two steps. First, I applied the datasource, and then in circle set the Checked property for each item like in the