PL/SQL report header problems

Hi, I have PL/SQL Headings for my reports. Is there a way to use the sorting feature nevertheless?

Hi John,
Sorry for not explaining into more details.
I have a pl/sql heading in a report, in this particular case, I have 2 headers in one column (1 of them share with other column)
When I enable the sorting of a normal column (with one header), I see no link, and the Sorting Image (the arrow) appears outside the report.
So I tried to input the sorting code into the pl/sql heading code, but It was no possible, as a do not know the region_id.
Thanks!

Similar Messages

  • Report Header problem when exporting as Editable RTF

    Hey i was advised to post my query to this forum. My query is this Thread My report Header shows underneath my Page Header in Crystal reports 2008 can someone help me please?

    hi Demeleo,
    i was going through old forum posts and saw this one...did this get resolved?
    Hey
    I created reports in Visual Studio 2008 with crystal reports basic, i then upgraded to Crystal reports 2008 so i could be able to export them as EditableRTF. My first problem was i could not open my reports in VS 2008 anymore, but i do open them in The CR 2008 IDE. My problem now is when i export my reports my report header appears underneath my page header and my page number stays one. I noticed this happens when i export a report as EditableRTF.How can i Export my report to be editable without having this problems?
    using cr 2008 v1 (for cr server) i was not able to reproduce this issue when exporting to RTF.
    when exporting to Word, Editable, i can see this issue. mostly because the word export has the cr page header info going into the word page header.
    as the word export is essentially an RTF export anyway, i would recommend getting the latest patches / service pack for your cr and the RTF export should be what you're looking for.
    jamie

  • SQL report performance problem

    I have a SQL classic report in Apex 4.0.2 and database 11.2.0.2.0 with a performance problem.
    The report is based on a PL/SQL function returning a query. The query is based on a view and pl/sql functions. The Apex parsing schema has select grant on the view only, not the underlying objects.
    The generated query runs in 1-2 sec in sqlplus (logged in as the Apex parsing schema user), but takes many minutes in Apex. I have found, by monitoring the database sessions via TOAD, that the explain plan in the Apex and sqlplus sessions are very different.
    The summary:
    In sqlplus SELECT STATEMENT ALL_ROWS Cost: 3,695                                                                            
    In Apex SELECT STATEMENT ALL_ROWS Cost: 3,108,551                                                        
    What could be the cause of this?
    I found a blog and Metalink note about different explain plans for different users. They suggested to set optimizer_secure_view_merging='FALSE', but that didn't help.

    Hmmm, it runs fast again in SQL Workshop. I didn't expect that, because both the application and SQL Workshop use SYS.DBMS_SYS_SQL to parse the query.
    Only the explain plan doesn't show anything.
    To add: I changed the report source to the query the pl/sql function would generate, so the selects are the same in SQL Workshop and in the application. Still in the application it's horribly slow.
    So, Apex does do something different in the application compared to SQL Workshop.
    Edited by: InoL on Aug 5, 2011 4:50 PM

  • Displaying actual Max and Min in the report header problem...

    Hi guys,
    I have the following problem.
    1. I have a multi select prompt where you pick 2 years.
    2. I have the following columns. Year, Month, Exp, calc YEAR (max), calc year (min)
    3. I need to get the max and min month across all rows. So far I've tried MAX, MIN, RMAX, and RMIN without success. However, it's not picking them along all rows. For example,
    2001 1 100050 2001 2001
    2002 1 244005 2002 2002
    I'm sure this has to do something with my aggregation in the calculated column, but not quite sure where exactly.

    do max(max(year)) and min(min(year))
    :)

  • Problem of POP LOV  in a  SQL Report  with pagination

    I am using a pop up lov (along with some other fields), HTMLDB_ITEM.POPUP_FROM_LOV(5, null, 'EMPLOYEE_LIST', '20', '50')), in a sql report. This is a report with pagination. Whenever I select any value from pop up lov on first page of the report it gets populated properly in the corresponding text field. But from second page onwards it doesn’t populate any value.
    For example, my report fetches a total of 50 rows, of which I am displaying 15 at a time. The popup lov comes with a text field for each row. Whenever I do select from popup lov for 1-15 rows which come on page 1, the values come up in the text field properly, but for rows 16-30 on second page, 31-45 on third 46-50 on fourth the values do not get populated. When I changed the pagination settings to display 40 rows..the values were still coming properly on page 1(1-40 rows) and not on the next page. Any clues… how to resolve this problem?

    good find. this is a bug that has already been identified and will be corrected in the upcoming patch release for htmldb. a good work-around for now is to use the equivalent declarative options in the tool. so rather than coding your query like...
    select ename , HTMLDB_ITEM.POPUP_FROM_LOV(2, null, 'DEPARTMENT', '20', '50') as "department" from emp
    ...just code it like this...
    select ename , null as "department" from emp
    ...and then use the column attributes screen for your "department" column to indicate that you'd like that col to be rendered as a "Popup LOV (named LOV)" using your DEPARTMENT list of values.
    hope this helps,
    raj

  • SSRS 2012: Report Header PrintOnFirstPage-problem after report migration from SSRS 2008

    Hi ,
    I developed my report using VS 2008 IDE and the report header property "PrintOnFirstPage" is set to False.
    The content of the header are some textboxes and lines that should show only on page number > 1.
    This works fine in VS 2008 IDE in preview mode as well as with reports rendered by SSRS 2008 report server.
    Recently I migrate&convert the same report to SSRS 2012 I noticed a different rendering behaviour of my report.
    So in VS 2010 preview mode, the page headers content (textboxe etc.)  is not visible on first page but the headers space did not colapse as it does in VS 2008 IDE preview mode.
    I checked all the report properties but unable to find a solution to my problem.
    I was able to reprduce the same behaviour by creating a new report using VS2010 IDE.
    Any ideas are greatly appreciated
    Thanks
    Bodo

    Hi BodoHH,
    I have tested on my local enviorment and can't reproduce the issue, the issue can be caused by many factors, it can be caused by the properties setting and can also caused by the visual studio, Detais information below for your reference:
    As you mentioned that you have check all the report properties, please also check the tablix,Page Header,report body properties to see if the size are the same with that in the SSRS2008.
    Please open this rdl report in the report builder to see if the print layout is correct, if it works fine, the issue can be caused by the visual studio.
    Please also try to upload the rdl report to report manager to check the layout.
    Please also provide the snaphot of the layout in VS2010 to let us better analysis about the issue.
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • SQL REPORT BUT SEARCH PROBLEM ON CREATED_ON Column

    Hi Friend,
    i have create SQL Report .
    My Code
    select      CRM_SALES_DEALs.id,
                        "CRM_SALES_CUSTOMERS"."CUSTOMER_NAME" as "CUSTOMER_NAME",
          "CRM_SALES_SALESREPS"."REP_LAST_NAME"||', '||
          "CRM_SALES_SALESREPS"."REP_FIRST_NAME" as "REP_NAME",
           "CRM_SALES_DEALS"."DEAL_CLOSE_DATE" as "DEAL_CLOSE_DATE",
           "CRM_SALES_DEALS"."DEAL_PROBABILITY" as "DEAL_PROBABILITY",
          "CRM_SALES_DEAL_STATUS_CODES"."STATUS_CODE" as "STATUS_CODE" ,
             "CRM_SALES_DEALS"."DEAL_AMOUNT" *
             "CRM_SALES_DEALS"."DEAL_PROBABILITY" / 100 weighted_forecast,
    (select count(*) from CRM_SALES_DEAL_notes where deal_id = "CRM_SALES_DEALS".id) notes,
    (select count(*) from CRM_SALES_DEAL_products where deal_id = "CRM_SALES_DEALS".id) products,
    nvl("CRM_SALES_DEALS".updated_on,"CRM_SALES_DEALS".created_on) last_changed,
    t.territory_name,
    CRM_SALES_DEALS.qtr, "CRM_SALES_DEALS"."CONTACT_NAME" as "CONTACT_NAME"
    from     
    "CRM_SALES_SALESREPS",
    "CRM_SALES_DEAL_STATUS_CODES" ,
    "CRM_SALES_CUSTOMERS",
    "CRM_SALES_DEALS",
    CRM_SALES_territories t
    where  
    CRM_SALES_customers.customer_territory_id = t.id(+) and
    "CRM_SALES_DEALS"."CUSTOMER_ID"="CRM_SALES_CUSTOMERS"."ID"(+)
    and      "CRM_SALES_DEALS"."DEAL_STATUS_CODE_ID"="CRM_SALES_DEAL_STATUS_CODES"."ID"(+)
    and      "CRM_SALES_DEALS"."SALESREP_ID_01"="CRM_SALES_SALESREPS"."ID"(+)
    and (:p1_find is null or instr(upper("CRM_SALES_CUSTOMERS"."CUSTOMER_NAME"),upper(:p1_find))>0 or instr(upper("CRM_SALES_DEALS"."DEAL_NAME"),upper(:p1_find))>0 or
    instr(upper("CRM_SALES_SALESREPS"."REP_FIRST_NAME"||' '||"CRM_SALES_SALESREPS"."REP_LAST_NAME"),upper(:p1_find))>0)
    and
    (nvl(:P1_TERRITORY,0) = 0 or t.id= :P1_TERRITORY)
    and
    (nvl(:P1_ACCOUNT,0) = 0 or "CRM_SALES_CUSTOMERS".id = :P1_ACCOUNT)
    and
    (nvl(:P1_QUARTER,'0') = '0' or CRM_SALES_deals.qtr = :P1_QUARTER)
    and
    nvl(DEAL_PROBABILITY,10) between nvl(:P1_MINIMUM_PROBABILITY,0) and nvl(:P1_MAXIMUM_PROBABILITY,100) or
    instr(upper("CREATED_ON"),upper(nvl(:P1_CREATE_DATE,"CREATED_ON")))My TAble
    CREATE TABLE  "CRM_SALES_DEALS"
       (     "ID" NUMBER,
         "CUSTOMER_ID" NUMBER NOT NULL ENABLE,
         "DEAL_NAME" VARCHAR2(255),
         "DEAL_CLOSE_DATE" DATE NOT NULL ENABLE,
         "DEAL_CLOSE_DATE_ALT" DATE,
         "DEAL_STATUS_CODE_ID" NUMBER,
         "DEAL_CUSTOMER_LOCATION" VARCHAR2(4000),
         "CREATED_BY" VARCHAR2(255),
         "CREATED_ON" DATE,
         "UPDATED_BY" VARCHAR2(255),
         "UPDATED_ON" DATE,
         "QTR" VARCHAR2(8),
         "DEPARTURE_DATE" DATE,
         "DEAL_SOURCE" VARCHAR2(15),
         "ADDRESS1" VARCHAR2(255),
          PRIMARY KEY ("ID") ENABLE
    /i want to search with CREATE_ON Column.
    How can i create code for search in my Quary Code.
    My Item is :P1_CREATE_DATE
    I have try it in last Line in code but it's show me Error.Invalid Relational Operator .
    How can i slove and serch with Created_on Column.
    Thanks
    Edited by: 805629 on Dec 27, 2010 9:13 PM
    Edited by: 805629 on Dec 27, 2010 9:13 PM

    Hi Friends,
    i have sortout this problem.
    Thanks

  • Running SQL in a WebDB report header

    Is there any way to have a SQL statement generate data in the header of a WebDB Report? I've tried placing the oracle tag before and after the SQL, but the SQL text appears as the header to the report.

    Have you tryed creating a stored procedure
    which generates Html using the htp procedures
    For example
    create or replace procedure reportheader
    as
    cursor cSelectSomething is SELECT data
    FROM table;
    BEGIN
    FOR rij in cSelectSomething
    LOOP
    htp.print(rij.data);
    END LOOP;
    END;
    grant execute on reportheader to public;
    Now use this in your report header(no oracle tags necessary)
    [owner].reportheader;
    Good Luck
    Dave.
    null

  • Hierarchy indentation problem in the sql report region

    I've the following sql statement in sql report region. it works fine by bringing the all the users reporting to a manager correctly. In the sample user table below manager/id are in parent/child relationship.
    select id from user_table start with upper(id)=upper(:p332_person_short_id) connect by prior id = manager
    user1
    user2
    user3
    where user2 and user3 are reporting to user1.
    But I want to give some indentation between the user levels to show the hierarchy clearly in the report as below
    user1
    user2
    user3
    I tried with the following statment. It does indent the users correctly but in hierarchy is reversed.
    select LPAD(' ',6*(Level-1))|| id "User" from user_table start with upper(id)=upper(:p332_person_short_id) connect by prior id = manager
    the output is
    user2
    user3
    user1
    Any help is appreciated.

    I think padding with blanks will not work in HTML. You will have to pad with " ".
    So, something like this should work:
    select replace(lpad('@',6*(level-1),'@'),'@',' ')||id "User" from ....
    Hope that helps
    Jochen

  • PLSQL processing of a dynamic sql report

    Hi there,
    I have a problem processing a dynamic sql report, specifically in referencing the PL/SQL column headings I have.
    Basically I have a report that generates one row for each project a person belongs to, and then using htmldb_item.text creates one field for each day of the week (sysdate - sysdate+6) so that people can enter their hours worked. The idea is they then press a submit button and the hours are entered into a project table something like (date_worked, project_id, hours_worked), one row for each entry.
    So I have:
    for i in 1..HTMLDB_APPLICATION.G_F01.count
    loop
    ... err... here I want to insert into the table the values(column_header, project_id, HTMLDB_APPLICATION.G_F01(i)).. but I don't know how to access that column_header value.
    Is this possible and if so, how?
    Many thanks,
    Tosh.

    that gives me the values of the text fields, but what
    I'd like to insert is the value of the column
    header... so for example:Yes, I understood what you meant. I did have a differect project_id for each INSERT in my SQL above. I guess that should have been day_id
    Since you are generating the tabular form SQL manually, you know which htmldb_item.text index corresponds to which column (which represents day_id in your case). So, use this to write 6 INSERT statements, one for each day. day_id would be a number going from 0 thru 6 where 0 represents Sunday and 6 represents Saturday.
    Bottom line: This is like generating/updating a calendar, your column headings are always fixed (Sun thru Saturday), just the date they represent would change.

  • Crystal report - margins problem

    I have a problem with top and bottom margins in my report. In the designer view - File>Page Setup - I have the paper size (A4 210X297 cm). Both the top and bottom margins are set to 2 cm which, If I understand it correctly, printing should start exactly 2 cm from the top and end at 2 cm from the bottom of a page.
    However, no matter what I do, it starts printing 1.5 cm from the top and ends at 3 cm from the bottom of a page.
    I have the 'Dissociate Formatting page size and printer paper size turned off so that should not influence anything and even if it's turned on makes no difference.
    In Designer view when I look at the ruler the Report Header - it is exactly 25.5 cm in length. For some reason unknown to me I can't make it any longer. If I add even 1 or 2 mm to the length, the printing spills over to a new page.
    I'm printer to a HP laser printer - nothing fancy - other programs like Word prints to the same printer with no margin issues whatsoever.
    I will appreciate it so much if someone can point me in the right direction, please.
    Regards
    Danie

    Hi Danie,
    the problem is not inside CR, not your printer, but how SBO print engine handles paper sizeing and margin. (for just one simple thing: set the margin inside SBO, and you'll notice nothing changes).
    This is especially problematic with CR margins.
    On load the print engine gets the paper sizes from windows, and sticks to them. In my experience, it handles the margins as CR:
    fixed 2cm-s of any paper size ( this was my main problem, imagine it: printing on a 4,5*3,5 label, with 2cm margins =S, every other application did it right, from CR it was right, from CR to PDF to print it was right, from SBO PLD it was right, from SBO>CR>PDF>Print it was right, but no matter what i did, the SBO>CR>Print was using wrong margins).
    Try dissociating the papersize in CR and setting custom sizes/margins, sometimes, after many trial and error that works.
    I had made to date ~10 special sized/print scenario solution in CR (along many other standard sized reports), sometimes the above stated can achieved, but mostly i just add a corrected paper size to windows, set it as default and the ~100 trial and error falls back to ~15 rounds..
    I'm sorry to hear your disappointed in CR, sometimes i'm also feel like that, and i completely agree that it is overrated, but i think it is a great solution for things. It's not a miracle tool, but it handles well in most default situation, and you can construct insanely complex reports with relative ease (if you lear how to utilize SQL inside CR along with Crystalsyntax). But i agree, handling papersizes it is.. well.. you know.
    Lets hope will get the neat 2011 version someday to SBO..
    Regards,
    Daniel

  • Layout in sql report gets disturbed in case of blank columns

    Hi All,
    I have an SQL report which runs from a concurrent program.
    Problem is, if there are blank columns in the report then the data shifts to the left.
    As shown in the below table, if column Attribute 4 is null then the data for Error column has shifted to the left. The words Incorrect Data should come under heading Error whereas it comes under Attribute4.
    ASSET_NUMBER_REC ATTRIBUTE_CATEGORY_CODE ATTRIBUTE4 ERROR
    316604 ABCD Incorrect Data
    Can someone help me in correcting the report layout.
    Regards,
    Shruti

    ASSET_NUMBER_REC ATTRIBUTE_CATEGORY_CODE ATTRIBUTE4 ERROR
    316604 ABCD Incorrect Data
    Can someone help me in correcting the report layout.
    Hi
    SQL Report --- Do you mean SQL Query in such case,
    Please use NVL function on all column, which will give you proper place result.

  • 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.

  • Numbers can't open Excel files generated by SQL Reporting Services

    Hi
    I have an issue with Numbers '09 not being able top open certain Excel files. The Excel files in question are XLS files (not XLSX) and come from SQL Reporting Services. They open fine with Excel on the Mac and on Windows - but Numbers on both the Mac and iPad pops up with an "Invalid file format" when trying to open them.
    I see this as a problem with Numbers and would like to send Apple an example file so they can look at improving their Excel file support but I can't find anywhere to do this.
    Do Apple monitor these forums? Has anyone else experienced this issue?
    Thanks in advance,
    Mike.

    Thanks
    I compared the beginning of your file to the beginning of two XL ones which are on my machine (in fact, they are files created with openOffice).
    You may see that there are many differences.
    They may explain the different behaviour.
    If someone is able to drive Excel with an AppleScript,
    he may write a script opening your document in Excel,
    saving it
    opening the newly saved file in Numbers.
    As I don't own Excel, I ignore its required syntax so I can't write a clean script.
    If the XL's syntax is the same than the Numbers one, this quick and dirty one may do the trick :
    set aFile to (path to desktop as text) & "Treatment Report No Header.xls"
    tell application "System Events"
    set aName to name of disk item aFile
    end tell
    tell application "Numbers"
    open file aFile
    save document 1 (* maybe save document aName *)
    close document 1 (* maybe close document aName *)
    end tell
    tell application "Numbers"
    open aFile
    end tell
    Yvan KOENIG (VALLAURIS, France) dimanche 6 juin 2010 17:18:27

  • Report header scroll

    Hi everyone,
    I have built a SQL report with a template that i have built (no apex template) and in the SQL Query, I wrote follows:
    htp.p('<table>');
    htp.p('<thead>');
    htp.p('<tr>');
    htp.p(v_headings);
    htp.p('</tr>');
    htp.p('</thead>');
    htp.p('<tbody>');
    for r in loop
    htp.p(v_data);
    htp.p('</tr>');
    end loop;
    htp.p('</tbody>');
    htp.p('</table>');
    so, tis works fine.
    but the Problem is, there are much data to be displayed, and I want to fix the header and scroll the data in the Body like in Excel.
    but no Idee how to do that.
    I follows some forum threads but didnt help me really.
    any Idee?
    many thanks in Advance.
    Edited by: user10773430 on Oct 19, 2009 4:20 PM
    Edited by: user10773430 on Oct 19, 2009 4:28 PM

    Hi User?????,
    Can you please update your user id?
    Hope that following links will help you:
    # By Roel Hartman: jQuery - Fixed Header
    # By Andy Tully: Re: Horizontal scrolling report
    example link: http://apex.oracle.com/pls/otn/f?p=267:89
    Thanks,
    Bhavin

Maybe you are looking for

  • Some emails are there when searching, but do not show up in inbox for mail account. How do we permanently fix that? This is dangerous for businesses that rely

    Hi, and thanks, I noticed that many dozens of others have expressed the same problem with Thunderbird, but it still continues. For no apparent reason, sporadically, some emails don't show up in the inbox list of an account, but are actually there. If

  • How can I get the iCal server to work correctly?!

    We are a business that uses Apple software and products for everything! For a while we've been having an issue with iCal - it seems when an invite is sent we are unable to accept, we click 'accept' but the message is never sent, so then it looks like

  • Split() questions

    I have tried to read regular expression (regexp) tutorials but I don`t really see how to do what I want. What I want is to have "One" printed above "two" and that printed above "three" without doing System.out.println(temp.trim()); in the for-each lo

  • Csv/excel

    hello, i have a html report i wish to have a option that generates html how do you do this tips?? <cfloop query="westcoastCases"> <tr> <td>#allcaseID#</td> <td>#dateformat(CRTN_DT,"mm/dd/yyyy")#</td> </tr> </cfloop>

  • Getting a shock when charging 5s

    Every time I charge my 5s and try to make a call at the same time I'm getting an electric shock has anyone else found this