Interactive report that returns 0 rows on the initial screen of forcing

How can I get the initial display of my interactive to have 0 rows (and quickly) reports on the initial display, so that the user can determine the lines they want without having to wait for the report view without much in the way of the filters?

My reports many lines of 50-100 k with several joins of tables: so they are slow and the initial default result set is not useful for them, until they start of construction interactive filters themselves.

I tried to add a default I / filter R which is never true, return 0 rows, but if I have good corrrectly, APEX will execute the sql 1, returning the default #of ranks backward, THEN that wraps like a subselect and applies to the i / R filters. So, I still have to wait for the report of 'run' before its filtered to 0 rows...

I'm experimenting also with a flag of pxx_firsttime, intiall value, and according to my report SQL NVL(:Pxx_FIRSTTIME,'Y') = n and (rest of joins of tables)...
the problem I have with this is, how can I get this option the value N as the user begins to use the interactive report filters, etc., which seem NOT to resubmit the page?

Thank you

Hello

I tried to add a default I / filter R which is never true, return 0 rows, but if I have good corrrectly, APEX will execute the sql 1, returning back by default #of lines, THEN that wraps like a subselect and applies the > I / R filters. So, I still have to wait for the report of 'run' before its filtered to 0 rows...

Yes, you are right.

I assume that you already have using the paging Type as line from X to Y.

the problem I have with this is, how can I get this option the value N as the user begins to use the interactive report filters, etc., which seem NOT to resubmit the page?

Whenever the user do something with 'Actions', APEX IR will get updated. Thus, to create a dynamic Action that will be triggered before the refreshment of your IR, update the session state from P1_FIRSTTIME_FLAG to "n".

Kind regards
Hari

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?

  • interactive report - highlight a line based on the date column in the past

    We have an interactive report that shows an expiration date. We want to emphasize the lines when this date is in the past.

    How is that possible?

    Best regards, Nann

    Hi Nann,

    Add the below css in the HTML of the page header

    
    

    Kind regards
    Shijesh

    You can reward this answer marking it as useful or Correct ;)

  • Hello my MacBook Pro model (MacBook Pro (15 inch, early 2011 am Dubai bought the Sryalsh C02FD2CPDF8 number and I am in Iran that MacBook Pro not enter the device screen when I turned on the pink vertical lines can be seen, the problem is restless))

    Hello my MacBook Pro model (MacBook Pro (15 inch, early 2011 am Dubai bought the Sryalsh C02FD2CPDF8 number and I am in Iran that MacBook Pro not enter the device screen when I turned on the pink vertical lines can be seen, the problem is agitated and it is not difficult to work with him because I like and what I should I do?))

    Serial number C02FD2CPDF8V

  • Modal calling report that calls another Page to the APEX 5

    I have an interesting question here for the community...

    Using APEX, theme 42 5.  I have a report with a button that will call a modal form.  on the form modal is a LOV which will set a value to the calling page.  If the value returned to the calling page, I then need to redirect to another page in the application by assigning a page element on the new page with the value that I have just received from the modal page.

    I have everything up to the second rec = direct working in a test environment and I have problems with redirection...

    All those who want to watch here is the information:

    URL: https://glassfish1.revion.com/apex/f?p=4550:1:23425296545047:

    workspace: homeworld

    user name: demo

    password: demo

    application name: emp demo test (143)

    I have built dynamic actions to get the value of the page where I need but when try to redirect to the page and set the page item, that I don't get the redirection to work...

    Thank you

    Tony Miller
    Los Alamos, NM

    Hi Tony,.

    I'm just curious... If it worked for you?

    Thank you

    Pavel

  • Interactive report uncheck filter when you add the new filter

    Y at - it all possibliity to uncheck all filters that are already defined in an interactive report when you create a new filter?

    My first approach by adding a dynamic action that is bound to the search field:

    key_down = event
    jQuery Selector = #apexir_SEARCH
    scope = live event

    The Action contains:
    $('input:checkbox').attr ("checked", false);

    At present, there are 2 problems:
    1. when the user presses 'go' or 'enter' the check box is checked again when the result is displayed
    2. If a filter is defined when the search box is not used, it does not work

    Hi Oliver,.

    too many problems I think. You can try to hack any POST message, analyze it, and if it's p_widget_action = FILTER stop action and interfere with an AJAX to APEX_UTIL call. IR_FILTER or IR_RESET. After the AJAX request was returnd (synchronous), you can start again the original MESSAGE that defines the new filter.

    Hmm. sounds to me like you'd better ask the customer if he is willing to pay for this kind of convenience.

    Greetings from Germany from the North,
    Andreas

  • Interactive reports using collections - how to control the column headers

    Hello

    I found a link on the forum somewhere that showed a step by step how to use collections with interactive reports, you can dynamically generate SQL code and also control the column headers. Does anyone know where is the manual?

    Otherwise, I know how to generate dynamic SQL code, but what is the best way to control the column headers.
    Sometimes, the report will have 17 columns and other times up to 30 columns.

    Thank you, Bill

    Hi Bill,

    You can use * & ITEMNAME.* notation for the column headers. This means that you can have elements of page/application that contains the topics you need which can, of course, be filled using PL/SQL and, thus, could be established in your code. It's a bit of pain to have to do this for each section, but I do not see a quicker method.

    Andy

  • If a view object query returns no rows, can the vacuum to be tested at all?

    All those who know or have also experienced:

    I guess that the answer should be Yes, but I tried anyway, I still didn't worked. Here is the code (it's a method behind a command button, a bean of support (I use JDeveloper 10.1.3.4).) In the code, LoggedInStudent is the name of a view object; ZBLCModule is the name of the application module):
        public String commandButton1_action() {
            FacesContext fc = FacesContext.getCurrentInstance();
            ValueBinding vb = fc.getApplication().createValueBinding("#{data}");
            BindingContext bc = (BindingContext)vb.getValue(fc);
            DCDataControl dc = bc.findDataControl("ZBLCModuleDataControl");
            ApplicationModule am = (ApplicationModule)dc.getDataProvider();
            ZBLCModuleImpl zblcam = (ZBLCModuleImpl)am;
            LoggedInStudentImpl studentsFound = (LoggedInStudentImpl)zblcam.getLoggedInStudent();
            
            String navCase = null;
            
            // Test (1): if the view cache is empty; always bombs up the application if it IS empty:
            if(studentsFound.getAllRowsInRange().length == 0) {
                navCase = "userNotFound";
            // (2) The following three tests gets to run only when the cache is not empty; they work fine.
            } else if (((Number)studentsFound.first().getAttribute("HoursAttm")).floatValue() == 0.0) {
                navCase = "noHours";
            } else if (((Number)studentsFound.first().getAttribute("Balance")).floatValue() > 0.0) {
                navCase = "notZero";
            } else if (!(studentsFound.first().getAttribute("Validated").equals(" "))) {
                navCase = "validated";
            } else {
                navCase = "zeroBal";
            }
            return navCase;
        }
    When the view object query returns a line, the whole of the application works without error. When the query returns no rows, test (1) always bombs toward the top of the application, prompting a Houston-30003 error.

    (1) test, I tried the following:
      if (studentsFound.getAllRowsInRange().length == 0)
      if (studentsFound.first() == null)
      if (studentsFound.getEstimatedRowCount() == 0)
      if (studentsFound.isDead()) //I do not know what isDead() does; just tried desperately.
      if (studentsFound.equals(null))
      if (studentsFound.getCurrentRow() == null)
    With each of these events, I got an error of Houston-30003. It does not matter what looks like the conditional test; It is important only when the objects from view cache is empty. If the view cache is not empty, everything, including the test (1), works very well. And when the cache is empty is not because of the failure of the connection to the database, but because the student is not in the data table and line are for the student.

    It is a requirement of the company to do something when the view object query returns no rows. Can it be tested at all? How?

    Or is there something wrong in the first lines in the method before the {color: green} String navCase = null; {color} line?

    Thank you very much for your help!


    Newman

    Hello

    What you have done, is to get a handle to the object that CAN execute queries to the database.
    However, you do not query the database.

    Just add:

      LoggedInStudentImpl studentsFound = (LoggedInStudentImpl)zblcam.getLoggedInStudent();
      //New line
      studentsFound.executeQuery();
    

    The code that Shay has given you is when you do not have a request for all module, but since you are talking about a command etc button I guess that the module of the application is already active.
    The line I gave you should be enough to make it work.

    I'd be careful with the

    studentsFound.hasNext();
    

    I suggest to use estimatedRowCount();

    -Anton

  • How it is possible to create the chekbox in interactive report column header and select all the features.

    Hello

    My requirement is

    Interactive report the first element of box check columns and the topic also point check box.

    If I click on the element of box section columns and then automatically select all the lines in the box.

    Select all / deselect all interactive report header check box.

    Kind regards

    Arianne.

    Check this box

    https://Apex.Oracle.com/pls/Apex/f?p=76604:2:111027941779152:

    username:-test

    password:-test

    SELECT

    APEX_ITEM. HIDDEN (2, null, null, 'f02_': rownum) |

    APEX_ITEM. CHECKBOX2 (P_IDX-ONLINE 01,

    P_VALUE-online null,

    P_ATTRIBUTES-online null,

    P_CHECKED_VALUES => NULL,

    P_CHECKED_VALUES_DELIMITER => ':',

    P_ITEM_ID-online 'f01_ ' | ROWNUM,

    P_ITEM_LABEL => ' label for f01_ #ROWNUM # ')

    as Delete1,.

    of the double

    Choose the column type: report

    in the heading of column delete1

    Simply put

  • subquery returns no row in the main query, but hard returns the value of the master query

    Oracle 11g, Solaris SPARC 64-bit:

    This is the master query: its not to return all the lines

    Select count (*) in the sadmin.usr_mods where to_char (ts_id) in ((select to_char (rtrim (ltrim(TS_MODULES,','), ',')) in the sadmin.usr_rfc where TS_KINTANA_PACKAGE_NUMBER = '123' and ts_projectid = 3));

    COUNT (*)

    ----------

    0

    But wherever if I use subquery only returns he lines:

    SQL > select rtrim (ltrim(TS_MODULES,','), ',') from the sadmin.usr_rfc where TS_KINTANA_PACKAGE_NUMBER = '123' and ts_projectid = 3;

    RTRIM (LTRIM(TS_MODULES,','), ',')

    --------------------------------------------------------------------------------

    49,54

    If I use these values as hardcoded to a select master it will return 2 rows:

    SQL > select count (*) in the sadmin.usr_mods where to_char (ts_id) in ('49 ', ' 54');

    COUNT (*)

    ----------

    2

    TS_MODULES datatype is CLOB

    TS_ID datatype is set to number

    Help, please

    with

    usr_rfc as

    (select 3 ts_projectid, 123 ts_kintana_package_number, to_clob(',49,54,') ts_modules

    of the double

    ),

    usr_mods as

    (select ts_id 49 Union double all the)

    Select 50 in all double union

    Select double 54

    )

    Select count (*)

    of usr_mods

    where to_char (ts_id) in (select regexp_substr (to_char (rtrim (ltrim(TS_MODULES,','), ',')),'[^,] +', 1, level))

    of usr_rfc

    where TS_KINTANA_PACKAGE_NUMBER = '123'

    and ts_projectid = 3

    connect by level<= regexp_count(to_char(rtrim(ltrim(ts_modules,','),',')),',')="" +="">

    )

    COUNT (*)
    2

    Concerning

    Etbin

    Select count (*)

    of usr_mods

    where instr ((select ',' | to_char (rtrim (ltrim(TS_MODULES,','), ',')) |)) ','

    of usr_rfc

    where TS_KINTANA_PACKAGE_NUMBER = '123'

    and ts_projectid = 3

    ),

    ',' || TO_CHAR (TS_ID) | ','

    ) > 0

  • How to create an interactive cursor that returns a numeric value.

    Hello world

    I am trying to create an interactive slider that the user can drag an icon from left to right, in order to select a numerical value. This numeric value will be output to a dynamic text box to capture the data. Please see the example at the link below...

    http://www.carbontrust.co.UK/solutions/CarbonFootprinting/carbonfootprintindicator.htm

    I welcome suggestions of action script to create a slider like that.

    Thanks for your help

    Just as an example, open a new file and add a movieclip on the stage... give it an instance name of "handle" and place it at x = 0, y = 100.  Then place this code in a layer of actons (code red, it's how the drag limits are set)

    handle.addEventListener (MouseEvent.MOUSE_DOWN, mouseDown)

    function mouseDown(event:MouseEvent):void {}
    handle.startDrag (false, new Rectangle (0, handle.y, 200, 0));
    }
    handle.addEventListener (MouseEvent.MOUSE_UP, mouseReleased);

    function mouseReleased(event:MouseEvent):void {}
    handle.stopDrag ();
    }

  • Service that returns all documents at the Complutense University of MADRID

    Do we not have a service that returns the revision Lee of all documents (native document and documents of data file type) at the Complutense University of MADRID?

    Kind regards
    Pratap

    Hi Pratap,

    GET_SEARCH_RESULTS does not return the latest revisions? You can restrict to only native of Documents and data files if you want in your query. You will be limited by the MaxResults defined in the file config.cfg to the content server, I think.

    -jason

  • Call a procedure that returns an array of the results of dotnet

    Hi I have a function in the database (see below), I am creating a Web page and you want to call the function and get the results, how can I do this in dotnet using the ODP.net. does anyone have a code please... I called procedures in the database that return of refCursors but not tables.


    Type rec_user is record (call varchar2 (200),)
    Identification number);

    Type tab_user is table of the rec_user;

    function populate_user (piusername in varchar2) return tab_user;

    ------------------------------
    Concerning
    Ash

    Hello

    Registration table is a PLSQL type and cannot be called from OIC (this is what ODP.NET is written in). If you change the procedure to return the table or Varray of the object instead, you could do that with the support of the UDT available in ODP 11106.21 and higher.

    There is an example in this thread that you may find useful:
    By the way the table of the UDT or Collection, as IN to the OracleDbType.InputOutput HELP

    It will be useful,
    Greg

  • User_Scheduler_Jobs query returns no row in the version 2.1.0.63

    Using the 2.1.0.63 version, "select * from user_scheduler_jobs;" returns no rows. It works fine in version 1.5.5.

    Published by: User65423 on February 8, 2010 09:24

    Refer to this topic, when the cause seems to be due to SQL Developer manages not null interval data types.

    bug? F9 gives no output dba_scheduler_jobs, version: 2.1.0.63.73

    As mentioned in this thread, you can use to_char on the columns of the interval as a workaround...

    SELECT source,
    destination,
    comments,
    flags,
    job_name,
    job_creator,
    client_id,
    global_uid,
    program_owner,
    program_name,
    job_type,
    job_action,
    number_of_arguments,
    schedule_owner,
    schedule_name,
    start_date,
    repeat_interval,
    end_date,
    job_class,
    enabled,
    auto_drop,
    restartable,
    state,
    job_priority,
    run_count,
    max_runs,
    failure_count,
    max_failures,
    retry_count,
    last_start_date,
    TO_CHAR(last_run_duration),
    next_run_date,
    TO_CHAR(schedule_limit),
    TO_CHAR(max_run_duration),
    logging_level,
    stop_on_window_close,
    instance_stickiness,
    system,
    job_weight,
    nls_env
    FROM user_scheduler_jobs a;
    
  • I have read reports that ICS was released in the United Kingdom

    I read on about 20 Web sites now that ICS is out for the RAZR in the UK

    But when I check my phone it say, it is up to date.

    Is ICS offline and if yes why my phone says no it isn't

    Or do I have to make an adjustment on my phone to get the download to start

    I've never had to do it before my old Sony/HTC phones had updates simultaneously dead Web sites.


Maybe you are looking for

  • am dat upgrade windows apoi dat sistem if iam acum nu may pot the restore key shimmb

    am dat upgrade windows apoi iam dat sistem restore iar cand imi dau upgraded AI same cod da sal schimb naked ca vreau EU is upgradeaza if nici numi apare pagina his pun cod alt imi arata fail celalalt cod cu toate ca numai a data of prima fost bun

  • call of duty 6, I installed and the game is choppy... help me please if you can ty... _

    Why is my jerky game I am running windows 7 whitch is classified in the specifications compatible if you can help I'll b very grateful...

  • Not to run music

    Hi all I am unable to view the music that I put on my Sansa Clip.  I can drag the music to the mp3 player via windows Explorer and it shows the updated player, but when I go to play music, this is no the case to find.  I have formatted and traversed

  • How to convert a .cwk MAC Windows .doc file

    I have an old file type of Mac, .cwk (Claris works).  Hold open and save the file in Word .doc format without losing any formatting.  I know that I can pull in Notepad in .txt format, but then formatted becomes symbols.  Someone at - it a good idea?

  • Using wireless for TV Panasonic bridge

    Hi all I have a question I have cisco m10 valet wireless router, I am moving to an apartment and plain on buying a new panasonic tv model tcp46s30 will be my only way to connect to wireless internet. Panasonic made a lan usb apapter $70.00, but its n