dataprovider

How to send value through URL in FLEX

Hi, I want to send current date with URL in flex from client side and want to get it on the server. I am using MXML and ActonScript. Please help me. ...

Accessing a dataProvider with indexOf

I have a list object and I'm adding items to it with addItem through the dataProvider. Before adding an item to the list I want to make sure it's not a duplicate. I've tried using indexOf on the dataProvider and it returns null. I've tried casting it to an array and it works, but always returns -1 even if the element exists in the dataP...

Providing values to components in a dataGrid

I have the follwoing. : mx:DataGridColumn width="125" headerText="Time" editable="false" mx:itemRenderer mx:Component mx:HBox mx:NumericStepper id ="TimeHour" stepSize="1" minimum="0" value="0" maximum="23"/ mx:NumericStepper id ="TimeMinute" stepSize="5" minimum="0" value="0" max...

Running multiple test data on same set of test cases.

Hello, I am new to eclipse. I am using JUnit 4. and i have written a set up method in my class which extends Testcase where some initialization happens. I have some set of testcases in the same class. I have test data in zipped form and attached to work space. Currently i am able to run all test cases for a single test data. Somehow i w...

How do I get a Flex AdvancedDatagrid to display just one row?

I have an AdvancedDatagrid, whose dataProvider is an ArrayCollection that contains 1 row of displayable stuff. Flex continues to display about 6 rows, the top one filled, the rest blank. I've set the rowCount="1", with no luck. ...

How do I ensure a Flex dataProvider processes the data synchronously?

I am using an component, and currently have a dataProvider working that is an ArrayCollection (have a separate question about how to make this an XML file... but I digress). Variable declaration looks like this: [Bindable] private var _dpImageList : ArrayCollection = new ArrayCollection([ {"location" : "path/to/image1.jpg"}, {...

CBO.FillCollection throwing "No parameterless constructor defined for this object." error...

I'm trying to fill a collection from an IDataReader that was returned by another method... for some reason it keeps throwing a "No parameterless constructor defined for this object." error for this line: List<string> names = CBO.FillCollection<string>(DataProvider.Instance().ExecuteReader("getNames", new SqlParameter("UserId", 1))); I...

How do I tell a DataProvider to update?

I'm using an array to populate a DataProvider, which I'm using to populate a list component. Like this: var myDataProvider = new DataProvider(this.myArray); this['list'].dataProvider = myDataProvider; When changes are made to the array, I want to tell the DataProvider to update so that those changes will be reflected in the list compo...

How to change TestNG dataProvider order

Hi, I am running hundreds of tests against a large publishing system and would like to paralellize the tests using TestNG. However, I cannot find any easy way of doing this. Each test case instanciates an instance of this publisher, send some messages, wait for those messages to be published, then dump out the contents of the publish qu...

Flex datagrid sorting not preserved across dataprovider changes.

I have a flex datagrid. it is bound to an array collection. if the user sorts on column X it works fine. then, if the user causes the array collection to change, the datagrid forgets that it was sorted on column X. what do I need to do to preserve this sort preference so that the new array data will appear sorted by column X? ...

DataGridColumn with ItemRenderer, how to set dataProvider properly?

I'm building a DataGrid to display data similar to the following XML: <foo> <entities> <entity> <name>Jim</name> <trend> <quantity>10</quantity> <quantity>20</quantity> <quantity>30</quantity> </trend> </entity> ... </entiti...

How do you use ADO.NET to create a data source rather then read and manipulate one

I'm writing a plug-in for another program that generates a fairly complex tree structure of objects. The users will need to export this data from the plug-in for analysis and reporting. I definitely want them to be able to export to an MS Access database as it would be the most accessible for them to create quick and clean reports. But I...

Combobox Dataprovider - Only gets labelField from XML not the associated ID.

Hello guys. Back again this time working with data providers. Well i been doing a bit of training with Flex, and I've searched, and i managed to get a ComboBox being populated through XML data. Its works pretty well, he gets the LabelField for each item from XML, but the ID associated to each item he doesn't get then from the XML. Cod...

combobox dataprovider

I have the following: <mx:RemoteObject id="myCFC" destination="ColdFusion" source="components.myCFC" showBusyCursor="true"> <mx:method name="getStuff" result="UserHandler(event);"/> </mx:RemoteObject> ... <mx:ComboBox id="propertyCode" dataProvider="{qry_stuff}" labelField="name" /> Index.as has: [Bindable] public var qry_...

PostgreSql + C#:Design Time Support in VS2008

I've installed Npgsql Data Provider for .net and I've executed gacutil -i Npgsql.dll as the user manual said, but I can't use the Dataset designer. When I add a TableAdapter to the designer, It ask me for a new connection, but the options are Access, MS Sql, or SQLite (other dataProviders that already i have installed). There's no op...

How does the Entity Framework and the LINQExtender project differ?

I have used LINQ-to-SQL in WPF and ASP.NET MVC projects in the following way: create database drag tables into the designer use generated classes with LINQ Now I have a project where the data sources are a mix of web services, a database, and XML files. From what I understand of Entity Framework, I can create similar classes as I can...

Sharepoint Designer add new Data Provider

In Sharepoint Designer 2007 is it possible to add a new Data Source Provider? I have a DB2 database I need to access from SharePoint and I have the DB2 Data Provider installed on the system, but Sharepoint Designer does not recognize it. ...

Problem with setting the xml dataprovider for combo box

I am trying to get the drop down list of combobox by using a php file. That php file returns an xml string which has been used as data provider for combobox. I followed this thread too but in vain. Details I have set the creationComplete attribute of mx:Application to init(). In the init() function i have sent the following HTTPService...

Swapping ASP.NET DataProvider from RDBMS to WCF

I have a client that is pushing for all data access to go over SOAP web services. No, I don't know why; I guess they like to keep their processors warm with all the XML building and parsing. Anyway... I have to move an existing web app programmed using a DataProvider on Oracle to WCF. I haven't written the web service yet. Are their any ...

How to wrap .Net data provider for entity framework

I will try to explain the question again: I wanted to introduce logging in Entity Framework in such way that the query and its result along with the time the query took to execute can be logged. Jaroslaw Kowalski has wrapped the provider to intercept communication between Entity Framework and the original provider. It also provides trac...