Freaking Out!  I have a report region

with type function returning sql type. I modified the region title to include an item name indentifying how many records were in the results. Apparently I change the region type to sql procedure ananymous block at the same time. I got this horrible error message like RETURN statement cannot contain an expression . It looks like I can't simply put it back. Anyone have magical ideas. It appears that I have lost my report attributes tab including the column links, and format masks. I tried to use the Undo Region Source, but it says the table stucture changed.
Dawn

And the correct action whenever that happens is to check the Apache error log.
Also, you should tell us the versions of major components whenever you need help..
Scott

Similar Messages

  • So my iphone as been in recovery mode for about 14 hours i have tryed everything it wont respone on itunes at all i cannpt restore is dont caming up what do i do i am freaking out i have done everything but its such dont working i have shut down computer

    helppp MEEE PLEASE I NEED MY IPHONE I NEED MY MUSIC IT HELPS ME PLEASEEEEEEEEEEEEEEEEEEE

    What EXACTLY happens when you try to restore the phone using iTunes?

  • SQL-01403 error reported in a Report Region when there is data to display

    I have a report region populated by a PL/SQL function body returning a SQL Query. When the region is displayed, "ORA-01403: no data found" is output when there should be rows displayed on the report. I see a lot of postings related to ORA-01403, but none seem to describe why this problem occurs or how to solve it.
    Here is the generated SQL query:
    SELECT DISTINCT entry_type, active_time, expire_time, facility, via, output_remarks, p_reports.f_get_to_positions (entry_id, NULL) pos FROM (SELECT 'RSTN' entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_restriction_daily_all WHERE (entry_type in ('RSTN', 'APREQ', 'GS')) UNION ALL SELECT 'RSTN' entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_restriction_daily_all WHERE (entry_type in ('RSTN', 'APREQ', 'GS')) UNION ALL SELECT 'RSTN' entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_restriction_daily_all WHERE (entry_type in ('RSTN', 'APREQ', 'GS')) UNION ALL SELECT 'APERQ' entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_apreq_daily_all WHERE (entry_type IN ('APREQ', 'RSTN')) UNION ALL SELECT 'GS' entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_apreq_daily_all WHERE (entry_type IN ('GS', 'RSTN')) UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_edct_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_runway_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_deicing_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_delay_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_swap_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_sua_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_information_daily UNION ALL SELECT entry_type, active_time, expire_time, facility, via, output_remarks, entry_id FROM v_outage_daily ) WHERE (active_time BETWEEN TO_DATE (:G7_LOCAL_MIDNIGHT, 'YYYYMMDDHH24MI') AND TO_DATE (:G7_LOCAL_MIDNIGHT, 'YYYYMMDDHH24MI') + 1)
    I am using version 1.6.0.00.87.
    Please advise. Thanks.

    Create a summary column (lets say "CS_TotalRecords") at report level, and set the following properties:
    Function: Count
    Source: column which can not be null (if report displays some data)
    Reset At: Report
    Create a format trigger at most outer frame (the frame you want to hide and all object within that), and write following code:
    BEGIN
    IF NVL(:CS_TotalRecords,0) = 0 THEN
    RETURN (FALSE);
    END IF;
    RETURN (TRUE);
    END;
    Hope this helps.

  • Controlling Column Width in Report Region

    I have a report region based on a simple select statement. I'd like the table to be the full width of the region and I'd like the columns to be spaced evenly so that they are also the full width of the region. I have figured out how to set the table width via Report Attributes Substitution, but I am unable to set the column width. Any help would be greatly appreciated.
    Mark

    Hi take a look into this post:
    Translated in English:
    http://translate.google.de/translate?sl=de&tl=en&js=n&prev=_t&hl=de&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwww.apex-at-work.com%2F2010%2F08%2Fsilbentrennung-hyphenation-in-apex-ger.html
    Code must be extracted from Original post:
    http://www.apex-at-work.com/2010/08/silbentrennung-hyphenation-in-apex-ger.html
    This could be also interesting for your:
    http://www.apex-at-work.com/2010/03/automatic-linebreak-if-word-breaks-out.html
    Tobias
    http://apex-at-work.com

  • Displaying report region columns in the correct order

    I have a report region in which the first 4 columns that are displayed are listed at THE END of the “Column Attributes” section.
    Why is this happening? Does some other setting have to be made to make them display at the end, where I want them?

    Thanks Matthew.
    I had actually figured that out already and was about to post that fact.
    Evidently, the order of the columns in the Action menu is set to the original order of the columns in the “Column Attributes” section. But if the column order is then changed in “Column Attributes”, the order in the Action menu remains at its original value, and thus needs to be manually reset.

  • Problem Refreshing Report Region

    I have a Report Region, based on a SQL Query. It works fine, and returns the records Queried.
    My problem, is that it is not Refreshing, after page Refresh. I even tried Logiing out, and then back in. In my latest attempt, I deleted ALL the records, logged out, and then back in. The prior Report Results were still there. It seems like it is Cached somewhere. The Caching is set to Not Cached.
    I am stumped.
    Please give me advice. Thanks!

    I have seen that only when I thought my query is selecting from a particular table but that wasn't the case. You could create an empty copy of your table and replace the original one in the sql just to see what happens.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Report Region show all rows?

    Hi,
    I have a report region in which I want to show all rows. Setting the pagination scheme to No Pagination doesn't
    seem to do the trick. I have set Number of Rows and Maximum Row Count both to NULL. Nothing seems to work.
    Is there some trick to get all rows to be displayed?
    Thanks in advance!

    Hi,
    I have two report regions on different pages. On both I have set 'Number of Rows' and 'Maximum Row Count' to null. One report will return all the records in a query (~800), the other report will only return 500. I can't see any other differences in the reports that would cause this behaviour.
    I didn't really want to restrict my reports to a set number of rows, is this really the only option?
    Thanks,
    Rochelle.
    Edited by: Rochelle K on Nov 5, 2009 10:13 AM

  • Report region with sql query

    Hi
    I have a report region with sql query. There are two regions in page. On top of page, user enters data and after that second region show enterd data which is report region
    based on sql query.
    Now,when this page is opned, as user had not entered any thing, report region shows "no data found" message. Is it possible to remove that message or
    may i conditionally disaply report region i.e if data is inserted then only report region is dispalyed.
    Thanks

    >
    i was trying with select count(1) in expression.
    >
    Just for your info, COUNT() (without any grouping obviously) with always return 1 row. If there are no result for the query then 1 row will be returned with a value of zero - so there are results returned.
    Secondly, why were you using COUNT(1) rather than COUNT(*)? That is is faster is a very common misconception and not true. If you need to know how many rows have been returned, use COUNT(*). If you need to take nulls into account (ie. not include them in your count) then use COUNT(column_name) and name the column that you are interested in specifically.
    Cheers
    Ben

  • Layout issue: sql report region and items derived from a different table

    Hi all,
    I have a report region whose source is a sql query. I am trying to display other items in the same region(These I added manually on the page and they come from another table in the schema). It works fine, except the items that I added manually in the region always appear at the top of the items that are derived from the query. I want the other way around if possible, where I want the items from report query to appear first and then the other items to appear below them. Can this be done? If so how?
    Thanks in advance
    sr

    sr,
    on the definition page of your region, set the property "Display Point" to "Page Template Body (1. items below region content).
    I think that's what you are looking for.
    Patrick
    *** New *** Oracle APEX Essentials *** http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

  • How to display the items in a Report Region

    Is it possiable to have the fields in a report region based on an sql query be display in somthing other than a row? For example if I have a Report Region with four columns it will look something like:
    <Field 1, row 1 value> <Field 2, row 1 value> <Field 3, row 1 value> <Field 4, row 1 value>
    <Field 1, row 2 value> <Field 2, row 2 value> <Field 3, row 2 value> <Field 4, row 2 value>
    <Field 1, row 3 value> <Field 2, row 3 value> <Field 3, row 3 value> <Field 4, row 3 value>
    etc
    Is it possiable to tell ApEx to display the Report Region like:
    <Field 1, row 1 value> <Field 2, row 1 value>
    <Field 3, row 1 value> <Field 4, row 1 value>
    <Field 1, row 2 value> <Field 2, row 2 value>
    <Field 3, row 2 value> <Field 4, row 2 value>
    <Field 1, row 3 value> <Field 2, row 3 value>
    <Field 3, row 3 value> <Field 4, row 3 value>
    etc
    Maybe there is a nother way to do this that uses somthing other than an sql based report region. Thanks very much for the help.

    This can be done using a SQL query report region with a [custom report template|http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/themes.htm#sthref1744].
    Unfortunately the documentation is not particularly helpful on this topic, and as use cases tend to be very specific, reusable solutions are rarely shared in the community ("custom" reports after all...) See [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=1569996] for a good discussion of the technique, with a link to an example on apex.oracle.com.
    A response to [another recent thread|http://forums.oracle.com/forums/thread.jspa?threadID=1012690] showed another example on page 1 of the [Online Store demo app|http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#STORE], which you can download, install and examine. This uses a custom report template in conjunction with the report HTML Expression feature.
    (I'm not totally clear on the display you're after: it might help to repost it using some example data rather than the abstract <Field 2, row 1 value> approach. Wrap the sample in \...\ tags to get fixed width characters that can be made to align, if that will help.)

  • How do I set an id to a table row in a report region?

    How do I assign an id to a table row in a report region? I am trying to uniquely identify a row in the result set. What I want to do is have the report region render an id for each tr tag i.e.
    <tr id='1'>...</tr>
    <tr id='2'>...</tr>
    <tr id='3'>...</tr>
    Thanks,
    Boyan

    Hello,
    In the Before Each Row attribute of the report template you are using add something like this.
    &lt;tr id="row_#ROWNUM#">ID's in HTML should never start with a number it won't break anything but it's wrong that's why I put row_ first
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Error in editing a report region

    I have a report region (SQL Query PL/SQL function body returning SQL query).
    When I try to save the region source, I got the following error:
    1 error has occurred
    * Function returning SQL query: Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the generic columns checkbox below the region source to proceed without parsing.
    (ORA-01403: no data found)
    Note that in the following region source, if I replace :P1_ITEM with 'One:Two:Three', I
    did not get any error when I saved the report:
    declare
    l_sql varchar2(32676);
    l_vc_arr2 HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
    begin
    l_sql := 'select x, y '
    l_vc_arr2 := htmldb_util.string_to_table(:P1_ITEM);
    if l_vc_arr2(1) > 0 then
    l_sql := l_sql || ', z';
    end if;
    l_sql := l_sql || ' where x.c1=y.c1 '
    if l_vc_arr2(1) > 0 then
    l_sql := l_sql || ' and z.c1=x.c1 and z.c2 in (';
    l_sql := l_sql || l_vc_arr2(1);
    for t in 2..l_vc_arr2.count LOOP
    l_sql := l_sql || ',' || l_vc_arr2(t);
    END LOOP;
    l_sql := l_sql || ')';
    end if;
    l_sql := l_sql || ';';
    return l_sql;
    end;
    Can someone help?
    Thanks in advance.

    Try adding these two bold lines:
    declare
    l_sql varchar2(32676);
    l_vc_arr2 HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
    begin
    l_sql := 'select x.c1, x.c3, y.c4 from x, y'
    l_vc_arr2 := htmldb_util.string_to_table(:P1_ITEM);
    IF l_vc_arr2.count() > 0 THEN
    if l_vc_arr2(1) > 0 then
    l_sql := l_sql || ', z';
    end if;
    l_sql := l_sql || ' where x.c1=y.c1 '
    if l_vc_arr2(1) > 0 then
    l_sql := l_sql || ' and z.c1=x.c1 and z.c2 in (';
    l_sql := l_sql || l_vc_arr2(1);
    for t in 2..l_vc_arr2.count LOOP
    l_sql := l_sql || ',' || l_vc_arr2(t);
    END LOOP;
    l_sql := l_sql || ')';
    end if;
    END IF;
    l_sql := l_sql || ';';
    return l_sql;
    end;
    Sergio

  • How to set value of a column in report region

    Hi,
    I have a report region based on a query.In this my first column is selectlist "select row" having to values "yes" & "No".
    I have two buttons on top of the region "Check all" and "uncheck all".
    My requirement is when I click check all button all rows corresponding to "select row" column gets selected to Yes and when I click No all rows gets selected to "No".
    Thanks
    Vikram

    Actully I want to set the value of a column in report region.
    There are replies in the forum but in those the item is in form but not in the report region.
    I am generating report region by using htmldb_item.selectlist and i dont know how to set value in these type of items.

  • Enable particular row of apex_item report region....

    Hi guys,
    I have a report region.i used apex_item to create report region.
    select apex_item.checkbox(1,ADDRESS1)
    chk_bx,apex_item.text(2,ADDRESS1) Address,apex_item.text(3,ITEM1) Item,null from address_details;On page load i disabled the report region by using below javascript
    function disableItems(pRegionStaticId,pDisableFlag) {
    alert('disa');
      $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
        if( $(this).attr('name').match(/f[0-9][0-9]/) ){
          return $(this);
      }).attr('disabled',pDisableFlag);
    }After the report region get disabled,i have to enable a particular row of report region, ie when i set click first row f01[0] (f01 is checkbox), then i enable that row(clicked row), if i click second row f01[1],then i have to enable that row vice versa...
    Is that any javascript to achive this?
    Thanks in advance

    Hi
    i have a report with parameter is the year i can select a multiple value.
    Below is an example for the result:
                                    year
     Data        2010    2011   2012  
     hp          14         25           30    
     Dell        17         18           20
    i need to get the value of the last previous i mean i this example i have the last year is 2012 i need the value of 2011
    i tried a script with vb.net but i don't get the result i get only the value of year this is my script
    Dim Shared Num1 As StringDim Shared values As System.Collections.ArrayList=New System.Collections.ArrayList()Public Function GetVal(Val as Integer,Year as Parameter)  as String   If Year .IsMultiValue then    For i as integer=0 to Year.Count-2          Num1= Year.value(i)                       Next    End If   Return Num1End Function
    this script return me 2011 but me i want the value in of the year 2011
    thanks

  • Page item field placement in report region

    I have a report region that has item fields in it. Additionally I have a page item field that I can only display above left of the report region. Question: how can I move the page item to middle area above region and how do I associate it's value with one of the report item fields for use in PL/SQL block updates from that page?

    I have a report region that has item fields in it. Additionally I have a page item field that I can only display above left of the report region. Question: how can I move the page item to middle area above region and how do I associate it's value with one of the report item fields for use in PL/SQL block updates from that page?

Maybe you are looking for

  • Employee Data in Dev Client

    We did a client copy from Prod to Dev. Now the HR data is in Dev client. Dev client use to be the playground for our IT staffs to do development and testing with SAP_ALL access. Do you think it is a risk and we should remove the SAP_ALL from IT staff

  • 1.2 / 1.3 JTable getHeaderRenderer() problem

    Hi, I've got a Swing Applet which is currently running on 1.2 which I'd now like to upgrade to 1.3 in order to take advantage of the new functionality. I've done some preliminary testing, and am encountering problems with the upgrades made to the JTa

  • I had IDM 7.3.10 Kindly let me know which version supports this IDM

    Hi, This is Naved I only use firefox and i have IDM 7.3.10 before it was working with firefox, i dont remember which version, by chance i updated firefox and the latest dosnt support IDM kindly let me know which firefox support this version of IDM .

  • How can I find out how many pros intend to use FCP X?

    I work at a school and we have been teaching FCP 6 as part of a Multimedia program. Our goal is to provide training to students so they can continue on with a degree, or gain enough basic skills to get employment. I am now a bit concerned with FCP X.

  • What is Message Function?

    Hi, Is there any concept like Message Function related to IDOC's, ALE scenarios.. Please do not get confused with Message type thanks Dan