About the Column Groups

hi, all ,i want to produce groups of columns, The header of a column group spans across all the columns it contains.
e.g.
             name
firstname     lastname            age  header "Name" contains two sub columns with headers "First" and "Last" ,This is no problem,but the table contains anthor column "age" , I can't let header "age" align Center,The following is my code
   <af:table rows="#{bindings.StudentVVO.rangeSize}"
                    emptyText="#{bindings.StudentVVO.viewable ? 'No rows yet.' : 'Access Denied.'}"
                    var="row" value="#{bindings.StudentVVO.collectionModel}"
                    selectionState="#{bindings.StudentVVO.collectionModel.selectedRow}"
                    selectionListener="#{bindings.StudentVVO.collectionModel.makeCurrent}"
                    >
           <af:column headerText="name">
              <af:column headerText="1">
                <af:outputText value="#{row.firstName}"/>
              </af:column>
              <af:column headerText="2">
                <af:outputText value="#{row.lastName}"/>
              </af:column>
            </af:column>
          <af:column headerText="age"
                     inlineStyle="height:150.0pt; text-align:center;" >
                 <div>   
                <af:outputText value="#{row.age}"/>
                </div>
              </af:column>
      </af:table>
         my JDeveloper version is 10.1.3.3 ,who can help me ,thanks very much!

Null Null ( nice to have name indeed)
Try this
Set the field displaying this value as vertically variable and horizontally fixed. And ensure that the length of the field is good enough to display 10 characters.
Good Luck
Vij

Similar Messages

  • How do you feel about the hacktivist group Anonymous?

    How do you feel about the hacktivist group Anonymous? Are they heroes or criminals to you?They have done many things one would consider a good deed and some which one wouldn't. They were voted as one of the Top 100 Most Influential People of 2012 in Time Magazine. They have been linked to or played a major role in such things as ISIS, North Korea, Sony, Xbox, Westboro Baptist Church, Chinese Government, etc. They are considered to be in the Top 10 for greatest hackers/hacktivist groups of all time. * My personal views: I kind of like them and what they do. Granted everything they have done hasn't been with good intentions, but for the most part they seem to play the role of good hackers/hacktivists (if such a thing exists). Good day.
    This topic first appeared in the Spiceworks Community

    How do you feel about the hacktivist group Anonymous? Are they heroes or criminals to you?They have done many things one would consider a good deed and some which one wouldn't. They were voted as one of the Top 100 Most Influential People of 2012 in Time Magazine. They have been linked to or played a major role in such things as ISIS, North Korea, Sony, Xbox, Westboro Baptist Church, Chinese Government, etc. They are considered to be in the Top 10 for greatest hackers/hacktivist groups of all time. * My personal views: I kind of like them and what they do. Granted everything they have done hasn't been with good intentions, but for the most part they seem to play the role of good hackers/hacktivists (if such a thing exists). Good day.
    This topic first appeared in the Spiceworks Community

  • About the column display issue

    A column in a table is Varchar(20),I want to display this column on a Reports.
    But I have to allow for the follows:
    1. If the column's lengthy < 10 Then only display in one line.
    2. If the column's lengthy > 10 Then display in Two lines.
    How to do?
    Thanks a lot.

    Null Null ( nice to have name indeed)
    Try this
    Set the field displaying this value as vertically variable and horizontally fixed. And ensure that the length of the field is good enough to display 10 characters.
    Good Luck
    Vij

  • About the column attribute

    Dear experts:
                         In the screen of creating po using t-code:ME21N,i want to make certain column obligatory.
                         In the std sap,it's optional.
                         Has any solution can implement it?,pls give me some advice,thank you very much!

    Hi
    Normally fields are made mandatory or optional. You need to make required column field mandatory in customization at following path.
    SPRO--> Materials Management -->  Purchasing --> Purchase Order --> Define Screen Layout at Document Level --> field selection ( Make mandatory field for relevant field selection group.)
    hope it will help u.
    Deepak.

  • About the column display index of datagrid

    i need do a customize datagrid, but seems hard to save the
    display index of the grid column after the user drag and drop one
    column to another postion. What i need is catch the event after
    column drag and record that into database, and when reload based on
    the record , resort that column display index as saved before, how
    to get that

    that was i already did before, now even the all columns and
    match datafied are dynamic, my question is
    when after render all columns , dray a column a from right to
    left , after that i can not catch that column display index
    in the grid view, the real index in columns of grid is still
    remain same , i want catch the dray column event and
    get the display index(not the index of columns, but the order
    which that column display in the view) and after reload
    , i can show those colomns in right order as saved
    before

  • 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

  • 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

  • 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

  • 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

  • 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

  • Where is the User Group stored

    Hi all
    I have a question about the User Groups.
    I want to know where are the User Groups and their information stored in Business Objects.
    Is there a system table from where I can access/pull this information.
    Thanks.

    Hello,
    You can use the Query Builder (on the BusinessObjects Administration Launchpad under Administrative Tools) to query the CMS database.
    The following query would return some details of all user groups in your system:
    SELECT
    SI_NAME, SI_DESCRIPTION, SI_ID, SI_ALIASES, SI_GROUP_MEMBERS
    FROM
    CI_SYSTEMOBJECTS
    WHERE
    SI_KIND = 'usergroup'
    You can find documentation on querying the CMS in the Developer Library:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm#en/BOE_SDK/boesdk_java_dg_doc/doc/boesdk_java_dg/SDKFundamentals34.html#1033059
    [Dev Library Home|http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm] > Enterprise SDK > Java Developer Guide > SDK Fundamentals > How do I use the query language to retrieve classes from the CMS repository?
    Cheers,
    Fritz

  • SQL Modeler : Column Groups

    Is the Column Group option (under Table Properties) not yet implemented?
    It does not seem to save a column group and the topic is skipped in the Help File for the Table Properties topic.
    Edited by: user635766 on Jul 9, 2009 6:08 AM

    Hello,
    thanks for feedback. I checked it - you can add groups, change columns belonging to them and they are saved. Unfortunately group cannot be deleted and change in the name of the group is not applied if press OK while in editing mode.
    I logged bugs for these problems.
    Philip

  • The employee grouping for account determination

    Dear experts!
    Now, I'm getting some issues about The employee grouping for account determination.
    - The first, when I define Employee grouping for account determination, after that I want to know How do I can assign Employee to Employee grouping for account determination.
    - Second, where is I can assign employee group, employee subgroup to Employee grouping for account determination?
    Help me, please!
    Regards Huy!

    First you go to Employee grouping for account determination and make two groups for two Company codes or EE Groups or EE subgroups Etc then assign to company codes In the Standard feature PPMOD Now in the table where you assign Symbolic to GL accounts you assign same symbolic with different groups like this.
    Example:
    Symolic A/C            EE Group for acc determination                                                GL
    001                                    1                                                                                2010201
    001                                    2                                                                               2010202
    Regards.
    Muhammad Afrasyab

  • Is there still no fix to the column resizing issue?

    I checked the initial bug report about it and didn't see anything. I also didn't see it addressed in the most recent update notes. I know about the zoom workaround but that's really tedious. This is annoying me enough that I'm seriously considering dropping premium until it's fixed.

    Hello:
    Could you detail a little bit more about the column sizing issue you are having?

Maybe you are looking for