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

Tags: Database

Similar Questions

  • [ADF, JDev12.1.3] How to get the column headers, request of VO and VO bind vars used by an af:table?

    Hallo,

    I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:

    • the column headings of the af: table
    • Visible property (true/false) of the columns af:table
    • the actual query of the VO instance used to create the af: table
    • the values of real bind variables passed to the query of the instance of VO

    I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.

    I'm a little confused on who use the code to achieve this... you kindly help me?

    I did a similar qustion here Re: [ADF, JDev12.1.3] how to export an af:table to Excel in an ADF Essentials application? but then I guessed that it was preferable to create a new thread.

    Thank you

    Federico

    For this, you can use this type of code

    Context LocaleContext = _adfTableBinding.getLocaleContext ();

    for (attr AttributeDef: attributeDef) {}

    Label As String = attr.getUIHelper () .getLabel (context);

    _logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)

    "Name:"+ label);

    }

    which produces this output

    Timo

  • How to control the columns of various lines

    Dear members,

    I have a few lines displayed in the region of table edge on a Page of the OFA.

    The page has 3 columns, i.e., Col1, Col2 and Col3

    I also add a line on this chart button.

    When I opened the page, by default, it displays 4 rows. Now I don't want users to update these 4 rows. But users can insert new lines by clicking on the button Add a line.

    When users click on the button to add a line, I am able to create a new line, but how do I prevent users from updating the already displayed 4 lines.

    Please help me.

    Thanks in advance.

    Kind regards

    Hello

    Define a transitional attribute and name it freezes and set the default value for Y and when the query is executed in the query process, set the value as Y and make fields read-only if the value is there.

    Add which line touches, get the value of the current line and the value of gel on the current line as N. This way only the new lines added will be editable. On save, make the value of gel to Y for all records.

    I did the same thing, and it would solve your problem.

    Kind regards
    P.D. Moorthy

  • How to get the column headers into an Excel report with variable width columns?

    Hello:

    I read this question before but I can´t open the link when I try to download the solution I get the following: status HTTP 404 the requested resource is not available.

    Can someone help me with the solution? I want to just put a heading for each column (1 thermocouple, thermocouple 2, anemometer, etc.).

    In advance, thank you for your help!

    You may need to take some tutorials.

    LabVIEW Introduction course - 3 hours
    LabVIEW Introduction course - 6 hours

  • How to tell if someone uses remote adjustment to control the use of my computer?

    How to tell if someone uses remote adjustment to control the use of my computer?

    * original title - monitoring computer use *.

    Hello

    Why do you think that someone is watching your computer use? One would have to have
    loaded tracking software (trojan) on your computer or have access to the source of the network
    you use, such as cable, on your leg of it and have very sophisticated equipment.

    If you need search malware here's my recommendations - they will allow you to
    scrutiny and the withdrawal without ending up with a load of spyware programs running
    resident who can cause as many questions as the malware and may be harder to detect as
    the cause.

    No one program cannot be used to detect and remove any malware. Added that often easy
    to detect malicious software often comes with a much harder to detect and remove the payload. Then
    its best to be thorough than paying the high price later now too. Check with them to one
    extreme overkill point and then run the cleaning only when you are sure that the system is clean.

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
    the regular windows when you can.

    TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
    It will display all the infections in the report after you run - if it will not run changed the name of
    TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
    check with the other methods below.
    http://support.Kaspersky.com/viruses/solutions?QID=208280684

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
    (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/products/malwarebytes_free

    SuperAntiSpyware Portable Scanner - free
    http://www.SUPERAntiSpyware.com/portablescanner.HTML?tag=SAS_HOMEPAGE

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can
    Download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
    security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
    here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
    (viruses, Trojans, rootkits, etc.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

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

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

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

    Original version is now replaced by the Microsoft Safety Scanner
    http://OneCare.live.com/site/en-us/default.htm

    Microsoft safety scanner
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

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

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

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

    After the removal of malicious programs:

    Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
    system files.

    Start - type this into the search-> find COMMAND to top box and RIGHT CLICK-
    RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker
    (SFC.exe) program generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

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

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    =======================================

    For extreme cases:

    Norton Power Eraser - eliminates deeply embedded and difficult to remove crimeware
    This traditional antivirus analysis does not always detect. Because the Norton Power Eraser
    uses aggressive methods to detect these threats, there is a risk that it can select some
    legitimate programs for removal. You should use this tool very carefully and only after
    you have exhausted other options.
    http://us.Norton.com/support/DIY/index.jsp

    ================================

    If you are in North America, you can call 866-727-2338 to get infections of virus and spyware. Seehttp://www.microsoft.com/protect/support/default.mspx for more details. For international information, check your subsidiary local Support site.

    I hope this helps.

  • How to change the column ordering the interactive report?

    How to change the column ordering the interactive report?

    Hello

    Run the report as a developer, click on the "wonder wheel", click "Select columns" and reorder your columns in the box 'report '.
    Then click again on the "wonder wheel", click on save report and save the default state.

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

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

  • "Invalid number" error help search interactive report on collection

    Hello - I have several collections-based interactive reports. In directian IR query definition.
    I threw the values in the collection according to the needs (number, date, etc.). Everything has been working very well.
    In development and production, I can use the interactive reports search feature
    and he finds the lines containing the text I type in (as well as everything else works fine...)

    Only, I imported a new version of an application in our production database. Now, when I use the
    search for interactive report, I always get "invalid number." This occurs even on interactive reports
    It still work in the previous version of the application of production... and these IRS
    have not changed at all.

    If I create a filter and search for "elevation" in a string column, the filter works. If I create a filter
    you are looking for a "rise" in a column for the number, I get "invalid number." (In development
    environment, I can do the latter - it does not just lines.)

    Clearly it stifles the column types in the IR... but why now and not before and why
    in the production database but not the DB development? The two are running 4.0.1.00.03.

    It is a sizable loss of features... and it comes at a really bad time... Help?

    Thank you
    Carol

    Hello

    What a lot of tests!

    Preferences, particularly sorting preferences, can cause problems because they are actually stored on the database and used next time the page is loaded. So, in the meantime, something has changed on the report sorting preferences may no longer work.

    There is a function of Apex that you can use to clear the user's preferences:

    BEGIN
     WWV_FLOW_PREFERENCES.REMOVE_PREFERENCES('username');
    END;
    

    and you can remove any sorting preferences using the:

    BEGIN
     APEX_UTIL.REMOVE_SORT_PREFERENCES ();
    END;
    

    other admin functions and which are described in: http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.htm#CHDHDFHB

    You could provide a button on a homepage (or whatever page the user can always happen to) that triggers the second bit of code - it can not solve the problem, but it would eliminate a possibility.

    Most of the time removing their sorting preferences should not cause issues - most, if not all, remember what was the sort order, they used last.

    There must be a table somewhere that stores these preferences - but I was not able to find it (but, I'm sure someone can tell us right away what it is!) - which would make it easier to empty.

    However, as I understand it, the preferences are stored using one ID region. If the problem persists, I could only suggest that you create a second region, exactly as the first and then delete the first region.

    As to the question of the user/developer session. I've seen this before. I think (and highlight 'think'!) that if you are connected as a developer that also uses the same connection to the application, then your session as part of the application does not stop really until your disconnection from the development environment. I see a disconnect in the application and then go directly to a page within the app (perhaps using the browser history or by changing the URL) will take back you in the session as if nothing had happened. It was a gene! I got around this by having two browsers (for example, FireFox and IE or Chrome) - the update was done in FireFox and I logged directly in the application in the Explorer on the other. You will also find some development easier - there is an option on the pages of the attribute at the top right that says: "return to this page. If you check this option before clicking on apply changes, you return to this page. Refresh the other browser gets your new changes. Then, if there are problems, you are already on the page that needs updating - even easier if you click on one of the selectors of the area as the setting of the problem is brought to the screen.

    Andy

  • How to control the speed of the fan on Satellite A660 - 11 M?

    Please any body know how to control the fan speed its always of 69% and making bad noise and the cpu use is 3% no to treatment high I try avancΘs power but still runing high speed

    Advanced power settings go to Toshiba power Saver saver > cooling method. There are minimum level. Change back to your power management for a second power plan, and the fan must be much quieter.

    I did it on my Satellite A660.
    Before changing PC Toshiba, health monitor showed CPU temperature 41% and the speed of the fan was 67%. After changing the method of cooling fan speed is 0%.

  • How to control the output voltage?

    Good time after some time can get the output voltage, but this value is alwayscontinuous. How to control the voltage output through a Boolean? In

    in order to get this tension when I want to.

    Greetings.
    Hugo Santos

    Hi Hugo,.

    If you use a LabVIEW project, you must set the time of sampling in the properties of the node (see SamplingInterval.png). But this time to refresh the data should be high enough. If you take into account this update of time trying to control your way out.

    Kind regards

  • How to control the height of the Vertical slider

    I use a slider to control the zoom of the camera in a ForeignWindowControl but the slider is too big, how adjust its height? The docs say preferredHeight does not make a difference then what? I currently have my navigationpane back bar overlapping the cursor that does not look very good.

    Not quite sure, but one displayed vertically or horizontally, have you tried preferredWidth?  In other words, even if it is displayed vertically, he could still be considered as its width...

    -Edit-

    ... or maxWidth as the case may be...

  • How to control the ws appeal period

    Hi Experts,

    I use bpm12.1.3, when the process web service using the service task, how to control the delay?

    Best regards

    Hi user,

    There is a nice blog on wait times. It's about 11g, but it also applies to 12 c.

    https://technology.AMIS.nl/2011/11/18/timeouts-in-Oracle-SOA-Suite-11g/

    Antonis

  • How to control the movement of the oam in muse &amp; just play once the proposal?

    How to control the movement of the oam in muse & just play once the proposal?

    This must be configured during the creation of the oam, no Muse, but the animated application you use.

    Thank you

    Sanjit

  • How to control the length of the field... ?

    Hi all


    All by providing payment details in the payment.jsp... If we use a credit card which has 16 digits then, how to control the ground to allow the entry of 16 digits only... ?


    Thank you
    Vishnu

    Write javascript to enter only numbers and set the "16" size = attribute to limit the size to 16 digits.

    JavaScript can be like that of google.

    function isNumberKey (evt) {}
    charCode var = (evt.which)? evt.which: event.keyCode
    If (charCode > 31 & (character code < 48="" ||="" charcode=""> 57))
    Returns false;

    Returns true;
    }

    -Kiss

  • How to control the length of field, select items list to 4.2 page

    I apologize in advance if I ask what is obvious, but simply, I couldn't get a response yet:

    I would like to know how to control the length of the elements of the type selection list page 4.2
    (as for a normal textfield: in the case where the content is longer than simply not all appears on the screen)

    help much appreciated
    see you soon
    Wim

    WimDeGroot wrote:
    I apologize in advance if I ask what is obvious, but simply, I couldn't get a response yet:

    I would like to know how to control the length of the elements of the type selection list page 4.2
    (as for a normal textfield: in the case where the content is longer than simply not all appears on the screen)

    Normally the browser automatically resizes the selection list based on the content.

    What version of the browser / do you use?

    What theme?

    What model page/region?

    What form/article layout?

    What content does not match?

    (Basically the best way to get help with problems of this type is to reproduce on apex.oracle.com and see us actually...)

Maybe you are looking for

  • for the past 3 weeks, firefox won't let me in yahoo mail, yahoo but OK for mail, he says now that he doesn't like the connection!

    It started with the link, I used to use, but also gives the same problem when I start from the hame yahoo page. It shows the home page and allows me to use the other links on this page, except my mail!

  • Firefox crashes whenever I try to open it.

    Firefox crashes when I try to open it. This has happened for days. It began without warning and I was not aware of the changes or updates before that happens first. I tried to open it in safe mode, without success. No Firefox update done just before

  • Delete never used iCloud account / AppleID

    Hello I have a problem with an unused iCloud account. The account that I use on all my devices is a @me.com and it also shows the @icloud.com. The secondary emailaddress I added seems to be my work address, I will lose that I quit my job recently. No

  • USB DAQ error after update to 15.1 DAQ

    Everything worked well (DAQ 9.5) on my windows XP SP3 machine, so I thought that it's a good idea to install the last DQA 15.1, NOW my USB DAQ has a Red Cross in NI MAX and does not I tried to reinstall OR DAQ 15.1, restarted the PC, plug the NIDAQ i

  • HP PSC1215 All in one – system error

    Since upgrading to IE8, I have the following problem:-J' have a HP PSC1215 all in a single priner who recently has begun to come up with "this document cannot be printed due to system error" function Copier & scan still works OK. Connection is by USB