BLOB Support in Reports - Download Text

I have included a BLOB database column within my report. Now I would like to use the name of the file that was uploaded into the BLOB database field as my download text instead of the default download text "Download".
According the APEX User's Guide 4.0 substitution strings are permitted in the 11th position of the DOWNLOAD format:
11 Download Text String used for the download link. If nothing provided, Download is used. Note that this will support substitutions (useful for translated applications).
I have tried the following DOWNLOAD format but the file name is not substituted as the download text.
DOWNLOAD:PIBDOCS:PIBDOCS_FILE:PIBDOCS_ID::PIBDOCS_MIME_TYPE::PIBDOCS_BLOB_DATE:PIBDOCS_CHAR_SET:attachment:#PIBDOCS_FILE_NAME#
Is there any way to use a database column (PIBDOCS_FILE_NAME), instead of a page item, within the substitution string?

create another column for file name, then you can use jquery to change text, title of td "download". here is sample code you can use.
<script type="text/javascript">
$(document).ready(function ()
$(".apexir_WORKSHEET_DATA tr").each(function() {
  $this = $(this)
  var fileName= $this.find("td:nth-child(9)").text();
  $this.find("td:nth-child(7) a").prop('title', fileName);
$('.apexir_WORKSHEET_DATA td:nth-child(9),th:nth-child(9)').hide();
</script>

Similar Messages

  • Does BLOB Support in Reports really work? As referenced in the doco..

    I am referring to chapter 15 of the application builder user guide.
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/advnc.htm#BCGBCHBD
    Oracle Application Express includes BLOB support for both classic and interactive reports. If you use a wizard to create a report and include a column of type BLOB, basic support will be included. Additional information should be added after generation to make the download capability more user friendly.
    Consider the following example:IMAGE:EMP:RESUME:EMPNO::RESUME_MIMETYPE:RESUME_FILENAME:RESUME_LAST_UPDATE::attachment:Resume
    If you have a report column with a format mask that begins with 'IMAGE:', you will see a link below the format 'BLOB Download Format Mask'. This popup assists in entering all the parameters necessary for the IMAGE format.>
    So, I have just done the following.
    CREATE TABLE "IMAGE"
        "IMAGE_ID" NUMBER NOT NULL ENABLE,
        "BINARY" BLOB,
        CONSTRAINT "IMAGE_PK" PRIMARY KEY ("IMAGE_ID")
      create sequence seq_image start with 1 increment by 1;
      CREATE OR REPLACE TRIGGER "BI_IMAGE" BEFORE
      INSERT ON IMAGE FOR EACH ROW BEGIN
      SELECT seq_image.nextval INTO :NEW.image_id FROM dual;
    END;
    /Then create a form to upload images. That's successful.
    Then create a page with report to display the images.
    select image_id, binary
    from imagePreview report, just get '[unsupported data type]' displayed for the binary column - which is fine.
    So then I go to into the column attributes to specify the BLOB format mask, giving me:
    DOWNLOAD:IMAGE:BINARY:IMAGE_ID::MIME_TYPE::::inline:Download
    I have tried both the format mask for providing a download link, and displaying the image, both to no avail.
    All I get is:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion errorAm I missing something?
    nb: Yes, I do know about the APEX_UTIL.GET_BLOB_FILE_SRC function, but since the above method is in the documentation, you would think it would work, right?

    Hi,
    Yes, mime type is in the table, and is referenced in the format mask.
    OK - I didn't have a filename column, and since it is not a required field for the format mask, I figured I wouldn't need it - Although I gave the example of using the link, I actually just want the image to display, using the technique that is documented - which also produces the same error. Both should work, no?
    Even so, i just gave it a try with filename referenced in the format mask, same issue.
    Ta,
    Trent

  • Downloading BLOBs in a report

    I tried to put a link to a downloadable column on a table ( a blob ) on a report.
    If you insert an element and then you try to list it in the report, the link works, and you download the file you entered. Buty if you close your session, and reopen it... at the time you try to download the file you get and error
    Tue, 17 Apr 2001 13:54:41 GMT
    ORA-01403: no data found
    ORA-06512: at "PORTAL30.WWA_API_MODULE_STACK", line 124
    ORA-06512: at "PORTAL30.WWA_APP_MODULE", line 1495
    ORA-06512: at "TDCINTRANET.FILE_DOWNLOAD", line 13
    ORA-06512: at line 8
    DAD name: portal30
    PROCEDURE : TDCINTRANET.file_download
    URL : http://debian.netjuice-network.com:7777/pls/portal30/TDCINTRANET.file_download?p_block=DEFAULT&p_object=DATA&p_ID=Unai%20Mantenimiento
    PARAMETERS :
    ============
    p_block:
    DEFAULT
    p_object:
    DATA
    p_ID:
    Unai Mantenimiento
    When you UPDLOADED a file in the same session, everything works fine for all the blobs in the table.... but if you DON't UPLOAD anything in the same session.... portal crashes the way I showed....
    Any advice?
    null

    Unai,
    1. Oracle Portal does support (in both forms and reports) interMedia object types for audio, video and image documents. So, if your table contains ORDIMAGE, ORDAUDIO or ORDVIDEO columns they will be recognized when you build a form or report on that table. interMedia provides better control over those types of documents than standard BLOBs.
    2. The APIs of WWA_APP_MODULE are internal forms APIs and should not be called directly by user code.
    3. If you looked at the generated forms package, you probably have an idea how to download a BLOB data, here is an example to replace the code you have:
    procedure download_1
    p_rowid in varchar2
    is
    l_size integer;
    l_blob blob;
    l_tmpblob blob;
    l_mimetype varchar2(4000);
    l_rowid urowid;
    begin
    htp.init;
    l_rowid := p_rowid;
    SELECT MY_BLOB
    INTO l_blob
    FROM SCOTT.EMP1B
    WHERE ROWID = l_rowid;
    l_size := dbms_lob.getlength(l_blob);
    dbms_lob.createtemporary(l_tmpblob,true);
    dbms_lob.copy(l_tmpblob,l_blob,l_size,1,1);
    owa_util.mime_header('image/gif', false,null);
    htp.p('Content-length: '&#0124; &#0124; l_size);
    htp.p('Pragma: no-cache');
    htp.p('Cache-Control: no-cache');
    htp.p('Expires: Thu, 01 Jan 1970 12:00:00 GMT');
    owa_util.http_header_close;
    wpg_docload.download_file(l_tmpblob);
    dbms_lob.freetemporary(l_tmpblob);
    exception
    when others then
    owa_util.mime_header('text/html', false);
    htp.p('Content-length: 0');
    owa_util.http_header_close;
    end download_1;
    Hope this will help.
    Thanks,
    Dmitry
    null

  • Can not display BLOB in a REPORT Portal 3.0.9

    I had created a table witha blob field.
    I want to display this field in a report to display the documento from the aplicaction.
    What can i do ?

    Hi,
    BLOBs are not supported in reports as of now.
    Thanks,
    Sharmila

  • Link to download Text to Speech for Captivate 4

    I have Captivate 4 and would like to download Text to speech but I can't find the link on the website.
    Could someone help me figure this out?
    Thank you,
    Celine

    Hi all
    See if the thread linked below helps.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • Export report in text format

    Hi.
    I am still downloading the trial ver of cr 2008, but I would to know urgently that if it is possible to export report in utf-8 text format given the data is retrieved from ms/sql table in ucs-2 format
    Many Tks

    Hi,
    yes it is possible to export a report in text format.
    U just need to do a bit formatting for that.(only for display pupose)
    Regards,
    Misra P.

  • HT201272 How can i re download text songs

    How can I re download text ringtones?

    You can't. If you don't have them on your device nor in the Tones section of your computer's iTunes library or your backup of your downloads then if they are still in your country's store then you can try contacting iTunes Support and see if they will grant you a redownload : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Adobe Reader installation error: "object doesn't support property or method 'text'"

    I'm trying to install Adobe Reader and I have the following error after launching the installer:
    "object doesn't support property or method 'text'"
    My OS is Win7 Ultimate 64b (using AVG antivirus), but I encounter the same error on other systems too:
    Win7 Ultimate 32b (AVG Antivirus)
    Win7 Enterprise 64b (McAfee Antivirus)
    No matter which button I click, the installer hangs:
    I googled this error, but couldn't find any solution.
    Any ideas?
    Thanks!

    This error mostly occurs if your language is not set to English (on the Adobe.com website).  This has been reported to Adobe a million times, but they don't seem to have any intererest in fixing it.

  • Blob in classic report - broken images in translated application

    Hello,
    I have an application containing a classic report with a blob column displayed as inline images. The application's UI is translated and published (from en to de in my case) according to APEX docu. Everything seems to work fine so far but all classic reports with blobs show broken images in the translated application.
    The report query is something like:
    SELECT  IMAGE_NAME,
            CATALOG_MIME,
            CATALOG_FILENAME,
            CATALOG_LAST_UPD,
            ID,
            dbms_lob.getlength(CATALOG_IMAGE) CATALOG_IMAGE
    FROM    IMAGE imgThe images are displayed by using the format mask "IMAGE:....inline" on the CATALOG_IMAGE column and the generated image URLs (<img src="...">) look like this:
    In primary language (App ID 251, working): http://server/pls/apex/apex_util.get_blob?s=724178467531162&a=251&c=6844840372320206&p=5305&k1=288447&k2=&ck=7475F2F4A0CFA99CC137C9F9008CE3F9&rt=CR
    In translated app (App ID 151, broken images): http://server/pls/apex/apex_util.get_blob?s=724178467531162&a=251&c=6844840372320206,151&p=5305&k1=288447&k2=&ck=4576169EC6C9645C83E321610FE4BE6B&rt=CR
    Also by entering the broken image URL directly the server says: "The requested URL /pls/apex/apex_util.get_blob was not found on this server."
    Is this a bug in APEX (using 3.1.2), anyone else encountered this? Is there a solution or workaround?
    Thanks for infos,
    Stefan

    Follow-up by myself:
    I found a workaround for this by using the apex_util.get_blob_file_src function instead of declarative blob support. The code generated by this seems to work also in the translated application.
    Btw, the original problem remains in APEX 3.2, as just tested at apex.oracle.com. I've made a test comparing declarative blob support to apex_util.get_blob_file_src in the sample application in my workspace (SMEINDL), application id 50912, page 3 (products). If anyone is interested, please have a look at it.
    Stefan

  • OBIEE 11G report download with excel 2000 is not working properly

    Hi all,
    The Analytics report download is not working properly in excel 2000.
    This version is no longer supported?
    Is any way to workaround this problem?
    Cheers
    Carlos Pereira

    Hi,
    which version r u using? until obiee11.1.1.5 its bug but solve it by workaround method . also the bug fixed in obiee.11.1.1.6
    11700314 REPORT NOT EXPORTED FULLY INTO EXCEL WHEN DOWNLOADING FROM PAGES OTHER THAN 1
    1) stop it all u r bi serivices then take a back of u original instanconfig.xml file then do the below changes
    D:\Oracle\Middleware\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1
    instanceconfig.xml
    just add below content then
    <Views>
    <Pivot>
    <MaxCells>6500000</MaxCells>
    <MaxVisibleColumns>100</MaxVisibleColumns>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>65000</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <DefaultRowsDisplayed>500</DefaultRowsDisplayed>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDownload>64000</DefaultRowsDisplayedInDownload>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DisableAutoPreview>false</DisableAutoPreview>
    </Pivot>
    <Table>
    <MaxCells>6500000</MaxCells>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>65000</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <DefaultRowsDisplayed>500</DefaultRowsDisplayed>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDownload>64000</DefaultRowsDisplayedInDownload>
    </Table>
    </Views>
    Restart all u r bi services..
    then test it out.
    Thanks
    Deva

  • Does iPad Air support the WhatsApp Messenger texting function?

    Does iPad Air support the WhatsApp Messenger texting function? I am having difficulty downloading that app to my new iPad Air.

    The WhatsApp developer hasn't created a version for the iPad.

  • Multi-language support for user-specified text strings used in the forms

    multi-language support for user-specified text strings used in the forms
    Instead of creating multiple forms, 1 in each different language, for the same service, is there any workaround?

    Hoan - is your question what are the considerations when creating multiligual catalogs? If so, I can tell you that at other clients I have seen them use a single catalog for one or two languages. For the two langugages, such as Spanish/English, you can create a single catalog with both of them. Once you get to more than two languages, the catalog would get unweildy and is therefore not suggested.

  • IR Saved Report  - Download to CSV downloads Primary Report

    Hi there
    I'm using Apex 4.1, I login to my Apex application NOT using the developer interface (the developer buttons are not visable at the base of the page) as an end user would see.
    If I run an IR report and then create a filter on the Primary report the report runs OK. I then click Actions -> Download and then Download the report output to a CSV file (correctly filtered) to a Excel spreadsheet. I then Save this report giving the report a Name and Description. I then logoff from the Apex application. So far so good.
    I then login back on to my Apex Application. When I choose and run the Saved Report (described above - not the Primary report) the saved report runs correctly (applying the correct filter condition), HOWEVER when I then click on Actions - Download I seem to get the Primary report downloaded as a CSV file into my Excel spreadsheet - the filter condition that is applied to the saved rerport is ignored for the Downloaded CSV file. The File Downloaded is a new CSV file generated in Apex as reported in my Firefox 'Downloads' list.
    Does anyone know if this is a Bug or have I not set up the IR correctly.
    Thanks in Advance
    Edited by: boketi on Aug 13, 2012 3:18 PM

    boketi wrote:
    Hi Mehabub,
    Many thanks for the quick response.
    Did you test this in version 4.1 of Apex? I logged on to Oracle's 4.2 Early Adopter Beta Site and did the same and the IR works fine! Maybe it's a strange problem in 4.1 although I doubt it as with such a problem there would be a lot more noise on this forum. Could this be related to the 'theme' that I'm using? As the theme I'm using was origionally developed for Apex 3.2 and I don't think IR reports were around in 3.2?There is a good chance that it has to do with the theme or the upgrade from Apex 3.2. Interactive reports existed in 3.2 also user defined reports. But a lot of changes were made to the IR logic since 3.2 (introduction of multple standard reports, etc.).
    I just tested your case in my Apex 4.1.1 version in an application that was also upgraded from 3.2. And the data was stored correctly into a csv file.
    But it is useing one of the standard themes that was also updated.
    Did you set the compatibility mode of your application to 4.1?
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#AEAPI2329
    begin
       apex_util.set_compatibility_mode(<application id>, '4.1');
       commit;
    end; Just because the environment is Apex 4.1 does not mean you application runs in 4.1. mode.

  • Crystal Report with text(csv) data file, can we set it as input parameter?

    Hi,
    I am a new user of Crystal Reports 2008.
    I have created a report with charts in it. The input data comes from a csv text file.
    Can I set the name of this text file as an input parameter?
    as I need to generate 44 similar reports with different text filenames(and data)?
    Thank you.
    Regards

    Brian,
    Thanks much.
    I did exactly what you said.
    Just to see any change, I first gave a bad report file name just to see if I am accidentally pointing to a different file,
    but I got an error saying report not found.
    Then I renamed my original datafile name and generated a report and it still generated one without giving an error.
    Then I also gave a junk name to the logoninfo and printed that name, the new name was assigned to logoninfo, but the code did not error out.
    It ended up generating the report.
    Now here is what I think is happening,
    1) The save data in report option seems to be still on even though I have turned it off in 2 locations
    a) file -> Report Options
    b) file -> Options -> Reporting tab.
    2) For some reason the logoninfo is getting ignored as well.
    Since I did not see any answers yesterday I posted a link to this thread on the .Net forum
    Crystal Report with text(csv) data file, can we set it as input param? C#
    and Ludek Uher says that I am connecting to the text file via a DAO database engine and so need to use the same code for changing the text file as for changing an Access database.
    But the link he gave me tells me to try the same thing that we have been trying..
    Here is my plan,
    1) I will first try and find out why my save data with report option is still on ( but it shows off in Crystal ).
    2) why is LogonInfo getting ignored.
    Meanwhile any suggestions from anyone are welcome.

  • Crystal Report with text(csv) data file, can we set it as input param? C#

    Hi,
    I am new to the forums and posted a question which belonged to the .net - SAP Crystal reports group.
    Can someone help me with my problem? following is the thread that I have started.
    Crystal Report with text(csv) data file, can we set it as input parameter?
    Thank you in advance.

    Looking at the original thread, you are connecting to the text file via the DAO database engine:
    "I added the text file as follow, new connection -> Access/Excell (DAO) -> select the file and the database type as text"
    Thus I would use the same code for changing the text file as for changing an Access database. See Kbase [1218178 - Error: "Logon failed" when connecting to Access database in .NET application|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333133373338%7D.do] for more information. If that does not work, you may want to consider connecting via ODBC or feeding the data from the text file to and ADO .NET dataset and pointing the report at the dataset.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Maybe you are looking for

  • I want to know if my iphone is original or not

    My sister has purchased a iPhone for me and i am not able to make sure if it is original or not...I would like to know if there is a method to know if the iPhone is original or not

  • Problem in Function while creating dependency not getting solved

    Hi All, I am not getting any solution even after debuging it many times, This is second time I am posting same problem , Please help me out if possible I am  working on a Program in which I have to create Class , local and global dependency - For cla

  • White Screen; Nothing Else

    Installed 10.4.11, last night, and all was fine. This morning my MacBook awoke with no problem but while I was creating a new folder I got the spinning beach ball that I watched for 10 minutes before trying a force quit with no luck. I shut down usin

  • I can't download Adobe Flash Builder at all.

    Hello, i've tried to download flash builder 4.5-4.7 trial, premium, standard etc, i've followed instructions, turned off firewalls, popups etc. i really just need a trial version of Adobe Flash Builder. I am going onto my 3rd year in multimedia tryin

  • Installed Radeon 6870 - bad video performance in VLC

    I've added a Radeon GPU to my i3-530 which used to handle video. I installed the opensource drivers and I get occasional lags, choppy parts during video playback using VLC. I tried adding the following to my radeon conf as per wiki but that caused te