I can capture the number of records retrieved by page in the Apex Interactive report?

Hello

I have a requirement in which I need to conditionally hide / show button on an interactive report.

To achieve this, I need to compare the number of reows read by v/s lines page number to be

read as specified by the user (defined using Actions-> lines per page).

Please help me to know if there is a way to capture these 2 values:

1. number of records retrieved in a report by page

2. the value set by the user for the number of rows must be extracted (Actions--> lines per page).

Quick help is really appreciated. Thank you.

Hello

You can use by jariola in his blog

http://dbswh.webhop.NET/Apex/f?p=blog:read:0:article:41900346848694

Thank you

Benjamin

Tags: Database

Similar Questions

  • ORA-20987: APEX - interactive report region does not exist in the application

    ORA-20987: APEX - interactive report region does not exist in the application

    I'm trying to get the query of an international registration (interactive report) on a specific page in my application.

    The code I am using is thesi:

    create or replace function get_report_query (nPage_id number)

    return varchar2

    as

    l_report apex_ir.t_report;

    l_query varchar2 (32767).

    l_list varchar2 (32767).

    number of nRegion_id;

    number of nIR_id;

    OWA.vc_arr nm;

    VL owa.vc_arr;

    BEGIN

    SELECT region_id

    IN nRegion_id

    Of apex_application_page_regions

    WHERE application_name = "E-BRIL.

    AND page_id = nPage_id

    AND source_type = "interactive report";

    nIR_id: =.

    apex_ir.get_last_viewed_report_id (p_page_id = > nPage_id,)

    p_region_id = > nRegion_id);

    NM (1): = "DUMMY_JUST_TO_SET_UP_OWA_UTIL";

    VL (1): = 'WHATEVER ';

    OWA.init_cgi_env (nm.count, nm, vl);

    l_report: = APEX_IR. () GET_REPORT

    p_page_id = > nPage_id,

    p_region_id = > nRegion_id,

    p_report_id = > 0);

    l_query: = l_report.sql_query;

    because me in 1.l_report.binds.count

    loop

    l_list: = l_list | i||'. '|| l_report. Binds (i) .name | » ='|| l_report. Binds (i) .value;

    end loop;

    Return l_query;

    end;

    /

    I want to get the query of the IR on my page 3. And I run;

    get_report_query (3)

    That's what I get:

    ORA-20987: APEX - interactive report region does not exist in application, page 3 and 1278226325207011749 region. -Contact your administrator of the application.

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 630

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 911

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 33

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 55

    ORA-06512: at "EBR_OWNER. GET_REPORT_QUERY', line 19

    The regio_id seems ok, because when I ask this region_id of apex_application_page_regions, id 1278226325207011749 is returned.

    Page 3 is also correct.

    I tried to follow Denes Kubicek his blog (Denes Kubicek ApEx BLOG: interactive report query is).

    What I'm doing wrong here?

    We use the Apex 4.2.

    Thanks in advance.

    Reg,

    Chris

    1717220 wrote:

    Please update your forum profile with a recognizable username instead of "1717220": Video tutorial how to change username available

    ORA-20987: APEX - interactive report region does not exist in the application

    I'm trying to get the query of an international registration (interactive report) on a specific page in my application.

    The code I am using is thesi:

    create or replace function get_report_query(nPage_id IN number)
    return varchar2
    as
    l_report  apex_ir.t_report;
    l_query  varchar2(32767);
    l_list  varchar2(32767);
    nRegion_id number;
    nIR_id number;
    nm  owa.vc_arr;
    vl  owa.vc_arr;
    BEGIN 
    
        SELECT region_id
        INTO nRegion_id
        FROM apex_application_page_regions
        WHERE application_name = 'E-BRIL'
          AND page_id = nPage_id
          AND source_type = 'Interactive Report';
    
        nIR_id :=
          apex_ir.get_last_viewed_report_id (p_page_id        => nPage_id,
                                            p_region_id      => nRegion_id);
    
        nm(1) := 'DUMMY_JUST_TO_SET_UP_OWA_UTIL';
        vl(1) := 'WHATEVER';
        owa.init_cgi_env( nm.count, nm, vl );
    
        l_report := APEX_IR.GET_REPORT (
                        p_page_id  => nPage_id,
                        p_region_id => nRegion_id,
                        p_report_id => 0); 
    
        l_query := l_report.sql_query;
        for i in 1..l_report.binds.count
        loop
            l_list := l_list||i||'. '||l_report.binds(i).name||'='||l_report.binds(i).value;
        end loop;
    
    return l_query;
    end;
    

    I want to get the query of the IR on my page 3. And I run;

    get_report_query (3)

    That's what I get:

    ORA-20987: APEX - interactive report region does not exist in application, page 3 and 1278226325207011749 region. -Contact your administrator of the application.

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 630

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 911

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 33

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 55

    ORA-06512: at "EBR_OWNER. GET_REPORT_QUERY', line 19

    The regio_id seems ok, because when I ask this region_id of apex_application_page_regions, id 1278226325207011749 is returned.

    Page 3 is also correct.

    I tried to follow Denes Kubicek his blog (Denes Kubicek ApEx BLOG: interactive report query is).

    What I'm doing wrong here?

    We use the Apex 4.2.

    The '0' in line 31 should be "nIR_id".

    What is the purpose of the lines 24-26?

  • Lowercase first letter in the name of the column in the non-interactive report... Once again

    A few days ago a posted a question on how to make the column name in a non-interactive report
    out like the lowercase. (original post: lowercase first letter on behalf of the non-interactive report column )
    I use Theme13, which is probably the only theme that forces the first letter
    a column in a report uppercase name.




    In any case, I received several responses, including the response that I applied on my page.
    Then I went back to make the column sortable and which denies the alternative CSS and
    the first letter of the name of the column is back in uppercase... arrrggghhh!

    Are there any other suggestions on how to force lowercase with Theme 13 and a sortable column?

    Thank you
    Donna

    Hello

    Do you have it wrapped in the style tag?

    
    

    BR, Jari

  • to find the number of records retrieved in the select statement in the cursor

    Hi all
    with the cursor, I'm selecting select statement together and writing in the .txt file.
    his worksheet, but it should not open the file, if the cursor returns nothing.
    How to find the number of records returned by the select statement in the cursor.
    pls help me.

    Thank you...

    Don't understand what you're trying to say, but maybe it's...

    DECLARE
       vCounter NUMBER;
       -- Other variables...
    BEGIN
       vCounter:=0;
       FOR .. IN cursor LOOP
        IF vCounter=0 THEN
          -- Here open file...
          -- Here write one time data...
        END IF;
        -- Here write cursor data...
        vCounter:=1;
       END LOOP;
    END;
    

    -Clément

  • I can capture the SQL statement cuasing a mistake?

    I have an error log this capures SQLCODE & SQLERRM.

    I can also capture the statement real SQL causing the error?

    There is also size stack of calls, stack format error and size error backtrace.

    /* Formatted on 6/21/2011 3:45:40 PM (QP5 v5.149.1003.31008) */
    BEGIN
       FOR c IN (SELECT TO_NUMBER ('hey Im not a number') FROM DUAL)
       LOOP
          NULL;
       END LOOP;
    EXCEPTION
       WHEN OTHERS
       THEN
          DBMS_OUTPUT.PUT_LINE ('SQLCODE :' || SQLCODE);
          DBMS_OUTPUT.PUT_LINE ('SQLERRM :' || SQLERRM);
          DBMS_OUTPUT.
           put_line (
             'call stack...' || CHR (10) || DBMS_UTILITY.FORMAT_call_STACK ());
          DBMS_OUTPUT.
           put_line (
             'Error_Stack...' || CHR (10) || DBMS_UTILITY.FORMAT_ERROR_STACK ());
          DBMS_OUTPUT.
           put_line (
                'Error_Backtrace...'
             || CHR (10)
             || DBMS_UTILITY.FORMAT_ERROR_BACKTRACE ());
          DBMS_OUTPUT.PUT_LINE ('----------');
          RAISE;
    END;
    
    SQLCODE :-1722
    SQLERRM :ORA-01722: invalid number
    call stack...
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    c0000002a56b4248        11  anonymous block
    Error_Stack...
    ORA-01722: invalid number
    Error_Backtrace...
    ORA-06512: at line 2
    ----------
    
  • I can capture the screen using 11 first?

    Hi guys

    I thought I was doing a training video for a short time about some software and settings.

    I wanted to capture what appeared on the screen and add it to the imported clips.

    It is possible to capture the activity of the display Windows in the first 11 - or can you recommend a good HD screen capture program?

    Thank you

    N ° you will need a program like Camtasia Studio (best) or FRAPS (one of the more affordable).

  • Display of precision for the timestamp interactive report

    Hi all

    I have converted to date of 'old' data type to "timestamp (1) with the local time zone" in the database tables.

    When I view these fields in interactive report, it appears with a precision of digits 6 (oracle default), but when I use the command SQL under APEX it display them with an accuracy of only 1 digit under the column of database definition.
    APEX always see these columns as a DATE type.

    Anyone know how to view these columns as they stored in the database? (i.e. precision of 1 digit)
    and how can I change time zone session inside the Apex to check this new columns works correctly?

    Thank you

    Published by: whYMe on February 3, 2010 11:38

    Hello

    -Change page
    -Interactive report (report attributes)
    -Edit the icons for the particular column
    -Number/Date format

    It looks like you want: DD-MON-YY hh. FF1 AM

    Mike

  • Footer text region appearing to the right of the BAR INTERACTIVE REPORT SEARCH page

    We are the migration of Express 4.2.1 application at Apex 5.0.2


    We use the 22 Bluejay theme.

    In my interactive reports, I the text entered in the regions 'Header and footer' > footer text, including 4 Apex, rendering at the foot of the report.

    The Apex 5, the same text renders in a new column to the right of the search bar of interactive report.

    Is it a question of model, or a builder bug?

    I can't find where in the model I can adjust the positioning of the text 'Footer region'

    Gus...

    I worked on it a little more.

    just to say that I use the Chrome browser.

    I worked as designer of the Page view and impossible to find using the attribute "footer text".

    I went to the view of the component and found help.

    It is said...

    Enter a footer area to display directly after the body content (that is, after #BODY# in the model of the region) or instead of #REGION_FOOTER #, where this substitution string is defined in the model.

    So I added #REGION_FOOTER # div AFTER the body...

    #BODY #.
    #REGION_FOOTER #.

    Hurrah!  the footer is now in the right place...

    Also, I noticed that if I placed an HTML element
    in the text, footer text would be in the correct position without having to change the model.

    Gus...

  • Update of the elements on the Page regarding filters in Oracle APEX interactive report

    I recently started using interactive reports in my Oracle APEX application. Previously, all pages in the classic application reports. The interactive report in my new page works fine, but now, I would like to add a summary box/table above the interactive report on the same page that displays values added some columns in the interactive report. In other words, if my interactive report displays 3 names of separate Manager, 2 separate offices and 5 different employees, my summary (box) will contain a line and three columns with numbers, 3, 2, and 5, respectively.

    So far, I did this job creating the box summed up as a classic report that account of the distinct values for each column in the same table that my interactive report pulls. The problem is when I try to filter my interactive report. Of course, the classic report is not updated based on the interactive report filters, but I don't know how I could link the two so that the classic report meets interactive report filters. From my research, there are ways to refer to the value in the search box of the interactive report using javascript/jquery. If possible, I would like to refer to the value of the filter of the interactive table with javascript or jquery to refresh the summary box whenever a new filter is applied. Does anyone know how to do this?

    Thanks, Patrick! I was always getting some of the old filters for a reason, but I was able to use the tables included in queries to retrieve my ID to report, that I used in the APEX_IR. Function GET_REPORT.

    More details here.

  • Translate the title of the registered interactive report

    Hello

    APEX 4.2.5.00.08

    Does anyone know a way to translate the titles registered interactive report for a multilingual application?

    I mean saved reports reports of type "Default Alternative" that are defined by an administrator (so not by end users).

    Not sure if there is a way from an admin account sets these reports in the runtime environment, but they are registered/vissible in the IDE, so maybe there's a way.

    I can't find in the repository of the translation.

    Concerning

    Bottom

    Hi there,

    Unfortunately, there is not a way for you to translate the names of the default Alternative to the interactive reports.  This is a known bug issued / filed against Application Express.

    Joel

  • Multiple queries on the same interactive report

    Is it possible to the button click, change the query for a report interactive?


    I created an example at apex.oracle.com

    workspace: stevendooley34

    username: dev01

    password: dev01

    Application: ForumExamples

    Basically what I want to be able to do is on the page by default IR there is a selection list. When the user clicks on the menu drop down and select an option, a search box appears. I want that this research working as a second IR query and third IR query searches that are slightly different queries.

    I know there is the filter option, but users do not want to have to go through and Insert commas between each value, so the second and third queries correct this, I'm not sure how to combine the three pages.

    I fixed this problem on my tabular reports by creating a new report on the same page and making it conditional to show only when the selection type is a certain, but as far as I know, you can't have multiple interactive reports on a single page.

    One thing to note:

    The example is in version 4.2 but my company uses 4.0 which is where I need to implement this.

    If there is another way to do this, I'm open to other ideas.

    Steven

    It's just an extension of what you already created in the Page 3 and 4

    It is very important that you learn to "think in sets.

    Once you have a definition for your dataset, you can easily create SQL statements

    What you're trying to do is to define a set of data that follows these rules:

    • If the search type is null--> return all ranks
    • If the input box is nowhere--> return all ranks
    • If search type = "name"--> return lines which correspond to ename (...)
    • If search type = 'job'--> return lines which match job in (...)

    Your rules will apply in the WHERE clause as:

    WHERE

    : P3_SEARCH_TYPE is null

    or: P3_SEARCH_INPUT is null

    or (: P3_SEARCH_TYPE = 'name' and ename (...))

    or (: P3_SEARCH_TYPE = "work" and work in (...))

    I already modified it Page 3 since it was 90% of the required stuff.

    MK

    Post edited by: Mike Kutz
    reorganized for clearity

  • All images appear as the same interactive report... APEX 4.2.

    Hi, I have worked with apex oracle 4.2.2 window 7 theme 25

    I met the problem when I create interactive report with the BLOB column, I create the sample report and I used the GET_BLOB_FILE_SRC function to display the image in the report but I face these problems
    1 - the images do not appear when I run the report and all the images are empty
    2-i press should edit on any column and go edit page and then return to report once again and the image appear
    3-all folder have the same image (the image with the id that I pressed on)
    I mean when I pressed the record with ID 1 and go to edit the page, then back to the report the image with ID 1 appear in all records in the report, and when to change the id of the same question appear. I don't know what the problem is.
    pls advice me

    Thank you
    Ahmed

    Ahmed.F wrote:
    Hi, I have worked with apex oracle 4.2.2 window 7 theme 25

    I met the problem when I create interactive report with the BLOB column, I create a sample report, and I used the GET_BLOB_FILE_SRC function to display the image in the report

    Didn't it occur to you that it is important to understand exactly how you have used the function in the report? What is the report query?

    but I face these problems
    1 - the images do not appear when I run the report and all the images are empty
    2-i press should edit on any column and go edit page and then return to report once again and the image appear
    3-all folder have the same image (the image with the id that I pressed on)
    I mean when I pressed the record with ID 1 and go to edit the page, then back to the report the image with ID 1 appear in all records in the report, and when to change the id of the same question appear. I don't know what the problem is.

    Looks like you pass item values to the edit page for the values of service instead of the report column. See the example of SELECT in apex_file.get_blob_file_src to see how to use in a report. The values of p_v1 (and p_v2 if necessary) must come from columns of the report, not the page elements.

    Why do you need to use the function at all? Declarative using BLOB format is recommended.

  • Customization of the display of the menu interactive report

    Hello

    [apex 4.2]

    is there a way to customize the GUI of the IR? For example, I just want the menu of graphic design and nothing else.

    THX in advance
    Thorsten

    Open your interactive report definition and go to the tab 'attributes of report', in the 'search bar' section you can enable and disable individual items from the action menu.

    Kind regards
    Bottom

  • Remove the download interactive report HTML

    I have interactive reports where the link in the column on a specific column must be dynamic, which means, that it can not be hard coded in the column binding attributes. Here is an example of such a report query:
    case when d.object_type_description ='Business Service' then
    '< href="f?p='||:app_id||':183:'||:app_session||'::::P183_OBJECT_ID:'||d.id||'">'||d.object_name||'</>'
    
    when d.object_type_description = 'Real Time Event' then
    '< href="f?p='||:app_id||':162:'||:app_session||'::::P162_OBJECT_ID:'||d.id||'">'||d.object_name||'</>'
    else 
       null
    end as "OBJECT NAME"
    As see you in the above example, the link in the "Object name" column could be redirect page 183 or on page 162, based on the column "Description of object Type.

    The column 'Object name' attribute has 'Type display"the value"Standard report column. This works perfectly well in the UI of the report. However, if I download the IR data (in any format) since the Actions-> download menu, the object name column values are downloaded with HTML characters such as:
    < href="f?p=15548:183:6072319179284::::P183_OBJECT_ID:255245470513999672860510787772603748464">JP010000</>
    where JP010000 is the name of the object.

    Is there a way I can strip the HTML code of the column values in the downloaded files?

    I use Apex 4.1.

    Rohit,

    You can set the query link, make hidden, use the value in the link URL column. Thus, your query will look like the following:

    d.object_name,
    case when d.object_type_description ='Business Service' then
        'f?p='||:app_id||':183:'||:app_session||'::::P183_OBJECT_ID:'||d.id
    when d.object_type_description = 'Real Time Event' then
        'f?p='||:app_id||':162:'||:app_session||'::::P162_OBJECT_ID:'||d.id
    else
       null
    end link
    

    Change the display type of the LINK column hidden. In the column link, enter #OBJECT_NAME # as the link text. Select the target URL. Enter #LINK # as the value of the URL. APEX 4.2, you can do this more easily by setting the HTML column Expression.

    Kind regards
    Christina

    Published by: cbcho on 27 Sep 2012 11:35

  • How to align the previous next page link in an interactive report?

    Hello

    interactive report navigation, links between pages are displayed at the bottom right. This becomes a problem if the report has many fields, as long as the user must do scroll down and go down to get the previous page by pressing the link (IE (< =) 15-30 (= >)). How is it possible to have this links left-aligned in a report, or put them in another part of the report?

    TIA

    Hello

    You can set the display Position of the Pagination of the IR with
    -BottomRight (default)
    -TopLeft
    -TopRight
    -TopAndBottomRight
    -TopAndBottomLeft
    If this is not enough, you must use some top of javascript (jQuery prefs) move the object to where you want...

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

Maybe you are looking for

  • Can not find the second slot memory on my Satellite M40x-112

    Hi people, I want to improve my memory, preinstalled are 2 sticks of 512 MB. In the description it is said that the maximum is 2 GB so I bought 2 x 1 GB, unfortunately I can only find a housing... Is someone can you please tell me where is the other?

  • NTLDR error on Satellite L35-S1054 lack

    I was with my recovery cd and applications to restore my laptop to the orginal way he was, and my child cancelled my recovery and now when I try to boot my laptop it tell me that NTLDR is missing, CTRL/ALT/DEL to restart. When I restart it, the same

  • Where can I find c#-function-names for NI Vision project

    Hello I created a project work in NI Vision Assistant 8.5 and now I want to do the same thing as the DLL in c# The only problem is where to find the names of the functions that I gave to use. Currently I m doing: 1 extract HSL - Saturation 2 threshol

  • Software Careworld in Atlanta, Georgia, a fraud or is it legitimate?

    Their software prices real cheep to be true. someone knows something about this Co.?

  • can not boot vista, 0xc0000428 error code, help!

    Says Boot Manager: file: \Windows\system32\winload.exe Status: 0xc0000428 Info: Windows cannot verify the digital signature for this file. can not boot in any mode; memory check indicates OK; the installer showed no error I could recognize. Thank you