Dynamic row/column VS. Variable.

Hi Gurus,
Here's the scenario. In the Data column of the layout, I want to have the following:
1) Row #1 : Variable for Fiscal year/period - 001/2006 to 012/2006. ie. 'VAR0001'
2) Row #2 :Total FY 2006.
3) Row #3 : Variable for Fiscal year/period - 001/2007 to 012/2007. ie. 'VAR0002'
4) Row #4 : Total FY 2007.
Bare in mind that in my level, I have the variable for Fiscal year/period, for 001/2006 to 012/2007.ie. 'VAR0003'.
I also have both key figure and Fiscal year/period in my Data column.
Now the issue is, it seems like in the Data column TAB of the layout, you can't flag the dynamic column feature and enter the variables (VAR0001, and VAR0002)in the same row, at the same time. The system overwrites them with 0FISCPER. Then it reads the 'VAR0003'in my level, and displays 001/2006 to 012/2007 automatically in the layout. Problem is, it doesn't allow me to insert those totals rows at the end of each fiscal year (rows # 2, # 4).
Seems like the only way I can have these totals rows, is if I manually enter each fiscal year/period, therefore not able to use the Dynamic column feature.
Any suggestions, or ideas ..?  Much appreciated

Hi Anurag,
Thanks for your response.
The way you laid out the solution is one I have tried already. The 'BIG' issue here based on that solution is for row 1) the system does NOT let you both, flag the 'Dynamic' button, as well as entering the variable 'VAR0001' in the Data column TAB. It only lets you do one or the other.
If you choose to Flag the 'Dynamic' button, then it dynamically lays out the Fiscal year/Period ranges that was defined in your planning level.
The same issue goes for row 3), you get a display again of the same Fiscal year/Periods that were defined in the planning level.
What I'm trying to achieve is have it do both (Flag Dynamic, and enter variable), as far as laying out dynamically the Fiscal year/period based on what's in my variables, not what's in my Planning level.
Problem is, it wont let you do that, because it doesn't allow you to enter both the variables, as well as flagging the 'Dynamic' button. Only one or the other.
Hope this makes it clearer.
Thx

Similar Messages

  • Select members from Row/ column context using variables.

    Does EPMA Calculation Manager provide the facility of using any kind of variable which will enable to select members dynamically from row/ column in a Planning webform as we use member variable to select members from Page/ POV?
    Please suggest. Thanks in advance

    Hi,
    Check out Environment/Replacement Variables in Calc Manager, where replacement variable can be used as RTP.
    Cheers...!!

  • Variables in Rows/Columns in the BEX BI7.0

    Hi Experts,
    In BI 7.0, two tabs are there to drag and drop infoobjects/Key figures into them: One is "FILTER" and other is "Rows/Columns".
    We can see the created variables can be dregged and dropped into both pan (FILTER and Rows/Columns). What is the diff when Variables dragged into FILTER and Row/Columns.
    Where is the correct way to use created variables either in the tab "FILTER" or "Rows/Columns" or both??
    <removed by moderator>
    Thanks!
    Sapna
    Edited by: Siegfried Szameitat on Jan 19, 2009 2:27 PM

    Hi Sapna,
    if you drag a characteristic to default values of the filter, you have to restrict it: doppelclick on characteristic and after that please choose some values to restrict the characteristic. After that you will see the difference.
    Regards
    Erwin

  • How to create variables for Characteristic Info-objects in Rows / Columns

    I want to create variables in abovementioned manner for COPA retraction in BPS, as COPA retraction does not recognise variables created in "filter" section of Bex. Can sumone advise , as I have tried all the possibilities of creating but failed to do so?

    Hi Ravi/All,
    Actually my problem will be solved if I am able to create variables in either Rows/Columns area of BeX.
    Variables are getting created easily in Filter section of BeX (but in COPA , it will not serve any purpose COPA retraction does not recognise contents of Filter/variables contained in the filter).
    In fact variables are getting created in Rows/Colums of Bex, but they are in the form of structures. (Again multiple structures (more than 1)  are not recognised in COPA retraction.

  • Right way to change datagrid row, column, cells background colors in code-behind?

    Hi all,
    I have a winform program that I'm upgrading to wpf (I'm new to wpf). The wpf code for the function (SetdataGridBackgroundColors()) is below with the winform code commented out so I can fix it.  I have a datagrid with a Cornsilk background color alteranating
    with LightGreen depending on the content of datetime  cell. If the day portion of the datetime is different then the color changes from one to the other. I used a colorIndex variable because at the end of the month it could go from 31 to 1 and that would
    not work if I use the day directly.
    I tried this line to change the background color:
    optionsDataDatagrid.RowBackground = new SolidColorBrush(Colors.Cornsilk);
    this works but it changes every row. I found this other stuff:
    DataGridRow currentRowColor = optionsDataDatagrid.ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow;
    //DataGridRow currentRowColor = optionsDataDatagrid.ItemContainerGenerator.ContainerFromItem(optionsDataDatagrid.Items[i]) as DataGridRow;
    currentRowColor.Background = new SolidColorBrush(Colors.Cornsilk);
    Either ContainerFromIndex or ContainerFromItem throw an exception because currentRowColor is null. I looked at optionsDataDatagrid.Items[i] and is not null. Then I read that using ItemContainerGenerator is not a good idea.
    BTW I'm calling SetdataGridBackgroundColors() after datagrid is been filled with data.
    So... what is the proper way to set each row, column or cell background color in wpf?
    Thanks
    private void SetdataGridBackgroundColors()
    optionRowData rowData = new optionRowData();
    if (optionsDataDatagrid.Items.Count == 0)
    return;
    int colorIndex = 1;
    DateTime savedDate, currentRowDate;
    rowData = optionsDataDatagrid.Items[0] as optionRowData;
    savedDate = rowData.col_datetime.Date; //only compare the date not the time
    for (int i = 0; i < optionsDataDatagrid.Items.Count; i++)
    //currentRowDate = Convert.ToDateTime(optionsDataDatagrid.Rows[i].Cells[3].Value); //winform code
    //currentRowDate = currentRowDate.Date; //winform code
    rowData = optionsDataDatagrid.Items[i] as optionRowData;
    currentRowDate = rowData.col_datetime.Date;
    if (currentRowDate != savedDate)
    colorIndex++;
    savedDate = currentRowDate;
    if (colorIndex % 2 == 0)
    //optionsDataDatagrid.Rows[i].DefaultCellStyle.BackColor = Color.Cornsilk;
    //------------------- testing new code --------------begin
    optionsDataDatagrid.RowBackground = new SolidColorBrush(Colors.Cornsilk); //this changes all rows
    //DataGridRow currentRowColor = optionsDataDatagrid.ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow;
    //DataGridRow currentRowColor = optionsDataDatagrid.ItemContainerGenerator.ContainerFromItem(optionsDataDatagrid.Items[i]) as DataGridRow;
    //currentRowColor.Background = new SolidColorBrush(Colors.Cornsilk);
    //------------------- testing new code --------------end
    //optionsDataDatagrid.Columns[4].DefaultCellStyle.BackColor = Color.DarkSalmon;
    //optionsDataDatagrid.Columns[5].DefaultCellStyle.BackColor = Color.Aquamarine;
    //optionsDataDatagrid.Rows[i].Cells[4].Style.ApplyStyle(optionsDataDataGridView.Columns[4].DefaultCellStyle);
    //optionsDataDatagrid.Rows[i].Cells[5].Style.ApplyStyle(optionsDataDataGridView.Columns[5].DefaultCellStyle);
    else
    //optionsDataDatagrid.Rows[i].DefaultCellStyle.BackColor = Color.LightGreen;
    //------------------- testing new code --------------begin
    optionsDataDatagrid.RowBackground = new SolidColorBrush(Colors.LightGreen); //this has no effect
    //------------------- testing new code --------------end
    //optionsDataDatagrid.Columns[4].DefaultCellStyle.BackColor = Color.Coral;
    //optionsDataDatagrid.Columns[5].DefaultCellStyle.BackColor = Color.LimeGreen;
    //optionsDataDatagrid.Rows[i].Cells[4].Style.ApplyStyle(optionsDataDataGridView.Columns[4].DefaultCellStyle);
    //optionsDataDatagrid.Rows[i].Cells[5].Style.ApplyStyle(optionsDataDataGridView.Columns[5].DefaultCellStyle);

    I (also) strongly recommend mvvm.
    Setting values is a particularly bad idea in this case.
    I don't mean to be rude but your explanation of the requirement is kind of vague.
    I would bind solidcolourbrushes.
    Set the properties based on whatever your logic is within the viewmodel.
    You can switch out what each of the brushes holds when the user clicks wherever.
    So you use a highlightbrush when something or other is true.
    That highlightbrush is set to a blue brush when the user clicks left and a red brush when they click right.
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • How to dynamically set column name in Answers

    Hi.
    How to dynamically set column name in Answers, for example I want to put presentation variable in column header. Is this possible?
    Regards,
    Goran Ocko
    http://108obiee.blogspot.com/

    May be a rude way .. but it works.
    Add narrative view and use Java script to change the column headings based on the variables.
    <script language="javascript" type="text/javascript">
    var a = document.getElementById('idResultsTableParent');
    var rows= a.getElementsByTagName('tr');
    rows[1].cells[1].innerText ="@{Presentation Variable}";
    </script>
    Editing the same post to remove irrelevant information.
    - Girish

  • Dynamic  Lead Columns / Data Columns

    Hi
    I want to use dyanmic data columns restricted by a characteristic relationship of another variable.
    When I use the characteristic as a lead column, it works perfect, I only see the rows for valid lines.
    When I use the characteristic as a data column, I see all possible characteristic values of that characteristics. The ones that are not valid are not ready for input, the ones that are valid are ready for input.
    I would like to use dynamic data columns but only display the columns with a valid characteristic relationships (just the way it works when I put the characteristic in the lead column)
    Should that work?
    Thanks

    Enable Zero-Suppression on your column structure. Then in your Query properties, enable zero-suppresion for columns. That way only characteristic values with data will be shown and not all possible characteristic values present in the master data tables. I should note that there should be some data in the fact table which links the keyfigure to the characteristic value, otherwise it will be suppressed.

  • Dynamic Lead column repeats the same value

    Hi, I have a dynamic lead column with reporting groups attached to them. Also, I have date column in the data column which is also dynamic. In the layout the reporting group field shows only the first entry in the variable and repeats itself. When I enter the data and save it, data is saved in the right reporting groups...If I replace day with week(and no further changes in the layout) reporting groups show up...is it something to do with date field?
    Reporting Group       01/01/2008      01/02/2008  01/03/2008
    1                               $100                $ 120          $ 150
    1                               $110                $ 130          $ 160
    In the database it shows the second line reporting group as 2(which I want) but in the layout it shows up as 1.
    How can I make it show the correct value. Thanks,
    Bulusu

    Hi,
    When any of the dynamic lead columns or data columns you select them as dynamic, automatically the Infoobject is filled by the system and it would be greyed out. Copy the same infoobject like 0FISCPER, 0FISCYEAR and paste in the Description of the layout (for that dynamic column). Then it will pick up on its own.
    Otherwise if you put your own description like date, month and year etc. for all the columns or rows, as the case may be, it will give similar description.
    Regards,
    Ravi

  • Dynamic Rows in Report Painter

    Hello everyone,
    I'm new to report painter and m using the SAP Library help  material to understand report painter. I've one query though i.e
    Is it possible to create a report hrough report painter with dynamic rows ? if yes then pls let me know how.
    Regards
    Anik

    Thank you.
    See I have the below Rows
    Total Revenue
    Cost2
    Cost3
    Direct Cost
    Gross = Total revenue - Direct Cost
    Gross % = (Gross/Total revenue ) * 100
    I have Columns as with basic Key figures and Formulas
    Year(basic key Figure)
    Year+1(basic key Figure)
    Total = Year + (Year+1)
    Its giving me correct values in case of Basic Key figures and not in the formula case.
    It giving error when there is formula both in Row and Column.
    In the above case last row and last colum. Only Column formula is getting implemented.
    Here for example I have mentioned 4 rows and 4 columns.. But I have 15 Rows and 30 columns .. out of which 15 rows and columns have formulas...
    % Rows are problem.. which gives me errors... I tried using Special cells, but I am not 100% sure how to use them.
    I would be very thankful if you can help me out.. Please

  • 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

  • Error while saving dynamic row values of datagrid with record.

    hi friends,
    i am trying to add dynamic row in datagrid and save that value with record.i succeeded in first part while i am saving the record the error show like this.
    errro:Property fromAmount not found on com.ci.view.Task and there is no default value.
    how i resolve this error.
    any suggession welcom
    thanks in advance.
    B.venkatesan
    code:
    package:
    package com.ci.view
        [Bindable]
        public class Task
            public function Task(frmAmount:String,toAmount:String,commissionPercentage:String)
                this.frmAmount=frmAmount;
                this.toAmount=toAmount;
                this.commissionPercentage=commissionPercentage;
            public var frmAmount:String;
            public var toAmount:String;
            public var commissionPercentage:String;
    main mxml:
    [Bindable]
                private var tasks:ArrayCollection;
                private static const ADD_TASK:String= "";
                private function init():void
                    tasks = new ArrayCollection();
                    tasks.addItem(new Task("0","1000","0"));
                    tasks.addItem({frmAmount:ADD_TASK});
                private function checkEdit(e:DataGridEvent):void
                    // Do not allow editing of Add Task row except for
                    // "Click to Add" column
                    if(e.rowIndex == tasks.length - 1 && e.columnIndex != 0)
                        e.preventDefault();
                private function editEnd(e:DataGridEvent):void
                    // Adding a new task
                    if(e.rowIndex == tasks.length - 1)
                        var txtIn:TextInput =TextInput(e.currentTarget.itemEditorInstance);
                        var txtIn1:TextInput =TextInput(e.currentTarget.itemEditorInstance);
                        var txtIn2:TextInput =TextInput(e.currentTarget.itemEditorInstance);
                        var dt:Object = e.itemRenderer.data;
                        // Add new task
                        if((txtIn.text) != ADD_TASK)
                            var x:String=String(txtIn.text);
                            tasks.addItemAt(new Task("", "", ""), e.rowIndex);
                        // Destroy item editor
                        commPlanDetGrid.destroyItemEditor();
                        // Stop default behavior
                        e.preventDefault();

    Venktesan,
    You are trying compare String and int..! which is not possible try to case the txtIn.text to int using parseInt(txtIn.text).
    ORIGINAL:
    if(txtIn.text != ADD_TASK).---->error : Comparison between a value with static type String and a possibly unrelated type int
                        tasks.addItemAt(new Task(txtIn.text, 0, ""), e.rowIndex);----> error:Implicit coercion of a value of type String to an unrelated type int.
    EDITED:
    if(parseInt(txtIn.text) != ADD_TASK).---->error : Comparison between a value with static type String and a possibly unrelated type int
                        tasks.addItemAt(new Task(parseInt(txtIn.text), 0, ""), e.rowIndex);----> error:Implicit coercion of a value of type String to an unrelated type int.
    Thanks
    Pradeep

  • 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

  • Duplicating MovieClips into Rows & Columns

    Hi People,
    I am creating a project, which is a dynamic image gallery,
    wherein the images are loaded from an XML file. I am looking to
    create the thumbnails as rows & columns, based on the total
    number of images.
    I am able to duplicate the movieclips in rows & columns,
    if I define the number of rows & columns, but don't know how to
    do this at runtime, depending on the total number of images.
    Let's say I have 12 images, so the resulting grid should be
    like the one shown below:
    Can anybody please help, this is really urgent, and I losing
    my head over this
    Thanks to all in advance.
    Cheers,
    Husain

    //upper left corner of image grid
    var colStart = 30;
    var rowStart = 30;
    var imagesPerColumn = 5;
    var colCount = 0;
    //width and height of thumbs plus any buffer space between
    them
    var colWide = 50;
    var rowHigh = 50;
    //starting depth of new clips
    var deep = 5;
    for (var i = 0; i < 12; i++) {
    thisImage = this.attachMovie("thumb", "thumb" + i, deep + i,
    {_x:colStart +
    (colCount * colWidth), _y:rowStart});
    colCount++;
    if (colCount + 1 > imagesPerColumn) {
    colCount = 0;
    rowStart += rowHigh;
    This should get you going - just replace the 12 in the for
    loop with your
    array length. I used attachMovie to attach a thumb clip from
    the library but
    you can duplicate instead.
    HTH, let me know if you need more explanation.
    Dave -
    Adobe Community Expert
    www.blurredistinction.com
    www.macromedia.com/support/forums/team_macromedia/

  • Header description of dynamic data columns dynamically

    Hi all,
    How is it possible to get Header description of dynamic data columns dynamically??
    Thanks and regards,
    Harry

    Harry,
    Don't have the system right now so going by memory.
    There are 2 parts - you need to see how you specified the text replacement of the variable.  Say on 0fiscper if you specify characteristic value it would show I think 001.2007, 002.2007, etc.  If you use one of the text types, it would be based on the description.
    I always have to think if I need to put the infoobject name or the variable name in the layout definition in the description part.  Off the top of my mind, it would be the infoobject name i.e. 0fiscper for example

  • Dynamic Row Suppression based on grid POV

    Hi,
    I need to suppress rows based on the grid POV. The report is set up to have accounts in the rows and the user is able to select a specific account in the grid POV. Based on the grid selection, half of the accounts in the rows either need to be suppressed or not.
    One solution already available is to use advanced suppression on each row but this option will take too long. I'd like to find a solution using UDA's or some other way. Any ideas?

    Im not sure there is any simple way to get dynamic row selection based on what is selected in the page.
    If I were designing the form based on what you have stated, I would probably stick both Account and Year in the page, and the 400 products in rows. This would require the user to select the different combinations of Year / Account, but would mean only 12 columns (instead of 72).
    Alternatively you could stick Account in rows too - meaning 800 rows, but less combinations to select in Page....all depends what is deemed acceptable to the user.
    Probably other approaches that may be better than above (put Product in the Page for fun!!)
    Thanks
    JB

Maybe you are looking for