Including item names in report column headings

I have a report where I want to use page items in the column headings. Trying to define these using (for example) &P1_ITEM. in the report definition / custom heading does not seem to work. I can define a simple PL/SQL function to return the heading, but I have many columns and it will mean that I'll have to define a function for each column name which does not seem v elegant. Am I missing something obvious?
Thanks Simon

Hi Simon
Column Attributes
Headings Type:  Column Names  Column Names (InitCap)  Custom  PL/SQL  None choose PL/SQL
Function returning colon delimited headings:
DECLARE
vHEADINGS VARCHAR2(1000);
BEGIN
vHEADINGS := 'NAME:SURNAME:CODE:CELL_NR:&P1_CELL_1.:&P1_CELL_2.:&P1_CELL_3.:' || :XXX || ':' || :YYY || ':' || :ZZZZ || :A || ':' || :B || ':' || :C;
RETURN vHEADINGS;
END;Regards
Mel

Similar Messages

  • Javascript in report column headings?

    Hello,
    I'm wondering if it's possible to be able to use Javascript in report column headings, so that when the user hovers the mouse over the column heading name in the report, a pop-up appears with an explanation of what that column is. Usually I use Javascript on page items, but in this case, the column headings aren't page items, they are derived from the SELECT statement that makes the report. Is this possible using Javascript? Or, is there something I'm not aware of that Apex can do, such as the "Optional Label with Help" but for column heading names?
    Thank you,
    Laura

    Hello Laura,
    Each report column headings has an ID equal to the column name/alias as it appears in your select statement. You can use this ID to directly access the column header DOM node, just as you are doing with a page item.
    In your case, you can use the ‘title’ attribute to get what you want. If your column ID is ‘COL1’, you can use something like this in the footer of your report region:
    $x(‘COL1’).title = ‘Help Text’;Of course, having an ID allows you to use any JavaScript code you need.
    Hope this helps,
    Arie.

  • Title= Attribute for report column headings

    Hi All,
    Is there anywhere we can specify the "title=" attribute for each of the report column headings. Unfortunately we are on Apex 2.0
    This is to facilitate the use of screen readers, and I can see nowhere this can be entered.
    We can use an anchor tag in the heading field of the column attributes which is fine such as <a title="test indicator indicator">TST </a>
    But if we apply a sort to this field, the Sort doesn't work.
    Thanks,
    Noel

    Hi Noel,
    You need to change the column heading to wrap the text in a tag that has the title attribute.
    For example, if you had a column called Name, change this to &lt;span title="Name"&gt;Name&lt;/span&gt;.
    Column sorting will still work.
    Regards
    Andy

  • Report column headings and title tag

    Is there a way to add a title tag (similar to the alt tag for images) to my report column headings, so that when I hover over the column headings I get a description of the column?

    I found a solution here:
    Title= Attribute for report column headings

  • Tooltips for report column headings

    Hello,
    I have a normal report, and I wanted to have either a tooltip or a cluetip for the report column headings. Can anyone please help me with this issue.
    thanks,
    orton

    Hi!
    One way would be to adjust the report template. But this is quite difficult if you haven't done this before.
    Maybe this forum post helps: Re: oracle apex and extjs grid table
    Hmm on the other side why don't you just add some html tags inside the report column headers? I would suggest this example: http://apex.oracle.com/pls/otn/f?p=25110:5
    &lt;span TITLE="header=[Help] body=[Helptext]";>YOUR COLUMN HEADER&lt;/span>Best regards,
    Tobias

  • Report Column Headings based on SQL Query

    Hi ,
    I am working on creating a SQL query based report. However, my column headers for this report are stored in a table and hence, I need the column headers to be based on a sql query also.
    Can you give me some pointers on how to do this ?
    Thanks!
    Lavanya

    Lavanya,
    The report column attributes page has a radiogroup of column heading types. One lets you specify a PL/SQL function that returns the headings.
    Scott

  • SQL Report column headings

    How to make the column heading bold / apply color to the column heading when Heading type used is PL/SQL ?
    Sanjay

    Lavanya,
    The report column attributes page has a radiogroup of column heading types. One lets you specify a PL/SQL function that returns the headings.
    Scott

  • Clasical Report column headings display

    Hi ABAPERS
        iam working on clasical report. in that i have to display 16 field headings.
    when executing the report, the column headers should be frozen at the top so that when the user is scrolling down, they can see what the column title is.
    how can i over come this problem.

    Hi,
    you mean the column headings should be displayed even though
    the user scrolls down the output.
    For classical reports, according to me it is not possible.
    We will be using the write statement to display the records,
    so it is static for the report.
    If you want the output what you are expecting then go for ALV's.
    Regards,
    Venkatesh

  • Underline behavior in sortable report column headings

    Hi -- I have a report that uses generic columns, all of which have been given custom names. All columns
    except the edit link are sortable.
    When the report is first displayed, all column headers are underlined. The first column happens to be
    the one used for initial, default sorting. When another column is chosen as the sort-by column,
    the underline goes away for the first column. This happens every time a new column is sorted-by --
    the underline goes away on the previous sort column. If a column is re-chosen to sort by, the
    underline reappears.
    Is this behavior intentional? Is there a way to change it so the underlines don't disappear?
    Thanks,
    Carol

    Hi Carol,
    I have same sort of problem with my report when I have imported the page from another application. I have fixed it, what i did - Click on edit page >> Click on the report name under the regions >> cut or copy report query and leave the query section blank >> save the page run it. So it will not display anything as you do not have any query there. Go to Edit page again >> click on the report name >> paste the query into the query section and save the page. Run the application again, it should work.
    I guess when you have generic column selected the default format get corrupt and does some weird behavior.
    Hope this will help.
    Thanks,
    M Tajuddin
    http://tajuddin.whitepagesbd.com

  • Interactive Report Column Headings and Row Height

    I am using the div style="width:350px;" method to control the width of columns in various interactive reports. That works fine except for the following:
    1. When creating filters, the <div...> stuff shows up along with the actual column heading, thus confusing some end users
    2. Even when I uncheck the "Use same text for single row view" checkbox and then provide a simple single row view label, the <div> stuff still shows up on the single row view
    Does anyone have a better solution?
    Also, does anyone know of a way to limit the row height within an interactive report row? I have some columns of data that contain a large amount of HTML data and I'd like to be able to limit the number of rows that show on the report.
    Is Oracle planning to provide some better control over the Interactive Report columns in another version? The Interactive Report is such a huge improvement in usability in APEX - it would be great to take it to another level by providing some better control over column width and row height.
    Edited by: DaleB on Jun 18, 2009 8:54 AM
    Edited by: DaleB on Jun 18, 2009 8:54 AM

    Dale,
    Unfortunately we don't have much we can use to do what you would like. I would have said it's impossible until version 4 but you could actually do something similar to what Roel has done. His trick is in the edit button. He changed the edit button to use an "onload" call to a JavaScript process. You could do the same but call a process that goes across the rows and styles each column. Now because you don't have a way to identify the column (can't use the order because the end user could change it) you'll have to write the code to look at the top row first and then style the appropriate column. As far as I can tell, this would be quite difficult and inefficient. Having said that if you need it that bad and would like some help with it, put up an example application on apex.oracle.com and provide the workspace/username/password and I'll take a look.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How to get the item name from a column in an interactive report?

    I created an interactive report. Then on the same page I added a tabular form region. What I want to implement is that, when I click a column link button on a specific row, the name of the row will be passed to the tabular region, so that the tabular region can list the corresponding items that belong to that specific row. But I have no idea what the name it is. Any idea? Thanks!

    Thanks! I've got it work! Now I can associate many product to a specific ProductNumber.
    Another issue comes up: I want to be able to add more products in this category. But when I press the "Add Row" button, it generates a new line but with ProductNumber null. This results me in failing to insert the new record, because the rule is that ProductNumber can't be null, and also it can't be assured that the new record is associated with this category (ProductNumber). What can I do to make it automatically come up with the same ProductNumber for new records? I guess some kind of a trigger may be needed, but I don't know how to do it.
    I made a screenshot here: http://img25.imageshack.us/img25/3051/98605982.png
    Thanks!

  • BUG: Dynamic report column headings not working with some templates

    Using Apex 2.0, we are trying to create a vertical report with dynamic labels like &P26_REF_RECEIVED_DATE_L. based on items populated by PL/SQL.
    This seems to work fine for some templates but not for others. With a horizontal report template we get output like:
    <th class="t4ReportHeader" id="REF_RECEIVED_DATE">Received</th>
    <td  headers="Received" class="t4data">29-MAR-2007</td>But with the vertical template we get:
    <th>&P26_REF_RECEIVED_DATE_L.</th><td>29-MAR-2007</td>Also, if we use "default: vertical report, look 1" we see "&P26_REF_RECEIVED_DATE_L." in the output, but with "default: vertical report, look 2" we see "Received".
    Message was edited by:
    Tony Andrews

    have you checked that your report template has a
    valid value for the "Column Heading Template"
    property?This template has nothing in the "Column Heading Template" because it is designed to show the data in this form:
    Heading1 - Value1
    Heading2 - Value2
    Heading3 - Value3
    Hence both the heading and the data appear in the "Column Template 1" property as follows:
    <tr><th class="t3header">#COLUMN_HEADER#</th><td class="t3data">#COLUMN_VALUE#</td></tr>
    Maybe it is an Apex limitation that the #COLUMN_HEADER# value can't be accessed from this subtemplate? Yet somehow it works with "default: vertical report, look 2" (which I realise isn't a template as such).

  • Include item name in index of interactive pdf?

    I am converting a 50+ page product catalog from print to interactive  It has a 3-page index with product names and page numbers.
    Currently,  only the page numbers are interactive. How do I make each line (product name and page number), clickable?.
    Do I have to create a text anchor hyperlink for each item? There are 35 pages containing product information - do I create a shared achor for each page and link the items to the shared anchors?

    I am converting a 50+ page product catalog from print to interactive  It has a 3-page index with product names and page numbers.
    Currently,  only the page numbers are interactive. How do I make each line (product name and page number), clickable?.
    Do I have to create a text anchor hyperlink for each item? There are 35 pages containing product information - do I create a shared achor for each page and link the items to the shared anchors?

  • Substitution string used in custom Report column name does not display in PDF version of report

    I am using Apex 4.2.6.00.03, Apex Listener 2 via Glassfish4 and have set up all my applications and reports on this system.  We previously used Oracle 10.2, with Apache with a custom fopping document.
    My issue is that I have a report that has custom column headings using a substitution string to pull in the begin or end date for the report.  When the report is run and displayed, the column headings appropriately display the date.  However, when I try to set up the Print to PDF option, the column headings are not displaying correctly.
    Is it possible to use a substitution string in the column heading?  I am able to use the substitution string in the Page Header and Page Footer and those display correctly.
    In the Report Attributes setup I have set the "Strip HTML" to Yes and I have four columns that are using the &"ITEM NAME". string.  See below for actual display:
    The report column headings in APEX displays correctly (bold is the substitution detail): 
    Fund    Account Description          Balance 07/01/2014     Budget/Goal FY 14-15     YTD Actual 02/28/2015         Ending Balance 02/28/2015
    In the Print Attributes setup, when I get to the Report Columns section, the Heading column displays the headings as set up in the Report Attributes custom and I am not able to edit these names.  See below:
    In the version of the report that is Printed to PDF I get the following for display:
    Fund           Account Description           Balance %26amp;P347_BEGIN_DATE.     Budget/Goal %26amp;P347_FY.     YTD Actual %26amp;P347_END_DATE.     Ending Balance %26amp;P347_END_DATE.
    Any assistance would be greatly appreciated.
    Thanks,
    Pat

    First, the misspelled word is a test object and not data.
    Second, all data display correctly.
    Third, text object is displaying the old misspelled word.
    Fourth, I have eliminated the possibility that problems in of my pdf export routine cause this issue by exporting directly from Crystal Reports Viewer. I print the report to the crystal report viewer. The report looks good. The text object is spelled correctly. Then I click the Crystal Reports viewer's export button in the left upper corner and I export to both EXCEL and PDF. The excel export looks good. The pdf export is misspelled. All the export occurs internally in Crystal reports.
    Fifth, I found outthat all users who have this problem have the ADOBE PDF writer installed. I am just suspicious that ADOBE writer is interferring with Crystal export
    Sixth, I cannot recreate this problem on any of our development and test machines. It only happens on end-user laptops.
    Seventh, I changed the name of the report that had this problem and created a new version and installed on end-user laptop. The behaviour still persists. User saved the report as both RPT and PDF. RPT export looks good. PDF version has the spelling problem. Data on both reports is up-to-date and good. I copied the same RPT export to my PC and exported it to PDF, the pdf looks good. That is why I think something on the end-users laptops is causing the export to use some cached template.
    One more thing I did was to change the report name in VB.NET project, recreated a new package and installed on end-user's laptop. The same exact problem is still there.
    I have worked with Crystal Reports more than 15 years and I have never such a weird behaviour before. I know this sounds very weird. We are all baffled by what is happening.

  • How to send values from a "Report Column" instead of a "Page Item" ?

    Hi there,
    Here's my case: Two pages A and B.
    Page A is used to view each employee from a selected department.
    Page B is used to created/modify employees.
    I have a create button on page A which redirect to page B.
    By default, page B is blank (as of course we have to fill the blanks to create a new employee).
    However, there is 2 values I want to send to page B (as I'd like to pre-fill some blanks) : The department ID and the Manager ID (there is one manager per department).
    ---- I succeed with the department ID because it's a page item and in the "Action When Button Clicked" of the button I filled "Set These Items" -> Item From Page B "With These Values" -> Item from Page A.
    ---- I'm confused with the Manger ID because it is not a page item but a report column and there is nothing to do like I did for the Department ID in the create button.
    I'm a bit lost cause I don't know how to transfer/send this value to the second page.
    Do you have any clue ?
    Thanks again for your time !
    BR
    Ulrich

    Ulrich,
    Maybe I have misunderstood your requirements, from those I assumed that Page 4 was already being populated with a Department ID. So my plan was to look-up the Manager ID via the known Department ID
    Here's my case: Two pages A and B.Page A is used to view each employee from a selected department.
    Page B is used to created/modify employees.
    I have a create button on page A which redirect to page B.
    By default, page B is blank (as of course we have to fill the blanks to create a new employee).
    However, there is 2 values I want to send to page B (as I'd like to pre-fill some blanks) : The department ID and the Manager ID (there is one manager per department).
    ---- I succeed with the department ID because it's a page item and in the "Action When Button Clicked" of the button I filled "Set These Items" -> Item From Page B "With These Values" -> Item from Page A.
    ---- I'm confused with the Manger ID because it is not a page item but a report column and there is nothing to do like I did for the Department ID in the create button.>
    Have you verified that you have the :P4_DEPARTMENT_ID in session?
    Does your SQL run in SQL Commands when provided a Department ID?
    Have you tried altering when the Computation fires? I recommended to start with After Regions, try some other firing points.
    Jeff

Maybe you are looking for

  • Windows Partition gone after updating to Yosemite

    Hello I have recently updated to Yosemite and was unaware of the bug that causes the partitions to disappear. I have read threads and the steps are way too difficult to understand and all i see is coding and other things. If anyone could help please

  • Question about how much ram I need to download

    Q: How much ram do I need to download premiere pro? I have 4 right now.  Windows 7 is my platform.  I was told I can only upgrade to 6 rams total. Will that be enough?  Basically I tried to download the premiere pro trial and could not, even with the

  • How to generate 3dSurface plot starting from x,y,z txt file

    Hallo guys, I need to generate a 3Dsurface plot starting from unordered coordinates data available in the following text file: xs,   ys,   zs -20,-70,1500 -30,-55,1500 -30,-79,1500 -40,-70,1500 -10,-70,2000 -30,-42,2000 -30,-90,2000 -53,-70,2000 -5,-

  • Oracle Apps Technical or Financial

    Hi, I m working as core DBA since 1 year. now i want to switch to Apps DBA field. But i m confused that oracle are giving many Apps DBA trainings like - 11i install, patch, monitor - Oracle Apps Technical - Oracle Apps Financial. As i m new in apps d

  • Is a Nano easier to download on than a shuffle?

    Is a iPod nano easier to download on rather than an iPod shuffle? Does an iPod nano plug into the computer to download on? Please help me! samsam12 Windows   Windows XP   Windows   Windows 98