Creating Dynamic hierarchical  Data Columns

Hi All,
          I have to create a plan layout like figure below :
                            Oct...............Oct...............Oct...............Oct...............Nov...............Nov...............Nov...............Nov
                         Week1...........Week2..........Week3..........Week4.........Week1..........Week2...........Week3..........Week4
           P1
           P2
           P3
           P4
Here for each calmonth i am showing 4 weeks to enter data. for calmonth i am using 0CALMONTH and for week i m using my own defined object say RCALWEEK.   P1.... are my products.  How i will achieve this in BW BPS.
Regards:
Jitendra
Edited by: Jitendra Gupta on Sep 12, 2009 12:03 PM

Hi,
I'm not sure about how your end users are flexible .
Will they agree ig you craete a dynamic column on week with data displaying as week & calmonth ?
In this way it will be easy to carve out the layout design.
I mean to say .
week1 calmonth week2 calmonth week3 calmonth wseek4 calmonth
If not then did you try out  hierarchy variables in Layout ?
Thanks
Pratyush

Similar Messages

  • Creating dynamic link in column

    Hi All,
    I am using Jdev 11.1.1.2.0 . I am getting few urls that is comma seperated. I need to seperated different URL from the value and create no of link or golink equal to no of the value.Please suggest me how to do this.
    I need to create dynamically link and put diffent url value in destination property of Link
    How can i create dynamically link .

    I created a sample app for this. Please see if it is helpful.
    http://adf-use-cases.googlecode.com/files/LinkApp.rar
    I am displaying all the employees(first name) in a department as link. For now, the link is pointing to google. You can change according to your requirement.
    The code is written in DepartmentVORowImpl.java
    +public String getEmployeeName() {+
    RowSet rowSet = getEmployees();
    RowSetIterator ritr = rowSet.createRowSetIterator("new");
    StringBuilder formattedLink = new StringBuilder("");
    String requestURL = "http://www.google.com";
    String hrefPrefix = "<a href='";
    String targetProp = "' target='_blank' class='xfd' >";
    String hrefSuffix = "</a>";
    String employeeName = null;
    +while (ritr.hasNext()) {+
    Row row = ritr.next();
    formattedLink.append(hrefPrefix).append(requestURL).append(targetProp).append(row.getAttribute("FirstName")).append(hrefSuffix).append(" | ");
    ritr.next();
    +}+
    ritr.closeRowSetIterator();
    rowSet.closeRowSet();
    if (formattedLink != null && formattedLink.length() > 0)
    employeeName =
    formattedLink.substring(0, formattedLink.lastIndexOf(" | "));
    return employeeName;
    +}+

  • Creating dynamic form data with SetValue QPAC

    I'm creating form data in a workflow process, and using it to populate a dynamic XDP with a subform.  In my test form, the subform is named "Item", with a text field named "ItemData".  Initially, I can create the form field via the SetValue QPAC and using these parameters;
    location: /process_data/form/form-data/data/xdp/datasets/data/fields/Item/ItemData
    value: "first"
    However, I need to add multiple instances of the Item subform.  For example, if I fill out the test form with 3 items and export the data to XML, the data structure comes out like this:
    first
    second
    third
    So, the question is, how do I use the SetValue QPAC to create multiple instances of the items? I've tried various locations;
    /process_data/form/form-data/data/xdp/datasets/data/fields/Item.x/ItemData
    /process_data/form/form-data/data/xdp/datasets/data/fields/Item[x]/ItemData
    /process_data/form/form-data/data/xdp/datasets/data/fields/Item/ItemData.x
    but none of them seem to work.  I know I'm probably just missing something simple.  Anybody care to fill me in on the obvious?

    Hi Clifton
    Looking back on this thread, I think you're saying that the data is eventually going to come from a MySQL database.
    In that case, our SQLPlus QPAC will do the job perfectly.
    You just specify the query, specify the repeating element:
    /process_data/form/form-data/data/xdp/datasets/data/fields/Item
    and then map columns in the result set to sub-element of the Item.
    eg mycolumn -> ItemData
    The SQLPlus qpac will create all the repeating items for you.
    Does this work for you?
    If not, please specify what you'd like to see.
    A couple of options are:
    - A setValue qpac that correctly inserts for expressions like: process_data/form/form-data/data/xdp/datasets/data/fields/Item[2] (probably difficult to do)
    - An InsertSequence qpac that takes a repeating element and a count as an input, and creates that many repeating elements. You could then refer to them using the regular SetValue qpac. (Probably easier to do.)
    - Something else. Go wild :-)
    Howard

  • Creating custom hierarchical data provider

    Hi,
    I'm trying to create a custom dataprovider for a 3rd party
    chart control. As far as I can tell, it works just like any
    Flex-provided hierarchical dataprovider control. My problem doesn't
    have to do with the control directly, as I haven't yet even tried
    to interface my dataprovider with their control (that's why I'm
    posting here). I'm having a lot of troubling figuring out how to
    implement IHierarchicalData and IHierarchicalCollectionView (or
    figuring out what to extend and override to give me the
    functionality). The documentation doesn't seem to be detailed
    enough to help me .
    I can't use a normal XML dataprovider because the XML I have
    contains child elements that are data, so I can't just use the
    hierarchy of the XML itself. I need to process the XML in some way
    using code that actually understands its structure. I intend to
    process this into a class that implements IHierarchicalData. The
    documentation is really vague on what the results of a call to
    getChildren() returns (and how the calling code then breaks the
    children apart so it can call getData() on each), but I was able to
    figure that out by looking at the source for the chart control I'm
    using (it appears to expect an ArrayCollection... why isn't the
    IHierarchicalData interface typed as such?). My biggest problem is
    understanding the IHierarchicalCollectionView. It has methods to
    add and remove child nodes, but I don't see how it's possible for
    it to do that. It only has a reference to an IHierarchicalData,
    which provides no methods to perform those operations. When I wrap
    my IHierarchicalData in the default HierarchicalCollectionView
    object (which is just what the chart does, as far as I can tell)
    and use methods like addChild(), I get a null reference error, as
    mentioned in this stack trace snippet:
    Error #1009: Cannot access a property or method of a null
    object reference.
    at mx.collections::HierarchicalCollectionView/addChild()
    I believe I need the HierarchicalCollectionView (or to extend
    a class that implements the IHierarchicalCollectionView interface
    or implement it myself) because I need to use its functions to
    modify my tree structure so that when I change the data, the chart
    will update. Is this a correct assumption? If so, how do I use
    those functions on the HierarhicalCollectionView? What is it doing
    internally? I don't understand how it can be manipulating the tree
    in a type-safe manner having only an IHierarchicalData reference to
    work with, and if it's doing it in a non-typesafe manner, I need to
    know what methods it's calling on my tree or node objects, which
    don't appear to be documented in the docs for
    IHierarchicalCollectionView.
    If I'm totally off-base in the best way to accomplish my
    goal, please let me know. I'd also appreciate any information you
    could give me, such as info on the hierarchy interfaces that goes
    beyond the docs. Some source code for HierarchicalCollectionView
    would be super helpful (only for reverse engineering; it should
    really be documented somewhere), but I haven't been able to find
    any. Isn't it open source?
    Thank you very much for any help you can provide.

    SAP Note 746227 has addressed this issue. I will close this question.

  • Using XML Export to create dynamic Spry data sets

    I'm following this tutorial
    http://www.adobe.com/devnet/dreamweaver/articles/spry_xml_export_03.html
    And the final output is like this
    http://www.adobe.com/devnet/dreamweaver/articles/spry_xml_export/fig04.gif
    mine just looks like this
    http://76.163.23.86/export.php
    i.e all the data is just printed out line after line
    Any ideas?
    Thanks
    Hurst Vanrooj

    Sorry about this I've been viewing it in SAFARI but In
    Firefox it works!!!!
    Bizare!
    Hurst Vanrooj

  • What is the best way to dynamically create table partition by year and month based on a date column?

    Hi,
    I have a huge table and it will keep growing. I have a date column in this table and thought of partition the table by year and month. Can any you suggest better approach so that partition will create automatically for new data also along with the existing
    data? Nothing but automatically/dynamically partition should create along with file group and partition files.
    Thanks in advance!
    Palash 

    Also this one
    http://weblogs.sqlteam.com/dang/archive/2008/08/30/Sliding-Window-Table-Partitioning.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • AdvancedDataGrid - create Array (cfquery) with children for hierarchical data set

    I'm trying to create an AdvancedDataGrid with a hierarchical
    data set as shown below. The problem that I am having is how to
    call the data from a ColdFusion remote call and not an
    ArrayCollection inside of the Flex app (as below). I'm guessing
    that the problem is with the CFC that I've created which builds an
    array with children. I assume that the structure of the children is
    the issue. Any thoughts?
    Flex App without Remoting:
    http://livedocs.adobe.com/labs/flex3/html/help.html?content=advdatagrid_10.html
    <?xml version="1.0"?>
    <!-- dpcontrols/adg/GroupADGChartRenderer.mxml -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    private var dpHierarchy:ArrayCollection= new
    ArrayCollection([
    {name:"Barbara Jennings", region: "Arizona", total:70,
    children:[
    {detail:[{amount:5}]}]},
    {name:"Dana Binn", region: "Arizona", total:130, children:[
    {detail:[{amount:15}]}]},
    {name:"Joe Smith", region: "California", total:229,
    children:[
    {detail:[{amount:26}]}]},
    {name:"Alice Treu", region: "California", total:230,
    children:[
    {detail:[{amount:159}]}
    ]]>
    </mx:Script>
    <mx:AdvancedDataGrid id="myADG"
    width="100%" height="100%"
    variableRowHeight="true">
    <mx:dataProvider>
    <mx:HierarchicalData source="{dpHierarchy}"/>
    </mx:dataProvider>
    <mx:columns>
    <mx:AdvancedDataGridColumn dataField="name"
    headerText="Name"/>
    <mx:AdvancedDataGridColumn dataField="total"
    headerText="Total"/>
    </mx:columns>
    <mx:rendererProviders>
    <mx:AdvancedDataGridRendererProvider
    dataField="detail"
    renderer="myComponents.ChartRenderer"
    columnIndex="0"
    columnSpan="0"/>
    </mx:rendererProviders>
    </mx:AdvancedDataGrid>
    </mx:Application>
    CFC - where I am trying to create an Array to send back to
    the Flex App
    <cfset aPackages = ArrayNew(1)>
    <cfset aDetails = ArrayNew(1)>
    <cfloop query="getPackages">
    <cfset i = getPackages.CurrentRow>
    <cfset aPackages
    = StructNew()>
    <cfset aPackages['name'] = name >
    <cfset aPackages
    ['region'] = region >
    <cfset aPackages['total'] = total >
    <cfset aDetails
    = StructNew()>
    <cfset aDetails['amount'] = amount >
    <cfset aPackages
    ['children'] = aDetails >
    </cfloop>
    <cfreturn aPackages>

    I had similar problems attempting to create an Array of
    Arrays in a CFC, so I created two differents scripts - one in CF
    and one in Flex - to build Hierarchical Data from a query result.
    The script in CF builds an Hierarchical XML document which is then
    easily accepted as HIerarchical Data in Flex. The script in Flex
    loops over the query Object that is returned as an Array
    Collection. It took me so long to create the XML script, and I now
    regret it, since it is not easy to maintain and keep dynamic.
    However, it only took me a short while to build this ActionScript
    logic, which I quite like now (though it is not [
    yet ] dynamic, and currently only handles two levels of
    Hierarchy):
    (this is the main part of my WebService result handler)....
    // Create a new Array Collection to store the Hierarchical
    Data from the WebService Result
    var categories:ArrayCollection = new ArrayCollection();
    // Create an Object variable to store the parent-level
    objects
    var category:Object;
    // Create an Object variable to store the child-level
    objects
    var subCategory:Object;
    // Loop through each Object in the WebService Result
    for each (var object:Object in results)
    // Create a new Array Collection as a copy of the Array
    Collection of Hierarchical Data
    var thisCategory:ArrayCollection = new
    ArrayCollection(categories.toArray());
    // Create a new instance of the Filter Function Class
    var filterFunction:FilterFunction = new FilterFunction();
    // Create Filter on the Array Collection to return only
    those records with the specified Category Name
    thisCategory.filterFunction =
    filterFunction.NameValueFilter("NAMETXT", object["CATNAMETXT"]);
    // Refresh the Array Collection to apply the Filter
    thisCategory.refresh();
    // If the Array Collection has records, the Category Name
    exists, so use the one Object in the Collection to add Children to
    if (thisCategory.length)
    category = thisCategory.getItemAt(0);
    // If the Array Collection has no records, the Category Name
    does not exist, so create a new Object
    else
    // Create a new parent-level Object
    category = new Object();
    // Create and set the Name property of the parent-level
    Object
    category["NAMETXT"] = object["CATNAMETXT"];
    // Create a Children property as a new Array
    category["children"] = new Array();
    // Add the parent-level Object to the Array Collection
    categories.addItem(category);
    // Create a new child-level Object as a copy of the Object
    in the WebService Result
    subCategory = object;
    // Create and set the Name property of the child-level
    Object
    subCategory["NAMETXT"] = object["SUBCATNAMETXT"];
    // Add the child-level Object to the Array of Children on
    the parent-level Object
    category["children"].push(subCategory);
    // Convert the Array Collection to a Hierarchical Data
    Object and use it as the Data Provider for the Advanced Data Grid
    advancedDataGrid.dataProvider = new
    HierarchicalData(categories);

  • XML Publisher - Dynamic Data Columns Issue

    Hi,
    I am creating a amortization report where I need to show the amortization schedule for unearned revenue. Customers have signed different years of contract and I need to show the amount as per their remaining contract months. So if there are 2 month remaining in the contract then I should show the data for 2 months only and if there are 10 months then I should display 10 months. If we run the report for both customers then it should display two lines in report. For first customer the data should be only for 2 months and for second row(customer) there should be data for next 10 months. These months should be columns in the report(like excel columns, not rows). I need to display all months in columns instead of rows.
    I have acheived that using Dynamic Data Columns as mentioned in the user guide. Everything is working fine except following issues -
    1. How to create page level total?_
    I have created page total in my template using <?add-page-total:TOTUREV;'UREV'?> and displaying using <?show-page-total:TOTUREV?> but when I run the report in excel format these page total do not display. These columns are static columns not dynamic.
    If I run the report in pdf format then the static column total is displayed correctly.
    2. When I run the report in excel format then report run fine and it shows all the columns properly but if I run the report in pdf format then the dynamic column are not displayed in their own columns, all the columns are overwriting each other in a single columns itself, its not expanding.
    3. How do I get the total for the dynamic columns?_
    I need to display the page level total for the dynamic columns also, how do I do that?
    4. When I run the report in excel format the 2 decimal places of the numbers are gone(it works fine in pdf output), like 12.50 becomes 12.5 and 14.00 becomes 14. I need to maintain those 2 decimal places. I have tried using <fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?format-number:CVALUE;'999999D99'?></fo:bidi-override> but this does not solve my problem completely. It shows the values correctly in excel but then I am not able to do any calculation on those columns, looks like it converts them to text values.
    Any help is really appreicated. Please let me know if you need the xml template and data file.
    Regards
    Hitesh

    Hi Hitesh,
    Can you please upload your RTF and XML template file? I will try to spend sometime on this issue.
    Cheers
    Sachin

  • How to create Dynamic internal table with columns also created dynamically.

    Hi All,
    Any info on how to create a dynamic internal table along with columns(fields) also to be created dynamically.
    My requirement is ..On the selection screen I enter the number of fields to be in the internal table which gets created dynamically.
    I had gone thru some posts on dynamic table creation,but could'nt find any on the dynamic field creation.
    Any suggestions pls?
    Thanks
    Nara

    I don't understand ...
    something like that ?
    *   Form P_MODIFY_HEADER.                                              *
    form p_modify_header.
      data : is_fieldcatalog type lvc_s_fcat ,
             v_count(2)      type n ,
             v_date          type d ,
             v_buff(30).
    * Update the fieldcatalog.
      loop at it_fieldcatalog into is_fieldcatalog.
        check is_fieldcatalog-fieldname+0(3) eq 'ABS' or
              is_fieldcatalog-fieldname+0(3) eq 'VAL' .
        move : is_fieldcatalog-fieldname+3(2) to v_count ,
               p_perb2+5(2)                   to v_date+4(2) ,
               p_perb2+0(4)                   to v_date+0(4) ,
               '01'                           to v_date+6(2) .
        v_count = v_count - 1.
        call function 'RE_ADD_MONTH_TO_DATE'
            exporting
              months        = v_count
              olddate       = v_date
            importing
              newdate       = v_date.
        if is_fieldcatalog-fieldname+0(3) eq 'ABS'.
          concatenate 'Quantité 0'
                      v_date+4(2)
                      v_date+0(4)
                      into v_buff.
        else.
          concatenate 'Montant 0'
                      v_date+4(2)
                      v_date+0(4)
                      into v_buff.
        endif.
        move : v_buff to is_fieldcatalog-scrtext_s ,
               v_buff to is_fieldcatalog-scrtext_m ,
               v_buff to is_fieldcatalog-scrtext_l ,
               v_buff to is_fieldcatalog-reptext .
        modify it_fieldcatalog from is_fieldcatalog.
      endloop.
    * Modify the fieldcatalog.
      call method obj_grid->set_frontend_fieldcatalog
           exporting it_fieldcatalog = it_fieldcatalog.
    * Refresh the display of the grid.
      call method obj_grid->refresh_table_display.
    endform.                     " P_MODIFY_HEADER

  • SUB Totals within a Dynamic Data Column

    Has anyone ever calculated SUB Totals in a Layout with a Dynamic Data Column?
        The TOTAL for all data is expressed on the Data Column tab of the Layout as C(1):C(1) - 0FISCPER / Posting Period is the Dynamic Characteristic.  When the system actually displays the 12 columns of data for the Year, the formula for TOTAL is also adjusted - no problem here.  But the user also wants SUB Totals, by Quarter, within the Year.
        Any insight or suggections are appreciated !
    Thanks,
    Lyle

    Hello,
    use variables Q1, ..., Q4 for the quarters and create
    data colums as follows
    1 Q1 dynamic = X
    2 Total C(1)
    3 Q2 dynamic = X
    4 Total C(3)
    5 Q3 dynamic = X
    6 Total C(5)
    7 Q4 dynamic = X
    8 Total C(7)
    9 Year Total C(2)C(4)C(6)+C(8)
    Regards,
    Gregor

  • Grouping of chracateristics by using dynamic data columns

    Hi all,
    I want to create a BPS Layout (BW3.5) with the material in the lead column and a KeyFigures, the year and the salesgroup in the data column. The salesgroup is the dynamic characteristic.
    Example:
    I want to have:
    SG1 2007/   SG1 2008/   SG2 2007/   SG2 2008...
    What the system is doing is:
    SG1 2007/   SG2 2007/   SG1 2008/   SG2 2008
    My question is: how can I change the grouping of the columns from year to salesorg?
    Can anybody help me?
    Best regards,
    Rainer

    Hi Rainer,
    Thanks for your appreciation.
    I thought there is not material in your lead column, okay if your case like that i suggest you like this.
    I suggest to .
    To choose Layout Category:
    1. Key Figures in Data Column
    Define data column dynamically for : Sales Group
    And make the fiscal year, and material as lead column.
    In the data column tab, define the key-figures there and mark Dynamic checkbox.
    Or if you want to group based on the fiscal year, you can make the fiscal year as you dynamic data column.
    Hopefully it can help you a lot.
    Best regards,
    Niel.
    thanks for the points you choose to assign.

  • Create dynamic table using pojo data control

    What are the options we can in order to create dynamic table columns based on pojo data control?
    We have a class A and there are some attributes say A.x, A.y, A.z
    Within class A, we have a collection of class B and has attribute say B.k
    Within class A, we have a collection of class C and has attribute say C.j
    Every instance of class A has same number of instances of class B
    Every instance of class A has same number of instances of class C
    We would like to display a table like this
    A.x, A.y, A.z, [B.k, B.k, ...], [C.j, C.j, ...]
    How should we do that?
    Thanks

    What are the options we can in order to create dynamic table columns based on pojo data control?
    We have a class A and there are some attributes say A.x, A.y, A.z
    Within class A, we have a collection of class B and has attribute say B.k
    Within class A, we have a collection of class C and has attribute say C.j
    Every instance of class A has same number of instances of class B
    Every instance of class A has same number of instances of class C
    We would like to display a table like this
    A.x, A.y, A.z, [B.k, B.k, ...], [C.j, C.j, ...]
    How should we do that?
    Thanks

  • Dynamic Number Of Data Columns

    Greetings - I'm attempting to create a report that has a dynamic number of columns.  The type of data in the columns varies (number, string), and I need the details to display, not a summary.
    If I knew the max number of columns I'm sure I could figure out some logic to make it work, but that is not the case.
    Data example:
    Row 1: Name Timestamp Country Height ...
    Row 2: Name Timestamp Country Weight ....
    Desired report:
    Hdr1-Hdr2Hdr 3-Height---Weight
    Name Timestamp Country Height   <blank>
    Name Timestamp Country <blank>  Weight
    There may be a solution in a cross-tab but I will need the Name, Timestamp, Country in separate columns as this may be output as CSV.
    Any assistance will be appreciated.

    Generally, when you don't know the number of columns, a cross-tab is the way to go.
    You can get the first three column that you stated by putting all three fields in the Rows section of the Crosstab Expert. 
    As for the data returned from the database, you'll want the three row fields, a "value name" field (containing value such as "Weight" and "Height"), and then a Value column with the value of the "value name" field.
    HTH,
    Carl

  • Dynamic data column; pdf vs excel output

    I have created a amortization report using BIP dynamic data columns. When I run the report in excel format then report run fine and it shows all the columns properly but if I run the report in pdf format then the dynamic columns are not displayed in their own columns, all the columns are overwriting each other in a single columns itself, its not expanding.
    Any idea what could be wrong here. Why does it work fine in excel and not in pdf output.
    Please let me know if you would like to see the rtf template and xml data file.
    Regards
    Hitesh

    Can you send me the sample xml and RTF ?

  • How to create dynamic data tables with ADF 10g

    Hi,
    Can anyone provide sample code for creating dynamic data table in adf where column & row will be added dynamically according to the data coming from the Array List of data.
    I appreciate your help here.

    I think you've posted to the wrong forum. This one is for WebLogic Portal questions.
    Try the ADF/DVT forum:
    http://myforums.oracle.com/jive3/forum.jspa?forumID=1565

Maybe you are looking for