Sorting column headers in dynamic page

Could anyone please let me know how to sort the column headings in a dynamic page

hi ram,
do you want to order the rows of a column that comes from a SQL statement or do you have something else in mind ?
regards,
christian

Similar Messages

  • How to Print the Report Column headers on each page of any report

    Can someone offer assistance on how I can go about achieving the ability to show and print the Report Column headers on each page of any report using the Print Attributes of APEX 3.0? These reports will be printed using Excel and Word.
    I read a thread with a similar request but the answer seems vague for my level of understanding.
    I am connected to a print server and using BI Publisher.
    Thanks,
    Ric

    Hello Ric,
    >> These reports will be printed using Excel and Word.
    I'm not sure I understand what you are trying to do. You are using a very powerful tool – BI Publisher – why do you need Excel or Word for printing? Is there a special need only Excel or Word can provide?
    One of the major advantages of using BI Publisher is that it's taking care of all these tedious tasks like reasonable page breaking, headers and footers, and also table headers.
    Regards,
    Arie.

  • Not displaying column names in dynamic pages?

    I'd like to use a dynamic page as a detail page. In doing this I need a bit more freedom of design than what I now know is possible. Most important - I only need to print out the values returned by the SQL, not the column names as well. And I need to define the colors and fonts of the html table tags surrounding the returned values. How?
    It seems a bit strange that I am allowed to change the look and feel of the surrounding page elements through defining my own templates, and then have Oracle define how the elements placed in the templates are to appear.

    Hi,
    It is not possible to change the format the output coming from the <oracle> tags.
    Thanks,
    Sharmila

  • Cross tab column headers display on all pages

    I made a Crystal Report with a cross tab which displays all details. In the cross tab I have 6 columns with details about the data displayed in the last 2 columns. The headers of these columns are only displayed on the first page but not on other pages. How can I add column headers to all pages? Thank you.

    Column headings should be repeated automatically, row headings can be repeated by
    1.right-clicking on the row header
    2. select Row options
    3. .select Repeat Labels on Page break
    or, when I just reviewed it in the help section it says:
    "When you create a Cross-Tab that is wider or longer than the specified page size, the program automatically spans the printing across enough pages to accommodate the size of the Cross-Tab. In the Preview tab, a line will appear at each page break. For ease in reading, column headings will be repeated on subsequent pages. Row headings can also be repeated using the Keep Columns Together option.
    To repeat row labels
    Right-click the blank top-left area of the Cross-Tab and select Cross-Tab Expert from the shortcut menu.
    The Cross-Tab Expert appears.
    Click the Customize Style tab.
    Select the Repeat Row Labels check box, if desired.
    Crystal Reports lets you designate report objects that don't expand horizontally, such as text objects, field objects, OLE objects, charts, maps, lines, boxes, and so on, to be repeated on each additional horizontal page that a Cross-Tab creates. For more information, see Repeating report objects on horizontal pages."

  • Print report parameter and column headers PDF format from Discoverer Viewer

    Hi,
    From Discoverer Viewer 4i I'm presently using the printer friendly version to print my workbooks. I would like to know if their is a way to include report parameters and print column headers on every page.
    I would appreciate any pointers or workarounds to this issue at the earliest.
    Thanks
    T

    Hi T
    I don't think this is possible with 4i.
    Have you considered upgrading to 10g R2?
    Best wishes
    Michael

  • Displaying a Blob with a Dynamic Page

    A dynamic page was created where one of the columns on the database table is a BLOB. The following error is received when trying to query the column from the dynamic page:
    : Unable to execute query (WWV-10201)
    The preference path does not exist:
    ORACLE.WEBVIEW.PARAMETERS.1093150906 (WWC-51000
    FYI - when running a similar query from a form component, the blob displays fine. This problem occurs only with dynamic page components.

    Hi,
    What version of Portal are you using ??
    Have you tried using reports like QBE,Wizard or SQL rfor displaying Intermedia Objects.
    Thanks,
    Anu

  • Dynamic sort column header app?

    My client wants me to build one of those dynamic ASP pages
    with arrows on
    the column headers so that when you click on the arrow, the
    page re-sorts
    the dynamic content... anyone have an extension, or at least
    a tutorial on
    how to build such a thing? THx

    tom-muck.com has a free extension for what you want. doesn't
    have the
    arrows, but works very well. It may be commercial now, but
    he's a good guy
    and very reasonably priced.
    "_adrian" <test@ test.com> wrote in message
    news:ec5mc1$p3l$[email protected]..
    > My client wants me to build one of those dynamic ASP
    pages with arrows on
    > the column headers so that when you click on the arrow,
    the page re-sorts
    > the dynamic content... anyone have an extension, or at
    least a tutorial on
    > how to build such a thing? THx
    >
    >

  • Create grouped column headers dynamically

    Hi all,
    I want to create grouped column headers dynamically.
    DATA lr_table_column TYPE REF TO cl_wd_table_column.
    DATA lr_column_group TYPE REF TO cl_wd_table_column_group.
    DATA lr_caption TYPE REF TO cl_wd_caption.
    lr_table_column = cl_wd_table_column=>new_table_column( ).
    lr_table_column->set_table_cell_editor( lr_input ).
    lr_caption = cl_wd_caption=>new_caption( ).
    lr_caption->set_text( 'Min' ).
    lr_column_group = cl_wd_table_column_group=>NEW_TABLE_COLUMN_GROUP( ).
    lr_column_group->set_header( EXPORTING the_header = lr_caption ).
    CALL METHOD lr_column_group->add_column
            EXPORTING
              index      = 1
              the_column = lr_table_column.
           lr_table->ADD_GROUPED_COLUMN( EXPORTING the_grouped_column = lr_column_group ).
    But I don't understand how I can get the grouping of the columns.
    The following structure should be realized:
    FR  | Headline 1  |  Headline 2  |
    SR  | Min |  Max   |  Min |  Max   |
    FR = first row
    SR = second row
    regards
    Edited by: Wolfgang Bauer on May 19, 2010 7:52 AM

    LOOP AT it_comp_header INTO wa_comp_header.
    Minimum
          counter = counter + 1.
          CONDENSE counter.
          CONCATENATE 'INPUT_' counter INTO id.
         c_count = sy-index.
          c_count = counter.
          CONDENSE c_count.
          CONCATENATE 'IT_BIN_COMP.MIN' c_count INTO binding.
          cl_wd_input_field=>new_input_field(
            EXPORTING
               bind_value             = binding
               id                     = id
            RECEIVING
              control                = lr_input ).
          lr_column_group = cl_wd_table_column_group=>new_table_column_group( ).
          lr_table_column = cl_wd_table_column=>new_table_column( ).
          lr_table_column->set_table_cell_editor( lr_input ).
          lr_caption = cl_wd_caption=>new_caption( ).
          lr_caption->set_text( 'Min' ).
          lr_table_column->set_header( lr_caption ).
          lr_column_group->add_column( lr_table_column ).
          lr_table_column = cl_wd_table_column=>new_table_column( ).
          lr_table_column->set_table_cell_editor( lr_input ).
          lr_caption = cl_wd_caption=>new_caption( ).
          lr_caption->set_text( 'Max' ).
          lr_table_column->set_header( lr_caption ).
          lr_column_group->add_column( lr_table_column ).
          lr_table_column = cl_wd_table_column=>new_table_column( ).
          lr_table_column->set_table_cell_editor( lr_input ).
          lr_caption = cl_wd_caption=>new_caption( ).
          lr_caption->set_text( 'Sorting Bin' ).
          lr_table_column->set_header( lr_caption ).
          lr_column_group->add_column( lr_table_column ).
          lr_caption = cl_wd_caption=>new_caption( ).
          text = wa_comp_header-chip.
          lr_caption->set_text( text ).
          lr_column_group->set_header( lr_caption ).
          lr_table->add_grouped_column( lr_column_group ).
        ENDLOOP.
    Sub product
        lr_column_group = cl_wd_table_column_group=>new_table_column_group( ).
        lr_table_column = cl_wd_table_column=>new_table_column( ).
        lr_table_column->set_table_cell_editor( lr_input ).
        lr_caption = cl_wd_caption=>new_caption( ).
        lr_caption->set_text( 'Sub Product' ).
        lr_table_column->set_header( lr_caption ).
        lr_column_group->add_column( lr_table_column ).
        lr_table->add_grouped_column( lr_column_group ).
    Remarks
        lr_column_group = cl_wd_table_column_group=>new_table_column_group( ).
        lr_table_column = cl_wd_table_column=>new_table_column( ).
        lr_table_column->set_table_cell_editor( lr_input ).
        lr_caption = cl_wd_caption=>new_caption( ).
        lr_caption->set_text( 'Remarks' ).
        lr_table_column->set_header( lr_caption ).
        lr_column_group->add_column( lr_table_column ).
        lr_table->add_grouped_column( lr_column_group ).

  • Need to display column names in a dynamic page

    Hi
    I am displaying some rows returned from an sql querry in a dynamic page ...I hv written the sql querry between <ORACLE> AND </ORACLE> TAGS...The problem is ,i am not able to display the column names ...Why ? pl help....
    ram

    You must to use the htp package. Example:
    <ORACLE>
    begin
    htp.tableopen('1','CENTER',null,null,'BORDER="1"');
    htp.tableheader('NParte','CENTER');
    htp.tableheader('Descripcisn','CENTER');
    htp.tableheader('Precio/Unit','CENTER');
    htp.tableheader('Servicio','CENTER');
    htp.tableheader('IVA','CENTER');
    htp.tableheader('Total','CENTER');
    for cursor_cotiza in (select
    r.Nparte as Nparte, r.Descripcion as Descripcion,
    r.preciounit as preciounit,
    NVL(f.servicio,0) as servicio,
    round((0.145)*r.preciounit,3) as IVA,
    round((0.145)*r.preciounit,3) + r.preciounit +
    NVL(f.servicio,0) as PrecioTotal
    from
    carryin.repuestos r,
    carryin.casos c, carryin.facturacion f
    where r.NCaso =:NCaso
    and r.Ncaso=c.NCaso
    and c.Ncaso=f.Ncaso(+)
    and f.servicio(+)<>0
    union
    select
    r.Nparte as Nparte, r.Descripcion as Descripcion,
    r.preciounit as preciounit,
    NVL(f.servicio,0) as servicio,
    round((0.145)*r.preciounit,3) as IVA,
    round((0.145)*r.preciounit,3) + r.preciounit +
    NVL(f.servicio,0) as PrecioTotal
    from
    carryin.casosneq r,
    carryin.facturacion f
    where r.NCaso =:NCaso
    and r.Ncaso=f.Ncaso(+)
    and f.servicio(+)<>0
    ) loop
    htp.tableRowOpen('CENTER','CENTER');
    htp.tableData(cursor_cotiza.Nparte,'CENTER');
    htp.tableData(cursor_cotiza.Descripcion,'CENTER');
    htp.tableData(cursor_cotiza.preciounit,'CENTER');
    htp.tableData(cursor_cotiza.servicio,'CENTER');
    htp.tableData(cursor_cotiza.IVA,'CENTER');
    htp.tableData(cursor_cotiza.PrecioTotal,'CENTER');
    htp.tableRowClose;
    end loop;
    htp.tableclose;
    end;
    </ORACLE>
    This example show a table with header and borders. You must to see this package for more information.

  • Need to display COlumn headers dynamically in ALG Grid

    Hello,
    I need to display column headers dynamically in alv grid Display with its corresponding value.
    Column headers should be picked from a field in Final Internal table and its corresponding field will also need to pick from the same table.
    T_final... Suppose Field STCTS - (To pick coulmn headers)
                                      CCNGN - (To pick appropriate value for that column)
    Can anybody explain me how i can pass these values to ALV Grid using
    CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
      EXPORTING
        IT_FIELDCATALOG           = Y_I_FCAT
      IMPORTING
        EP_TABLE                  = DY_TABLE.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Any suggestions will be appreciated....
    Regards,
    Kittu

    Hi,
    Go thru this link, and the code of Mr.Dev Parbutteea
    Re: Probelm with Using Field Symbol in FM
    thanks
    Mahesh

  • Change column headers dynamically in OBIEE

    hey guys.
    We are working on a BI module for Finance. The data mart captures data for Actuals/Forecasts and Budgets for entire year by months (for example Jan2008 will have Actual/Forecast value and Budget value & similarly for other months of the year) .
    Now while displaying on the dashboard reports the column header for the current month should read as Actual and for coming months it should read as Forecast.
    Any suggestions as to where we can implement this business rule so as to make the column header dynamic.
    Thanks
    OBIEE_user

    Seems like you don't know Venkat yet...
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/

  • SSRS 2008 R2 - Column Headers of a tablix visible while scrolling - Then the column headers not visible on 2nd page onwards for PDF EXPORT. it's vice versa. Hence it is possible to provide both at same time ?

    Hi,
    I am using SSRS 2008 R2.
    I have two TABLIX in a report.  One is TABLIX with row/clumn grouping. 2nd one is flat view.
    Here each tablix is dispaly it's data on single page for each.
    My Requirement on First TABLIX is:
         1. I have to make column headers visible on scrolling down
         2. Export to PDF - column headers must be visible on all the pdf pages  for same tablix data.
    But ... either one is achieved at my end.
    so ... any suggestions please to achieve both at same time.
    thank you in advance.
    best regards,
    venkat.

    Hi G.V.Naidu,
    According to your description, the first tablix is matrix to use display data.
    In SSRS, if we want to fix matrix header visible while scrolling and repeat header columns on each page, we can select the corresponding option to enable this function. Please refer to the steps below:
    1. Right click tablix, and select Tablix Properties.
    2. Select “Keep header visible while scrolling” and “Repeat header rows on each page” to enable these function.
    If we are use table to display data, please refer to the article about Repeat Header / Keep Header Visible in Tables.
    http://blogs.msdn.com/b/robertbruckner/archive/2008/10/13/repeat-header-and-visible-fixed-header-table.aspx
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Assigning Column Headers Dynamically in ALV output

    Hello Experts,
    I have to create dynamic column headers based on the user input on the selection-screen. Basically users enter the period and the ALV output has to create the column headers dynamically for that along with some standard columns.
    For eg, The selection screen is like this:
    From:  'Q4' '2009'
    To      'Q2'  '2011'.
    Then I have to create 12 columns for the months and rest for the Quarters.
    Then the output will be like this:
    Material, Description,10/09, 11/09, 12/09, 01/10, 02/10, 03/10, 04/10, 05/10, 06/10, 07/10, 08/10, 09/10, Q4/10, Q1/11, Q2/11
    I have built the logic to determine the number of colums for the periods based on input.
    By reading other posts, I have learnt that I have to use call method cl_alv_table_create=>create_dynamic_table to get the functionality.
    I have also looked at program BCALV_TABLE_CREATE for some help. It only has column headers in increasing order. But I am not able to understand How to pass the Column Header Label (for eg 10/09 or Q1/10) to the fieldcat dynamically.
    Is there any blog/sample prog close to my req? Can anybody please please help me. I grealy appreciate it.
    Thanks.

    Hi Lope,
    You need to filll column heading based on dynamic internal table column names.
    In your final internal table, you will have some column names like '1009, 1109, 1209' .
    While filling fieldcatalog you need to put your logic for column heading text.
    If column name is 1009, concatenate '10 '  '/'   '09', or calculate the quarter 10 falls into ,and display Q4/09.
    Regards,
    Nisha Vengal.

  • Sorting a Collection with dynamic columns using a custom compare function for multiple columns

    I need help and ideas on how to sort a ListCollectionView.  My problem is complicated by 3 requirements-
         1. The column values contain HTML tags that needs to be removed before sorting (use custom compareFunction to strip HTML)
         2. The columns are dynamic, so dataField names are not known at compile time (need a single compareFunction for all columns)
         3. The data is used in an AdvancedDataGrid so multi-column sorting is required
    I have figured out how to solve any 2 of the 3 requirements.  However, I am having difficulties supporting all 3 requirements.
    Any help or ideas would be greatly appreciated.  Thanks.

    After playing with this some more I think I've figured out a solution.  This seems to work in initial testing.  Also, there is not a need to capture the current sort column in the headerRelease event which many offered solutions suggested.  Another benefit to this solution is that keyboard initiated sorting is handled also.  Whereas the headerRelease event is only triggered by a mouse click on the column header and special handling is required if the user uses the keyboard to access the column header.
    One point that I don't understand is how ascending/decending order is determined.  Behavior seems to be different between a single SortField versus multiple SortFields.  Notice how the compareResults are handled for the different situations.  Anyone out there know why???
     private function colSortCompareFunction(obj1:Object, obj2:Object, fields:Array = null):int{
         var compareResults:int = 0; 
         var newObj1:Object = new Object(); 
         var newObj2:Object = new Object();
          // should not be a condition that is met   
         if (_dataProviderDetails.sort.fields == null)     {
              var s:Sort = new Sort(); 
              var f:Function = s.compareFunction; 
              return f.call(null, obj1, obj2, fields);     }
         // when a single column is selected for sorting   
         else if (_dataProviderDetails.sort.fields.length == 1)     {
              var firstFld:SortField = _dataProviderDetails.sort.fields[0];
              newObj1[firstFld.name] = stripHTML(obj1[firstFld.name]as String);          newObj2[firstFld.name] = stripHTML(obj2[firstFld.name]
    as String);
              compareResults = ObjectUtil.compare(newObj1[firstFld.name], newObj2[firstFld.name]);
               return compareResults;     }
         // when multiple columns are selected for sorting   
         else       {
              for each (var fld:SortField in _dataProviderDetails.sort.fields)          {
                   newObj1[fld.name] = stripHTML(obj1[fld.name]
    as String);               newObj2[fld.name] = stripHTML(obj2[fld.name]
    as String);
                   compareResults = ObjectUtil.compare(newObj1[fld.name], newObj2[fld.name]);
                    if (compareResults != 0)               {
                        if (fld.descending)                    {
                             return compareResults * -1;                    }
                        else                      {
                             return compareResults;                    }
               return compareResults;     }
    Does anyone see any problems with this solution?
    NOTE:  stripHTML(String) is a simple function using regular expression to remove HTML tags.
    Thx

  • Getting column headers dynamically from input parameters in alv.

    Hi all,
    I am new to abap, can any one help me in getting column header dynamically through parameters in alv ?
    Eg:-
    i Have parametars for days field ,
    user inputs days as 10 20 30 40.
    Now I want to display in alv column headers as:-
    1st column-  'FROM 0 TO 10'
    2nd column- 'FROM 10 TO 20 '
    3rd column- 'FROM 20 TO 30'
    4th column- 'FROM 30 TO 40'
    5th column- 'FROM 40 TO 50'
    6th column- 'FROM 50 TO 60'
    thanks in advance........

    Check this code snippet:
    Step 1: Create a dynamic table based on the input in the selection screen.
    TYPE-POOLS: abap.
    DATA:
      lr_structdescr    TYPE REF TO cl_abap_structdescr,
      lr_tabledescr     TYPE REF TO cl_abap_tabledescr,
      lr_datadescr      TYPE REF TO cl_abap_datadescr,
      lt_components     TYPE abap_component_tab,
      ls_component      TYPE abap_componentdescr,
      lr_wa             TYPE REF TO data,
      lr_tab            TYPE REF TO data.
    DATA: lv_index TYPE sy-index.
    DATA: lv_index_num(5) TYPE n.
    DATA: lv_index_char(5) TYPE c,
          lv_iter TYPE i,
          lv_low TYPE numc2 VALUE 0,
          lv_high TYPE numc2 VALUE 10.
    DATA: lr_alv TYPE REF TO cl_salv_table.
    FIELD-SYMBOLS: <fs_field> TYPE ANY.
    FIELD-SYMBOLS: <fs_wa> TYPE ANY.
    FIELD-SYMBOLS: <fs_tab> TYPE table.
    PARAMETERS p_numcol(2) TYPE n DEFAULT 50.
    START-OF-SELECTION.
      lv_iter = p_numcol DIV 10.
      DO lv_iter TIMES.
        IF sy-index > 1.
          lv_low = lv_low + 10.
          lv_high = lv_high + 10.
        ENDIF.
        lv_index_num = sy-index.
        lv_index_char = lv_index_num.
        CONCATENATE 'FROM' lv_low 'TO' lv_high INTO ls_component-name
        SEPARATED BY '_'.
        ls_component-type =
        cl_abap_elemdescr=>get_p( p_length = 10 p_decimals = 2 ).
        INSERT ls_component INTO TABLE lt_components.
      ENDDO.
    * get structure descriptor -> lr_STRUCTDESCR
      lr_structdescr
      = cl_abap_structdescr=>create( p_components = lt_components
                                     p_strict = space ).
    * create work area of structure lr_STRUCTDESCR -> lr_WA
      CREATE DATA lr_wa TYPE HANDLE lr_structdescr.
      ASSIGN lr_wa->* TO <fs_wa>.
      lr_datadescr = lr_structdescr.
      lr_tabledescr
      = cl_abap_tabledescr=>create( lr_datadescr ).
    * Create dynamic internal table
      CREATE DATA lr_tab TYPE HANDLE lr_tabledescr.
      ASSIGN lr_tab->* TO <fs_tab>.
    * Populate the internal table
      DO 10 TIMES.
        DO.
          lv_index = sy-index.
          ASSIGN COMPONENT  lv_index  OF STRUCTURE <fs_wa> TO <fs_field>.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          <fs_field> = sy-index.
        ENDDO.
        APPEND <fs_wa> TO <fs_tab>.
      ENDDO.

Maybe you are looking for