PL/SQL Report Headings Type question

Hi,
If I set a report to use a Heading Type of "PL/SQL", is there a way to get the region id of the report from within the PL/SQL function that I provide in the "Function returning colon delimited headings" section?
#REGION_ID# (available in a report template) doesn't seem to work.
Thanks,
Eric

Report region ids are not accessible to developers for use in the App Builder. You have to run the page, see what the generated region id is and then go back and hardcode it whereever you need.
I understand that this is going to be improved in the next release, the region id is going to be a user-defined attribute.

Similar Messages

  • Custom Report Headings Type forces headings to initcap

    APEX V4.2.3.00.08
    When I choose "custom" for my report headings type in a classic report they are forced to Initcap.  How do I have mixed case in a report heading?  I don't want words like "in","of" etc forced to initcap.  I don't think I've seen this problem before. Could be a bug in V4.2 ??
    thanks in advance
    PaulP

    PPlatt wrote:
    I'm using Theme 13 Blue Gray, Region template is "Reports Region".  the Report Template is "Template 13 Standard".  This is the bit of code in the Standard template under "Column Heading Template" that formats the report header
    <th#ALIGNMENT# id="#COLUMN_HEADER_NAME#" class="t13ReportHeader">#COLUMN_HEADER#</th>
    Is there some code I can put here that overides the inherent "Capitalization" without having to update the CSS file which contains the t13ReportHeader class?
    You could, but it wouldn't be recommended. In 4.2, modify the page templates and add the following CSS override to the Inline CSS property:
    th.t13ReportHeader {
      text-transform: none !important;
    Why are you using such an ancient theme in 4.2?

  • PL/SQL Report Headings

    Bug:
    I created a dynamic report using, Function returning PL/SQL and set "Use Generic Column Names" and "Maximum number of generic report columns" > 100.
    When I go into the Report Attributes and select a report heading type of PLSQL, the PLSQL edit text field does not appear. However, if I reduce the number of generic columns to <=100, the PLSQL field returns.
    Jon
    Apex Version=4.0.1

    Because I have written a dynamic query as a cross reference table, I cannot guarantee the number of columns, therefore I am likely to need up to 200+. I also need a drill-down on the intersection values and that means I need to store the underlying reference IDs as columns.
    Being able to write these dynamic style queries is a really good feature of Apex, however, I really would like to specify a lot more columns.
    Jon

  • PL/SQL based report headings throw ORA-06502

    I have a report that presents a view containing over 500 columns. This is data generated by an ETL process (for a data mining app), and the view's column names are dynamically defined each time the data are compiled. I've got scrolling set up within the region and the report works fine (all ~500 columns) with headings based on Column Names. However since column names change, I must use the Region Source option to 'Use Generic Column Names (parse query at runtime only)' and define Headings Type as PL/SQL. I've written a function to build the ':' delimited field list from the data dictionary and it all works just fine for a small number of columns (i.e., when the view is defined as only a few fields). When I try the complete data (~500 columns), the report region shows "ORA-06502: PL/SQL: numeric or value error: character string buffer too small". I've confirmed (in sql*plus) that the function returning the ':' delimited field list works fine. Anyone know if there a limit to the number of columns that HTMLDB can handle for dynamic headings? Or a workaround??

    Thanks for the reply. Couple of follow up questions...
    1) Is there a workaround to generate dynamic (run-time) headings that exceed the 4000 char limit?
    2) Page 1 of my app runs an PL/SQL process. One of the results of the process is a redefinition of my view's column names. Page 2 reports the view (~500 fields). Instead of PL/SQL function-based column headings, can either Page 1 or Page 2 directly update Page 2's report "static" column headings behind the scenes as some sort of page process?

  • ApexLib Question: SQL Reports

    Just wondering but is there a way to achieve the same type of functionality that ApexLib has for cascading select lists where a sql report is slaved to the cascading select lists? Example, when the cascading select lists are updated by ApexLib have it refresh a report as well.

    I think this is the wrong forum for such a question. The Database - General (General Database Discussions might be better suited. Or maybe the RMAN forum (Recovery Manager (RMAN)

  • Creating tabs for a single SQL report type region

    I would like to find a way to use tabs in a single SQL report type region. The problem I have is that there are too many columns to be displayed so the report looks very cluttered. I would like to find a way to assign say columns 1 - 5 to tab 1, 6-10 to tab 2 etc so the user can find the columns they need by simply clicking on the various tabs without having to execute the query again.
    I have looked at JQuery tabs but that seems to only be applicable to more or less unrelated regions. I tried to create different regions using the same query with different columns and that kind of works, but the regions don't stay in sync if say the user change the order for column 2 in tab 1, when they click on tab 2 everything displays in a different order.
    Another wrinkle is that this is an updatable report so some of the columns are updatable.
    I also looked at the hide / display column solution which is described in a few threads and that may also sort of work, but it is also not quite what I am looking for.
    Any help is greatly appreciated

    Does anybody know if this can be accomplished using APEX? What I am really looking for is very similar to an old fashioned client / server screen developed using say Oracle Forms. Consider an order line screen where say columns line number, SKU and SKU description is to the left of the tabs so these columns are visible no matter which tab is active. Then the first tab has say pricing information including UOM, quantity, list price, unit selling price, price list. The next tab has say customer information including customer number, name, bill to and ship to addresses. the next tab has say shipping information with say the warehouse, shipping instructions and shipping method.

  • How to rename C00n generic column names in a Dynamic SQL report

    I have a an interface whereby the user can select 1 to 60 (upper limit) columns out of 90 possible columns (using a shuttle) from one table before running a report.
    To construct the SQL that will eventually execute, I'm using a "PLSQL function body returning SQL query" with dynamic SQL. The only problem is that I have to use "Generic Column Names" option to be able to compile the code and end up with c001 to c060 as the column names.
    How can I use the names of the selected columns as the report headings rather than c001, C002... etc?
    I do not know beforehand which columns, or how many columns or the order of the selected columns.
    I know Denes K has a demo called Pick Columns but I can't access his code. I have a hunch though that he may be just using conditions to hide/show the apropriate columns.
    thanks in advance
    PaulP

    Hi Paul
    I would change the Heading Type in the Report Details screen to PLSQL and use the shuttle item to return the column values. e.g.
    RETURN :p1_shuttle;
    I'm assuming the shuttle already has a colon separated list of the column headings in the correct order?
    I hope that helps
    Shunt

  • SQL Report--NEED to display HYPERLINK

    Hi. I need to display a hyperlink for one of the columns in a SQL Report. Here are my columns url, name, type.
    I want the name column to be hyperlinks to the corresponding entry in the url column.
    Here's the sql that I was trying to get to work based on what someone else helped me with:
    select type, ''&#0124; &#0124;name&#0124; &#0124;''web
    from interop.links
    Here is the results when I run the report:
    <#''.LABEL#>
    <#''.FIELD#>
    <#''.FIELD#>
    <#''.FIELD#>
    <#''.FIELD#>
    <#''.FIELD#> ...etc, etc.
    Does anyone have suggestions for what I am doing wrong or another solution? I really need to figure out how to do this. Thanks!
    Michelle
    null

    Hi,
    Here is what I understand from your question.
    You have 3 columns
    URL
    NAME
    TYPE
    Say you have url=> www[dot]oracle[dot]com
    name=>Uncle Larry is always right
    you want name to have a href which points to
    the value in column url
    so you need
    select url as the_url,''&#0124; &#0124;name&#0124; &#0124;'' as the_name,type from the table
    null

  • Create Simple Printable SQL Reports in APEX 3.2 Without a Print Server

    Oracle Apex 3.2
    Oracle 11g
    OHS
    I thought I'd post an answer on how to get a printable SQL report in Oracle Apex without having to configure a print server. I'm sure that similar things have been posted in various other places, but I found the documentation for using custom row templates (to create a printable report) to be incomplete at best. For my needs, I was not looking for an awe inspiring report printout, but rather simple directory information printouts. For example, if you wanted a printable report to look like this:
    =================================
    CURRENT ACTIVE EMPLOYEES REPORT
    =================================
    First Name: Bob                  Employee ID: 0000000000
    Last Name: Swarts              Company Credit Card Number: 0000-0000-0000-0000
    Middle Initial: F                  Social Security Number: 000-00-0000
    First Name: Sue                  Employee ID: 1111111111
    Last Name: Johnson           Company Credit Card Number: 1111-1111-1111-1111
    Middle Initial: G                 Social Security Number: 111-11-1111
    etc.....In MS Access, doing this is very easy. From what I understand, this is also very easy to do this using PDF software with a print server. However, if you are like me, you don't want to waste time and money by obtaining and configuring a print server (even if it is free). However, never fear because you can create simple reports like this with relatively minimalistic effort; and you can do so without having to configure a print server.
    1.) Create a new page
    2.) Create a new sql query report region on the page
    3.) Make your query just as you would normally.
    For this example the query would be:
    select first_name, employee_id, last_name, company_credit_card_number, middle_initial, social_security_number from employee_table4.) Go to "Shared Components"
    5.) Under "User Interface" click on "Templates"
    6.) Click on the "Create" button
    7.) Select "Report"
    8.) Select "From Scratch"
    9.) For the "Template Class," choose one of the "custom" classes. For the "Template Type," choose "Named Column"
    10.) Click the "Create" button
    11.) Now that you created a custom row template, go back to "Shared Components" and then to "Templates"
    12.) Find your custom template and click on it
    CUSTOM TEMPLATE HOW TO
    1.) In the "Row Template 1" textbox, you are going to create some custom css that will display the data on the page. The css to make the report look like the report above would be:
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p style = "page-break-after: always">----------------------------------------------------------------</p>
    </div>
    {code}
    As you probably figured out, the numbers between the two pound signs ("#") are substitution strings for the variables in your select query in the SQL report.  As you have also probably noticed, the "page-break-after: always" line will always make it so that only one report is shown on a page.  To fix this, we will need to use logic and row template 2.
    2.)  For the "Row Template 1 Condition," select "Use Based on PL/SQL Expression" from the select list.
    3.)  In the textbox for the row template 1 expression enter in the following:  {code}substr('#rownum#',-1) = 0 or substr('#rownum#',-1) = 5{code}
    ***** This condition will make sure that this template is applied when the last digit in the row number is either a "0" or a "5."  So, only 5 reports will be displayed per page.
    4.)  Now go down to "Row Template 2" and enter in the following in the textbox:
    {code}
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p>----------------------------------------------------------------</p>
    </div>look familiar? that is because it exactly the same code as above, except without the page-break-after piece.
    5.) For the "Row Template 2 Condition," select "Use Based on PL/SQL Expression" from the select list.
    6.) In the textbox for the row template 2 expression enter in the following: substr('#rownum#',-1) != 0 or substr('#rownum#',-1) != 5***** This condition will make sure that this template is applied when the last digit in the row number IS NOT a "0" or a "5."
    7.) Scroll down to column headings and enter this in the textbox for the "Column Heading Template": OMIT
    8.) Click the "Apply Changes" button
    9.) Now go back to your application and the page you want to apply the custom report to
    10.) On the report, click on the report tab
    11.) Scroll down to "Layout and Pagination"
    12.) Click on the "Report Template" select list
    13.) Select your custom template
    14.) Click the "Apply Changes" button and run the page
    Try printing the report, if it does not print correctly, try it in Opera, Safari, Internet Explorer, Firefox, and Google Chrome. Please note that it is my understanding that only Firefox does not understand the css "page-break-after: always"
    If needed, add some css to the page to hide tabs and other items when you print.
    ~Andrew Schulltz

    DOH. Too much copy/paste.
    In my code, I was setting an application variable to contain the email address I was retrieving from AD. Once commented out, it worked fine.
              IF l_attr_name = 'mail' THEN
                 APEX_UTIL.SET_SESSION_STATE('F111_USER_EMAIL',l_vals(i));
              END IF;

  • Add SQL reporting services to get Azure sql db data

    Dear all,
    I have read recently that SQL server reporting services as been remmoved from Azure services. I have a SQL server database on azure which collect different type of data which are collected from a web admin portal by my users.
    I have a strong need to bring to that admin web portal a flexible reporting solution for my users to monitor collected data.
    Of course I can bring dash board to web application but often it is painful to change web app when a user want different type of report.
    What could be the way now to use online reporting service in orde to bring online report for my user of my sql azure database ?
    regards
    serge

    Hi serge,
    Based on my understanding, you want to use SQL Azure database to design the report, right?
    As you mentioned,
    Azure SQL Reporting is officially discontinued, so that we can’t design reports with Azure SQL Reporting. However, only the Azure cloud implementation of SQL Reporting is discontinued. All other forms of Reporting Services technology are unaffected. In
    Reporting services, it’s supported connect to SQL Azure database. So in your scenario, you can connect to the SQL Azure database to design the report. For more information, please refer to this article:
    How to connect to SQL Azure using SQL Server Reporting Services 2008 R2.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Standard Report Headings,  JAVA script usage,and  Report field fixed width

    My company has purchased Crystal Reports 2008 and I'm in the process of determining if the product will do everything we need and not become a maintenance nitemare. 
    We would like to setup some standard report headings to be used in all reports.  I've setup on already as a SUBREPORT and it works fine. We pass optional parameters that may be blank.
    We have several questions:
    1) Subreport...Once a SUBREPORT is setup as a standard heading and included in multiple reports, we are concerned about what is required if the standard heading subreport changes.  Will each report that uses this need to be opened or handled in any way to pickup the subreport changes?  Any suggestions how to handle this?
    2) Subreport....In order to get the "PAGE N of M" to work in the subreport we've setup the subreport to accept parameters that are passed from the main report and this works fine.  But this requires every report using the standard heading to setup the parameters in order to work.  Is there any other way that would minimize the setup needed for a standard heading?
    3) JAVA...  Can we call a Javascript function? If so, any hints/tips on how/where to do this?
    4) Standard Report... Creating the report is difficult with guessing the width to define to the field.  Is there a way that the report can know and display the exact size of the field being used?  A fixed field defininiton of some sort would make it MUCH easier in the layout of the report.
    5) Standard Report...We are currently testing with a stored procedure for the SQL query result data but because of the application we will need to build the query dynamically for every report.  Is there a way to bind the data and specify the field lengths? 
    6) Standard Report...When using a defined file structure I needed to add another field.  At the time it seemed like I had to start from scratch as the fields that were on the report were now gone.  Is there a update method that can be done import the changes and not loose existing fields on a report? 
    That all for now.  Sorry there are so many questions.  We are trying to clear up as many issues as we can before starting the 100+ reports needed.
    Thanks in advance.

    Hi Vitaly Izmaylov,
    I've taken your advice and split out questions 2-6 into seperate questions.  Anyone else please respond only to question 1 here. 
    I see the Re-Import subreport option....and I guess I can only assume that this means that any change to a report heading file (subreport) must be manually re-imported into every report it is used in.  There are no behind the scenes files or table that maintain a usage of these reports and can automate the population of the changes.
    I was hoping that maybe the subreports would be accessed when called for an pickup any new changes.  So if I create 100 reports with standard heading subreport, I would need to manually open and re-import that file in each report to update a report heading change.
    Does not sound real fun.
    Is all this true?
    Thanks,
    Tim

  • Problems with PL/SQL Column Headings

    Hello,
    I experienced a strange behaviour and perhaps someone can verify it. Perhaps it's a bug, perhaps only some misunderstanding ...<br>
    I created a Region with the Wizard: <br>
    FORM<br>
    TABULAR FORM<br>
    Update Only<br>
    Table EMP (all Attributes)<br>
    Accept rest of Wizard defaults<br>
    Create Region<br>
    OK, everything works fine.<br>
    Now I switched the column Headings to the Type "PL/SQL" and entered in the opening entry field: return('X:EMPNO:ENAME ...... (all Names)...) <br>
    As well everything works fine, the columns are well named. Now I included into the SQL-Statement an additional attribute as a constant.<br>
    select <br>
    "EMPNO",<br>
    "EMPNO" EMPNO_DISPLAY,<br>
    "ENAME",<br>
    "JOB",<br>
    'X', <--------------- <br>
    "MGR",<br>
    "HIREDATE",<br>
    "SAL",<br>
    "COMM",<br>
    "DEPTNO"<br>
    from "#OWNER#"."EMP"<br>
    Now I went back to the Report Attributes to include the new column into my return statement.... but the statement vanished. The little entry field for the PL/SQL-Statement to return the colon delimited header-list is not there and no more available. In the Radiolist for the Headings type it is selected but -as said- not there. (When I go back and erase the additional constand column, the entry-field for the PL/SQL-Statement reappears.)<br>
    Does someone has the same experience or better, a solution ? (APEX 2.2)<br>
    Thanks<br>
    Andree
    Message was edited by:
    Andree

    Works !<br><br>
    Thank you, Scott !<br>
    A.

  • SQL Report Writing blank lines or Formfeeds

    I have a SQL Report that prints the data out correctly. My problem is there are several formfeeds or blank lines written at the top of the spool file. The report prompts users for information, does several calls to the database to create headings, creates 3 temp tables. The temp tables are:
    TEMP1 - gathers information that is summed in TEMP2
    TEMP2 - stores data from temp1 that has been summed
    TEMP3 - creates the report using data from TEMP2 and other tables
    A command file calls the sql file. Inside of the command file is the call to the spool file. Overview of code:
    set trimspool on When these are on I get formfeeds. When they
    set trimout on are off, it prints blank lines.
    set heading off
    set echo off
    set feedback off
    set verify off
    set newpage 1
    set space 0
    set pagesize 60
    set linesize 160
    clear columns
    prompt user for information
    create headings and titles by quering various tables
    create and insert data into TEMP1
    create and insert data into TEMP2
    create, insert, and update data into TEMP3
    BEGIN report with TTITLE
    SELECT * from TEMP3
    end of report.
    When I run the report in sql without using the command file, I get the same results.
    Any suggestions as to what is creating this or how to get rid of it?
    Thanks for your help,
    Penny

    Yes I have a suggestion.
    Please move your spool line to just before the SELECT statement.
    [not_meaning_to_be_sarcastic__really]
    I have another suggestion. Please move your spool line to just before the SELECT statement.
    Maybe if I say it enough times - you might actually take and try the suggestion. I find it useful when I ask people questions, to listen to them.
    [not_meaning_to_be_sarcastic__really]
    I mean no offense - but I gave you that answer days ago and it doesn't seem like you have tried it yet. TTITLE will be fired off when the SELECT is called, there is no need to have the 'spool' before the TTITLE.
    It will take you maybe - tops - 10 minutes to give it a try - what'do'ya say - give'her'a'spin?
    -- all your junk that creates form feeds or line feeds
    SPOOL file_name_to_spool_to
    SELECT * from TEMP3;
    SPOOL OFF
    -- etc.

  • SQL report shoring report total - how to disable it

    Hi,
    I am using a report of type "SQL report" to show monthly revenues by year... Report is showing total for individual years... my issue is that Report is also showing a grand total for all years (report total)... may I know how to get rid of report total

    You could build your query to produce the subtotals using a rollup and then NOT have to have the report do totaling..
    Thank you,
    Tony Miller
    Webster, TX
    On the road of life...There are 'windshields', and there are 'bugs'
    (splat!)
    "Squeegees Wanted"
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Can a process update report Headings?

    Does anyone know how to use a process to directly update Report Headings, perhaps using the HTMLDB API? I need dynamic headings determined at run time, but I cannot use the PL/SQL Headings Type because I have too many columns in the report (the delimited headings string exceeds HTMLDB's length limit).

    500 columns!
    I thought there was a limit of 60 columns on report regions.
    In any case, there is also a limit on the total size of each row returned (regardless of number of columns). Are you not running into that limitation?
    See the discussion at Re: Report with Tabs - Enhancement Request? , that might help you. Basically, break the 500 columns into groups that make sense and put each set of columns in a tab and flip between them using the techniques in that thread.
    This way, each report has a more manageable number of columns and you can stay under the varchar2(4000) limit.
    [Carl's example page is at http://htmldb.oracle.com/pls/otn/f?p=11933:55]
    Hope this helps.

Maybe you are looking for

  • Communication to disc drive error...help!...is my superdrive fried?

    I keep getting error 0x 80020022 "communication to disc drive failed" no matter what i try burning. Firmware is up to date, and I'm using hi-quality discs. It's holding up my livelyhood...HELP! thnx in advanced desperate, John

  • How to validate Email Address in HTML DB Application

    Hi, I have delevoped one Employee Login Details form in HTML DB. But i am unable to validate that email address as i find html db is not supporting String functions like indexOf(char c), substring(int) ect. So please can anybody help me to know how t

  • Premier Pro CS4 install issues.

    Hello - I am trying to install Premier Pro CS4 onto a Win XP/SP3 machine that already has CS5 Premium installed.  The reason I need Premier CS4 is simple - I am still running a 32 bit machine. So, the download and install went without a hang or a hit

  • ASM on RAW or OCFS2

    We have a 2-node RAC cluster using ASM that has a couple diskgroups (DATA and FRA) on RAW devices. With our current backup methodology, we use RMAN to backup simultaneously to FRA and /u02/backup (cooked filesystem on node 1 for backups) from where n

  • HT1338 Suddenly I can't download pdf files or many images from the internet on my macbook air.  It is up to date and this is a recent issue.

    My macbook air was purchased last September and has been pretty reliable.  But recently I stopped being able to down pdf files from the internet - nothing opens.  Also, many images do not download and I have trouble getting onto a wireless system I'v