datasource

How to list JBoss AS 7 datasource properties in Java code?

心不动则不痛 提交于 2019-12-12 13:16:30
问题 I'm running JBoss AS 7.1.0.CR1b. I've got several datasources defined in my standalone.xml e.g. <subsystem xmlns="urn:jboss:domain:datasources:1.0"> <datasources> <datasource jndi-name="java:/MyDS" pool-name="MyDS_Pool" enabled="true" use-java-context="true" use-ccm="true"> <connection-url>some-url</connection-url> <driver>the-driver</driver> [etc] Everything works fine. I'm trying to access the information contained here within my code - specifically the connection-url and driver properties.

Kendo UI Treeview and JSON

核能气质少年 提交于 2019-12-12 13:15:46
问题 So I want to create a Tree with kendo UI treeview item and bind it to a remote Hierarchical Data Source being a JSON file. I want the resulting tree to be something like: (Vehicles) --(Cars) ----FM-1100 ----FM-4200 --(Bikes) ----FM-3100 (Personnel) --(Clients) ----GH-3000 --(VIPs) ----GH-3100 PS. Names in () are supposed to be something like folders containing their "children" I've checked the documentation about all the above in the kendo ui website but I'm a bit confused with the whole

Created Parameterized query not showing in datasource visual studio 10 and access

那年仲夏 提交于 2019-12-12 09:58:46
问题 I'm trying to replicate northwind database but when I created parameter query vw_CustomerOrderYear , the query is not showing in my datasource. I do not know what I'm missing.. My parameter query vw_CustomerOrderYear is : PARAMETERS OrderYear Long; SELECT DISTINCT Customer.ID, Customer.Name, Customer.City, Customer.Country, Year([Order].OrderDate) AS OrderYear FROM Customer INNER JOIN [Order] ON Customer.ID=Order.CustomerId WHERE (((Year(Order.OrderDate))=[OrderYear])) Or ((([OrderYear]) Is

Bind Dropdownlist with optGroup from sql datasource

走远了吗. 提交于 2019-12-12 09:03:39
问题 I have to bind a Dropdownlist with coutries which should be grouped by region, I have found a sample code from the following link, http://www.codeproject.com/KB/custom-controls/DropDownListOptionGroup.aspx?msg=3984074#xx3984074xx I wanted the country list same as this. But problem is that I want to bind the dropdownlist from sql result. I have tried the following but didn't work, ddlCountry.DataSource = CountryDtoCollection; ddlCountry.DataBind(); ddlCountry.Attributes.Add("OptionGroup",

Kendo DataSource: How to define “Computed” Properties for data read from remote odata source

為{幸葍}努か 提交于 2019-12-12 07:28:20
问题 Situation: kendo DataSource var ordersDataSource = new kendo.data.DataSource({ type: "odata", transport: { read: { url: "http://localhost/odata.svc/Orders?$expand=OrderDetails" } }, schema: { type: "json", data: function(response){ return response.value; } total: function(response){ return response['odata.count']; } }, serverPaging: true, serverFiltering: true, serverSorting: true }) the json data read from the odata source is like: { odata.metadata: "xxxx", odata.count: "5", value: [ {

SSRS must Excel be installed on Reporting server to use Excel as a Data SOURCE?

假装没事ソ 提交于 2019-12-12 06:24:26
问题 If users would like to use Excel as a data source for Report Builder (of SSRS - SQL Server Reporting Services), does Excel need to be installed on the Report Server? We also have issues with 32-bit ODBC drivers vs 64 bit drivers but I want to rule out (or rule in) that Excel needs to be on the Server. Thanks! 回答1: No, you don't have to install Excel. The MS Business Intelligence Development Studio (ie. Visual Studio) is 32-bit and you need 32-bit ODBC drivers for report development. I'll

kendo ui: how to remove a dataItem of a dataSource bound to some comboBox, inside combobox dataBound event

核能气质少年 提交于 2019-12-12 05:37:00
问题 I have a grid, inside of some column of which I have created a combobox editing UI, using columns.editor function. My goal is every time a user selects some value from the combobox -while populating a newly created grid record-, this value to be removed from the list options of a next record's combobox. One of the things i've tried is shown below: function equipmentDropDownEditor(container, options) { var equipmentComboBox = $('<input id="equipmentDropDownEditor" required data-text-field=

How to test DAO with DataSource in Java Web Application?

五迷三道 提交于 2019-12-12 05:25:52
问题 I'm doing my project using Tomcat 7 , JSP , Servlets , Log4j and MySQL . I've googled this question for hours with no proper answer. How can I test my DAO's using DataSource and JUnit ? I found this article recently, but don't know how to configure it for my purposes and don't sure if it's a good way of doing it. I'm having the following DAO hierarchy: And I'm obtaining the DataSource in AbstractRepository in the following way: ... protected final DataSource ds; ... public AbstractRepository(

I am trying to figure out how to loop through my datatable. Any Suggestion?

风格不统一 提交于 2019-12-12 05:18:09
问题 I do not want to bind it till its been looped through. What I have here is a csv file uploaded to a gridview.I would like to loop through it before it is bound. Any Advice is great. protected void btnUpload_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) try { FileUpload1.SaveAs(Server.MapPath("") + FileUpload1.FileName); Label1.Text = "File name: " + FileUpload1.PostedFile.FileName + "<br>" + FileUpload1.PostedFile.ContentLength + " kb<br>" + "Content type: " + FileUpload1

Databinding is not happening after search kendo grid

人盡茶涼 提交于 2019-12-12 04:58:11
问题 Hi I've a Kendo grid with some data. When I try to call rebind it is not populating data even though I can able to fetch it from my db. Here are the clear steps: Binding data by calling my function init() In my Init() I've datasource with read like this read: "/Emps/ShowAllEmps" First time it is loading data and I can able to see in the grid Now I've a text box in my page along with search button. I've entered some text and calling the same datasource like "/Emps/ShowAllEmps" with additional