dataprovider

is it possiable to use conditional operator in combo box dataprovider using flex?

In my Combo box i have to shows team names condition based . So i will try like dataProvider="{usersXML.users.user.(id=10).name}" but shows some errors . but if i tried dataProvider="{usersXML.users.user.name}" display all name . It's working . How can i condition based to display the list . In combobox . Plz refer me . is it possiab...

flex: a repeater with Dataprovider flickers a bit when there is an update

hi. i have the following code: <mx:Repeater id="user" dataProvider="{data}"> <mx:VBox styleName="repeaterVBox"> <mx:Text text="{user.currentItem.a}. {user.currentItem.b}" styleName="repeaterText"/> <mx:Text text="{user.currentItem.c}" styleName="repeaterText"/> ...

Entity Frameworks and databaes connections

I was debugging Jaroslaw Kowalski provider wrappers. While debugging it I observed that the Entity Framework closes the connection after every query. On every interaction with database, during the lifetime of application, a database connection is opened and after performing the query the connection is closed My questions are: -Whether t...

Load a Web Page in Flex component

Is there a way to display a web page in a flex component like Canvas, Hbox or TextArea? Thanks ...

Load Data by HTTPService from Url into Flex text area as a string

Hi all I want to use an HTTPService to load some data (number of columns and number of rows) which change randomly by a certain frequency I get the string like freq#ncols#nrows#value. How can i display for example: 1000#21#13#2391 that means: in 21 col, 13 row i have the value of 2391 which changes every 1 second. Thanks ...

.NET Data Providers - How do I determine what they can do?

I have code which could be executed using a Provider that doesn't support transactions, or doesn't support nested transactions. How would I programmatically determine such support? E.g. The code below throws a System.InvalidOperationException on the final commit when using the MySQL .NET Connector, but works fine for MSSQL. I'd like t...

How to get the item parent in a flex tree when using nested objects as data provider?

I have a Flex tree with an ArrayCollection as data provider. The collection holds an array of CategoryVO objects. Each object can have another array of CategoryVO objects inside it's "child" attribute. This way the tree displays the data correctly. Now I want to get the parent of a specific item, e.g. tree.selectedItem. Using XML as dat...

Flex + CheckBox + Dataprovider... quite possibly the easiest question you will answer today.

Hey All, Maybe I didn't get enough sleep last night but I am encountering a bizarre Flex 3.4 issue. Scenario: I have a class that acts a dataprovider to my entire application named "DataProvider.as": package { public class DataProvider { [Bindable] public static var email_enable:Boolean = true; } } In an mxml form, "S...

How to generate typed datasets for multiple database platforms ?

Hello, I want to generate a typed DataSet for both Oracle and DB2 databases from a single XSD file. Background: When I drag a table onto the Visual Studio Dataset Designer, it generates a XSD file (e.g. DataSet1.xsd) with all appropriate information. Then VS invokes the built-in Tool (MSDataSetGenerator) to generate the Dataset classes...

Sql Server Compact 2005 on Visual Studio 2008

I'm working on a Windows Forms application that interacts with a Sql Compact database file created by SQL Server 2005. This application was originally developed in Visual Studio 2005 but was recently converted to a Visual Studio 2008 solution. In regards to Sql Compact, we made sure the references were all still set to the assemblies t...

Flex, <mx:Combobox> & XML: get xml node to specify's dataprovider

Hi! I'm trying to set a combobox's dataprovider. I have 2 comboboxes: cb_div and cb_stores. For cb_div, I get to set the data provider correctly with an XML file. Cb_stores' dataprovider is to be set depending on the selected item of cb_div. First, here are my XML files. Data provider for cb_div: <?xml version="1.0" encoding="UTF-8"?>...

Equivalent of DataProvider(of TestNG) for CPPUnit

Is there an equivalent of TestNG's @dataprovider in CPPUnit? I would like to run a test for multiple implementations of an interface. ...

Firebird .NET provider: disable SQL output?

Hi, Firebird 2.5.2 prints every SQL command (SELECT, ...) to Visual Studio's output window. This makes it hard to find my own debug strings. Is it possible to disable Firebird's output? Thanks, Norbert ...

Horizontallist control with XML dataprovider

Hi! I'm using a HorizontalList control with an XML file as a data provider. This is how the XML looks: <data> <zone name="Europe"> . . . </zone> <zone name="Japan"> <stores> . . . </stores> <collections> <collection id="id1"> ...

Flex - Typed ArrayCollection as Horizontallist's dataprovider

Hi community! I have an ArrayCollection of objects. I'm passing this array to a horizontallist as a dataprovider and I'm using a custom itemRenderer. When executing the application, the horizontallist is displaying [object CustomClass][object CustomClass][object CustomClass][object CustomClass] I've tried casting each object in t...

Flex - Issues with linkbar dataprovider

Hello Community! I'm having some issues displaying a linkbar. The data I need to display is in a XML file. However, I couldn't get the linkbar to display a xmllist (I did indeed read that you cannot set a xmlllist as a linkbar dataprovider... ). So, I'm transforming the xmllist in a array of objects. Here is some code. XML file: <d...

Get content of a single cell from a DataGrid in Flex 3

I want to select information in a single cell from my DataGrid in Flex 3. Specifically, I'm displaying three phone numbers per line and the user needs to be able to select one of those numbers, from any row, but not the whole row. While similar to this, I am displaying the DataGrid to the user. The answer for that question was to manip...

Flex 3.5.0; Update ComboBox display list upon dataprovider change

Hello, I have two related ComboBoxes ( continents, and countries ). When the continents ComboBox changes I request a XML from a certain URL. When I receive that XML i change the DataProvider for the countries ComboBox, like this: public function displayCountryArray( items:XMLList ):void { this.resellersCountryLoader...

How can I hide a list component when it contains no items?

I have a List of items which is based on the contents of the "category" that a user selects When the user changes selection, I change the dataProvider of the list be be the contents of the current category. Sometimes the list contains items, sometimes it does not Is there a way of hiding the list when it has no items? I know that I c...

SQL 2000 Not Supported by .NET Framework Data Provider for SQL Server in VS2010's Server Explorer Data Connections

Just tried creating a data connection to a SQL 2000 database in VS2010's Server Explorer using a .NET Framework Data Provider for SQL Server (versus OLE) and found that it didn't work. VS2010 complained that I had to use SQL Server 2005 and up. This used to work in VS2008 (using .NET Framework Data Provider for SQL Server instead of th...