Download link of IR, conditional field output means filters are ignored

Hi All,
I need to have a report on screen where the user applies filters, then when they've finished, they extract a subset of the on-screen fields to csv.
The current application uses some on-screen selection lists/text items, a classic report underneath that, then an extract button to run another screen (passing in the filter values) which runs the query again to extract to the external csv file based on the filter values.
I really want to change this to an interactive report, so the users can filter on anything they want to (and not have to request more filters to be added to the screen as we change the schema), then either hit an extract button or better: use the Download capability of the IR.
I have tried:
1. IR with a hidden field to collect an ID, create a collection then loop through the collection contents in a separate screen to output to csv.
problem: the rows have to be on-screen for the hidden item to have a value, so unless the users are showing All rows, I don't get the full data set in the collection (apex_application.g_f01.COUNT just equals the rows on screen)
2. IR, then use the built-in Download capabilities to output to csv.
problem: I don't want all fields downloaded. I may have 20 fields on screen, the user has applied filters to many of them, but the csv needs 3 fields. I can make the output of every field I don't want outputted, conditional on :REQUEST != CSV and leave the others I do want downloaded, unconditional, but then the filters aren't respected (I assume because the field is not available to Apex due to the condition) and I get more rows than I was expecting.
Is there a way of achieving this by using an IR? Is JavaScript the only way by accessing the current filtered query of an IR?
regards,
Malcolm.

Using APEX_APPLICATION_PAGE_IR, APEX_APPLICATION_PAGE_IR_RPT, APEX_APPLICATION_PAGE_IR_COND is the answer.

Similar Messages

  • Chart report Condition fields and Data fields

    Hi all,
    i have tried chart report by adding two condion fields and one data field, the report is more meaning full in this scenario. the first condition field is taken as x-axis, the 2nd condition fields is taken as legend.
    while adding more condition fields and data fields, i feel its not showing meaningfull data.
    can anyone explain how the condition fields and data fileds are manipulated by crystal report.
    i am using CR XI R2 Server.
    Thanks
    Padmanaban V

    i am using Crystal Report XI R2 RAS Embedded in my server.
    as we can add any number condition fields programatically using the method
    ConditionField.Add(FieldObj), i would like to know how these fields are manipulated internally by the RAS server.
    that means, what is the significance of condition fieldobject 1, condition fieldobject 2,condition fieldobject 3 etc...
    if i add more than two condition fields , RAS Chart Report always returns 0 as legend value for all legends.
    Thanks in advance
    Regards,
    Padmanaban V
    Edited by: Padmanaban Viswanathan on Dec 22, 2008 9:53 AM

  • Download link for Skype 6.21

    Since Microsoft have removed Skype 6.21 from their website, you will have to find an alternative source. Filehippo link - http://filehippo.com/download_skype/58884/ - doesn't seem to work. Any suggestions?

    This will fix the UI issue, but there's another glaring problem.  For those of us trying to use Skype to copy any files behind a LAN, in version 6.18 they disabled, and still haven't, and likely won't ever re-enable peer-to-peer LAN transfers.  But, do a quick search on 6.16, and it sounds as if that version is VERY buggy, and not advisable to install.  So, the questions from me are:  Which version with LAN transfers is stable, and where are the links on the "wayback machine", since Microsoft removed any and all download links to previous versions of Skype, and which are not available now, (I guess they know better, and don't trust us to use an older version). The unfortunate state of affairs is that, no one will honestly communicate what is happening at Skype and Microsoft.  Perhaps there is a major business or security reason for these changes.  But, I suspect not.  Even so, please be adult and tell us exactly what you are doing, and why.  We are adults and can handle the truth, even if we don't like it.  I predict that all updates will become forced very soon, as they've stated they will be with Windows 10.  This also will mean they will permanently break any previous versions of Skype.  As of today, March 31, 20215, Skype is now upgraded automatically through Windows update, KB2876229.  Your only option for disabling this is to right click, and choose HIDE.  But, even this may be temporary, since a future update may "unhide" that KB, or issue a new one, just as they did with the Windows 8.0-8.1 forced upgrade.  This will still not disable updates from being requested inside versions 6.18-6.21, for which you must also turn off the "Skype update service". It's time we besiege Redmond to try to regain technical control of our PCs from the nanny decisions that the current engineering team seems to retain from the Ballmer/Metro fiasco days.  I think Nadella may listen.  If anyone can get a note to Bill Gates, he is advising him now, and might get the message across that we all want to regain our rights to control, (and improve), how our PCs behave for us and the users we support.  To ignore this, would further imperil the Windows platform.

  • Why is there no download link for photoshop cs6

    why is there no download link for photoshop cs6

    And what exactly? what are you trying to download from where? Anyway, perhaps check this:
    Troubleshoot Adobe Download Assistant
    Mylenium

  • Download link for blob field on page

    I have a form based on table with a blob column:
    TEMPLATE blob
    The 'Display as' on the item is set to 'File Browse...'
    The Source Type is set to 'Database Column' and Source value or Expression is set to 'TEMPLATE'
    I want the 'Download' link to appear next to the 'Browse' button, so I tried to change the Source value to
    'TEMPLATE::::', but it gives me this when I try to save:
    1 error has occurred
    ""."TEMPLATE" not found.
    How canI get the 'Download' link to appear?

    bobmagan,
    Thanks for importing your app. Sorry for the late reply. Here's what I've found:
    For some reason this download link seems to be tied to the TABLE NAME specified in an Automatic Row Processing process. I created an ARP to process the row instead of using the custom procedure that you wrote to process the record. I specified all the normal stuff in the ARP (i.e., TABLE_NAME, PRIMARY_KEY). After the process was created, I modified the TEMPLATE item source to TEMPLATE:::: w/o error and the download link appeared fine.
    To further test, I then went back the ARP and changed the table name to lower case, edited the TEMPLATE item again, and got the following error:
    *"report_layout"."TEMPLATE" not found.*
    When you use DATABASE COLUMN as the source type for the item, it must be using the table_name in the ARP to identify the column being referenced.
    This may a good question for the APEX developers. They could probably shed more light on this.
    All in all, the workaround I found is to create the ARP and set it's condition to NEVER so that it never runs. You can still use your custom process to insert/update/delete the record. Then you can edit the item, add the TEMPLATE::::, and get the download link to appear. I left the solution up and running in your app for you to see.
    Sorry for all the confusion, but I hope this helps you out.
    Let me know what you think...
    Keith Malay
    www.sds-cg.com

  • Download Link as a Column of Report

    Hi All,
    I really tried from my side to somehow implement this requirement but couldn't find a way.
    Requirement: A report with two main columns - One has unique value and the other has a download link. This download link need to be used to fetch a set of data from the database table using the other column's (unique) value. Then, user should get a popup on his screen to download the fetched data in csv format.
    Please give some guidance or pointers to resolve this issue.
    Regards,
    Mangal

    Hi Mangal
    I've done this before actually. You can create a dummy page with a process (on load before header) as a PL/SQL anonymous block. I got code from Denes Kubicek's site which has details of how to generate CSV output using the htp.prn funtion. Then I created the 'download' link in a report column to go to that page passing a value into a hidden field with the unique id of the row.
    The code on the new page looks something like this but I would refer to Denes' work for full information (most of this is copied from him).
    BEGIN
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="download.csv"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    htp.prn('Header Name,');
    FOR x IN   (SELECT field1, field2, field3...
                  FROM my_table
                  WHERE my_id = :PX_HIDDEN_ID)
    LOOP
    -- Print out a portion of a row,
    -- separated by commas and ended by a CR
    htp.prn(chr(34)||x.field1   || chr(34) ||','|| chr(34) || x.field2   || chr(34) ||',' ||
             chr(34)||x.field3..... || chr(34) ||chr(13));
    END LOOP;
    -- Send an error code so that the
    -- rest of the HTML does not render
    htmldb_application.g_unrecoverable_error := true;
    END;Hope this helps.
    Cheers
    Ben

  • Same field two meaning

    Hi all;
    I need to create a custom data source which contains different fields from different table, I am trying to create a view for this. I have this issue: same field ID has different meaning in two tables and I can't use those two same fields into my view.
    Field name 'POSID' has meaning in below;
    table: IMPZ: Identification for an investment program position
    Table: IMAK : Appropriation Request Number
    My question is I need both field appropriation request number and Identification for an investment program..we have two seperate Info Objects for them in BW.
    Kind help would be appreciated.
    thanks.

    Siegried;
    That was helpful, so even I rename the viewfield, I will get the data from the table right? the other question I have is I am trying to activate the view and getting into this warnings:
    All fields are evaluated as key field                 
    Not all the base tables are linked with join conditions
    The view ignores client-dependency of the base tables

  • First Action in SelectOneMenu doestn't work after download link action

    Hi
    I have a commandLink for to download all the pdf files in a csv file through a servlet action. After that action is completed, when I try to select an option from selectOneMenu, the action seems to occur, i.e. the flash happens, but the option is not changed. That means it doesn't go to the processValueChange action. The second time when we select, the option gets selected. So the first action after clicking the download link doesn;t happen. It happens the second time.
    Here is the code for download link and action
    <h:commandLink action="#{ManualsBean.downloadAsCsv}">
    <h:outputText styleClass="sesOutputText"               value="#{text.download1}"></h:outputText>
    </h:commandLink>
    public void downloadAsCsv () {
    HttpServletRequest request = (HttpServletRequest) FacesContext
            .getCurrentInstance ().getExternalContext ().getRequest ();
        HttpServletResponse response = (HttpServletResponse) FacesContext
            .getCurrentInstance ().getExternalContext ().getResponse ();
        try
          request.getSession ().setAttribute ( "file_contents", documentList );
          FacesContext.getCurrentInstance ().getExternalContext ().redirect (
              request.getContextPath () + "/DownloadCsv" );
          FacesContext.getCurrentInstance ().renderResponse ();
          FacesContext.getCurrentInstance ().responseComplete ();
        catch ( IOException e )
          e.printStackTrace ();
        FacesContext.getCurrentInstance ().renderResponse ();
    }May I please know what else I can do to make the processValueChange action happen the first time itself after the servlet download link action
    Appreciate any feedback on this. Thanks

    The refresh button resets form fields to their initial values. If when the page is first displayed the form fields start out empty and submitting the form causes the page to be redisplayed with the form fields filled in, the reset button will appear to work differently. In both cases it is setting the fields to the values they had when the form was loaded (in effect undoing any changes the user may have made).

  • Conditional Field and Autocomplete

    Hi guys,
    first of all, I'm a system analyst and I work with .NET framework, I'm not a DBA. So I need a help that I guess is simple. I'm creating a table in Oracle express 10g where one of the fields will have its value from a combination of values of two others fields, in the other words, this will be a conditional field.
    Any body know where I can found an example of this implementation?
    Beforehand, my thank you very much

    user10437322 wrote:
    but as I'm not a DBA and I really don't know how to start to work with PL/SQL, do you have some link with samples about that?I know DBAs that know very little about PL/SQL. PL/SQL is a proper procedural language.. not much different than Pascal or Visual Basic or C.
    The big difference is that it is a server side language. And that PL/SQL is in fact 2 separate languages.. PL is the Programming Logic language. It allows you to write native SQL (different language) inside the PL source code, using PL variables... in other words, a seamless and tight integration of the SQL language inside the PL language.
    Thus no need to step out of PL source code and use a database interface/class/whatever to communicate via SQL with the database. You mix your native SQL code directly with PL source code and the PL/SQL compiler figures out the rest (creating cursors, binding variables, etc). Very powerful... and as it is so close to the SQL engine, it is the fastest way to crunch database data.
    So it has very little to do with DBA'ing and everything to do with writing applications. We write full blown (and pretty complex) applications only in PL/SQL, complete with a web interface. Not a single line of code in another language needed. So do not throw PL/SQL into the DBA pigeon hole as it fits rather badly.
    The [Oracle® Database PL/SQL User Guide and Reference|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm] (10g Release 2) is a good place to start. If you're on 11g (or even 9i), you can find the relevant guide via http://tahiti.oracle.com
    PL/SQL is a fairly simplistic language. It does not deal with client interaction (reading keyboard and mouse input). It runs inside a VM that is isolated from the o/s - so PL/SQL code written on a mainframe database will execute happily in a Windows Oracle database. Thus no need to deal with different kernels, issues like big endian vs. little endian and so on.
    There are numerous beginner guides to PL/SQL available. Some of them probably good and some not so good...
    Bottom line is that if you are a good programmer, then you will find PL/SQL easy to use and write equally good code in PL/SQL as you would in any other language. It is not the language that is important and dictate the quality of the code, but the programmer.

  • How to display download link with get_blob or get_blob_file_src ?

    Hello there,
    I am struggling to display a download link in a SQL query report.
    Based on the requirement, I have to create a sql query report that the source contains a series of union select query.
    Example here
    WITH current_engagement AS (
    SELECT defendant_id, engagement_id, pn, ethnicity, date_joined_aodt_court, case_manager_name
    , participation_conditions, discharge_conditions
    FROM engagement
    WHERE defendant_id = :PXX_DEF
    AND date_joined IS NOT NULL
    AND ( date_terminated IS NULL OR to_date(date_joined,'DD/MM/YYYY') > to_date(sysdate,'DD/MM/YYYY'))
    AND active = 1 AND ROWNUM = 1
    ORDER BY defendant_id DESC
    SELECT def.first_name, def.middle_name, def.surname, to_char(def.pn) AS "PN", to_char(def.nhi_number) AS "NHI"
    ,ce.ethnicity, to_char(ce.date_joined) as "DATE_JOINED ", ce.case_manager_name, ce.participation_conditions, ce.discharge_conditions
    FROM defendant def INNER JOIN current_engagement ce
    ON def.def_id = ce.defendant_id
    UNION ALL
    select ' <b>2. Phase Number</b>' , '<b>Date Started</b>' , '<b>Date Finised</b>' , '<b>Notes</b>' , null
    ,null , null , null , null , null
    from dual
    UNION ALL
    SELECT TO_CHAR(NVL(ph.phase_number,'No Phase Found')), TO_CHAR(ph.date_started, 'DD/MM/YYYY'), TO_CHAR(ph.date_finished, 'DD/MM/YYYY'), ph.notes, null
    , null , null , null , null , null
    FROM phase_membership ph INNER JOIN current_engagement ce
    ON ph.mpm_eng_id = ce.engagement_id
    WHERE to_date(ph.date_started,'DD/MM/YYYY') <= TO_DATE(sysdate,'DD/MM/YYYY')
    AND ( ph.date_finished IS NULL
    OR TO_DATE(ph.date_finished, 'DD/MM/YYYY') >= TO_DATE(sysdate,'DD/MM/YYYY') )
    AND ph.active = 1
    UNION ALL
    --more selects
    -- then the last select is to list all related documents with download links
    select '<b>6. Document Date</b>' , '<b>Document Type</b>' , '<b>Description</b>' , '<b>Download</b>'
    , null ,null , null , null , null , null
    from dual
    UNION ALL
    SELECT TO_CHAR(doc.date_received), doc.document_type, doc.comments, TO_CHAR(dbms_lob.getlength(doc.UPLOADED_FILE))
    , null ,null , null , null , null , null
    FROM document doc INNER JOIN current_engagement ce
    ON doc.d_eng_id = ce.engagement_id
    WHERE doc.active = 1
    This report is generated fine.
    But the requirement also ask to display a download link. And because it is union selects, all following selects must be the same as the first select column data types.
    In this case, it has to be CHAR. Otherwise, it will generate error as below
    ORA-01790: expression must have same datatype as corresponding expression
    So I follow the GET_BLOB_FILE_SRC Function step from
    http://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_util.htm#AEAPI129
    I turn my last select into
    SELECT TO_CHAR(doc.date_received), doc.document_type, doc.comments,
    CASE WHEN NVL(dbms_lob.getlength(doc.UPLOADED_FILE),0) = 0
    THEN NULL
    ELSE
    'Download'
    END
    , null ,null , null , null , null , null
    FROM document doc INNER JOIN current_engagement ce
    ON doc.d_eng_id = ce.engagement_id
    WHERE doc.active = 1
    Which the result inside the hreg is
    http://app_address_here/f?p=208:48:1303335952329758:::::
    while if I use Interactive report the link is
    http://app_address_here/apex_util.get_blob?s=1303335952329758&a=208&c=66645817090447568&p=48&k1=12&k2=&ck=A18D20D407435BD649EA3399EC27BC00&rt=CR
    and it works well.
    I do a research and know that get_blob_file_source link to the source of the column / field name located in the first parameter.
    So I had put the UPLOADED_FILE column, DOCUMENT table in the source of the column PN.
    But it still does not show anything that close to the correct one that is generated by interactive report.
    If anyone has any ideas, please help. If I need to manually write using get_blob , please give me an example.
    I urgently need to do this report.
    The version of APEX we use is Application Express 4.0.2.00.07
    And I cannot ask for an upgrade to 4.2 till the end of next year.
    Please help.
    Thanks a lot in advance.
    Ann.

    Hi Ann,
    Here you can see and download the example :
    http://apex.oracle.com/pls/apex/f?p=63066:1
    Please let me know if you need access the work space.
    Hint, Please read the FAQ section. had you put your thread in a better format, you would have gotten a quicker response :)
    Regards,
    Fateh

  • Download link in master detail form

    I am trying to store a PDF file in the DB and then allow users to click on a link to download it. However, I can't get this to work properly. The report region definition does not allow me to alter the source. What I did was create a master detail form and report. Then, I changed the format mask of the field that will be the PDF download link to BLOB and I got this error: ORA-06502: PL/SQL: numeric or value error: character to number conversion error To fix this I need to alter the source code and add the following dbms_lob.getlength("BLOB_CONTENT") as "BLOB_CONTENT". How can I do this if the report region definition is not allowing me to edit it? Is there any other way to do this?

    "197331",
    For Source Value, try uppercase instead: APPSDEPENDENTON
    Sergio

  • Problem providing download link for BLOB data in apex report

    Hi,
    I am trying to create a report on a table with BLOB data so that the report displays a "download" link for the BLOB data. I am trying to give users the ability to download files from a website.
    I have been following the instructions in OBE "Defining and Viewing BLOB Data in Oracle Application Express 3.1".
    In the report, for the BLOB column, I have specified values for the following fields in Report Attributes->Column Formatting->Number/Date Format->BLOB Download Format Mask:
    BLOB Table
    BLOB Column
    Primary Key Column 1
    MIME Type Column
    Filename Column
    BLOB Last Updated Column
    However, when I run the report, I get the following error, even thought there is data loaded into the table:
    report error:
    ORA-01403: no data found
    When I remove the BLOB Download Format Mask information for the BLOB column, then the data displays in the report, but without the "download" link for the BLOB data (which is expected):
    E.g.
    Title Author Created BLOB_CONTENT
    Siebel & RAC Best Practices     Erik.Peterson     17-SEP-08     [datatype]
    Siebel Grid Case Studies     Mark.MacDonald     17-SEP-08     [datatype]
    Siebel CRM Applications protected by Oracle Clusterware     Kelly.Tan     17-SEP-08 [datatype]
    Oracle Grid: The Optimal Platform for Siebel Solutions Mark.MacDonald 17-SEP-08     [datatype]
    Any ideas why I'm seeing the ORA_01403 when I specify the BLOB Download Format Mask?
    Edited by: user716599 on Sep 18, 2008 12:31 AM

    Good morning,
    Here is how I have solved this problem.
    1. The select statement in the sql for the report should not include the BLOB column. I decided to select only 2 columns, the column that has the key and the column with the filename.
    2. On the first column ( the primary key ) I put in the format statement that was simply DOWNLOAD:TABLENAME:BLOB_COLUMN:PRIMARY_KEY
    This works. I believe that the Oracle error I was getting was because I was trying to apply this format statement to the actual BLOB column.
    So, it appears that you can use any of the columns in the report to hold the DOWNLOAD format statement since in the format statement, you are defining the BLOB table, BLOB column and the primary key into that column.
    Hope this helps,
    Don.

  • Problem with download link for a BLOB Column in a "Classic report"

    I am having a problem where I cannot make a download link for a blob column function in a "classic" (non-interactive) report. I went through the tutorial on this topic and it was great help it working out the minor bugs, but I get a 404 error (apex_util.get_BLOB not found). For testing purposes I went ahead and created a an identical report on the same page that is an "Interactive report" and it works like a charm. Same query, same BLOB formatting Mask, pulling data from the same table. So, it really doesn't seem like an issue with the grants, since both reports should be executing as the same user.
    I know it sounds like the obvious answer is to just go with the interactive report and my problem is solved, but the rest of this site uses classic reports, and I don't need the sort features of an interactive report, and the slightly different style of the the report really stands out even if I turn off all the bells and whistles. I don't want to change the css to make them look identical, I just want a regular report to work.

    I eventually found another post: APEX_UTIL.GET_BLOB was not found on this server
    In this post there is the suggestion of putting "dbms_lob.getlength("var")" after the date field in your select. So I changed my query to have it at the end, and now my format mask (DOWNLOAD:table_name:ATTACHED_FILE:FILE_ID::FILE_MIME_TYPE:FILE_NAME:::attachment:Download) works like a charm, in a classic report.

  • FlashPlayer Distribution Agreement - Download link not working (404)

    Hello
    We’ve got a new distribution agreement, but there seems to be a problem with the download link:
    "Adobe® Flash® Player
    Unter der folgenden Adresse können Sie die gewünschte Flash Player-Version zur Weiterverteilung herunterladen:
    http://www.adobe.com/de/products/flashplayer/distribution4.html#http://www.adobe.com/de/products/flashplayer/distribution4.html#ID_RemovedIDREMOVED
    We do know Adobe is changing the method how distribution partners should access the binaries, we saw in the mail that the old method will be decommissioned not before the 18 of November.
    "• The existing hosting site URL will be decommissioned on November 18, 2014."
    Can someone please investigate our issue?
    Kind Regards

    Hello,
    The folks responsible for that page are working to fix the localized pages, which are not displaying.  In the mean time, please use the English version of the page, Adobe Flash Player Distribution | Adobe.  Thank  you.
    Maria

  • Solaris Download link not working

    Hi !
    The download lnk for oracle 10g solaris x86 is not wirking can sombody get me a link where i can download this packages
    Solaris 8 x86 is not available for download in sun's official site
    where can i get it .
    Thanks and regare

    Sanghai wrote:
    hi
    very thankful for your link it seems that my proxy server was not allowwing me to download the package
    I could have mark the question answered in my previous post
    but the question is not yet solved.
    how can i mark the question as answered without getting it answered.
    I mean i have hard time to fine the Sun Solaris 8 x86 download link.
    Thanks.:) Amazing. You still think that your question still NOT answered? :)

Maybe you are looking for