Column Group Hiding

Hi,
In the application, we have used a table (of type 'Advanced Table') and under that I require a column to get hidden in the table. When i navigate to see the columns through "Personalize" link corresponding to the table, I came to know the column i require to hide is represented in the form of column group. And under that column group, it has a sub-category of may columns present under it.
Will it be ok if i hide only the required column under that column group by setting the rendered property to 'false' or do i have to hide the entire column group itself ?
Suggestions needed....
With Thanks,
Thiyagarajan

Thanks All for your valuable responses...
In the same table, i am doing some calculations in the 'processFormRequest' method when the 'submit' button is clicked and the table has nearly more than 25 rows and it is listed as 10 rows per page.
Once the page gets loaded after the 'submit' button gets clicked, the page displays the table's last 10 records and not from the first 10. Is there any function can be used to point the records in the table in the ascending order instead of descending ?
With Thanks,
Thiyagarajan

Similar Messages

  • Row column group hiding in matrix report

    Hi ,
    I need to hide the repeated rows in matrix report,in below with red rounded (4%,4%) is coming twice for single resource.
    I need to show only one 4% for this resource.How to do this in matric report.
    thanks
    bhupesh.r

    those rows are not duplicates as far as SSRS is concerned as date values for them are different. So you need to change the logic at your backend query to return one out of these two records. Logic you alone can come up with as we dont know your business
    rules, neither your tables and you've not posted anything barring a report screenshot.
    Alternatively, if you want our help on this post your backend tables with some sample data and explain your rules for getting the required output.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • SSRS 2008 R2 - Add moving average to column group

    I have a column group of dollar amounts.  The row is a year/month.  I would like to add a moving average column to the right of the last 6 months.  My SQL Server data source is already complex enough and I'd really prefer not to add a column
    there.  Is there anything I can do within the report itself?  Some way to reference the previous records in a matrix?
    Thank you!

    Hi mateoc15,
    According to your description, you have a matrix in your report. Now you want to calculate the average value of last 6 month. Right?
    In Reporting Service, we can put custom code into report to deal with complicated logic. Add one more column/row inside of group and call the functions defined in custom code. For your requirement we modified Robert’s code to achieve your goal. We tested
    your case in our local environment with sample data. Here are steps and screenshots for your reference:
    Put the custom code into report:
    Private queueLength As Integer = 6
    Private queueSum As Double = 0
    Private queueFull As Boolean = False
    Private idChange As String=""
    Dim queue As New System.Collections.Generic.Queue(Of Integer)
    Public Function CumulativeQueue(ByVal currentValue As Integer,id As String) As Object
    Dim removedValue As Double = 0
    If idChange <> id then
            ClearQueue()
                    idChange = id
                    queueSum = 0
                    queueFull = False
                    CumulativeQueue(currentValue,id)
    Else
                    If queue.Count >= queueLength Then
                                    removedValue = queue.Dequeue()
                    End If
                    queueSum += currentValue
                    queueSum -= removedValue
                    queue.Enqueue(currentValue)
                    If queue.Count < queueLength Then
                    Return Nothing
                    ElseIf queue.Count = queueLength And queueFull = False Then
                    queueFull = True
                    Return queueSum / queueLength
                    Else
                    Return (queueSum) / queueLength
                    End If
    End If
    End Function
    public function ClearQueue()
    Dim i as Integer
    Dim n as Integer = Queue.Count-1
    for i=n To 0 Step-1
                    queue.Dequeue()
    next i
    End function
    Add one more row inside of group, call the function defined in custom code.
    Save and preview. It looks like below:
    Reference:
    Moving or rolling average, how to?
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou (Pactera)

  • Setting the header of a Column group in a Advanced table dynamically

    Hi All,
    There is a requirement to set the Header of a column group in a Advanced table dynamically by fetching the values from a view attribute.
    Code :
    OAAdvancedTableBean spiderTbl1 ;
    Problem:
    It is not able to set the value for the header inspite of getting the handle of the bean.
    Analysis:
    the same piece of code works for
    1) Setting the text of the advanced table
    2) Setting the header of a column in a column group
    Please let me know if there is anything more that needs to be done for setting the prompt of a column group header.
    Thanks in advance!

    I have posted it without giving the complete code by mistake. Below is the code:
    OAAdvancedTableBean spiderTbl1 ;
    OASortableHeaderBean spiderHdr1;
    spiderTbl1 = (OAAdvancedTableBean)webBean.findChildRecursive("SpiderCatTbl1RN");
    if (spiderTbl1!=null){
    spiderHdr1= (OASortableHeaderBean)spiderTbl1.findChildRecursive("AnalogHdr");
    if (spiderHdr1!=null) {
    spiderHdr1.setAttributeValue(OAWebBeanConstants.PROMPT_ATTR,
    new OADataBoundValueViewObject(spiderHdr1,
    "SpiderCategory1",
    "ProjRegPVO1"));
    }

  • SQL Server Reporting Services- Coloring a Cell Background Based on two different column group values

    Hello All,
    I have a matrix report with time scale on the x axis  and Resources on Y axis Showing the tasks assigned to each resource for a period of time. Here I have to color a matrix cell showing task details on tool tip with background color of the cell.
    So Please help me on this.I have a expression like this...
    In my case the color should be filled for the cell with name "Fields!task_name.Value" based on the values of "Fields!Day_Wise.Value " where we have the values for Daywise as S,M,T,W,T,F,S. So i need the background for the cell with name
    task_name as Light Grey on Friday and Saturday, But we have the same name S for sunday also, which should come in different color.
    =iif(Fields!Day_Wise.Value ="F","LightGrey",
    IIF(PREVIOUS(Fields!Day_Wise.Value) ="F","LightGrey",
    iif(Fields!task_name.Value="","White",
    iif(InStr(Fields!task_name.Value,"||")>0,"Maroon",
    iif(InStr(Fields!task_name.Value,"NULL")>0,"Sienna",
    iif(InStr(Fields!task_name.Value,"Pink")>0,"Pink",
    iif(InStr(Fields!task_name.Value,"Red")>0,"Red",
    iif(InStr(Fields!task_name.Value,"Purple")>0,"Purple",
    iif(InStr(Fields!task_name.Value,"Green")>0,"Green",
    iif(InStr(Fields!task_name.Value,"White")>0,"White",
    iif(InStr(Fields!task_name.Value,"Cyan (Teal)")>0,"Teal",
    iif(InStr(Fields!task_name.Value,"Olive")>0,"Olive",
    iif(InStr(Fields!task_name.Value,"Blue")>0,"Blue",
    iif(InStr(Fields!task_name.Value,"Light Blue (Aqua)")>0,"LightBlue",
    iif(InStr(Fields!task_name.Value,"Yellow")>0,"Yellow","Black"
    Thanks
    AJ Hameed

    Hi AJ Hameed,
    According to your description, you want to set the background color for the cells based on the values inside of cells and the values the column group. You want to set grey for cells on Friday and Saturday, set colors based on the task name on other weekdays.
    Right?
    In Reporting Services, there's no problem if we have two different data values in conditional expression, so we can set background color based on Day_Wise or task_name. One issue in this scenario is, we can't have value "S" for both Saturday and Sunday when
    working in a matrix. Otherwise the task_name will overwrite the previous task_name (for numeric values, it will do sum calculation). So we suggest you change the values for weekdays in database. The expression you have posted was correct. It only has a small
    issue: the "Light Blue(Aqua)" also contains "Blue", so when doing conditional judging, the expression will return "Blue" instead of "Light Blue". We have tested in our local environment. For viewing convenience, we used the Switch() function in our expression:
    =IIf(Fields!Day_Wise.Value="Fri" or Fields!Day_Wise.Value="Sat","LightGrey",
    Switch(
    InStr(Fields!Task_name.Value,"White")>0,"White",
    InStr(Fields!Task_name.Value,"||")>0,"Maroon",
    InStr(Fields!Task_name.Value,"Pink")>0,"Pink",
    InStr(Fields!Task_name.Value,"Red")>0,"Red",
    InStr(Fields!Task_name.Value,"Purple")>0,"Purple",
    InStr(Fields!Task_name.Value,"Green")>0,"Green",
    InStr(Fields!Task_name.Value,"Cyan(Teal)")>0,"Teal",
    Fields!Task_name.Value="","White",
    InStr(Fields!Task_name.Value,"Olive")>0,"Olive",
    InStr(Fields!Task_name.Value,"Blue")>0,"Blue",
    InStr(Fields!Task_name.Value,"Aqua")>0,"LightBlue",
    InStr(Fields!Task_name.Value,"Yellow")>0,"Yellow",
    InStr(Fields!Task_name.Value,"Orange")>0,"Orange",
    InStr(Fields!Task_name.Value,"Null")>0,"Sienna",
    true,"Black"
    The result looks like below:
    Reference:
    Matrices (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to create RunningValue Through Column Groups?

    Hi Everybody i´m trying to do this with a Matrix
    I want the running value of the product quantity for each month of a year,
    resetting the running value
    when a new year is reached
    I have 2 column groups "Year" and as it´s child group "Month".
                         2009                                  
    2010
                         January Febrary March      January   February  March
    Product
    Toolbelt            10           15       20             
    1            10            50
    Well that is the idea...
    In the field of the quantity i´m using an expression like this = RunningValue(Fields!Quantity.Value, Sum, Nothing) .
    With this expression i get the the running value and it´s great, but
    it does not reset thru the years ,
    it continues aggregating the quantity value.
    So i tried with this expression assuming if i set the SCOPE to the Year group i can achieve this
    = RunningValue(Fields!Quantity.Value, Sum, "Year") ,
    But surprise!!, this is not giving me the right aggregation , i´m still dig in it and can´t find what it actually aggregates.
    Am I doing something wrong?.
    All the help is welcome. Thanks.

    Hi UzielB,
    Based on your information, I get your requirement completely, here you want to accumulate the value of month from
    Jan to March whin one year, then return to Jan again whin another year. If I misunderstand you please do not hesitate to let me know.
    Now the issue you are encountering is that the value does not reset through the different years.
     Actually, nomatter it is 2009 or 2010, RunningValue function takes different years as the same scope, so the value does not reset
     through the different years. Just like picture3.
    To workaround the issue, we might need to utilize the subreport in the main report, for detailed steps please follow
    these:
    1.    
    Design the subreport with two column groups
    Year, Month and one row group Product.
    2.    
    Type in the expression in the data textbox
    =RunningValue(Fields!Yourdatafield.Value,sum,"Product") Here
    Product is the row group name.
    3.    
    Add one parameter
    Year to the subreport, of course you should add the parameter year behind the where clause in the T-sql. Such as
    select * from yourtable where Year=@Year
    4.    
    Delete the
    Year column and Product column, here please make sure you just delete the column only rather than deleting the relevant reportitem.
    5.    
    Decrease the height and width of the report to the report control size, then there is no blank space when displayed in the main report.
    6.    
    Drag a matrix to the main report, just add one column group
    Year.
    7.   
    Then drag a subreport control into the data textbox, and then rigth-click the subreport control->select subreport
    properties
    8.   
    In the Subreport Properties dialogbox, please selec the subreport name in the drop-down list of
    Use this report as a subreport
    9.    
    Swith to
    Parameter tab, click Add button to add a parameter, then select the
    Year in the Name drop-down list and
    Year datafield in the Value drop-down list.
    10.  
    Click OK.
    11.  
    Now add another table control into the 
    main report body with one column, and drag the product datafiled into the data textbox. Then group the table by
    Product.
    12.  
    Drag this table into the
    Rows  textbox of the main report. Here make sure the height of the rows in Subreport and table creted in step11 is the same, otherwise the lines in not stay in the same level.
    Preview the report, you will see the report like picture2.
    If you have any question about the steps, please feel free to ask.
    Have a wonderful day
    J
    Challen Fu

  • Dropdown in column group of a table

    I am building a table with one multiple column groups, each has a number of columns, one of these columns have a dropdownbykey field. I get a ClassCastException on this. It seems like there is a bug in the implementation, because when I move the dropdown out of the column group it works fine.
    Regards
    Juan

    How is the "selectedKey" property of the dropdown-list bound
    You need to bind the property "selectedKey" for the DropdownByKey UIElement
    http://help.sap.com/saphelp_nw04/helpdata/en/08/13dbfb6e779743bb2ca641ebcb3411/frameset.htm

  • Problem with column groups on Interactive Report

    Hi
    I am hoping that someone can help with this problem.
    I am attempting to control both the grouping and ordering within each group of fields in the single row view of an interactive report. Creating column groups appears to be OK at first (sequence, name and description) but if I then attempt to edit the group, the sequence box appears to be empty even though it was filled with a unique number at the time of creating the group.
    In addition, any changes to the order of the fields within the group made using the shuttle box at the bottom of the screen don't seem to be saved even to the Apply Changes button is pressed.
    Anybody know what is happening here and can anyone suggest how to control both the order of the groups and ordering within each group?
    Thanks in anticipation
    Martin

    Moun wrote:
    I am dealing with many interactive projects in my application. Sometimes I have to add a column to the interactive report. When I do so, the column doesn't appear in the interactive report...On the page I have to click on "Actions" then go to "Selected columns" and then display it ! the problem is when I logout and login again
    the column desappear again and I have to do samething again and again...Is there a way to set it appear by defaul always ???After adding new columns to an existing IR, you need to select them for display as a developer, and save the new report as the Primary Default.

  • How to get the difference between two columns in a column group

    Hi All,
    My first time here and really new to programming. I would like to get the difference between 2 columns that are inside 
    a column group.
    Here is my sample table below: The Column Group is PeriodNumber and can only choose 2. like 1 and 2.. I would like to have a third row which will simply calculate the difference between the amounts in PeriodNumber 1 and 2.
                                PeriodNumber          
    Account                    1                            2     
    1) Cash                10,000                15,000
    2) Receivables      12,000                11,500
    3) Equipment          5,000                  5,500
    Total Assets          27,000                32,000

    Hi yabgestopa,
    From your description, you want to get the difference between two columns in a column group. After testing it in my environment, we can use custom code to achieve your requirement. For more details, you can refer to the following steps:
    Copy the custom code below and paste it to your report. (Right-click report>Report Properties>Code)
    Dim Shared Num1 As Integer
    Dim shared Num2 As Integer
    Public Function GetAmount(Amount as Integer, Type as String)
    If Type = "1" Then
    Num1=Amount
    Else
    Num2=Amount
    End If
    Return Amount
    End Function
    Public Function GetDif()
    Return Num1-Num2
    End function
    Right-click the second column to insert a third column with Outside Group-Right.
    Then use the expressions below in the matrix.
    =Code.GetAmount(Fields!Amount.Value,Fields!PeriodNumber.Value)
    =code.GetAmount(Sum(Fields!Amount.Value),Fields!PeriodNumber.Value)
    =Code.GetDif()
    The report looks like below.
    If you have any questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Column grouping?

    Hi
    i am using alv table in my application. iam sorting the alv table and allowing three columns to be grouped. its displays fine initially but after i sort the columns the grouping is gone.
    any suggestions how can i maintain the grouping of the columns even after sorting.
    regards
    chythanya

    Hi
    iam writing this code to do the column grouping.
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_alv_activity( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
    DATA lo_config_model TYPE REF TO cl_salv_wd_config_table.
        lo_config_model = lo_interfacecontroller->get_model( ).
        lo_config_model->IF_SALV_WD_TABLE_SETTINGS~SET_MULTI_COLUMN_SORT( value = abap_true ).
    lr_field = lo_config_model->if_salv_wd_field_settings~get_field( 'CARRID' ).
    lr_field->if_salv_wd_sort~create_sort_rule( sort_order = if_salv_wd_c_sort=>sort_order_descending ).
    lr_field->if_salv_wd_sort~set_grouping_allowed( value = ABAP_true ).
    clear: lr_field.
    lr_field = lo_config_model->if_salv_wd_field_settings~get_field( 'CONNID' ).
    lr_field->if_salv_wd_sort~create_sort_rule( sort_order = if_salv_wd_c_sort=>sort_order_descending ).
    lr_field->if_salv_wd_sort~set_grouping_allowed( value = ABAP_true ).
    regards
    chythanya

  • Expression Error in Column Group report display

    Logic # 1:  If Column Group: Region. Value is EQUAL to "America Hub", the Value section needs to pull "Rev_Rec Date" Field.
    Logic # 2: If Column Group: Region. Value is EQUAL to "EMEA" or "AMERICA" or "ASIA", the Value section needs to pull "Order Date" field.
    Below is the column group expression I have entered.  However, it displays as “ERROR#” in the report output.  
    I am not sure why the SSRS program show an error in Column Group in Matrix report format
    =sum(IIf(Fields!REGION.Value = "America Hub", Fields!Rev_Rec_Date.Value, Fields!Order_Date.Value))
    Appreciate if you can help me.
    Thanks,
    Josey
    Josey Tang

    Hi Qiuyun,
    Thanks for your feedback and example.  Appreciated.
    I have created 2 expressions. One is in Row Group and the other in Column Group in order to show different values in Row and column fields.
    ROW FORMAT
    Logic # 1:  If Row Group: Region. Value is EQUAL to "America Hub", the Value section needs to pull "Billing Amount" Field.
    Logic # 2: If Row Group: Region. Value is EQUAL to "EMEA" or "AMERICA" or "ASIA", the Value section needs to pull "Booking Amount" field.
    Expression in ROW FORMAT:
    =sum(IIf(Fields!REGION.Value = "America Hub", Fields!Billing_Amount.Value, Fields!Booking_Amount.Value))
    COLUMN FORMAT
    Logic # 1:  If Column Group: Region. Value is EQUAL to "America Hub", the Value
    section needs to pull "Rev_Rec Date" Field.
    Logic # 2: If Column Group: Region. Value is EQUAL to "EMEA" or "AMERICA" or "ASIA",
    the Value section needs to pull "Order Date" field.
    Expression in “COLUMN FORMAT”:
    =sum(IIf(Fields!REGION.Value = "America Hub", Fields!Rev_Rec_Date.Value, Fields!Order_Date.Value))
    The Row Group expression is working properly.  However the Column Group expression shows as ERROR #
    I think I need to help based on the Column Group Logic # 1 and 2 above.
    Josey Tang

  • SSRS Matrix not showing all the entry for a Column Groups

    I created a Matrix in my SSRS report and for some reason if the COLUMN GROUP has more than one
    entry it only shows the first one and not the second or consequent entries.
    I opened a question in SO and here is the link:
    http://stackoverflow.com/questions/23248421/how-to-add-column-in-a-ssrs-table-based-on-criteria
    All help is appreciated.

    Hi SiKni8,
    According to your description, you have a matrix report. If a user has more than one start date and end date, you want to put all those start dates and end dates into one single row for this user. Right?
    In Reporting Service, for all data fields textbox appearing at intersection of rows and columns, the matrix will use Sum aggregation function by default. If the data can’t be calculated by aggregation function, it will return the first one of records. This
    is the reason why you only get the first start date and end date for each user. In your scenario, it is impossible to append more columns at the end of the matrix without setting column group. And we can never append columns dynamically based on the numbers
    of the records. So for your requirement, we find a workaround which we think is the most related to the answer you want. We use custom code to get both StartDate and EndDate, then return them as string. After that we append those strings and put the whole
    string into a cell. Your case has been tested in our local environment. Here are steps and screenshots for your reference:
    Put the custom code below into your report:
    Dim Num As String = ""
    Dim tempstr As String = ""
    Function AggregateString(Title as String, StartDate as String, EndDate as String) 
    If Title = Num Then
       tempstr = tempstr + "(" +StartDate+" , "+EndDate+")  "
    Else
      tempstr=""
      Num = Title
      tempstr =tempstr+"("+StartDate+" , "+EndDate+")  "
    End If 
    Return tempStr 
    End Function
    In our sample report, we created a matrix based on your description. It looks like below:
    In textbox next to [Title], put the expression below into it:
    =runningvalue(Code.AggregateString(Fields!Title.Value,Fields!StartDate.Value,Fields!EndDate.Value),Last,"Title")
    Ps: In our report, we set the type of date as string when creating table and dataset. If your date type is different, use Cstr() function and convert it into string.
    Save and preview. The result looks like below:
    Reference:
    Matrices (Report Builder and SSRS)
    RunningValue Function (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Email a newsletter to a customer/vendor group, hiding recipients (like Bcc)

    Is it possible to use Outlook integration to email a newsletter to a customer/vendor group, hiding recipients (like Bcc)?
    Can outlook integration see the distribution list? i.e...what group the BP belongs to?
    Thanks

    Hi,
    Outlook integration is deigned to link B1 to Outlook. It may not be able to use all advanced functions such as hiding recipients.
    For emailing a newsletter to a customer/vendor group, you may use query to get the list and create a distribution group to achieve your goal.
    Thanks,
    Gordon

  • Column Grouping By Month

    Hello. Here's my data set:
    I'm trying to produce a Reporting Services report that displays counts by month -- but for both calls open and closed under a single month heading. For example:
    I don't see a straightforward way to do this. I'm using a Tablix in SSRS 2008 R2. I can easily group counts by months if I'm working with just one column (just the open or closed date), but this isn't so clean. I appreciate any ideas. Thank you.

    Hi Bvy,
    I have tested on my local environment and you can modify the query in the dataset to count the open and closed for each month and then design the report, finally we will get the same structure as the snapshot you have provided.
    Details information below for your reference:
    1. Modify the query in the main dataset like below:
    ;with cte as
    select CallCategory,DATEPART(month,DateOpen) DateOpen,DATEPART(month,DateClose) DateClose from [TableName]
    cte2 as
    select sum(case when c.DateOpen is null then 0 else 1 end) cn,t.callcategory,t.dateopen from cte c right join (select * from (select distinct dateopen from cte) a cross join (select distinct callcategory from cte) as t) t
    on c.dateopen=t.dateopen and c.callCategory=t.callcategory group by t.CallCategory,t.DateOpen
    cte3 as (
    select sum(case when c.DateClose is null then 0 else 1 end) cn,t.callcategory,t.dateClose from cte c right join (select * from (select distinct dateClose from cte) a cross join (select distinct callcategory from cte) as t) t
    on c.dateClose=t.dateClose and c.callCategory=t.callcategory group by t.CallCategory,t.dateClose
    select c.callcategory,c.cn as [open], isnull(t.cn,0) as [close],isnull(c.DateOpen,t.DateClose) as month from cte2 c full join cte3 t on c.CallCategory=t.CallCategory and c.DateOpen=t.DateClose
    2. Design the Report structure using the Matrix instead of the tablix like below:
    Row Group:Call_Category
    Column Group:Month
    3. Preview you will get the result like below:
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • ECM - Column Group

    We are implementing a ECM, on MSS, it has tab Merit, Lump Sum, and Bonus on planning screen. We added some additional columns to Bonus tab, however, it also appear to the Lump Sum because they are in the same Plan Categories. To resolve this issue, we want to create our own column group and tie to the tab in MSS planning window. How do I tie or link the new column group to MSS tab.
    Appreciate your help
    Thanks!

    You have to create a view for each column group in V_TWPC_V - here you link a column group to a view.
    View then has to be assigned to a compensation plan in the SAP Portal customizing for Enterprise Compensation Management. Look for VIEWIDADD and enter plan=view,plan=view etc. No space between them.
    Br
    Ronnie

Maybe you are looking for