Report Queries and collections

Hello!
I want to intergrate a collection query into the report query for pdf-printing.
(Home>Application Builder>Application 111>Shared Components>Report Queries>Edit Report Query)
I trigger the report generation by a submit button. Wheras the collection content is visable in any page it is not within the report query.
What do I do wrong?
Thanks
Dietmar

Hi John!
Thank you for your reply!
The query looks like:
select ordername, ...., ...
from v_odetails
where O_ID in (select c001 from apex_collections where collection_name = 'PRINTLIST')
The collection is filled with ids of orders the user has selected.
It seemed that session information is not available.
But, surprise, now, after a few logins it works perfectly.
Thank you!
Dietmar
Edited by: DiWiNe on 25.02.2010 19:34

Similar Messages

  • Report Queries and Report Layout

    Hello,
    I currently have several report queries with existing report layouts done in xsl.fo. I will be upgrading to Apex 4.0 in the next couple of months and I wanted to make sure that my reports will still work. I have an account on the Oracle hosted site and created a report query with an xsl.fo file.
    I understand that it requires the fop.war file to run on the server for it to work, but I have used the oracle hosted site before and was able to create report queries and custom report layouts.
    I am using an xsl fo editor called javaforless, which creates the .fo file and then I make adjustments to the file, before I create the report query and then load the file when I am creating the query.
    The report works correctly if I use the generic layout, but I have many reports with custom layouts that will be going to Apex 4.0 and I want to ensure that they will still work. Please look at the error below and give me some insight to why this is happening:
    Error opening document. This file cannot be opened because it has no page.Thanks,
    Mary

    Is there a bug on the Oracle hosted site for reports.
    I was able to run a report query with a cutsom report file (xsl.fo) on the hosted site. The file didn't throw any errors, though I don't understand why it doesn't. I had to create a blank field to have a border, which creates my lines in apex. code below:
    <fo:table-cell   number-columns-spanned="1">
          <fo:block   border-color="#404040" border-style="solid" border-width="medium"   margin-left="0.0cm" margin-right="0.0cm"  margin-top="0.0cm"  font-size="10pt"  font-family="SansSerif"  color="#000000"  text-align="left"></fo:block>
            </fo:table-cell>My original code uses the fo:leader, which works fine in Apex 3.2 but will throw errors if I use it in 4.0.2 and not open the file.
    <fo:table-row  background-color="#ffffff" height="0.89cm">
            <fo:table-cell   number-columns-spanned="2">
          <fo:block margin-left="0.0cm" margin-right="0.0cm"  margin-top="0.27cm" ><fo:leader leader-pattern="rule" color="#000000"  rule-thickness="2.0pt" rule-style="solid" leader-length="100%"/></fo:block>
            </fo:table-cell>
        </fo:table-row>Can someone please let me know why the fo:leader syntax is erroring on the Hosted Site.
    Thanks,
    Mary

  • Report queries and bind variables - only header printing to PDF

    Hi,
    I created a simple report query for printing to PDF with 2 bind variables. I created a link to this report like this
    Print - the header information prints but none of the data.
    What am i doing wrong? I'm pretty sure it has s/t to do with the bind variables.
    IF a/o can please help, i'd really appreciate it.
    Thanks,
    Hindy

    is it possible to export your application page to apex server and you shall also create a userid as demo/demo and post the url so that we shall try the debug

  • Problems with Print Report Queries and € sign

    Hi,
    In one of my database fields I've prices with currency (euro sign, dollar, etc.) saved as varchar2.
    In PDF report I need to make some calculations with this value, so I thought of dividing it into 2 parts, value and currency.
    As SQL statement I've the following:
    SELECT REGEXP_REPLACE(REPLACE(PRICE, '&#8364;', ''), '[^[:digit:]|.|,]*', '') PRICE,
           TRIM(SUBSTR(PRICE, LENGTH(REGEXP_REPLACE(REPLACE(PRICE, '&#8364;', ''), '[^[:digit:]|.|,]*', ''))+1)) CURRENCY
    FROM   MY_TABLEIn SQL Workshop it's working fine, but when I put this query as the Printing Report Query, the value & # 8 3 6 4 ; is translated first into € and then in rotated question mark, which means the query is no more working.
    Any other ideas how to solve the problem?
    Thanks
    chrissy

    willspring,
    Just to make sure: As I understand it, things worked in CS4, not only in earlier versions.
    To reset settings in Illy, you may Move the folder, but it may not solve the issue (the simpler but less thorough resetting being to Ctrl+Alt+Shift/Cmd+Option+Shift during startup).
    Have you made any changes, such as printer driver or whatever, between success and failure?

  • Reports, Queries and Graphs

    When you run a Report or Query in CS-MARS is there a way to disply the results as line graphs and pie charts? I need to mainly display the data as a line graph. Can this even be done?

    Mars will create all three, if applicable.
    Under the Summary page, go to Network Status, then select View Report on one of the four reports on the bottom.
    You should be able to view how those reports are configured, then create your own.

  • Report Queries / XML Size over 30k...

    Hi everybody,
    I'm generating a report querie, with WORKSPACE IMAGES and it works fine until a certain limit.
    I have my query that returns a certain image , for a especified day of the month. If it's a Employee Holiday, png image(an image with 1). If it's a Weekend another png image(orange image).
    It works fine in the report:
    [http://img141.imageshack.us/i/yearcalendar.jpg/]
    When i tried to make this report to pdf, using Report Queries and a RTF made up template, i want to use the Data Source for Report Layout:      
    XML Data(Download), to test my RTF(logical :P ) , but when that XML download overcomes 30.4k, it gives me an error:
    ORA-06502: PL/SQL: numeric or value error: raw variable length too long
    Notes: I'm using the [http://www.oracle.com/technology/obe/hol08/apexprnt/apexprnt2_otn.htm] . The function that receives a BLOB and turns to CLOB for displaying the image.
    Can i configure that 30k XML somewhere? Or i'm just crazy for doing this? :)

    Vitor,
    Report rows in APEX are processed in a varchar2 array. A varchar2 can hold up to 32k bytes. This applies to report queries as well. What that means is that when using the query from the OBE you referenced:
    select
    employee_id,
    first_name||' '||last_name name,
    filename,
    mimetype,
    blob2clobase64(photo) photo
    from oehr_employees
    where photo is not null
    ... then all column values for one row, plus the additional XML markup for each value, can't be longer than 32k bytes. When working with images, you quickly hit that limit, because what blob2clobase64 does is, that it converts your image into a pretty long string. For APEX 4.0 we're looking into ways to lift this limitation. But for now - when using report queries - you're limited to 32k per row. Please note, that's per row, your actual report can be longer, so you can have many rows, as long as none of them exceed 32k. There are however APIs available in APEX (apex_util.get_print_document) that allow you to directly call the print engine, supplying your own XML data and stylesheets. The XML data is stored in a BLOB, and it's up to you how you generate that XML data. So you won't be subject to this limitation.
    Regards,
    Marc

  • Report Queries

    Has anybody successfully created a complex (master/detail) type of report using Report Queries/ Report Layouts? Since you can't control the XML and Report Queries (with multiple queries) are independent of each other, I can't see how this would work with BI Plug-in.

    Perhaps my most recent BLOG entry might help you getting started with Report Queries:
    http://marcsewtz.blogspot.com/2007/04/report-queries-and-session-state.html
    Let me know if you have any questions. I plan on publishing more samples soon,
    Regards,
    Marc

  • Using multiple Collections in Report queries

    I am using many collections in my Report Queries (where conditions) to create the XML needed for running reports (see where condition below). I name each one with a different collection name. I am seeing some performance issues and it looks like it has to do with the amount of collections I am using. It looks like after around 6 collections used in the query, the sql slows down tremendously. It doesn't matter which ones I use, so it doesn't seem to be a specific one.
    Are there issues with using many collections? Should I try using 1 collection and add an identifier to one of the collection columns instead?
    where ...
    and C.FK_SCHOOL IN (SELECT c001
    FROM apex_collections AC1
    WHERE AC1.collection_name = 'SIS_REPORTS_SCHOOLS')
    and nvl(C.ACTIVE,'NONE') IN (SELECT decode(c001,'NONE',nvl(C.ACTIVE,'NONE'),C001)
    FROM apex_collections AC2
    WHERE AC2.collection_name = 'SIS_REPORTS_ACTIVES')
    and nvl(C5.CALENDAR_NO,'NONE') IN (SELECT decode(c001,'NONE',nvl(C5.CALENDAR_NO,'NONE'),C001)
    FROM apex_collections AC3
    WHERE AC3.collection_name = 'SIS_REPORTS_SCHOOL_CALENDAR_NOS')
    and nvl(C10.CLUSTER_CODE,'NONE') IN (SELECT decode(c001,'NONE',nvl(C10.CLUSTER_CODE,'NONE'),C001)
    FROM apex_collections AC4
    WHERE AC4.collection_name = 'SIS_REPORTS_CLUSTER_CODES')
    and nvl(C4.EMPLOYEE_NUMBER,'NONE') IN (SELECT decode(c001,'NONE',nvl(C4.EMPLOYEE_NUMBER,'NONE'),C001)
    FROM apex_collections AC5
    WHERE AC5.collection_name = 'SIS_REPORTS_COUNSELORS')
    and nvl(I3.DISTRICT,'NONE') IN (SELECT decode(c001,'NONE',nvl(I3.DISTRICT,'NONE'),C001)
    FROM apex_collections AC6
    WHERE AC6.collection_name = 'SIS_REPORTS_DISTRICTS')
    and nvl(A1.ETHNIC,'NONE') IN (SELECT decode(c001,'NONE',nvl(A1.ETHNIC,'NONE'),C001)
    FROM apex_collections AC7
    WHERE AC7.collection_name = 'SIS_REPORTS_ETHNICS')
    and nvl(C2.GRADE_LEVEL,'NONE') IN (SELECT decode(c001,'NONE',nvl(C2.GRADE_LEVEL,'NONE'),C001)
    FROM apex_collections AC8
    WHERE AC8.collection_name = 'SIS_REPORTS_GRADE_LEVELS')
    and nvl(C3.HOMEROOM,'NONE') IN (SELECT decode(c001,'NONE',nvl(C3.HOMEROOM,'NONE'),C001)
    FROM apex_collections AC9
    WHERE AC9.collection_name = 'SIS_REPORTS_HOMEROOMS')
    and nvl(C9.PROGRAM_CODE,'NONE') IN (SELECT decode(c001,'NONE',nvl(C9.PROGRAM_CODE,'NONE'),C001)
    FROM apex_collections AC10
    WHERE AC10.collection_name = 'SIS_REPORTS_PROGRAM_CODES')
    and nvl(E2.S_TYPE,'NONE') IN (SELECT decode(c001,'NONE',nvl(E2.S_TYPE,'NONE'),C001)
    FROM apex_collections AC11
    WHERE AC11.collection_name = 'SIS_REPORTS_SCH_TYPES')
    and nvl(A.SEX,'NONE') IN (SELECT decode(c001,'NONE',nvl(A.SEX,'NONE'),C001)
    FROM apex_collections AC12
    WHERE AC12.collection_name = 'SIS_REPORTS_SEXS')
    and nvl(C7.SPECIAL_ED,'NONE') IN (SELECT decode(c001,'NONE',nvl(C7.SPECIAL_ED,'NONE'),C001)
    FROM apex_collections AC13
    WHERE AC13.collection_name = 'SIS_REPORTS_SPECIAL_EDS')
    and nvl(A.STUDENT_ID,'NONE') IN (SELECT decode(c001,'NONE',nvl(A.STUDENT_ID,'NONE'),C001)
    FROM apex_collections AC14
    WHERE AC14.collection_name = 'SIS_REPORTS_STUDENTS')
    and A.PK_ID IN (SELECT decode(c001,'NONE',A.PK_ID,AC16.FK_STU_BASE)
    FROM student_list_det AC16, apex_collections AC15
    WHERE AC15.collection_name = 'SIS_REPORTS_STUDENT_LISTS' and
    AC16.fk_student_list (+) = AC15.c001)

    Hi,
    APEX_COLLECTIONS are special structures that do not have indexes, expect for the one on SEQ_ID. The result is that as the number of collections used in a query increases the number of full table scans on underlying tables kill speed. They are not intended for such heavy use as has been discussed in some of the threads in this forum.
    They are extremely useful , but no good for very large data sets or large number of joins. Global temporary tables are also not an option with Apex.
    You may have to resort to Materialized Views or intermediate/temp tables to get speed.
    Regards,

  • How do find Oustanding Sales Report and Collection Report for A/R Invoice

    Dear All,
                     I need to find the Sales Outstanding amount and Collection details like Check or Cash Or RTGS this is including A/R Invoice Amount and JE Pending Amount. Is it possible?
    Kindly any body let me know some idea or if any sql query, plz send me.
    Advance Thanks to all.
    Regards,
    A. Anvar

    Hi!
    Check this, with little modification you can get the report i think
    Declare @FromDate as Datetime
    Declare @ToDate as Datetime
    SET @FromDate = (Select Min(S0.TaxDate) from ORCT S0 where S0.TaxDate >='20110201')
    SET @ToDate = (Select Max(S1.TaxDate) from ORCT S1 Where S1.TaxDate < ='20110228')
    Select R0.TaxDate,R0.Docnum,R0.CardCode,
    'Cash' [Payment Mode],R0.CashSum [Amount]  from ORCT R0
    Where
    R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate   and R0.Canceled = 'N'
    Union All
    Select R0.TaxDate,R0.Docnum,R0.CardCode,
    'Cheque' [Payment Mode],R0.CheckSum  [Amount]  from ORCT R0
    Where
    R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate  and R0.Canceled = 'N'
    Union All
    Select R0.TaxDate,R0.Docnum,R0.CardCode,
    'Discount' [Payment Mode],R0.TrsfrSum  [Amount] from ORCT R0
    Where
    R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate and R0.Canceled = 'N'

  • SSRS Report queries begin running slowly, have to stop and start report server to restore performance

    We have had a production issue crop up twice now where reports begin running slowly seemingly at random.  
    When this happens we can see from running SQL Profiler that the report queries are taking an extremely long time to execute.  The same queries when run directly in management studio run quickly.  
    Initially I suspected parameter sniffing, and tried using OPTION (RECOMPILE) in the reports, as well as clearing out the particular query from the plan cache and running the SQL in SSMS to try and get a better plan etc but no amount of jiggery pokery by
    me could get the queries to run any faster.
    The really weird thing - is that stopping and starting the report server via the reporting services configuration manager instantly cures the problem.  
    I'd really love to know - why this might be?  Is it something to do with the report server closing and re-opening its connections to the database? That's the only sort of thing I can think of...any ideas? Anyone? Any suggestions would be much appreciated.
    LucasF

    Hi LucasF,
    In your scenario, usually we can monitor the execution log in Report Database. If you run below query, you can get the results how long the report takes to render (TimeRendering), how long to process the report(TimeProcessing) and how long to retrieve data
    from Database(TimeData). You can check the starttime and endtime to know the total time for executing a report.
    SELECT TOP1000 *FROM[ReportServer].[dbo].[ExecutionLog2]
    More details information, please reference to similar thread below:
    Steps for troubleshooting a slow SSRS 2014 server
    Troubleshooting Reports: Report Performance
    In SQL Server Reporting Services, a job will be created by SQL Server Agent if any of the following processes is underway:
    query execution on a remote or local database server
    report processing
    report rendering
    To cancel a job that is running on the report server, we can cancel the job directly or reduce the report execution time-out value in the SQL Server Management Studio and then will stop query execution. Please refer to the steps below:
    Open SQL Server Management Studio, and connect to "Reporting Services".
    Under the Report Server node, right-click on the "Jobs" folder and select "Refresh". Then, right-click on "Jobs" again and click "Cancel All Jobs".
    Right-click on the Report Server node and open the "Server Properties" dialog.
    Click the "Execution" option, and set the "Limit report execution to the following number of seconds:" to a much smaller number. After this issue is resolved, this configuration should revert to the previous state.  
    Reference:
    Managing a Running Process
    Setting Time-out Values for Report and Shared Dataset Processing
    In addition, we can also use the KILL Transact-SQL statement to terminate a normal connection by terminating the transactions that are associated with the specified session ID. For the details information, you can refer to:
    KILL (Transact-SQL)
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Sales and Collection Report

    Dear Experts
    Am using below query for Sales and collection report but i came across that if i have  cancel any incoming payment is also showing in this report.
    Am requesting to modify this query in which if i or user do any cancellation of transction should not reflect in this report.In short Excluding of Cancelled entry
    Thanks in Advance
    Parikshit
    SELECT  M.SlpName, M.Sales,  M.Collection
    FROM (SELECT T1.SlpName AS 'SlpName',SUM(T0.DocTotal) as 'Sales', 0 as 'Collection'
    FROM OINV T0 INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode
    WHERE T0.DocDate >=[%0] AND T0.DocDate <=[%1]
    GROUP BY T1.SlpName
    UNION ALL
    SELECT H2.SlpName AS 'SlpName', 0, SUM(H0.DocTotal) as 'Collection'
    FROM ORCT H0 INNER JOIN OCRD H1 ON H0.CardCode = H1.CardCode
    INNER JOIN OSLP H2 ON H1.SlpCode = H2.SlpCode
    WHERE H0.DocDate >= [%0] AND
    H0.DocDate <=[%1] GROUP BY H2.SlpName
    )M

    SOLVED

  • Accounts Receivable and collections report project-wise

    Dear all,
    My client wants accounts receivable and collections reports project wise. are there any reports in PS which satify this requirements. If no, pls suggest me how to cater to this requirement.
    Pls help me on this issue.
    Thank you very much in advance.
    Regards,
    Vishnu.

    Hi,
    If your cash flow scenario is very complex with partial payments, deferred debt, down payments etc., none of the standard reports including FBL5N / FBL1N will be helpful. If the scenario is fairly simple , FBL5N / FBL1N  should work for you.
    In a complex scenario, you may have develop your own reports based on the basic logic of FBL5N.
    Regards
    Murali

  • Report All SCCM clients and Collections

    Hi all
    I'm trying to create report
    All SCCM clients and Collections
    But I can't convert multiple rows (collections) in one row
    I got:
    Name        Collection Name
    ps1             serverDP
    ps1               Adobe
    ps2                CRT
    ps2               Note
    I need:
    Name        Collection Name
    ps1             serverDP ,Adobe
    ps2                 CRT,Note
    Im using following query ....but it doesn't work .Need help!!!  
    select
    v_FullCollectionMembership
    .Name
    as Name,
    CollName
    =
    stuff((SELECT
    + v_Collection.Name
    from
    v_Collection
    where
    v_Collection.CollectionID
    = v_FullCollectionMembership.CollectionID
    FOR
    XML
    PATH('')
    ), 1,
    1,'')
    FROM v_FullCollectionMembership
    Gerkin

    Hi,
    I recommend you use Report Builder to create the report.
    Using Matrix and LookupSet to merge the table.
    =join(LookupSet(Fields!Name.Value, Fields!Name.Value, Fields!CollName.Value, "DataSet_name"), ",")
    For more information, please review the link below:
    Adding a Matrix (Reporting Services)
    http://technet.microsoft.com/en-us/library/ms157334(v=SQL.100).aspx
    LookupSet Function (Report Builder and SSRS)
    http://msdn.microsoft.com/en-IN/library/ee240819.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I have a report with 2 queries and prompts on same object tell me how many times it request for I/P?

    Hi
    i have a report with 2 queries and prompts on same object tell me how many times it request for I/P? can any one please guide me.
    Regards,
    Mahendra

    Is this question related to Dashboards or webi ?

  • Migration of work books, queries and web report

    Hi,
    kindly give me the steps to migrate workbooks, queries and web reports from BW 3.5 TO BI 7.0
    Regards
    Asim

    Hi,
    Kindly check the below link:
    Migration of Queries and Work Books from BW 3.x to BI 7
    /people/teja.badugu/blog/2008/11/11/migration-of-queries-and-work-books-from-bw-3x-to-bi-7
    Hope it helps,
    Thanks,
    Amit

Maybe you are looking for

  • Object form is not getting displayed for few users

    Guys I have successfully implemented approval and provisining flows for a new resource in OIM 9.1.X. This resource has an object and a process form. It is working fine in production for few users. But for few users, the object form is not getting dis

  • Access KM using API as predefined user

    Hello, dear experts! Currently I am going to use KM as file storage for my application. I want to prevent direct access to KM content for all users and allow them to upload and download files only using my application. The problem is: I use not conte

  • 10.6 Terminal.app doesn't show complex characters

    Terminal only shows blanks instead of complex characters. This happens both for input as well as program output. Screenshot: !http://www.abload.de/img/sl_termuada.jpg!

  • Video disappears when going to Fullscreen Mode

    I have an executable with several embedded videos that plays fine but when I go Full Screen I lose the video. Anyone have this problem before? I am working in CS4 and using AS3.

  • Response communication for synchronous JDBC channel

    Hi, We have a Proxy->XI-> JDBC synchronous interface. Is there a necessity for a response receiver communication channel? We just set one up and it always fails with a select statement "Select * from payroll where enddate = "20081012". I never set up