Multiple Blob downloads in one report cell

Hi all,
I want to create an interactive report. This report is based on 2 tabled that are joined. one table has topics in it the other documents attached to the topics.
the problem i'm facing is that a topic can have multiple docs attached to it.
At this moment (Only one doc per topic) I don't have a problem to create the download link to this BLOB using the dbms_lob.getlength.
Since there could be more documents attached to one topic it is impossible to me to show all the download links in the same row.
I tried creating my own HTML table with the DBMS_LOB.getlength in separate rows but it doesn't work because it has to be a number and when I do that it is a string.
Does anybody have an idea on how to solve this? Maybe creating some sort of report in my report but I don't know how to do this.
Thanks
Steven

Steven,
I haven't done it before and am not 100% sure it will work but how about writing a function that uses the pl/sql method of retrieving blobs where the function reads all the topics and puts them into one string that you return (just using a pl/sql loop). Then you can call that function from your report.
-- Sharon

Similar Messages

  • Exporting to multiple PDF's from one report

    I have a requirement to create multiple PDF's from one report.
    My thought is that I can I can create a foreach loop that cycles through one of my groups.  I would then like to have each file have the name of that group. 
    If anyone could help me on how to code this in C# that would be great.  I need to know where I should be putting this code (program.cs or crystalreport.cs) and how I run it.  I am assuming I don't need the viewer for this function, since this is all on my end and no users need to have access to it. 
    My other requirement is to have each of these reports be put into their own folders at C:\.  Thanks for the help in advance!

    OK. Yup, you should be able to do this. When I was reading the initial post it looked like you might have ben wanting to export only a certain section of a report (which is a no go).
    Anyhow, first thing you want to do is apply Service pack 3:
    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
    Next, you want to look at a few sample apps and go over some docs. What you want to achieve can be done by using parameters or selection formulas.
    A good coding resources is the [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]. Don't worry about the title, it will apply to CR 2008 also.
    Next, sample apps can be downloaded from here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    [CR 2008 developer library|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm]
    [API reference|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
    Not sure if you are thinking of this being a web app, but here are some resources for that:
    [Interactivity and Reports in Web Applications|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/208edbbf-671e-2b10-d7b5-9b57a832e427&overridelayout=true]
    Before starting your project, you should have a look at [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bccdfd-88a6-2b10-1da1-c47a54b625a7] to make sure you are using the right SDK for your purposes.
    Finally, the following are links to 3rd party resources and I'm adding htese just as an FYI:
    http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx
    http://msdn.microsoft.com/en-us/magazine/cc301570.aspx
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Multiple ALV Objects in one Report

    I have multiple ALV ojbects in one ABAP report (one a grid, and one a tree).  When selecting the choose display layout for either object - it returns the layouts for BOTH objects.  Is there any way of limiting this to only return the layouts for the appropriate object?
    Thanks in advance.

    Hi Heather,
    in methode set_table_for_first_display you can use the parameter is_variant of type DISVARIANT. Use the field HANDLE in this structure to distinguish the two ALV Objects. Fill also field REPORT of the same structure with sy-repid.
    Regards Florian

  • Multiple db connections for one report

    Hi all,
    I am using Oracle Reports 10g R2. Could someone tell me if Oracle Reports supports multiple database connections for one rdf file, like this (using servlet)
    http://your_web_server:port_num/reports/rwservlet?server=server_name&report=myreport.rdf& userid1=username/password@my_db1&userid2=username/password@my_db2 &desformat=pdf&destype=cache
    I am asking this question because my report needs data from two separate Oracle databases.
    Edited by: user12239004 on Apr 27, 2010 2:14 AM

    No, you can only have one login.
    However, this is simple to resolve by creating a database link in one database to the other database.

  • Multiple Data Columns in one report column

    How do I list multiple columns returned from a select vertically within one report column. For instance, I have three statuses for a project that I want to list, I'd like to list the three statuses within one status column. I remember seeing this somewhere but cannot find it now. Example:
    Status Column
    Budget: Green
    Schedule: Red
    Issues: Yellow

    additionally you could use HTML expressions. When editing your report, click on the column you want to use for displaying multiple data columns. This will take you to the report columns attributes page, there you can type in something like the following into the HTML expression field, referencing other report columns using #COLUMN_NAME# substitutions:
    #BUDGET#
    #SCHEDULE#
    #ISSUES#
    this is assuming your column aliases are named BUDGET, SCHEDULE and ISSUES. You can then just hide the columns that you don't want to see because the data is already shown using the HTML expression.
    Regards,
    Marc

  • Multiple audit records per one report refresh

    We use BO XI R3 on Windows with CMS on DB2.
    I need to create audit reports on BO report usage with following data:
    username, timestamp, duration, report name for DeskI and WebI reports.
    I use auditing on DesktopIntelligenceCacheServer and WebIntelligenceProcessingServer.
    The problem is that I'm getting multiple records in AUDIT_EVENT table with different event_ids and timestamps per one refreshed report.
    Following SQL brings 2 records from WebI server all the time (first with duration=0) and from 1 to 5 records from DeskI server, all of them with real report duration.
    SELECT
    start_timestamp,
    ae.EVENT_ID,
    user_name,
    duration,
    object_type,
    detail_id,
    detail_text
    FROM BO_XI_R3.AUDIT_EVENT ae,
    bo_xi_r3.AUDIT_DETAIL ad,
    bo_xi_r3.EVENT_TYPE et
    where ae.EVENT_TYPE_ID=et.EVENT_TYPE_ID
    and ae.EVENT_ID=ad.EVENT_ID
    and ad.DETAIL_TYPE_ID=8
    and ae.EVENT_TYPE_ID=19
    order by 1;
    How to separate unique refresh info?
    Edited by: Valentin Volk on Oct 3, 2008 9:03 PM

    Valentin,
    The "duplicate" records that you are seeing, is it always consistent or just sometimes.  I ran you query against my Auditor database and sometimes (like maybe less than 50%) I am seeing "duplicate" records.  I say "duplicate" because the Event_ID is different in each case, but by sorty by start_timestamp, I can see a duration 0 record, and if the query takes like 5 seconds, then five seconds later I see the entry again (with a new Event_ID) and the second record has a duration of 5.  What does all this mean?  I don't know exactly, other than BO sees the act of submitting a report (sometimes) as an activity (and records an "enter" record with a duration of zero, zero for obvious reasons), then when the report ends another entry to the journal used to record the duration.  And at other times I don't see the "enter" record, just the entry with the duration.  In my practice we run a similiar query as you've provided but we do not record where duration is zero.
    thanks,
    John

  • Multiple (mail) destinations for one report using distribution list

    I would like to email a report to multiple destinations using a distribution list.
    Environment:
    Oracle reports: 10.1.2.3
    OS: Windows 7
    Database:Oracle 11g(11.2.0.2)
    This is the content of the distribution file:
    <destinations>
      <foreach>
        <mail id="a1" from="[email protected]" to="&amp;&lt;mail_to&gt;" subject="Invoice">
          <body srcType="text" format="ascii">Invoice attached
          </body>
          <attach srcType="report" name="invoice.pdf" format="pdf" instance="this">
             <include src="report"/>
          </attach>
        </mail>
        <mail id="a2" from="[email protected]" to="[email protected]" subject="Invoice sent to &amp;&lt;mail_to&gt; ">
          <body srcType="text" format="ascii">Attached invoice was sent to the customer
          </body>
          <attach srcType="report" name="invoice.pdf" format="pdf" instance="this">
             <include src="report"/>
          </attach>
        </mail>
      </foreach>
    </destinations>
    When I run this using the following URL:
    http://testserver.our_servers.local:7778/reports/rwservlet?server=rep_dev&report=VKR0030.rdf&userid=myuser/test123@ORCL&distribute=yes&destination=VKR0030.xml&onfailure=rollback&onsuccess=commit
    I get the following error: REP-34304: Distribution failed to complete, please review the distribution lists
    When I remove one mail element, it works fine.
    One mail tag with multiple email addresses in the "to" parameter isn't possible because I have to use 2 different mail templates(subject and body differ).
    According to the documentation(https://docs.oracle.com/html/B14048_02/pbr_dist.htm#i1005830), it should be possible to use multiple mail elements.
    Required/Optional
    Optional. You can have as many mail elements as you require.
    What am I doing wrong?

    Found the solution.
    When putting each mail element in a foreach, it works.

  • Multiple output files for one report

    I would like to dump out multiple files (PDF and delimited) from one single report refresh.
    I'm using rwcli60. How do I do this ?

    Hi
    Thanks for the information. Its nice to know.
    However, if I understand it correctly, it is basically for directing the same report output to different targets.
    For me, it may be the same report, but the output will be different based on some logic I have in the before report trigger. For me it is like running the report 3 times.
    Example - From parameter screen - one parameter with 4 options
    1. Top 10 students in IT
    2. Top 10 students in Fin
    3. Top 10 students in Acc
    4. All
    The output of these report may come from the same table. But the criteria is set in the lexical parameter in the before report trigger.
    If user selects all, I want the output for the all the first 3 options. I am not worried about the output being emailed. This is equivalent to running the report 3 times for the first, second & third option respectively.
    Any help helps:).

  • How to use one query against multiple table and recieve one report?

    I have duplicate tables, (except for their names of course) with commodities prices. They have the same column headings, but the data is different of course. I have a query that gives me a certain piece of information I am looking for but now I need to run this query against every table. I will do this every day as well, to see if the buying criteria is met. There are alot of tables though (256). Is there a way to say run query in all tables and return the results in one place? Thanks for your help.

    hey
    a. the all 256 tables whuld be one big partitoned table
    b. you can use all_tables in order to write a select that will write the report for you:
    SQL> set head off
    SQL> select 'select * from (' from dual
      2  union all
      3  select 'select count(*) from ' || table_name || ' union all ' from a
      4  where table_name like 'DB%' AND ROWNUM <= 3
      5  union all
      6  select ')' from dual;
    select * from (
    select count(*) from DBMS_LOCK_ALLOCATED union all
    select count(*) from DBMS_ALERT_INFO union all
    select count(*) from DBMS_UPG_LOG$ union all
    remove the last 'union all', and tun the generated quary -
    SQL> set head on
    SQL> select * from (
      2  select count(*) from DBMS_LOCK_ALLOCATED union all
      3  select count(*) from DBMS_ALERT_INFO union all
      4  select count(*) from DBMS_UPG_LOG$
      5  );
      COUNT(*)
             0
             0
             0
    Amiel

  • Multiple BEx queries in one report

    Hi All,
    I would like to know if we can use multiple BEx queries in a single report using Crystal Report 2008 / 2011?
    If so, there is another requirement follwoing the above as below:
    I have objects obj1,obj2,obj3 in query 1 and objects obj1, obj2, obj4 in query 2. I have prompts based on obj1 from query1 and prompt on obj4 from query2.
    So, when I enter a value in prompt1 for obj3, i need to have query1 executed and display the data and data should not be displayed from query2. Similarly, if I enter value for prompt2 of query2, only query2 data to be displayed.
    Pls suggest if this can be achieved and how?
    Thanks,
    Naresh
    Edited by: NareshKatakam on Jul 22, 2011 11:25 AM

    Use a subreport for each query

  • Multiple Physical SQL for one report

    Hi,
    Can someone please explain me why i am seeing multiple physical Queries generated for a single report.
    Please find below the physical sql.
    select sum(T314772.MONTHLY_BUDGET_AMT) as c1,
    T157680.NAME as c2
    from
    W_PARTY_D T157680,
    XXKC_CUSTSITE_SHIPTO_BUDGET_F T314772 / Fact_XXKC_CUSTSITE_SHIPTO_BUDGET_F */*
    where  ( T157680.ROW_WID = T314772.CUSTOMER_WID )
    group by T157680.NAME
    and
    select sum(case  when T97600.W_XACT_TYPE_CODE = 'Chargeback' then T93664.NET_AMT T93664.GLOBAL1_EXCHANGE_RATE end ) as c1,*
    sum(case  when T97600.W_XACT_TYPE_CODE = 'Credit Memo' then T93664.NET_AMT T93664.GLOBAL1_EXCHANGE_RATE end ) as c2,*
    sum(case  when T97600.W_XACT_TYPE_CODE = 'Debit Memo' then T93664.NET_AMT T93664.GLOBAL1_EXCHANGE_RATE end ) as c3,*
    sum(case  when T97600.W_XACT_TYPE_CODE = 'Standard Invoice' then T93664.NET_AMT T93664.GLOBAL1_EXCHANGE_RATE when T97600.W_XACT_TYPE_CODE = 'Invoice Cancellation' then T93664.NET_AMT * -1 * T93664.GLOBAL1_EXCHANGE_RATE end ) as c4,*
    T157680.NAME as c5
    from
    W_PARTY_D T157680,
    W_SALES_INVOICE_LINE_F T93664 / Fact_W_SALES_INVOICE_LINE_F */ ,*
    W_XACT_TYPE_D T97600 / Dim_W_XACT_TYPE_D_Sales_Ivclns */*
    where  ( T93664.CUSTOMER_WID = T157680.ROW_WID and T93664.XACT_TYPE_WID = T97600.ROW_WID and T93664.DELETE_FLG = 'N' )
    group by T157680.NAME
    please let me know the reason and how to control this kind off behavior

    Combined request is like, within a report you can create multiple requests. You can either use it in case of combining different subject area or within the same subject area and in same report when different filters apply.
    For example
    Fire Marine Motor
    State No. Amt. No. Amt. No. Amt.
    Andra Pradesh 10 |20000 11 |100000 20 |200000
    TamilNadu 11 |40000 10 |120000 20 |200000
    The first request is for Andra, so we will apply the filter as 'state is equal to in 'andra pradesh''. We specify filter(No using Product_code in 'Fire') in the column formula. Then there is an option as 'combine' by which u create another request and now the filter is 'state is equal to in 'Tamil Nadu''. So when you execute the report, it will generate you two different queries.
    Regards,
    Anitha.B

  • Writing multiple BLOB (PDF) records into one PDF file

    I currently have a procedure that writes an individual BLOB pdf row and outputs it to a PDF file, however I would like to write multiple BLOB rows into one PDF.
    Oracle version:10g R2.
    Does anyone know whether it is possible to do this?
    Here is my code, I was hoping to use a cursor FOR LOOP to read the BLOB records. The BLOB records do successfully load into a new PDF file, however when you open it the PDF only the first page is viewable. I am assuming the issue is to do with the PDF format rather than writing the data out to the file. I.e. the Page numbers etc.., incorrect formatting of the PDF?
    declare
    -- Test statements here
    b BLOB;
    amount BINARY_INTEGER;
    file_handle UTL_FILE.FILE_TYPE;
    l_pos INTEGER := 1;
    l_blob_len INTEGER;
    l_buffer RAW (32767);
    l_amount BINARY_INTEGER := 32767;
    file_name_ VARCHAR2(200);
    pattern_id_ VARCHAR2(200) := '5555555';
    pdf_path_ VARCHAR2(200) := 'PDF_OUT';
    cursor get_blob_recs is
    select pdf from mds_remote_pdf_tmp;
    BEGIN
    file_name_ := to_char(pattern_id_)||'.PDF';
    file_handle := UTL_FILE.FOPEN(pdf_path_,file_name_,'wb');
    FOR rec_ IN get_blob_recs LOOP
    l_blob_len := DBMS_LOB.getlength (rec_.pdf);
    l_pos := 1;
    WHILE l_pos < l_blob_len
    LOOP
    DBMS_LOB.READ (rec_.pdf, l_amount, l_pos, l_buffer);
    UTL_FILE.put_raw (file_handle, l_buffer, FALSE);
    l_pos := l_pos + l_amount;
    END LOOP;
    END LOOP;
    UTL_FILE.FCLOSE(file_handle);
    end;
    Any advice would be greatly appreciated.
    Regards,
    David.

    I guessed there was more to a PDF file format than just amending the BLOB objects!. I think I'll have to create a function with an IN param containing the PDF file list, and invoke a Java class to merge the PDFs in the OS.
    My requirement is to record the history of when a hand written form was completed. E.g. a user might complete half a document one day, and the rest of the document another day, therefore I want one PDF with two pages of the same form at different stages of completion. These forms are currently being created as two separate PDFs, and the problem is I am restricted to displaying only one PDF!
    Thank you.
    David.
    Edited by: david.massey on Jan 26, 2011 8:16 AM

  • I recently purchased some information to be downloaded to one of my apps I never received the download and I was charged multiple times I reported the problem my  Community

    I recently purchased some information to be downloaded to one of my apps I never received the download and I was charged multiple times I reported the problem And it's been about a week my question is how long does it take  to credit my account back. It's my money and I want it now.

    It can take a while for your money to show up in your bank, but a week is a bit over the top. Try contacting iTunes Store Support to make sure the refund was issued.

  • How to generate one report in multiple formats with FOP or BIP?

    Hi all,
    Is it possible to generate multiple formats of one report in a single "call" using Apache FOP or BI Publisher? (something similar to reports bursting).
    Right now I can only select one format at a time.
    Thank you,
    Ana-Maria

    Hi Ana-Maria,
    When you enable printing on a report region or add a button to download a report query to your application, then you get a single document download. How would you see this working with "multiple formats"? Given that APEX is a development environment, you can pretty much implement anything you like. The built-in printing capabilities in APEX come with an API that allow for customization of the default functionality, e.g. you can use apex_util.download_print_document to dynamically assign report layouts at rumtime or to use you own XML data sources or XSL-FO style sheets. More relevant to you question though, there's also apex_util.get_print_document. What that allows you to do is to generate report documents inside the database and e.g. store them in database tables or email them out to a list of recipients. You can call this API as often as you like to, requesting any combination of available report formats.
    The API function is documented here:
    http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_util.htm#CHDDECIA
    Regards,
    Marc

  • BLOB download from report region in translated application does not work

    We created an application (APEX 3.1.2) with a base language dutch (300) and a translated application en-uk (3001). The problem is that in the translated application downloading BLOB's from a report region does not work and results in an error (page cannot be found).
    The query source for the region is:
    select naam
    , dbms_lob.getlength(bestand)
    , mimetype
    from bos_documentatie
    The column 'dbms_lob.getlength(filename)' is defined as a 'BLOB Download Format Mask' with the following setting:
    DOWNLOAD:BOS_DOCUMENTATIE:BESTAND:NAAM::MIMETYPE:FILENAME:::attachment:Open
    The URL's to the BLOB documents are different between the dutch and en-uk application:
    dutch:
    http://nldvnr01ux002:7792/pls/xvapexd/apex_util.get_blob?s=4260101889649158&a=300&c=12455124581749125&p=1001&k1=Application Multi Language.doc&k2=&ck=A24A5EA6903C5A9603B86D30F128F4DE&rt=CR
    en-uk:
    http://nldvnr01ux002:7792/pls/xvapexd/apex_util.get_blob?s=4260101889649158&a=300&c=12455124581749125.3001&p=1001&k1=Application Multi Language.doc&k2=&ck=7FF0C64FDD48A4D7A6892CFB2B6BCA57&rt=CR
    As you can see the c parameter for the en-uk version has a '.3001' at the end, the internal ID of the translated application. I don't know if this can be the cause of the problem?

    Hi Peter,
    Thanks for the suggestion. However we have a lot of APEX applications build in that same APEX version (one development database) and upgrading now to a higher APEX version would mean we would have to re-test all our applications and upgrade all our test and production environments, just for this bug. And, maybe the higher APEX version may not solve our problem.
    Thanks and regards,
    Patrick

Maybe you are looking for

  • How do I print a .pdf, when the program only gives me an option to save?

    I have read all the previous answers to this question. They all suggest to uncheck the print to file checkbox in the print dialog box. However, it appears I do not have a 'print to file' checkbox in my print dialog box. Any new ideas?

  • I want to Create a Project that combines TWO VIs, is it possible?

    Hi every one I am working on a project that essentially is split into two part at the moment; 1. Data Acquisition - (In LabVIEW SignalExpress) 2. Data Manipulation Now I want to combine them together so that they can work sequentially together at the

  • Inverse color dodge not rendering in DWcs3

    I have a blue-orange logo in inverse color dodge blending mode on a gradient blue to dark blue background. It looks vibrant and wonderful in FW; however, in both display and browser view in looks identical to "normal" mode in Dw, i.e. dark and ugly.

  • Self Services Patch Level for ESS 600 with ERP 6.0 Stack 14

    Does anyone know what the note number or where I can find which level of XSS 600 patch should be used in conjunction with ERP Stack 14?  There is a note for XSS 100 (note: 761266) that explains what I'm looking for, but it only covers XSS100 not XSS

  • Invalid date

    Hi, I am query out and display all dates from my table but for some reason I have invalide date such as :1753-01-01 00:00:00.0 and some others invalid. I only need to display the valid date, if not valid then display empty, however, the code i have b