Flex :: Nested Objects For A Data Provider In Grid Not Displaying It

May 19, 2011

I have a datagrid and the dataprovider for this grid is the result of a RPC call. The result set has the following structure[code]...

View 2 Replies


Similar Posts:


Flex :: Get The Item Parent In A Tree When Using Nested Objects As Data Provider?

Jan 11, 2010

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 data provider the item parent is avaiable thorugh the parent() method. But I can't convert my data to XML. How can I get an item's parent? Perphaps using the tree's dataDescriptor?

View 2 Replies

ActionScript 3.0 :: Flex Data Grid - Update Column With Variable (not From Data Provider)?

Jul 27, 2009

I have a data grid who's data provider is set to an XML object.

Code:
<mx:DataGrid id="streamMonitorGrid" dataProvider="{_data.stream}" height="100%" width="100%">

[code].....

View 5 Replies

Flex :: Update Hierarchical Data Provider In Advanced Data Grid During Drag And Drop?

Nov 11, 2010

I am trying to drag and drop hierarchical data in the same advanced data grid, and I would like the data provider to updated when the ADG is updated. (I want to be able to save and load this tree, so it is important that drags and drops are saved.)

[URL]

The sample app has an ADG showing hierarchical data as well as flat data. The first column of each datagrid shows the rowindex of the underlying data.

If you rearrange the items on the left ADG, the row indexes become unordered. If you click traceTree you see that the data provider is not in order.

On the other hand if you do the same on the right, the row numbers stay ordered even when the objects move around and if you click traceFlat, the data provider is in the order shown on ADG

My goal is to have the data provider order match the ADG order for the left grid which is displaying hierarchical data.

View 1 Replies

Flex :: Data Grid Crashes With Data Provider Change?

Oct 5, 2010

I have a radio button group within a data grid, whenever I attempt to change the selected radio button the web page crashes. Below is how I put together the radio button in the data grid.

MXML

<mx:Accordion>
<fx:Declarations>
<s:RadioButtonGroup id="cover"/>

[Code]....

View 2 Replies

Flex :: Same Data Provider For Chart And Data Grid?

Aug 18, 2011

I want to display the same data in a chart and a data grid. I want to use the same data provider for both of them to reduce the amount of SQL queries.How do I transform the database structure into the chart structure and into the table structure using ActionScript?*

Database structure in JSON format:

[
{key:, year:, value:},
{key:, year:, value:}
]


Data provider structure required by a chart:

[
{series1:, series2:, year:},
{series1:, series2:, year:}
]

Data provider structure required by data grid:

[
{key:, year2000:, year2001:, ...},
{key:, year2000:, year2001:, ...}
]

View 1 Replies

Flex :: DataGridColumn With Array Of Objects As Data Provider

Mar 12, 2010

I have a datagrid that uses an array of objects as the data provider. The objects are essentially key/value pairs:

{ foo:"something"}
{ bar:"hello"}
{ caca:"lorem"}

The datagrid has 2 columns. The first column is the key and the second column is the value. Right now my grid looks like:

My dataFormatter function makes sure that depending on the column (i.e. the dataField value) the correct key or value gets printed out. This works fine for displaying. However, as soon as I try and edit the value field it essentially adds a new value into the object with a key of '1'. For example, if I edit the {caca:"lorem"} object it will then contain the value {caca:"lorem",1:"new value"}.

Is there any possible way I can set the DataGridColumn so that when I edit a value it will update the value associated with the key rather than inserting a new value? I've tried using a custom item editor but it still does the insert. It seems like I need to be able to update the 'dataField' with the actual key value but I'm not sure how to do that.

View 1 Replies

Flex :: Data Grid Not Displaying Data In Array Collection?

Oct 7, 2010

My data grid is displaying stale data, rather than the real time data available in it's data provider (array collection). I've tried refeshing the data in the collection, but that has no effect. Below is my code, does anyone see what could be the problem?

<mx:Accordion/>
<fx:Script>
<![CDATA[[code].....

View 4 Replies

Flex :: Order Of Events When There Are Nested Items In Data Grid

Jun 7, 2011

I have a data grid and there's a method attached to clicking on any item in a row of the grid.Now, some of the items in the table row are also buttons. Each of these are associated with a different action.We only want one of these actions to be performed.[code]we have currently a member variable to track which selection was made and to ignore the the contents of the other method (the else portion of the method resets this value).Now, if the methods just happen to execute in a different order (or at the same time), the behavior will be unpredictable.Is the member variable flag the way to do this (it smells so bad)?

View 1 Replies

Flex :: Data - Displaying Properties From Two Objects In A Datagrid

Dec 11, 2009

Previously I post a discussion on this matter on Flex Adobe forum and still don't understand what needs to be done. So, I'll try my luck again on stackoverflow. I'm using drag and drop data binding functionality in flash builder 4 on a data-grid. However, the data I need to show need to be query from another object.

[Code]....

View 1 Replies

Flex :: Filter The Data Provider For A Tree?

Mar 23, 2012

I have a requirement to filter the tree similar to that of flex builder-->preferences wizard tree.

My tree dataprovider is arraycollection of industries. Each industry has a list of sub industries and further, say upto depth 5.

So when we type in a string to filter, only the node having this string along with their parent hierarchy should be returned.

How can we implement this using flex?

View 1 Replies

Flex :: Set HTML List As Mx:DataGrid Data Provider?

Mar 19, 2010

So I have Html like this [URL] (I want to create some Flash Track reader which will be opensource)

I need to list in my DataGrid Index of all viki pages in form like

+-----------+--------+
|page name |page url|
+-----------+--------+
| name | url |
+-----------+--------+

View 1 Replies

ActionScript 2.0 :: Displaying XML Data In Nested Movie Clips?

Sep 18, 2009

I'm attempting to create a movie where 100 different facts are faded in and out sequentially. The text will need to be updated monthly so I figured I'd use the dynamic text feature along with an XML file to streamline the updating process. I've worked through Kirupa's Displaying XML Data in Flash tutorial (which was very well presented) and was able to get it to work while understanding the theory of how it worked. However I can't seem to get it to function when applied to my particular application.

After 4 hours of troubleshooting, I think I've isolated the problem to the actionscript component: I think (and I could be wrong) that something needs to reference the nested movieClip that contains the dynamic text layer. It works fine if everything happens on the first frame of the _root timeline. But any elements that I try to bury within a movie clip fail to display. I'm using the code from the tutorial as follows:

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("content.xml");

[code]....

View 2 Replies

Flash :: Flex Data Grid: Check Whether Item Renderer Displays Last Row In Grid

Feb 3, 2012

I'm currently working with the OLAPDataGrid component and got stuck at a relatively simple task: I want to style the last row of the grid differently from the rest, so my cell item renderer needs to know whether he's rendering the last row with content in the overall grid, including those rows currently not rendered because they are outside the visible grid space. AdvancedGridListData's rowIndex property only gets me the row index of the renderer relative to the range of visible grid rows, i.e. when I scroll down the grid, a data item with an index greater than 0 gets the rpw index = 0.

View 2 Replies

Flex :: Hide The Last Children Of An XML Data Provider (not To Be Displayed In Mx:Tree)?

Apr 6, 2010

I have an hierachical XML data, and I want to display it as a tree. The XML data is something like this:

<services>
<service name="TestService" endpoint="">
<method name="sayHi">

[code].....

View 1 Replies

Flash - Check To See If An Item Already Exists In Data Provider In Flex 4?

Mar 9, 2011

I have a dataProvider and there is an object in the dataProvider. I want to know if there is a way to see if you can check to see if part of the object exists. So lets say I have an object with usernames and passwords and I want to add a username to that dataProvider

View 1 Replies

Flex :: Flash Builder - Data Provider Not Working If XML Has Single Node Value Or Less

May 20, 2010

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.collections.ArrayCollection.

this error occurs as the line of code:

myList= e.result.list.name;

Why can't ArrayCollection work with a single node? I'm using this ArrayCollection as a dataprovider for a Component -is there an alternative I can use that will take BOTH single and repeating nodes as well as work as a dataprovider?

code:

[Bindable]
private var myList:ArrayCollection= new ArrayCollection();
private function getList(e:Event):void{
var getStudyLoungesService:HTTPService = new HTTPService();

[Code]....

View 3 Replies

Flex :: Conditional Data Provider To Tree On The Basis Of List Selection?

Aug 1, 2011

This is my XML data in a file named nodesAndStuff.xml.

<?xml version="1.0" encoding="utf-8"?>
<root>
<node label="One" />[code].........

Now I have added my tree just below the list and I have saved counting from 10 to 19 in one.xml, 20 to 29 in two.xml and so on in different XML file. I have no clue how to connect the XML containing counting from 10 to 19 as the single node in tree at the selection of label one in list

View 1 Replies

ActionScript 3.0 :: Flex Delete A Tree Node Having A ArrayCollection As Data Provider

May 20, 2010

I have a Flex tree with an ArrayCollection as data provider. The ArrayCollection is composed by objects linked eachother by the "children" field (that is an Array containing other children objects)

[Code]...

View 1 Replies

Flex :: Spark List : Show Subset Of Data Provider Based On Parameter

Aug 1, 2011

I have a situation where I have a List showing a queue of Upload Objects:

[Code]...

I would like to create three different views of the List: One showing All uploads in the queue Another showing only the Upload items with Upload.type == "Update" and another showing only the items with Upload.type == "Create". Another example of this would be on an email inbox, where we could filter "All, unread, or read". I realise I could just create three different lists, one for each view of the list (maybe I'm just being picky) but I was wondering: Is there is any easy way to conditionally select the items to display from a DataProvider based on a parameter (for example type =="Upload") so I don't have to juggle three separate ArrayCollections about?

View 2 Replies

Flex :: Differentiate Between A Data Provider Update And A Itemrender Being Recycled When Using A Custom Itemrenderer In A DataGroup?

Oct 18, 2010

How do I differentiate between a data provider update and a itemrender being recycled when using a custom itemrenderer in a DataGroup?I have overridden the set data function of the custom item renderer, but I have found that on making a change to the ArrayCollection used as the DataProvider some of the item renderers are not assigned the same object they had before the update. This has made it almost impossible for me to distinguish between a data update and an itemrender being recycled. Also, the data never seems to get set to a value = null, so that seems to be out as well.

View 2 Replies

Flex :: Get Data From Dynamic HTTPService Asynchronous To Populate An Advanced Data Grid

Dec 28, 2009

I have to populate an Advanced Data Grid which have the following fields: Continent->State->Society-->Actual Value-->Estimate Value I want to simulate a financial market so i have to change some of the values by asynchronous request from an HTTPService; If necessary i'll post the .as file, but it is generated automatically by Flex Builder.

Here's the code of the client side Flex/Air application:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"

[Code].....

View 2 Replies

Flex :: Load Data In Advanced Data Grid On Scroll?

Jan 7, 2010

need to load 10 records from database in advanced data grid. After i scroll the advanced data grid. it has to load 11 to 20 records etc.

View 1 Replies

Flex :: Graph Data Provider Has Values But Graph Is Not Plotting

Aug 22, 2011

In the below code the traced values are correct its there in the chart data provder but the

input graph is not plotting.there is no error in this code.Can anyone solve it?

function fnctn(evt:Event)
{
var tp:int = bulb1 + bulb2 + bulb3 + bulb4;

[Code].....

View 1 Replies

Flex :: To Sort All Data In A Paginated Data Grid?

Jun 24, 2010

I have paginated data grid having more than 5 pages (100 records/page) now i want to sort them all on just clicking on fields header

View 1 Replies

IDE :: Search List Or Data Provider?

Feb 12, 2009

I am having trouble searching through a list component and/or dataprovider to see if an item already exists. Basically i am adding items to the list when a item is dragged on to the list. But i want to check to see if an item is already added so not to duplicate items. any ideas would be great.

View 1 Replies

ActionScript 3.0 :: Update Data Provider?

Nov 26, 2011

As i understand datagrid only is used as a form to present the loaded data in.So when we add new row to component or try to modify the value in cell and save it (xml file), we won't see those changes in saved file. So can some one explain to me or direct me to tutorial on how to update data in dataprovider, and how to save it to xml file.

View 2 Replies

Flex :: Show Data At Group Level In Flex Advanced Grid?

Aug 6, 2009

I am working on a grid example in flex using advanced grid control. I know we can easily group data by specifying the field name. At the group node level, other than the gorup name I want to be able to show data in the rest of the cells ( calculated data ) and I am looking for some dataRowBound event or similar to be able to hook some data in it.

Example: Grid displaying list of towns grouped by state. At the group level ( for each state) I want to show the total number of towns in each state. Here how can i show the total number in the town column.

View 1 Replies

ActionScript 3.0 :: ArrayCollection As Tree Data Provider

Mar 11, 2009

I have been trying to populate a tree control via an httpservice that uses php to talk to a database. The queries work fine and the data comes back in the following format from php:
echo "<root>";
echo "<topic>";
echo "<sectioncode>$sectioncode</sectioncode>";
echo "<children>";
echo "<labtitle>$title</labtitle>";
echo "</children>";
echo "</lab>";
echo "</root>";

Flex can see this and interprets the heirarchy fine unless i try to format the resultformat in the httpservce (if i do that it goes a little nuts). The results from the php query to the db come back as an ArrayCollection with each containing a "root->topic->sectioncode->title" type of structure (which is what I want). When I go and try to use this Arraycollection as a dataprovider for a tree control, it doesn't work at all. When I use the arraycollection as the dataprovider I get [object,object] for every row in the tree and there is no parent/child structure.

Ideally I would like the title to be a child of the numbercode, but when i try and format the return from xml like that the number becomes and object without a value and the title becomes a child. I have a feeling that I am missing something in the php return to show the structure to flex more clearly and also something in the tree to implement it as the data provider better. Here is the code that I am using in the tree:
<mx:Tree x="25" y="48" height="451" id="ilabtree" dataProvider="{labarray}" labelField="@title" width="152" textAlign="center"></mx:Tree>

View 1 Replies

Flex :: Datagrid - Display A Multi-line Column Header Using The Flex Spark Data Grid?

Apr 13, 2011

How can you display a multi-line column header using the Flex Spark Data Grid for Flex 4.5?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved