Grouping Data on DVT Component

Dear All,
I have been thinking about this for sometime..
The DVT Area graph is excellent component that displays spikes of
data.
<dvt:areaGraph id="areaGraph1" subType="AREA_VERT_ABS" tabularData="#{myBean.tableData}">
     <dvt:background>
       <dvt:specialEffects/>
     </dvt:background>
     <dvt:graphPlotArea/>
     <dvt:seriesSet>
       <dvt:series/>
     </dvt:seriesSet>
     <dvt:o1Axis/>
     <dvt:y1Axis/>
     <dvt:legendArea automaticPlacement="AP_NEVER"/>
</dvt:areaGraph>However I have a requirement to group the data based on day.
When I have a sample date data like below, all of these are displayed on the x-axis.
My web service returns data on a 6hour period per day
2011-01-01 00:00    *(Note: 12AM)*
2011-01-01 06:00     *(Note: 6AM)*
2011-01-01 12:00     *(Note: 12PM)*
2011-01-01 18:00     *(Note: 6PM)*
2011-01-02 00:00
2011-01-02 06:00
2011-01-02 12:00
2011-01-02 18:00
2011-01-05 00:00
2011-01-05 06:00
2011-01-05 12:00
2011-01-05 18:00But my requirement is, can I optionally group the data so that it will only display
the date on the x-axis but still maintains the variation on the time.
Say, the x-axis of the graph would only display the day variations
2011-01-01 00:00
2011-01-02 00:00
2011-01-03 00:00
2011-01-04 00:00
2011-01-05 00:00I tried my best to explain it in detail but I would be more than willing to supply more information.
Thanks.

Can you provide a screenshot of the results that you're seeing?
My guess here is that your data isn't triggering the built in time axis behavior. When java.util.Date objects as passed to the graph, it should automatically convert to a time axis that is able to optimize the label behavior (providing label display at optimized intervals). The screenshot will help confirm and we can figure out the solution from there.

Similar Messages

  • How to obtain the row data in the component datatable?

    if I want to edit a row data, and then know which row is edited in the component datatable, and how to do?
    How to obtain the row data in the component datatable, and update it to database, not simplely edit a simple table
    Any ideas? Thanks

    Thank you very much for your help Alexander !
    It's quite confusing when you leave Struts and try to adapt your projects for JSF for the first time...
    I wanted to click on a row with a "onMouseClick" on the TR tag like I used to do in Struts/JSTL. But it seems to be impossible in a dataTable.
    Ok then. I've added a column at the end of the row with an icon.
    But eventually I didn't need to declare link parameters.
    In my BackingBean I did like this :
    public String selectEventForUpdate() throws IllegalAccessException, InvocationTargetException {
            PortletAgenda event = (PortletAgenda) JSFUtils.getInRequestMap("event");
            BeanUtils.copyProperties(this, event);
            return null;
       }JSFUtils.getInRequestMap(...) is a method I wrote in a util object :
    public static Object getInRequestMap(String name) {
            Object res = null;
            Map requestMap=FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
            if (requestMap!=null) {
                res=requestMap.get(name);
            return res;
    }  " event " is the name of the item in my dataTable list.
    My backingBean has the same attributes as "event".
    So when the page is reloaded I have a backingBean full with the selected properties to edit/update.
    Thanks to your reply I realized that putting this form in the middle of the dataTable seems to be impossible.
    So I put this form in a floating DIV in front of the table with a shadow.
    It works :o) !
    But I'm a little bit disapointed to be honest...
    I used to build my web applications with Struts and JSTL and doing this kind of interface was really easy.
    I've decided 3 days ago to convert into JSF because the "GUI Layer" seemed to be improved.
    But now I realize that I cannot put a onMouseOver and onMouseClick on a row and I cannot display a different row in the middle of a table....
    I think it's a shame because there is a facet for header and footer.
    And it would be great if we could create our own personal facet that appears only if a condition is true.
    For exemple " if the current item id is the same as the request parameter id then display the following facet content ....... (with a panel group and a form inside to update the row) "
    It's easy to do that with JSTL thanks to c:forEach and c:if but it seems to be impossible to use JSTL tags like this during the dataTable iteration.
    And JSF tags seems to have no logical tags like " if " or loops that can be nested in dataTable.
    I really need to realize this interface (you click on a row then an edit form appears where you clicked).
    Do I have to write a component myself that extends dataTable?
    Do you know if writing such a component is hard to do for a beginner like me?
    (I've juste discovered JSF 3 days ago and I've used Struts/JSTL for 2 years til now)
    I'd be glad to have much advices from you about that.
    Regards

  • How to change series/groups of a DVT graph at runtime?

    With my scenario, I would like to bind a graph with a dynamic query. "Dynamic" means the query constructed at runtime. So I want to detrmine the series and groups of a DVT graph at runtime. I.e., I want to do this with Java programatically.
    I read some articles and tutorials but have not found a topic on this. I think this should be a common requirement. Anyone can tell me how to do this? Thanks.

    Are you using ADF BC and data binding or regular JSF binding?
    For the first one you can try and create a VO with columns a,b and then at runtime change the VO definition similar to how it is done here:
    http://blogs.oracle.com/shay/2010/10/adf_faces_dynamic_tags_-fora.html
    (but keeping the synonyms for the columns constant).
    For case B - you just need to change the collection data that you pass to the graph.

  • How to get webui search result only a group data?

    Dear Friends,
    In BP_HEAD we have enhanced with custom logic. we are registering group of customers under field bu_group in but000. component BP_HEAD_SEARCH we are getting all the data in BUT000. how to show only group data under field bu_group in search result.
    Thanks & Regards
    Deva

    Hello Thomas,
    I need to make data searched only created by the user. how to make BUT000-CRUSER default in background in Search.
    I have used the below  insert, but the search options are been effected which are in display,
    CALL METHOD Lv_QS->INSERT_SELECTION_PARAM
        EXPORTING
          IV_INDEX     = '1'
          IV_ATTR_NAME = 'CREATION_USER'
          IV_SIGN      = 'I'
          IV_OPTION    = 'EQ'
          IV_LOW       = sy-uname
    Thank and  Regards
    Deva

  • How can we acess the data of one component into othr component in webdynpo?

    How can we acess the data of one component into other component in webdynpro....
    I need an Field input from one webdynpro component(comp1)  which is away from the line of process to the other component(comp2) we need that data........I mean i need the field info of comp1 where we doesn't navigate through the Comp1 in the portal & directly access the  component comp2.........kindly share your ideas.....and possible ways .........
    any doughts do post.....
    thanks in advance!

    Hi,
    Please post your query in forum Web Dynpro ABAP Forum, under Application server.
    You have to define the source component as in the used component in the target one to do that.
    after that you will be able to get data from that component.
    Regards,
    Vaibhav

  • How can we acess the data of one component into othr compnent in webdynpro?

    How can we acess the data of one component into other component in webdynpro....
    I need an Field input from one webdynpro component(comp1) which is away from the line of process to the other component(comp2) we need that data........I mean i need the field info of comp1 where we doesn't navigate through the Comp1 in the portal & directly access the component comp2.........kindly share your ideas.....and possible ways .........
    any doughts do post.....
    thanks in advance!

    Hi Reddy,
    You can do it in multiple ways. One way would be to try transfer the parameters through URL & the other would be to work with the concept of interface nodes. Please try go through these 2 threads ( [Thread 1|Call view of another WDA Component and pass the value to it; & [Thread 2|navigation from one program to another; )where I have explained about working with Interface node in detail. You can refer to this [thread |receving parameters between two standard webdynpro applications;to see as to how you can do the same via parameters in URL.  Hope it would help resolve your problem.
    Regards,
    Uday

  • Reading the data from one component view into another component view

    Hi All,
    I have requirement to read the data from one component into another component while creating the service order. Here are the details.
    Main View for Service order: BT116H_SRVO in that we have two assignment blocks like Organizational data(BTORGSET) and amount allocation(BTAMNTALL).This two blocks are two different component which are associated with main component(BT116H_SRVO).
    I need to read the sales org data from component/View(BTORGSET/Orgsetdata) into Component/View(BTAMNTALL(HdrBillPlanDet) method DO_VALIDATE_INPUT.
    I searched in SDN but all the posts are related to the data exchange between two views in same component. But My scenario is different as explained above.
    Refer the attachments for the component link..
    Please let me know how we can achieve this one..
    Thanks,
    Sapsar.

    Finally I was able to fix my code...My Mistakes were need to read the parent node above three levels and need to use the relation entity name while reading the data..
    Below is the correction code
    IF iv_index IS NOT INITIAL.
         lr_iterator ?= collection_wrapper->get_iterator( ).
         lr_current ?= lr_iterator->get_by_index( iv_index ).
         lr_entity ?= lr_iterator->get_by_index( iv_index ).
       ELSE.
         lr_current = collection_wrapper->get_current( ).
       ENDIF.
    *loop back to root entity
             WHILE lr_entity->get_name( ) NE 'BTAdminH'.
               lr_entity = lr_entity->get_parent( ).
             ENDWHILE.
    *Get the related entity
             IF lr_entity IS BOUND.
               lr_collection ?= lr_entity->get_related_entities( iv_relation_name = 'BTHeaderOrgmanSet' ) .
               IF lr_collection IS BOUND.
                 lr_orgset_m = lr_collection->get_current( ).
    *            lr_orgset = lr_orgset_m->get_related_entity( iv_relation_name = 'BTOrgSet' ).
                 lr_orgset = lr_orgset_m->get_property_as_string( 'SALES_ORG' ).
               ENDIF.
             ENDIF.
    Thanks,
    Sapsar.

  • [Forum FAQ] How do I export each group data to separated Excel files in Reporting Services?

    Introduction
    There is a scenario that a report grouped by one field for some reasons, then the users want to export each group data to separated Excel files. By default, we can directly export only one file at a time on report server. Is there a way that we can split
    the report based on the group, then export each report to Excel file?
    Solution
    To achieve this requirement, we can add a parameter with the group values to filter the report based on the group, then create a data-driven subscription for the report which get File name and parameter from the group values.
    In the report, create a parameter named Name which use the Name field as Available Values (supposing the group grouped on Name field).
    Add a filter as below in the corresponding tablix:
    Expression: [Name]
    Operator: =
    Value: [@Name]
    Deploy the report. Then create a data-driven subscription with Windows File Share delivery extension for the report in Report Manager.
    During the data-driven subscription, in the step 3, specify a query that returns the Name field with the values as the group in the report.
    In the step 4 (Specify delivery extension settings for Report Server FileShare), below “File name”option, select “Get the value from the database”, then select Name field.
    Below ‘Render Format’ option, select Excel as the static value.
    In the step 5, we can configure parameter Name “Get the value from the database”, then select Name field. 
    Then specify the subscription execute only one time.
    References:
    Create a Data-Driven Subscription
    Windows File Share Delivery in Reporting Services
    Applies to
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • Start to finish, grouped data to xmlp

    Can anyone outline for me the best process by which I would query multi-level grouped data, generating subtotals in the database, and then pass that data to the XML publisher report, with the notion of grouping and subtotals communicated to the report? I don't want to perform the grouping in the report, as it involves large numbers of records. I can find in various places how to generate XML from the database using SQLX, but I don't understand how to get that XML to be used in a report as a datasource. I can paste it in as a query in the MS Word Template builder, but don't know how to get it into the XMLP Enterprise side of things.
    So, given this example query, could someone tell me how to get the data and the meaning of the data into XMLP?
    select emp.deptno,emp.mgr,emp.empno, sum(emp.sal)
    from emp inner join dept
    on (emp.deptno=dept.deptno)
    group by
    rollup(emp.deptno,emp.mgr,emp.empno)

    Oh, yes, I've tried...but I'm at a loss as to how to put the various pieces of XML Publisher together with a data template in the mix. Can anyone give an example of how one would actually go from my example query through data template and .rtf template to final report in XML Publisher Enterprise?

  • How to group data from two tables ?

    Hello,
    I have two tables and i want to group data from them but two table not linked.
    Table TEXT_IN : ID_IN (primary_key), DATE_IN
    Table TEXT_OUT : ID_OUT(primary_key),DATE_OUT
    Example :
    Result :Group Date and Order by IN,OUT
    And It seems a bit
    confusing because we do not link
    .You can give me solutions.
    Thank you.

    SELECT MAX(CASE WHEN Rn = 1 THEN [IN] END) AS [IN1],
    MAX(CASE WHEN Rn = 1 THEN [OUT] END) AS [OUT1],
    MAX(CASE WHEN Rn = 2 THEN [IN] END) AS [IN2],
    MAX(CASE WHEN Rn = 2 THEN [OUT] END) AS [OUT2],
    MAX(CASE WHEN Rn = 3 THEN [IN] END) AS [IN3],
    MAX(CASE WHEN Rn = 3 THEN [OUT] END) AS [OUT3],
    MAX(CASE WHEN Rn = 4 THEN [IN] END) AS [IN4],
    MAX(CASE WHEN Rn = 4 THEN [OUT] END) AS [OUT4],
    MAX(CASE WHEN Rn = 5 THEN [IN] END) AS [IN5],
    MAX(CASE WHEN Rn = 5 THEN [OUT] END) AS [OUT5],
    FROM
    SELECT COALESCE(m.DATE_IN,n.DATE_IN) AS DATE_IN,
    COALESCE(m.Seq,n.Seq) AS Seq,
    ID_IN AS [IN],
    ID_OUT AS [OUT],
    ROW_NUMBER() OVER (PARTITION BY Seq ORDER BY COALESCE(m.DATE_IN,n.DATE_IN)) AS Rn
    FROM
    SELECT ROW_NUMBER() OVER (PARTITION BY DATE_IN ORDER BY DATE_IN) AS Seq,*
    FROM TEXT_IN
    )m
    FULL OUTER JOIN
    SELECT ROW_NUMBER() OVER (PARTITION BY DATE_IN ORDER BY DATE_IN) AS Seq,*
    FROM TEXT_OUT
    )n
    ON n.Seq = m.Seq
    AND n.DATE_IN = m.DATE_IN
    )t
    GROUP BY Seq
    to make it dynamic see
    http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/dynamic-crosstab-with-multiple-pivot-columns.aspx
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to add a button to the grouped data in an AdvancedDataGrid?

    Hi,
    Can anyone please suggest how to add a button to the grouped data in the AdvancedDataGrid?
    I have tried extending the AdvancedDataGridGroupItemRenderer and using it as the groupItemRenderer but its not reflecting.
    For the leaf node the itemRenderer property works just fine.
    Please help!

    HI ,
    I want to add a push button on the ALV list out put which is comming as a pop up and I want this using classes and methods.
    I have got a method IF_SREL_BROWSER_COMMANDS~ADD_BUTTONS from class cl_gos_attachment_list  but still I am unable to get any additional button on the output ALV popup.
    Please help.
    Regards,
    Kavya.

  • Grouping data sent to servlet

    I have an applet servlet pair and I'm having trouble grouping the data coming in from various clients. Let's say there are five clients connected to the servlet on individual threads. The data from clients A, B, and C need to be grouped together, while the data from clients D and E are grouped together. In reality the exact groupings are determined at runtime by the users, but for out example let's say this is how it has worked out. My idea was to create for each group an instance of some class, let's call it simply "clientGroup" on the server that holds and processes the data for each client group. So data coming in from clients A, B or C would be placed into clientGroup1, while any data that came in from D and E would be placed in clientGroup2. To do this it seems that I need to send some sort of metadata with the actual data I'm sending from the applet to the servlet that instructs the servlet "put this data into clientGroup1" or whichever. Reflexivity seems only to be able to create new objects of class clientGroup, not reference and edit existing instances like clientGroup1 or clientGroup2. So what can I pass along with my data to instruct the servlet in which class instance to put the incoming data?

    At least you should be able to identify clients to check to which group they belong. The client should for example be logged in and its group ID should already be known at the server side. Or let the client pass a specific parameter indicating the group ID. If you can do that, then it is just easy. Declare an applicationwide Map somewhere where you use the group ID as key and the group data as value.

  • How to bind Dimension data to SDK Component

    Hi Guys,
    I am trying to create a Cascading box component with the help of SDK development using eclipse.
    I don't know how can I get the dimension data to my component.
    when I am using data binding property type as "resultCellList" then I am able to bind the Measures' data to the component.
    Can anybody suggest me how to bind dimension data to my SDK component?

    In the menu under Help Contents, there is an SDK section with examples that spell this out for you.
    There is also an easier to read and print PDF on the SAP Help site here:
    http://help.sap.com/businessobject/product_guides/AAD14/en/ds14SP02_dev_guide_en.pdf
    Also premade samples here:
    http://help.sap.com/businessobject/product_guides/AAD14/en/DS_14SP02_SDK_SAMPLES.zip
    Main DS Help Site:
    SAP BusinessObjects Design Studio 1.4 SP02 – SAP Help Portal Page
    SDK Community Site with other examples and Open Source links:
    SCN Design Studio SDK Development Community

  • Grouping Data Weekly

    Hi,
    I have a query in sql
    Table employees
    columns : empid,hiredate,job_id,salary
    I want to count(empid) and group data weekly with job_id , order by month.
    Sample of Data like :
    mon week job_id count(empid)
    jan week1 sa_rep 15
    jan week2 sa_rep 20
    jan week3 sa_rep 35
    jan week4 sa_rep 40
    feb week1 sa_rep 10
    feb week2 sa_rep 05
    feb week3 sa_rep 12
    feb week4 sa_rep 15
    Help please
    Thanks and Regards,
    Ramesh J C

    you can
    group by to_char(hiredate, 'IW'),  --week of year
                  to_char(hiredate, 'Month')and
    order by to_char(hiredate, 'Month')

  • Grouping Data with JSP or JSTL

    Hi All,
    I would like to ask a question about how I can group data in JSP. Essentially, I have a DataBean (extends ArrayList) that is being returned to my JSP. The ArrayList contains HashTables. Please note that the JSP assumes the data is returned in sorted order. This JSP is not responsible for sorting the data itself.
    [UPDATED EXAMPLE]
    For example, here is what the data might look like:
    Column A Column B Column C
    1 2 3
    1 15 20
    4 5 6
    4 99 66
    7 8 9
    10 11 12
    Here is how I would use my DataBean:
    String column1Name =bundle.getString(�columnA.title�);
    String column2Name =bundle.getString("columnB.title");
    String column3Name =bundle.getString("columnC.title");
    /* Loop through the bean. */
    for (int i=1;i<myDataBean.size();i++) {
    Hashtable reportRow=myDataBean.get(i);
    String column1Value=reportRow.get(Constants.COLUMNA);
    String column2Value=reportRow.get(Constants.COLUMNB);
    String column3Value=reportRow.get(Constants.COLUMNC);
    }Question
    If I want to change my layout/display to group by a particular column. How would I do that without changing the data structure that is running my current DataBean? Below is an example of grouping by the values in ColumnA.
    ColumnA: 1
    ColumnB ColumnC
    2 3
    15 20
    ColumnA: 4
    ColumnB ColumnC
    5 6
    99 66
    ColumnA: 7
    ColumnB ColumnC
    8 9
    ColumnA: 10
    ColumnB ColumnC
    11 12
    Your help is very much appreciated.
    Thanks!

    Just curious, do people find my question unclear? Can I help clarify any points?

Maybe you are looking for

  • I am going to buy an ipad wifi   3g in Malaysia, will it work in the uk?

    I am in Kuala Lumpur and am wanting to buy a 64gb I pad with wifi and 3g. Will this work in the uk?

  • Why can't I get albums to work for me?

    I'm struggling with creating a new site for my business that uses albums to display my portfolio images. I have everything working like it should inside iWeb, but when I publish to a folder or upload it to a website, the albums just work as images an

  • Itunes not working..please help!

    when i try to open itunes i get a message saying "the itunes library.itl is locked, on a locked disk, or you do not have write permission for this file". what do i do??

  • Address book on MacPro doesn't sync with iCloud

    I have put contacts in my address book and it's not being sync to my other devices or the iCloud. I tried to uncheck the addressbook in icould on my mac and then rebooted and checked it again. Still won't sync.

  • OS 9 & OS X Classic

    I'm currently running OS 10.4.8 and tried to install a children's game that says we have to use OSX Classic Mode. I don't have OS 9 installed. -What does that mean? -Can I open it in OS X? If so, how? -If I need OS 9 to run it, does it come on the 10