Advanced datagrid with grouped columns and grouped rows

hello every body, plz need your experience help. 'cause Im so new using FLEX
I have an XML (like an XML data type) something like this
<Table>
  <Rows>
    <cAgencia>F0002</cAgencia>
    <cAgNombre>SanBorja</cAgNombre>
    <cTVentanilla>V0002</cTVentanilla>
    <dTVNombre>Plataforma</dTVNombre>
    <TcksEnEspera>20</TcksEnEspera>
    <VentsEnAtencion>50</VentsEnAtencion>
  </Rows>
  <Rows>
     <cAgencia>F0003</cAgencia>
     <cAgNombre>Miraflores</cAgNombre>
     <cTVentanilla>V0002</cTVentanilla>
     <dTVNombre>Plataforma</dTVNombre>
     <TcksEnEspera>30</TcksEnEspera>
     <VentsEnAtencion>40</VentsEnAtencion>
   </Rows>
  <Rows>
     <cAgencia>F0002</cAgencia>
     <cAgNombre>SanBorja</cAgNombre>
     <cTVentanilla>V0003</cTVentanilla>
     <dTVNombre>Caja</dTVNombre>
     <TcksEnEspera>55</TcksEnEspera>
     <VentsEnAtencion>25</VentsEnAtencion>
   </Rows>
   ...... (continue)
</Table>
so, I need to make a table (I guess with advancedDataGrid) something like this
as you can see,   I have to group them by columns and Rows.  I have found a "mx:groupedColumns" that maybe could help me , but I couldn't find something like "mx:groupedRows".
The grid may be dynamic,   for example if I have another XML node like:
  <Rows>
     <cAgencia>F0004</cAgencia>
     <cAgNombre>SanMiguel</cAgNombre>
     <cTVentanilla>V0002</cTVentanilla>
     <dTVNombre>Plataforma</dTVNombre>
     <TcksEnEspera>15</TcksEnEspera>
     <VentsEnAtencion>52</VentsEnAtencion>
   </Rows>
the grid may add a ROW and in the column of plataforma add the data: 15 and 52, so the grid may be something like this:
as you can see, the grid may add rows and columns in depends of the count of XML data.
plz help.
thanks, regards  from Lima, Peru.
JS

any help ????????? I found OLAPDataGrid .....   I was thinking to send all the data into a bidimensional Array , then pass the data of my bidimensionalArray to  OLAPDataGrid ...  but I'n not sure if Flex is able to do it  .... 
the really serious problem is the special ROW I must use ...
regards
JS

Similar Messages

  • Dynamic gallery with 3 columns and 5 rows with paging

    guyz, i am new to spry and i need your help. i want to create
    a dynamic gallery with data source as xml. i want to create a
    gallery with 3 columns and 5 rows.Basically a wallpaper page where
    there would be 15 wallpapers in a page with a link of downloading
    wallpapers with resolution 800x600,1024x768 and 1280x1024.
    for example if there are 63 wallpapers for a section , then
    there would be 5 pages with 5th page having only 3 wallpapers.
    everytime a wallpaper is added to xml, it automatically adds
    it up in html...
    plz help....i really want to create this asap and i cant find
    any help...

    thanks a ton for your response.... Meanwhile i figured out
    the solution myself using photogallery tutorial where div fixes the
    width and the next repeated element get shifted to another
    line.....
    now i am struck with another problem.
    i need to give substring to a particular data on xml.
    for example i have the following xml
    <movies>
    <data>
    Important Note: These online forums are for user-to-user
    discussions of Adobe products, and are not an official customer
    support channel for Adobe. If you require direct assistance, or
    prefer to contact Adobe support staff directly, please contact
    Adobe support.
    </data>
    </movies>
    i want to display only first 50 characters of data tag.....
    whats the code/syntax to do so.....

  • (Advanced)DataGrid with selectable columns

    Hello -
    I'm trying to make a Flex (Advanced)DataGrid component with some mechanism where the user can toggle the visibility of the columns.  I've crudely implemented this by reading in the columns into the right-click menu, and when a column name is selected here, the visibility is toggled.  It works, but it's not the most elegant solution.
    Specifically, I'm trying to emulate the "datagrid" that Mozilla Thunderbird uses to display emails.  Here is an image:
    In the upper right, there is an icon over the scroll bar.  If there is no scrollbar, the icon remains in the same place.  When clicking the icon, it opens up a menu that shows all the possible columns, with the visible ones having a check mark next to them, like this:
    Also, the scroll bar always appears under this button, never "pushing" it over into it's own column.
    I'd like to re-create this in Flex.  I believe the menu part and creating a column with a button headerRendered is easy enough.  But I can't figure out how (if at all possible) to do this with the scrollbar, because the scrollbar always seems to be "its own column".  Any ideas or help would be appreciated.  Thank you.
      - Ian

    This blog post seems to answer your question:
    http://blog.flexgeek.in/2007/06/tips-tricks-adding-a-combobox-to-a-datagrid-header-as-head errenderer/
    http://omalraj.com/2009/06/flex-datagrid-header-with-a-combobox-filter/
    http://franto.com/custom-header-in-datagrid-part-2/
    http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • How can I create 25 charts on a page, each chart 2 columns and 10 rows

    I need to create a chart that has 25 tables. 5 tables in 5 columns. Each table has 2 columns and 10 rows. I know it can fit all on 1 page as I have seen it done but I can not figure out how

    I had some initial difficulty understanding your question. In Numbers, a "chart" is a graph.
    You want to create a 5 x 5 array of tables, each with two columns and 10 rows, placed on a single page.
    At the default size, each cell on a new Table is 1 inch wide and 0.2 inches high. So without displaying a title, each of your 25 charts would occupy a two inch square space.
    Butted closely together, that's a space that is 10 inches wide by 10 inches high.
    On a machine set to US localization,the default page size is US Letter, placed in Landscape orientation. Left, right and top margins are set to 0.75", bottom margin is 0.5", and there is a 0.25" height reserved for page header and page footer.
    That leaves a working space that's 9.5" wide and 6.75" high.
    Obviously, some adjustments will be needed.
    0.2" is pretty much the minimum for row height. You can go smaller by typing in a smaller height in the Table Inspector, but even with 9 point type, you begin to lose the descenders on ps and qs. Go with 0.2, then use the slider in Print view to further shrink the content.
    If you can narrow the columns significantly (to 0.75" or less), then go to Page setup and change to Portrait orientation.
    In the Sheet Inspector, decrease all margins to 0.5", and the header and footer spaces to 0. Set page orientation to Portrait.
    Now consider the Table(s). If you've opened a new, blank document, you'll have a multi column, multi row table with one header row and one header column. If you don't need the header row and header column, delete them (column A, Row 1) right away.
    Reduce the number of rows to 10 and the number of columns to 2. Select the whole table and, in the Table inspector, set the row height to 0.16" and the row width to 0.73".
    With the table still selected. press command-D four times to create four duplicate tables.
    Go View > Show Rulers, then View > Show Print View. go back to the Table Inspector and use the slider to set Content Scale to about 94%.
    Drag the still selected Table to the right margin of the page. Press command-A to Select All.
    Go Arrange > Align > Top
    Go Arrange > Distribute Space > Horizontal.
    With all five tables still selected, press command-D to duplicate the set.
    Hold down the Shift key and press the left arrow once, then the down arrow 14 times. This should bring the new row of tables into line with the previous ones, and move them down the page to just below the first row of tables. If fine adjustment is needed, use the arrow keys with the shift key released.
    Repeat three more times to add another three rows of tables.
    Adjust the spacing between tables as necessary.
    Regards,
    Barry

  • I use "element 12" and want  like in the old PS version due Automating and Contact  II upload multiple filesand print them with any columns and rows on the same page . How does it work?

    I use "element 12" and want  like in the old PS version due Automating and Contact  II upload multiple filesand print them with any columns and rows on the same page . How does it work?

    Can you supply a link?

  • How can i delete contacts completely so that they don´t mix up with new addresses and groups?

    how can i delete contacts completely so that they don´t mix up with new addresses and groups?
    Alle geänderten Adressen oder Gruppen erscheinen immer wieder bei der Adresseingabe von mails.
    Chaos!

  • Problem in creating group above AND group left in one report!

    Hi all,
    I need a report that is a combination of group above and group
    left.
    Suppose I have 3 table (Emp, Sales, Product):
    Emp Table has 2 column
    - Emp_PK
    - Emp_Name
    Sales Table has 4 column
    -Sales_PK
    -Sales_Date
    -Emp_FK
    -Produck_FK
    -Quantity
    Product Table has 3 column
    -Product_PK
    -Product_Name
    -Product_Price
    I want to make Employee Sales Report For The Month that will
    look like this:
    Emp Number___: Emp_PK
    Emp Name_____: Emp_Name
    Sales Date______Product_Name____Quantity \(2 sales
    ________________Product_Name____Quantity /the date)
    Sales_Date______Product_Name____Quantity
    As you can see this consist of group above (The Employee) and
    group left (The Sales and Product).
    I create this by using 2 queries and link them (the Emp_PK from
    1st query and Emp_FK from 2nd query) on the report builder using
    data link.
    The first query is:
    Select Emp_PK, Emp_Name from Emp
    The second query is
    Select Emp_FK, Sales_Date, Product_Name, Quantity
    From Sales, Product
    Where Product_PK=PRODUCT_FK
    I then create the layout for second query and choose group left
    for Sales_Date using wizard and I create additional layout to
    for the employee.
    The problem is that when I run this report, it will print ALL
    the employee record first (including employee who has NOT sale
    anything) and then on the last page it will print the record of
    Last employee on the Emp table and ALL sales record (including
    those that is done by other employee).
    This report will run correctly if I choose an exact employee
    (For example by adding Where Emp_PK=1111 in the first query) to
    report all of the sales done by this person (employee with emp
    number of 1111). However I need the report to run and print
    ONLY those employee who has Sales Records!
    I thought that by linking the 2 queries in Data Model, it will
    have the same effect as linking using the WHERE clause in query.
    If suppose I create a query like this:
    SELECT Emp_PK, Emp_Name, Sales_Date, Product_Name, Quantity
    FROM Emp, Sales, Product
    WHERE Emp_PK=Emp_FK AND Product_PK=Product_FK
    The report will run OK but I can only choose EITHER group above
    or group left for this ONE query methods in report Wizard.
    Sorry if it is a long question but I hope you can see what I am
    trying to do.
    Thanks in advance for any tip.

    hello,
    of course you can create group left and group above blocks in a
    single report.
    you might want to use the INSERT REPORT BLOCK instead of the
    report wizard, as the report wizard only allows you to use one
    report layout per report, where the report block wizard (invoked
    by INSERT REPORT BLOCK) allows you to choose on a per-block
    basis.
    of course you can create the blocks completely from scarth by
    hand, if you want to.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Suggestions for JSF table with sortale columns and Pagination

    Hi,
    My JSF application needs a table with sortable columns and also pagination.
    Thank you.

    Just add a bunch of commandlinks and/or commandbuttons at the right locations and invoke the appropriate logic in the backing bean.
    You can find some useful insights in this article: [http://balusc.blogspot.com/2006/06/using-datatables.html].

  • Flex Advanced DataGrid with dynamic grouping

    Can we implement something similiar as in below link, using flex 3.
    http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/grouploadmodeclient/defaultcs.a spx
    I am not sure if flex 3 allows grouping of columns based on drag - drop component. Plus how to show the pictorial view of grouped columns, same as in the above example.
    Any help greatly appreciated.

    This blog post seems to answer your question:
    http://blog.flexgeek.in/2007/06/tips-tricks-adding-a-combobox-to-a-datagrid-header-as-head errenderer/
    http://omalraj.com/2009/06/flex-datagrid-header-with-a-combobox-filter/
    http://franto.com/custom-header-in-datagrid-part-2/
    http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • Strange thing noticed with a view and group by

    Hi all, Could anybody please tell me what could be the problem if you have come across it ever.
    I am using a view which is fetching 4 million rows from another db thru a dblink. In the view query this data is joined with two other small temporary tables and the output is taken out.
    The whole process is like this...
    1.Create the two temporary tables..
    2. Alter the view to compile;( as these temporary tables are dropped after the whole process)
    3. insert into the target table using another query by taking the data from the VIEW
    4. drop the temporary tables.
    All these are in a single script.
    In the insert statement I use a group by in the select statement to produce sum of three columns.
    the ideal output is as giiven below:
    total rows= 4.7 million.
    after the group by i should get 293,356 rows( i tested it after taking all the rows from the view into my db and did a group by on it with the required columns)
    Now the group by is done directly by taking the data from the view and inserting into the final table.
    When i ran the script for the first time I got this 293,356 rows... The second time I ran it gave me only 73090 rows. But the sum total of those 3 columns are exctly same as that of 293,356 rows. I donot change the number of columns in group by or anything like that... what i am doing is just running it again....
    Can anybody tell me why it gives different number of rows at different times when the same script is run without any changes...( There is no difference in the original number of rows too..)
    Thanks
    Edited by: user626688 on Oct 17, 2008 12:26 PM

    Way not enough information.
    Assume you have Oracle to Oracle connection here (with your DB link). What version are BOTH databases on. No idea what the view looks like, or how you use it, or what these 'temporary tables' you create on the fly do.
    Can you put together a small example of this which recreates your problem? We don't have your tables, your script, your ability to run queries and check things, so there's really not much anyone can do to help you with this.
    The simplest explanation is usually the correct one, so although it's possible you've hit an internal Oracle bug, i'd put my money in there being a flaw in your processing, it's where the safe money is. Though there could be a bug with view merging, or the DB link, or .....

  • How to select records based on Max/Min on different columns and group by

    I have a table with 5 columns(a,b,c,d,e), i need to select records based on MAX(c),Max(D) and Min(e) group by a,b. i am trying using : select max(c),max(d),min(e) from table group by a,b. this is not working. its giving me 1 6 1
    a b c d e
    1 1 1 2 1
    1 1 1 6 4
    1 1 1 6 3
    when i group by a,b i am expecting the record 1 6 3
    Please help me with this.. Thanks in advance....

    Hi,
    Welcome to the forum!
    962163 wrote:
    I have a table with 5 columns(a,b,c,d,e), i need to select records based on MAX(c),Max(D) and Min(e) group by a,b. i am trying using : select max(c),max(d),min(e) from table group by a,b. this is not working. its giving me 1 6 1
    a b c d e
    1 1 1 2 1
    1 1 1 6 4
    1 1 1 6 3
    when i group by a,b i am expecting the record 1 6 3It looks to me like "1 6 1" is the correct answer. You're asking for the lowest value of e, and 1 is lower than 3.
    Maybe you don't want MIN (e). Explain why you want 3 (that is, how you decided that 3 is the correct value for the last column) and someone will help you code it.
    Edited by: Frank Kulash on Sep 28, 2012 6:17 PM
    Whenever you have a problem, you should psot CREATE TABLE and INSERT statements for your sample data. That way, the people who want to help you can re-create the problem and test their ideas. It often helps to clarify the problem, too. since this is your first message, I'll do it for you:
    CREATE TABLE     table_x
    (       a     NUMBER
    ,     b     NUMBER
    ,     c     NUMBER
    ,     d     NUMBER
    ,     e     NUMBER
    INSERT INTO table_x (a, b, c, d, e) VALUES (1, 1, 1, 2, 1);
    INSERT INTO table_x (a, b, c, d, e) VALUES (1, 1, 1, 6, 4);
    INSERT INTO table_x (a, b, c, d, e) VALUES (1, 1, 1, 6, 3);
    COMMIT;

  • Problem in taking the average of a column and grouping by date

    Hi all,
    I created a logical column using a formula in "Administration". The formula is like;
    Duration%=(Duration*100)/(X-Y).
    Then, in "answers", I created a report using Duration% column and another column which is its average. I want to see the average of Duration% values grouped by date.
    The numbers in the report are incorrect. What can be the reason for this? Does using logical column which is derived with a formula cause a problem when we take its average?
    Thanks in advance for your help..

    use avg(Duration% by <"Date Table"."Date Level"> in the answers column.
    substitute "Date Table" with your actual time dimension table name, and "Date Level" with your actual date column that you want to group by.

  • Need for a Datagrid with variableRowHeight="true" and custom Item Renderer to display exact rows

    Hi again, developers:
    I'm in a search of a datagrid  with certain characteristics:
         - variableRowHeight = "true"
         - only one column
         - each row must have a custom item renderer with possibly different heights, and a fixed width
         - the datagrid must show always every item in the data provider with no vertical scroll bars, what means that the datagrid height must have always the exact height sum of all the item renderers it is displaying.
         - and no extra empty rows must appear in the last positions of the datagrid
    The last two requirements are something difficult to achieve... for some reason, empty rows appear at the last positions of the datagrid. I post what i've managed to get:
    <mx:Script>
         <![CDATA[
         private function resize():void
                    if (dg.dataProvider)
                        var h:Number = dg.measureHeightOfItems( -1, dg.dataProvider.length);
                        dg.height = h;
         ]]>
    </mx:Script>
    <mx:DataGrid id="dg" width="530" horizontalCenter="0" verticalScrollPolicy="off"
            dataProvider="{dp}"
            wordWrap="true" variableRowHeight="true" showHeaders="false" dataChange="resize()" height="{dg.measureHeightOfItems(-1,dg.dataProvider.length)}" click="Alert.show(dg.rowCount.toString());">
            <mx:columns>
                <mx:DataGridColumn headerText="ID" width="50">
                    <mx:itemRenderer>
                        <mx:Component>
                            <mx:TextArea height="{Math.random()*100}" wordWrap="true" backgroundColor="{Math.random() * 16777216}" paddingTop="0" paddingBottom="0"/>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>
            </mx:columns>
        </mx:DataGrid>

    Thanks Harui, but it doesn't help. If the border is set it will help, but the very big problem is the empty rows that appear at the end of the datagrid... I can't find a way of measuring correctly the height of the itemRenderers!
    I'll update this thread if I manage to do it.

  • Webdynpro IWDTable - Item table , grouped column and Column difference?

    I had added Column to Table in webdynpro java UI
    but , when I am getting the values for the same from BAPI was displayed but , when I am saving , it is not saving
    Is there any difference between GroupedColumn and Column?
    The other columns which were there in the table are all Grouped Column for the ItemTable.
    Also, when I deployed the code in the j2ee server, when I open my UWL , the columns are displayed in the bottom .. whether it is coming because I have not groupedcolumn?
    Thanks in advance...
    Kiran

    I had added Column to Table in webdynpro java UI
    but , when I am getting the values for the same from BAPI was displayed but , when I am saving , it is not saving
    Is there any difference between GroupedColumn and Column?
    The other columns which were there in the table are all Grouped Column for the ItemTable.
    Also, when I deployed the code in the j2ee server, when I open my UWL , the columns are displayed in the bottom .. whether it is coming because I have not groupedcolumn?
    Thanks in advance...
    Kiran

  • Web Service to Query with 21 Columns and up to 1000 Rows

    Hi Experts,
    I have a web service to a query that returns a table of 21 Columns and up to 1000 Rows.
    I would like to display this data in an UI element such List view / Spreadsheet table.
    When I am doing so, I have the following issues:
    1. With the Spreadsheet table I can't set the header of the columns to the name of the column in the query.
    2. with both elements I would like to have a paging capability which I am not sure if is even possible.
    3. With both elements I am not able to set the width of each column as I need, and also not able to define the correct formating (date / string....)
    Is it possible to have what I am looking for with these elements? Or there are other UI elements for it?
    Thanks in advanced,
    DoronS

    Hi Charles,
    Actually, I am using Xcelsius as you said, and wanted to use it also as I mentioned since in the Web Intelligence I could not find the way to have a good filtering mechanism.
    Meaning, there is an option to add filters based on the fields that are in the query. But you can only choose one value per filter filed. If I want filter the data with more than one value it is impossible. Furthermore, there is no way to use free text filtering.
    Do you know in what BO Tool I will be able to provide such filtering capabilities?
    DoronS

Maybe you are looking for

  • Getting "An error in the system has occurred" using Safari on Apple site

    When using Safari 3.1 on the Apple site to view the discussion forums I get the message: "An error in the system has occurred. Please contact the system administrator if the problem persists." I'm able to use the forums using FireFox. No one else see

  • Where do the installer files go???

    I have a laptop and a Mac Pro. The laptop travels to the office and other locations where I have great internet access. Downloading and updating my CC apps on the laptop is not a problem. The MacPro lives at home where, for the most part, we have dow

  • Advantages of java over c++

    Hello to all. Can you please point me out some advantages on using java instead of C++? For example having the garbage collector (java) instead of cancelling by hand the objects created (c++) slows down a little the execution of the program but preve

  • Flash Installer doesn't display anything and has to have task manager used to close it.

    For a few months now I have been trying to update Flash Player, whenever I tried I would get to the installer coming up and it displaying the black background it has but no download bar or any text. I was thinking the problem may have had something t

  • Crystal 10 -- ''Failed to open document. Read past end TSLV record.''

    I create new report using Wizard, Add Command (Oracle query). I see table in my report, I can run ... Then I save my report and close it. But when I try to open again -- I can't open again and I see error:  "Failed to open document. Read past end TSL