I'm trying to push data into an OLAPCube in flex. The data coming in is flat and nothing else is known before hand.
How do I have flex automatically create dimensions and such so that I can bind something to the cube? Using a flex chart, it's as simple as setting the data provider to an array collection and it works.
The ONLY examples I have come across show how to hard-code names of data using flex; nothing dynamic. Any help would be appreciated.
It's several months since I attempted this but I found a lot of useful links on this page:
http://flexpearls.blogspot.com/2008/04/using-flex-olapolapdatagrid-for-doing.html
The pivotComponent does a lot on the fly.
Related
Could someone please give some basic code on how to update items? I am using it an have an app that needs to add/delete values to list and map properties on table items without completely deleting the value. I also have a number property that I need to use as counter. In AWS documentation it simply states to re-save the entire object. I know it is possible to update items in this manner however I cannot seem to find any code. My app is in objective c however this seems like a problem for many people using many languages so this may be a great place to answer this for any and all languages. Thanks.
I am struggling myself thinking about which component to use in my new app.
The first screen I am using Collection View with big images. Once the user touches one cell, it goes to the second screen ... and here is the problem.
I have three columns, similar to a dictionary with first language, second and third. The user will be able to choose which column he wants to search, and according to his criteria it will show the result that matches. I am not sure how to implement this, which component gives the best experience to the user. Any idea is more than welcome. Thank you in advance. Alex
If your data is several rows each with 3 columns, I would recommend customizing a UITableView. I followed this tutorial when I was trying to set up something similar.
The Table View will also give you efficiency if you have a lot of data, and you can build the custom table cells in the interface builder so that makes life a little easier.
-Ken
I'm not sure if I'm using the correct terminology to describe my questions so I created a few mock ups to try to show what I am trying to do.
I have an existing table listing order detail information that looks something like this:
I have some additional attributes I want to add columns for, but I would like it to appear on a separate line as part of the same row sort of like this:
The reason I want to add these columns but have them appear on the second line of each row is that I want to display more data in each row but I don't want to make the row/page wider.
I did some googling for this problem, but I'm not even sure what the standard name for this type of display is so I wasn't able to come up with anything. The closest I found was [this code project link](http://www.codeproject.com/KB/webforms/MasterDetail.aspx
) which is close to, but not the same thing I am trying to do.
Not sure what to call it either (multiline gridview?) but it should be possible. I would suggest looking at making a grid with a template column and a formview inside the template. In the rowdatabound event of the grid you write code to bind your form to the row's data. I have used this technique before on nested grids, it should work with other controls as well. Might be simpler ways to do it too, not something I have had a need to work out before.
EDIT:
I just saw a similar question where someone provided a link to this article. Not quite what we were talking about here, but very similar. Thought I would include it here as well for future reference. To bad it was written 5 months after this question was asked...
Is there a way to export a flex graph to excel? Thank you in advance!
While I've never tried doing this myself, it looks like some other folks have solutions for exporting to Excel.
Check out:
http://coenraets.org/blog/2009/11/open-in-excel-another-air-2-mini-sample/
http://code.google.com/p/as3xls/
The following might help if you are using a Flex app served from a Web app with a Java backend.
Flex includes some nifty out-of-the-box functionality for capturing images. If it suits your requirements to simply take a snapshot of the graph and slap it into an Excel document, it should be possible.
Here's an example for grabbing a snapshot. The bytes could conceivably be streamed back to the Web app. Then you could reconvert the bytes into an image object and use POI to add the image to Excel.
Another option might be to take the same underlying dataset used for rendering the chart in Flex and just build the chart in Excel. That assumes that the chart does not need to have the same look and feel as the corresponding Flex version, though. I've never used it, but the jXLS tool looks like it might provide Excel chart-building capabilities.
One update:
I tried using the SummaryRow on the datagrid for its basic functionalities and it is working. Now, I need to embed the text in the summary fields. E.g. If one of my summaryfields returns me the count then it should be able to display 'TOTAL (count)'
Is it possible with the summaryrow?
Also, I need to have the data to be formatted when it is displayed. e.g. %age, like 50%, 0.1%, etc.
Is this also possible?
Hi,
One quick question. I have an AdvancedDataGrid. I need to add a summaryrow to the grid which will contain SUM/AVERAGE of the respective columns in the ADG. Can anyone point me to some tutorial or any reference where I can learn how to create a summaryrow?
Thanks!
The advancedDataGrids introduction from adobe contained a demo, but it doesn't seem to be on the web anymore. Have you tried looking at the SummaryField reference? I haven't used summary fields in a while, but it seemed pretty straightforward.
http://livedocs.adobe.com/flex/3/langref/mx/collections/SummaryField.html
This is actually a formatting example, but it contains all the code to create a summary row:
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=11472
Actually, the simplest and easiest approach I found was having another ADG placed below the existing ADG. The new ADG will act like a summary row and hence will have only one row. After initializing the content ADG, we can render the cells of the summary ADG the way we want. Moreover, we can sync the horizontal scroll of the new summary ADG with the content ADG. so, in all it will actually be seen as the ADG with the summary row
Even though its actually not a summary row and one needs a lot of customizations, it does make sense to use this. :)