dataprovider

How to create refresh statements for TableAdapter objects in Visual Studio?

I am working on developing an ADO.NET data provider and an associated DDEX provider. I am unable to convince the Visual Studio TableAdapater Configuration Wizard to generate SQL statements to refresh the data table after inserts and updates. It generates the insert and delete statements but will not produce the select statements to do t...

what dataprovider in flex (aside from ArrayCollection) will work for single, non-repeating XML nodes?

hello, i asked this question before but haven't been able to get an answer.. i get the following error when i retrieve an XML that only has 1 node (no repeating nodes) from a PHP page and i try to store in an ArrayCollection. -When I have MORE than 1 "name" nodes...i do NOT get an error. TypeError: Error #1034: Type Coercion failed: can...

flex data provider not working if XML has single node value or less

hello, i get this error when i retrieve an XML that only has 1 node (no repeating nodes) and i try to store in an ArrayCollection. -When I have MORE than 1 "name" nodes...i do NOT get an error. My test show that XMLListCollection does NOT work either. TypeError: Error #1034: Type Coercion failed: cannot convert "XXXXXX" to mx.collectio...

flex checkbox value not selected from database

Hi, I have a small flex datagrid. The dataProvider is an xmlList. I have two columns, userList and user permissions. The user permissions column as checkboxes. The values for the checkbox are stored as 0 and 1 in mySQL. While returning it from PHP, I am converting them to true or false. Its returning the values correctly to the frontend....

Adobe Flex Combobox DataProvider

I have a project that was compiled with the Flex 3.2 SDK. One of my components is a combobox, which is bound to a property (called products) in the Cairngorm model. If I insert a new value into model.products, then the combobox immediately shows the new value. Works perfectly. I then moved to the 3.5 SDK, and running the identical oper...

Oracle .NET Provider DLL hell

I am currently developing on a Win7-32bits computer. Everything works fine. It's a ASP.NET application. I was able to use Microsoft's Oracle deprecated .NET provider to connect to Oracle (using 32 bit instant client) and also ODP.NET. No problems at all. Application runs fine. The problem comes when I deploy it to IIS7 on Windows 2008 ...

SqlHelper.ExecuteReader results varying and unexpected when certain number of records are returned...

Note: You may not need to read the whole thing to know what's wrong... skip down to the part about the 3 scenarios if you'd like. Only read the begin if you'd like some background info on how I've tried implementing this and where the errors occurred. To begin with, I'm trying to retrieve a list of Clients stored in the CRM_Clients tabl...

Is it possible to place the ASP.NET DataProvider assemblies in a sub directory

Hello, I'm currently implementing some DataProviders according to the ASP.NET Provider Model. Everything works fine, though the application directory is a mess due to all the assemblies containing the data providers and their dependencies. Is it possible to put the assemblies containing the DataProviders in a subfolder? If yes, what do...

C#: Services access the dataprovider class running the sql statements - correct approach ?

Hello, is this a common and/or good approach? In my ViewModel(Wpf) or Presenter(WinForms) I do this: ICustomerService customerService = MyService.GetService<ICustomerService>(); ICustomerList customerList = customerService.GetCustomers(); the CustomerService class looks like this: public class CustomerService : ICustomerService { ...

Visual Studio 2010 Add Connection dialogue not populating databases

I've installed Visual Studio 2010 and SQL Server 2008 (on 64 bit Windows 7). When I attempt to add a data source using the Add Connection dialogue, the dialogue is able to populate the servers, but when a server is chosen it is not able to populate the databases. When a database name is manually entered and OK is clicked, the following...

different excel sheets for same dataprovider

Is it possible to use different excel sheets for different test methods sharing the same dataprovider in testng ...

How do I append an item to my dataProvider? (Flex)

What I would like to do is simply add to a dataProvider, but when I do, I get an error. Here's the code I'm trying to run... dg.dataProvider.addItem(obj.ResultSet.Result[i]); It's inside a for loop, using i as the integer. It works great doing... dg.dataProvider = obj.ResultSet.Result But that won't work for me, because I need to...

AdvancedDataGrid Problem (Bug?) -- Disclosure Icons in Wrong Column. (Hierarchical data, Flex 3.5)

Hi Gang, I've run into a bit of a funny one and thought it was worth posting: I'm using an Advanced Data Grid in a case where I've got to set the data provider at runtime using hierarchical data. The adobe docs don't really cover this kind of thing (at least not at the level I could dig to). Has anyone run into this before? The only...

Flex / AS3 chart component to display normal distribution

Given a dataProvider with values ranging from 25 to 85: public var answers:ArrayCollection = new ArrayCollection([ {user_id: "A5", question_1: 35, question_2: 55}, {user_id: "A6", question_1: 40, question_2: 56}, {user_id: "A7", question_1: 45, question_2: 52}, {user_id: "A8", question_1: 43, question_2: 50} ]); How c...

How can i use safe-browsing application object to determine whether a url is reported as phishing site or malware site?

Here is code snippet: Components.classes['@mozilla.org/safebrowsing/application;1'] .getService().wrappedJSObject.malwareWarden.listManager_ .safeLookup(test_url, function(tableName){ if (tableName == 'goog-phish-shavar' || tableNmae == 'goog-malware-shavar') { alert('This is reported by Google! '); }...

How to create a DataProvider using specific elements from an XML object in Flash AS3

I have this XML (Flash/AS3): <channel> <title>...</title> <description>...</description> <item><summary>...</summary><detail>...</detail></item> <item><summary>...</summary><detail>...</detail></item> ... </channel> I want to create a DataProvider containing the elements (for use in a datagrid). I thought this would work: va...

Flex: creating a multi column navigation bar for viewstack

I have created a Viewstack and using a Tile component and repeating LinkButtons I was able to make a multi column navigation with the viewstack as the dataprovider. My question is can this be done better? My code is below and I am wondering if I took the long way around this approach. <?xml version="1.0" encoding="utf-8"?> <s:Applicatio...

GWT 2.1 - Creation of a Progress Bar Cell & related DataProviders options

I am in the process of creating a Progress Bar Cell that will work in a GWT2.1 CellTable. So far I have the cell rendering a simple html progress bar in a manner that is consistent with other cell renders. I need to somehow update the progress bar cell value after receiving a new value. Should I be using the updateRowData method on...

Actionscript: unable to assign JSON decoded object as dataProvider

I am trying to use JSON decoded as a dataProvider, but no matter what I try I get errors such as the following: Error #1034: Type Coercion failed: cannot convert mx.collections::ArrayCollection@2a88ae01 to fl.data.DataProvider. I am only returning a simple JSON object array of 3 elements with 3 properties each. I am currently doi...

Flex4: Combo Box with CheckBox Inside.

Hi, Apologies for all the simple questions but they are born of my sudden and unplanned migration from flex 3 to flex 4. Ok I have a combo box which I would like to show a list of selectable check boxes. <s:ComboBox x="181" y="-7" width="233" id="dropISLIST" itemRenderer="IsListFilterCheckBox" dataProvider="{GetIsList.lastResult.Rep...