Dynamic report heading columns

Hi
my report has 0-30, 31-60,61-90,......... as report heading ,it is given as boilerplate in paper layout , I want to make it as dynamic by select a list of days like 30,40,45,......etc , if I give 100 days 
it should come like  0-100,101-200,201-300, 301-365, above 365, total  that is if i give a date 31 dec 2013 , and 100 days  .
how to make the layout structure dynamic ...... pls help
thanks in advance

Making Dynamic layout in the Forms / Reports tools is very difficult (unlike eg. ADF Framework).
One way to simulate the dynamic layout in the Reports is to have a generic columns (eg. column_1, column_2 ... etc.), but the number of generic columns must be greater or equal to the number of "real columns".
Another way is that you put all the "real columns" into one column, which must be well-formatted (with the correct number of blank characters, etc.).
As for the dynamic SQL query  in Reports, I think it is better to use the dynamic ref cursor, but the Reports lexical parameters.
In order to use dynamic ref cursors in Reports, you need a little trick. See this old thread:
Can we create report based on stored procedure
Regards,
Zlatko

Similar Messages

  • How to make dynamic report heading in bex query

    Hi Experts,
    i have a bex query for the following rows and columns.
    Proj   WBS   NETWROK   ACTIVITY  are in Rows.  
    Scope  work      total work are in Columns.
    now i have to    show  the report heading dynamically based on proj.
    HEADING1.                         PROJ TEXT
    HEADIND2                       REPORT FROM    XXX  TO YYY   where XXX & YYY  are dates input by the user on selection screen.
    Please help me how i can achieve this heading in BEX.
    Regards
    vikas

    Hi,
    If you are using BEx analyzer :
    On the top yo will find button say Insertnavigation pan, here you will get option to display the rows ( in your case Project) look for multiple options like tab dimension, display setting - explore it
    If you are using BOBJ ANALYSIS, there also in display setting you have options to display variables, filters and even the characteristics.
    Thank-You.
    Regards,
    VB

  • Tooltip for IR report header column

    Hello Everyone,
    I need help in setting up a tooltip for report hearder in interactive reports. I tried the following methods:
    1) By assigning a div title for column Deptno(This code is taken from the html source of IR report column):
    <th id="DEPTNO" >
    <div id="apexir_DEPTNO" onclick="gReport.controls.widget(this.id)" style="text-align:center;">
    Deptno
    <div title="Tooltip text for first div">&lt/div>
    </div>&lt/th>
    2) With javascript & css : I put the following line on report header edit section:
    < a class="tooltip" href="#">Tooltip<span>This is the crazy little Easy Tooltip Text.</span></a>
    Nothing really solved my problem. Is there any easy way of resolving the above issue?
    Thanks in advance for your help.
    - Parveen

    Hi,
    This might help
    http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:2311800346467196
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Report - header columns(Heading) unscrollable

    HI 1
    I have a report in list display. which has the header with headings of the report and under which the report follows i.e , in header , material , plant , item,net price ect is mentioned and the detaisl about it follows under it. Now when I scroll down the report the headerr details alos scrolls up and it becomes difficlut to see what is against what if I have come down in the report as the header has vanished upwards on scroll. How do I make my report header static at one place and teh items just scrolls under it so that w ecan easily locate what is against what.
    Thanks
    Aarav

    SO you mean to say that I ahve remove the write statements from my reports and add teh column headings in the list headings side by sude in the row mentioned there , but my headings are in three lines one under each other . If you run ME2M report and see a output in list display then you will see that the header is constant and the item sunder it move , that is how I wnat it to happen in my report too. Kiundly suggest please.
    Thanks

  • Dynamic Report heading

    I have a stored procedure from MS SQL backend and the result heading is WeekResult1, WeekResult2, WeekResult3... etc until Week20Result for report datasource.
    I would like to assign the heading at run time to May/01/2013, May/08/2013, May/15/2013 ... etc base on user enter date range.
    I have folloing code on report before export event
    <cfstoredProc
    datatsource = "MySource"
    procedure = "MyColumnHeading"
    <cfprocparam
        cfsqltype="cf_sql_date"
        value="#StartDate#">
    <cfprocparam
        cfsqltype="cf_sql_date"
        value="#EndDate#">
    <cfprocparam
        cfsqltype="cf_sql_date"
        value="#StartDate#">
    <cfprocparam
        cfsqltype="cf_sql_numeric"
        value="#DateDiff#">
    <cfprocparam
        cfsqltype="cf_sql_numeric"
        value="#DateDiffType#">
    >
    I would like to know how can  I assign my 20 columns heading record by record from stored procedure result.
    Your help and information is great appreciated,
    Regards,
    Iccsi

    it seems that the controls are client side, ColdFusion Server does not know anything about client side controls, if it support Javascript then it should be able to set the caption on the label,
    regards,
    Iccsi,

  • Report header columns

    i need to change column headers for vehicle consumption report RMCI1100 to suite client requirements

    Hi,
      RMCI1100 is a standard program if u want to edit it, You need to have access key.
    Other wise copy that program and in the menubar
    <b>Goto>Text elements>Column headings</b>.
    There you can give you own headings.
    If you want dynamic column headings use sy-tvar0..9 system fields.
    and pass place holders in the Column headings.
    And Let me know whether you got the answer or not?
    Reward if helpful
    Sandhya.M

  • Dynamic Report Heading - Classical report

    Hi,
      Could you please let me know how do I change the heading of a classical report based on the user selection on selection screen. I want to display the selection text that the user has selected in the selection screen as the heading for the report.
    Timely help is highly appreciatable.
    Thanks in advance.
    Regards,
    Farhana.

    You will have to insert some WRITE instruction in the TOP-OF-PAGE. You may read the current selection via FM [RS_VARIANT_ADMIN_DATA|https://www.sdn.sap.com/irj/scn/advancedsearch?query=rs_variant_admin_data&cat=sdn_all] and print it using FM [PRINT_SELECTION|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=print_selection&adv=false&sortby=cm_rnd_rankvalue]. (Look at this sample in Code Gallery [how to print selection screen data in report |https://wiki.sdn.sap.com/wiki/display/Snippets/howtoprintselectionscreendatain+report])
    Regards

  • Dynamic report - how to....? Exitvariable???

    Hello,
    I want to create a very dynamic report.
    Column A
    Column B
    Column C
    Column A should display restricted key figure for a variable year/month.
    Column B should display restricted key figure for a variable year.
    Column C should display restricted key figure for a variable year - 1.
    I only want to work with one(!) selection variable which is year/month.
    The year should be derived from year/month.
    Example:
    Selection variable for year/month = 07.2009.
    Result in
    Column A restricted to 07.2009.
    Column B restricted to 2009.
    Column C restricted to 2008.
    Is this possible? How are the steps? Do I have to work with exit variables?
    Only one selection variable .

    Hello,
    Yes, you can achieve this by User Exit. In the user exit get the user input date and get the current , previous , next year as per your requirement.
    [User Exits in SAP BW|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/23f2f094-0501-0010-b29b-c5605dbdaa45]
    For coding sample [User Exit Examples|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6378ef94-0501-0010-19a5-972687ddc9ef]
    [Enable Trend Reporting by Manipulating Variable Value|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a]
    Thanks
    Chandran

  • Dynamic action in column of classic report

    Good day master!
    Hi im new in apex,, so im dynamic ondering if its posible to create a dynamic action in the column of classic report in apex?
    i'm trying but its not working my problem goes like this..
    i have a classic report stock_replenish
    columns
    item_code
    price
    supplier_name
    item_code is a pop-up loved by sql
    what i want to do is when the user choose a item_code it will also return the price and supplier_name
    i can do that in apex form but i dont know if iits posible to clasic report?
    please help!
    ty
    Myke;l

    Dynamic action on report columns is possible but not as straigth forward as on items.
    First you can't select "report colum" as selection type for the dynamic action. Use jQuery Selector instead.
    See the [url http://api.jquery.com/category/selectors/]jquery documentation  on possible selectors.
    I prefer to use something like[name='f01'].
    Use the developer tools of your browser to see the name of your report column.
    Because you can't submit a single report cell value with the action "Set value".
    You have to use a combination of a action "Execute javascript" and a ondemand process.
    The javascript code is something like
      var elementId,idParts,row;
      /*Determine the id of the element that has triggered the dynamic action*/
      elementId = String(this.triggeringElement.id);
      /*The id of a item in a report column consists of to parts the name and the rownumber*/
      idParts = elementId.split('_');
      /*The second part is the rownumber we need that to set the value in the right row later on*/
      row = idParts[idParts.length-1];
      /*This calls the ondemand process*/
      apex.server.process ( "MANAGER_EMAIL", {x01:$v(this.triggeringElement),x02:row}, {success: function( pData ) { $s(pData.r,pData.d) }} );apex.server.process(name ondemand process,values to be submitted,options)
    {x01:$v(this.triggeringElement),x02:row}
    This submits the values of the triggering element and the row on which all the action is happening.
    x01 refers to apex_application.g_x01
    {success: function( pData ) { $s(pData.r,pData.d) }}
    The succes option defines a function that is executed upon succefull completion of the ondemand process.
    The ondemand process returns a json object. Which we can refer to in the javascript function with pData.
    In our ondemand process we are defining the json object as having to properties.
    d and r . d is the display value and r is the id of the element to be set.
    $s(r,d) is a [url http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/javascript_api.htm#CDEEIGFH]apex javascript function that sets the value d to item with id r.
    Now the server side code. This is an application process with process point Ondemand.
    Which is something like this.
    declare
      cursor c_emp(b_employee_id in number)
      is
        select emp.email
        from   oehr_employees emp
        where  emp.employee_id = b_employee_id
      col_emp_email oehr_employees.email%type;
      v_regel       number;
    begin
      /*Get the employee email*/
      open  c_emp(apex_application.g_x01);
      fetch c_emp
      into  col_emp_email;
      close c_emp;
      /*Calculate the rownumber do this only if the triggering element is a popup lov*/
      v_regel := to_number(apex_application.g_x02) + 1;
      /*Create the json header*/
      APEX_PLUGIN_UTIL.PRINT_JSON_HTTP_HEADER;
      /*Print out the json object*/
      sys.htp.p('{"d":"'||col_emp_email||'","r":"f03_'||lpad(to_char(v_regel),4,'0')||'"}');
    end; For specification of the JSON notation see [url http://www.json.org/]http://www.json.org/
    To see this in action I have set up a [url http://apex.oracle.com/pls/apex/f?p=VANBAREN_FORUM_TRY_OUT:TBDA:0&c=VANBAREN]demo.
    Change the manager and the manager email will change.
    I hope this is enough to get you started.
    If you have a problem in translating the above code to your specific situation set something up on apex.oracle.com. Then the help can be more specific to.
    Nicolette

  • Tooltip for IR report(Apex 3.2)header column

    Hello Everyone,
    I need help in setting up a tooltip for report hearder in interactive reports. I tried the following methods:
    1) By assigning a div title for column Deptno(This code is taken from the html source of IR report column):
    <th id="DEPTNO" >
    <div id="apexir_DEPTNO" onclick="gReport.controls.widget(this.id)" style="">
    Deptno
    <div title="Tooltip text for first div">&lt/div>
    </div>&lt/th>
    2) With javascript & css : I put the following line on report header edit section:
    < a class="tooltip" href="#">Tooltip<span>This is the crazy little Easy Tooltip Text.</span></a>
    Nothing really solved my problem. Is there any easy way of resolving the above issue?
    Thanks in advance for your help.
    - Parveen
    Edited by: Parveen Sehrawat on Mar 14, 2012 2:58 PM

    Hi,
    Blog post example do not work with APEX 3.2
    By default on APEX 3.2 you do not have jQuery and dynamic actions.
    You can do same with APEX 3.2 if you use htmldbQuery plugin
    http://sourceforge.net/projects/htmldbquery/
    Integrate plugin and jQuery to APEX
    Then create page process before regions
    DECLARE
      l_sql VARCHAR2(32700);
    BEGIN
      l_sql := '
      SELECT COLUMN_ALIAS,
        HELP_TEXT
       FROM APEX_APPLICATION_PAGE_IR_COL
      WHERE APPLICATION_ID = :APP_ID
        AND PAGE_ID = :APP_PAGE_ID
        AND HELP_TEXT IS NOT NULL
      HTP.p ('<script type="text/javascript">');
      -- Create JSON object.
      HTP.prn ('var gIrColHelp = $u_eval(''(');
      APEX_UTIL.JSON_FROM_SQL(l_sql);
      HTP.prn (')'');');
      HTP.p ('</script>');
    END;Add to page HTML header
    <script type="text/javascript">
    $.htmldbIrReady(function(){
    $.each(gIrColHelp.row,function(i,jd){
      $($x("apexir_"+jd.COLUMN_ALIAS)).parent("th").attr({"title":jd.HELP_TEXT});
    </script>See working example
    http://actionet.homelinux.net/htmldb/lspdemo?p=220
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Edited by: jarola on Mar 15, 2012 4:53 PM

  • Fixed columns in dynamic report ( ?horizontal-break-table:1? )

    Hi
    I have a dynamic report that could strech over more than one page horozontally. I use the <?horizontal-break-table:1?> tag on my first header column to show this on every page, but I also need to show the last column on every page. That meens that I have a fixed column on each end of my dynamic report, the last one is just a signatur field so its no logic to it , but its important to show it on every page.
    Any tips on this ?
    PS.
    Sry if this is a noob question, this is not really my knowlegde area, but have to fix it anyhow :)
    Tim

    Robert,
    It sounds like you want a completely populated table regardless of the input data.  To achieve you will need to create a "dummy table" in your database, either as an actual table, or by just doing a view, it's your choice.  Here is a method for the view:
    select '2009-M01' as Dim1
    union
    select '2009-M02' as Dim1
    union
    select '2009-M12' as Dim1
    Next you'll have to introduce this to your universe as a "dummy table".  In WebI, go to Edit Query and click add query, then add Dim1 to your result objects panel.  After you run your query you can perform Merge Dimensions on Dim1 to the first dimension from your report, and voila, you'll have a fully populated table.
    Thanks,
    John

  • Sub report in column header

    Infinite loop creating new page due to column header overflow.
    I have a sub report on the column header which works,
    Because my sub report return different records from data source, it fails and get infinite loop error message like above when I have 9 records, it works less than 9 records.
    I would like to know my sub report returns records some times more, are there any place for my subreport?
    Are there limit for sub report?
    Your help and information is great appreciated,
    Regards,
    Iccsi,

    Thanks for the message and help,
    My sub report link to a data soruce which is a stroed procedure running from MS SQL server.
    The stroed procedure returns data based on data base what data in the table.
    It looks like the sub report on the Report Builder limited by the length of the report band.
    I tried to move to column header, column footer, report footer all the same, when the sub report growth then it fails to generate the reports.
    Regards,
    Iccsi,

  • Dynamic lenght in report heading

    Hi experts,
    I need to pass dynamic length in report heading.
    i.e.., REPORT zrep LINE-SIZE dyn_len NO STANDARD PAGE HEADING.
    So that my report output width will be in different length based on value dyn_len.
    Any solution or alternative in simple list display. Pls suggest ....
    Thanks in advance.
    Zak.

    Hello,
    Do not specify LINE SIZE in that case.
    Thanks,
    Jayant

  • Report Formatting with Dynamic Height Header/Footer

    I need to generate a printable report (pdf if possible) with a:
    1) Header - Dynamic Height based on recordset output
    2) Body - Recordset output, may carry over to multiple pages
    3) Footer - Dynamic Height based on recordset out
    In short, the whole page is dynamic- The header and footer need to be on every page and whatever height is left over to fit within the print area goes to the body and the line item output of each record (think invoice).  Then the number of pages will depend on how long it takes to output the body recordset (but the header and footer MUST be on each page).
    I have been trying to get this to work using cfdocument since CF7 and have never had any luck. It has not worked due to the reason that since the header and footer are dynamic height, I do not have any way to set the margins properly on page generation (so it shrinks the header or leaves excess whitespace).
    Anyone recommend the best way to go about this? I have heard about the report builder and am not sure if that will fit these requirements.  I appreciate any assistance!

    When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
    Hope that helps
    Paul

  • Dynamic selection of columns in report and print the output

    Hi,
    I tried to have dynamic selection of columns in SQL query using lexical parameter. The hitch is how to print those selected column in excel ouput ?
    Suppose
    I have select &col from table_name
    Initial value of &col is col1 and in data layout only col1 appears
    where &col was replaced with more than a column (col1,col2,col3)
    now how to print the column selected at the run time,
    i have coded in Before Report Trigger
    :cell_val := ' <td><rw:field id:"cl1" src="col1"></rw:field></td>
    <td><rw:field id:"cl2" src="col2"></rw:field></td>
    <td><rw:field id:"cl3" src="col3"></rw:field></td> ' ;
    and this user parameter was replaced in web source using JSP expression
    <rw:getvalue id: "v_cell" src:"cell_val"></rw:getvalue>
    <rw:foreach src:"g_val">
    <table>
    <tr>
    <% =v_cell%>
    </tr>
    </table>
    </rw:foreach>
    but in the output i can see only blank columns
    Regards
    Suresh

    The strings replaced by expression <%= v_cell %>
    should print the field values contained in col1,col2,col3 columns, but nothing is printed . i think the custom tags (rw...) are not replaced by the jsp expression properly.

Maybe you are looking for

  • In subject to tv and macbook pro connectivity.

    Hi people,please tell me how to connect my sony bravia bx320 lcd 32" to macbook pro,this is so i can watch movies on my lcd via macbook,so please explain what should i do.secondly please tell is there any Mac version for vlc player and of any video c

  • Transfer data to new computer

    I just brought home a macbook pro 13 to replace my 5 yr old macbook pro (display died). As i was starting it up it asked me if I wanted to transfer data from another computer. I chose "not now". How can I get back to that prompt?

  • Re: Help Required with Broadband Problem

    Nuketamilnadu I cannot see that you have visited these forums to ask for help, unless it was under a different name? There are some useful help pages here, for BT Broadband customers only, on my personal website. BT Broadband customers - help with br

  • GT780 Disk Read Error, Boots fine after 15-45 minutes

    Hi. I've been having a problem with my laptop for the past few months now. When I start it up I end up getting a disk read error but after a short time it seems to boot up properly. I will have this problem for a couple days and then the problem disa

  • [SOLVED]How do I keep LibreOffice out of the upgrade?

    Hi, Simple question: What info do I consult so that my OpenOffice does not get replaced with libreOffice? Or is LibreOffice nothing to be afraid of? Tnx Thor Last edited by Thor@Flanders (2011-03-29 07:37:57)