Report Queries column limitation

Hi All,
is there any limitation on PDF report queries regarding the column number?
the error message I've got is: ORA-06502: PL/SQL: numeric or value error: character string buffer too small error
I was thinking that the result is too long but is only 3299 according to this script:
select length(dbms_xmlgen.getxml('SELECT ROW_ID, SUBJECT_ID_1, DOC_1, PATIENT_ID_1, SPECIMEN_ID_1,
               SUBJECT_ID_2, DOC_2, PATIENT_ID_2,SPECIMEN_ID_2, 
               SUBJECT_ID_3, DOC_3, PATIENT_ID_3,SPECIMEN_ID_3, 
               SUBJECT_ID_4, DOC_4, PATIENT_ID_4,SPECIMEN_ID_4, 
               SUBJECT_ID_5, DOC_5, PATIENT_ID_5,SPECIMEN_ID_5, 
               SUBJECT_ID_6, DOC_6, PATIENT_ID_6,SPECIMEN_ID_6, 
               SUBJECT_ID_7, DOC_7, PATIENT_ID_7,SPECIMEN_ID_7, 
               SUBJECT_ID_8, DOC_8, PATIENT_ID_8,SPECIMEN_ID_8 
  FROM TABLE (LABELS.GET_COLLECTION_LABELS(103))')) xml from dual;Well if I run it like this:
SELECT ROW_ID, SUBJECT_ID_1, DOC_1, PATIENT_ID_1||SPECIMEN_ID_1 a1,
               SUBJECT_ID_2, DOC_2, PATIENT_ID_2||SPECIMEN_ID_2 a2, 
               SUBJECT_ID_3, DOC_3, PATIENT_ID_3||SPECIMEN_ID_3 a3, 
               SUBJECT_ID_4, DOC_4, PATIENT_ID_4||SPECIMEN_ID_4 a4, 
               SUBJECT_ID_5, DOC_5, PATIENT_ID_5||SPECIMEN_ID_5 a5, 
               SUBJECT_ID_6, DOC_6, PATIENT_ID_6||SPECIMEN_ID_6 a6, 
               SUBJECT_ID_7, DOC_7, PATIENT_ID_7||SPECIMEN_ID_7 a7, 
               SUBJECT_ID_8, DOC_8, PATIENT_ID_8||SPECIMEN_ID_8 a8 
  FROM TABLE (LABELS.GET_COLLECTION_LABELS(103))I have no errors.
Does some one know what is the limit and why?
Thanks a lot,
Andrei

Thanks for the reply, sorry I have corrected first script with the length of response in xml format.
The script executes just fine in SQL developer and Toad, and in APEX SQL Workshop , and even I was able to create a classic report with the same script.
It is Report Queries generation. Not PDF it self, because if I select HTML i am getting same error
If I execute this select, it gives me the error:
SELECT ROW_ID, SUBJECT_ID_1, DOC_1, PATIENT_ID_1, SPECIMEN_ID_1,
               SUBJECT_ID_2, DOC_2, PATIENT_ID_2, SPECIMEN_ID_2, 
               SUBJECT_ID_3, DOC_3, PATIENT_ID_3, SPECIMEN_ID_3, 
               SUBJECT_ID_4, DOC_4, PATIENT_ID_4, SPECIMEN_ID_4, 
               SUBJECT_ID_5, DOC_5, PATIENT_ID_5, SPECIMEN_ID_5, 
               SUBJECT_ID_6, DOC_6, PATIENT_ID_6, SPECIMEN_ID_6, 
               SUBJECT_ID_7, DOC_7, PATIENT_ID_7, SPECIMEN_ID_7, 
               SUBJECT_ID_8, DOC_8, PATIENT_ID_8, SPECIMEN_ID_8 
  FROM TABLE (LABELS.GET_COLLECTION_LABELS(103))If i execute this one, everything is ok:
SELECT ROW_ID, SUBJECT_ID_1, DOC_1, PATIENT_ID_1||SPECIMEN_ID_1 a1,
               SUBJECT_ID_2, DOC_2, PATIENT_ID_2||SPECIMEN_ID_2 a2, 
               SUBJECT_ID_3, DOC_3, PATIENT_ID_3||SPECIMEN_ID_3 a3, 
               SUBJECT_ID_4, DOC_4, PATIENT_ID_4||SPECIMEN_ID_4 a4, 
               SUBJECT_ID_5, DOC_5, PATIENT_ID_5||SPECIMEN_ID_5 a5, 
               SUBJECT_ID_6, DOC_6, PATIENT_ID_6||SPECIMEN_ID_6 a6, 
               SUBJECT_ID_7, DOC_7, PATIENT_ID_7||SPECIMEN_ID_7 a7, 
               SUBJECT_ID_8, DOC_8, PATIENT_ID_8||SPECIMEN_ID_8 a8 
  FROM TABLE (LABELS.GET_COLLECTION_LABELS(103))It is defiantly some limitation on the number of columns, but what is the reason and why? Maybe there is a way to avoid this.
Thanks

Similar Messages

  • APEX 4.0 Report Query column limitation, 43 column maximum for the result!

    Hi there,
    I'm trying to generate report from Apex 4.0.1, but I got stucked with column limitation when I'm executing the report query.
    Case:
    Environment: oracle 11g, apex 4.0.1, oracle BI 11, windows xp
    Table: My test table is quite simple, by creating a sample table with 44 columns, the column name is random, i.e. column1..column44, column data type is varchar2 (20)
    report query:my report query is also simple, by "select * from testtable"
    Data: no data in my sample table
    Error: then I'll get the error: "HelpORA-06502: PL/SQL: numeric or value error: character string buffer too small"
    solution: If I shrink the table column from 44 to 43, then the report can be generated to xls, pdf, etc.
    Question: Is there any column limitation for Apex report query? I know there's a 32k row size limitation for varchar, but since there's no single data in my table, it shouldn't be the case.
    Does anybody get this issue before? Thanks for any generous input!! :)
    Horatio

    hi marko,
    Thanks for the reply, but i can't find the 45 column limitation from report query and report printing. any clue for this call?
    Regards
    Horatio

  • Column limits for Crystal Reports for Eclipse

    Hi ,
    Is there any column limits for Crystal Reports for Eclipse. While i am trying in my environment, if i am include more than 18 columns its wont show the preview as well as it throws error like as follows "java.lang.NullPointerException at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:991) at java.lang.Double.valueOf(Double.java:447) at oracle.sql.NUMBER.toDouble(NUMBER.java:326) at oracle.jdbc.dbaccess.DBConversion.NumberBytesToDouble(DBConversion.java:2975) at oracle.jdbc.driver.OracleStatement.getDoubleValue(OracleStatement.java:4485) at oracle.jdbc.driver.OracleResultSetImpl.getDouble(OracleResultSetImpl.java:567) at com.crystaldecisions.reports.common.data.JdbcCrystalResultSet.getDouble(Unknown Source) at com.businessobjects.reports.jdbinterface.common.ResultSetReader.readColumnValue(Unknown Source) at com.crystaldecisions.reports.queryengine.ResultSetRecordReader.a(Unknown Source) at com.crystaldecisions.reports.queryengine.Rowset.a(Unknown Source) at com.crystaldecisions.reports.queryengine.RowsetColumn.xL(Unknown Source) at com.crystaldecisions.reports.queryengine.Rowset.z1(Unknown Source) at com.crystaldecisions.reports.queryengine.Rowset.bN(Unknown Source) at com.crystaldecisions.reports.queryengine.Rowset.bI(Unknown Source) at com.crystaldecisions.reports.queryengine.RowsetBase.bJ(Unknown Source) at com.crystaldecisions.reports.queryengine.RowsetBase.za(Unknown Source) at com.crystaldecisions.reports.datalayer.a$e.za(Unknown Source) at com.crystaldecisions.reports.basicdataengine.a.w(Unknown Source) at com.crystaldecisions.reports.basicdataengine.a.p(Unknown Source) at com.crystaldecisions.reports.basicdataengine.a.a(Unknown Source) at com.crystaldecisions.reports.datalayer.a.do(Unknown Source) at com.crystaldecisions.reports.datalayer.a.a(Unknown Source) at com.crystaldecisions.reports.dataengine.m.b(Unknown Source) at com.crystaldecisions.reports.dataengine.j.b(Unknown Source) at com.crystaldecisions.reports.dataengine.m.o(Unknown Source) at com.crystaldecisions.reports.dataengine.m.a(Unknown Source) at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source) at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source) at com.crystaldecisions.reports.dataengine.j.case(Unknown Source) at com.crystaldecisions.reports.dataengine.h.(Unknown Source) at com.crystaldecisions.reports.dataengine.DataContext.a(Unknown Source) at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source) at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source) at com.crystaldecisions.reports.dataengine.DataProcessor2.new(Unknown Source) at com.crystaldecisions.reports.dataengine.DataProcessor2.try(Unknown Source) at com.crystaldecisions.reports.dataengine.DataProcessor2.int(Unknown Source) at com.crystaldecisions.reports.dataengine.DataProcessor2.I(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fl(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.X(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.lightmodel.FCMPageFormatter.goToPage(Unknown Source) at com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.B(Unknown Source) at com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.A(Unknown Source) at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages$2.A(Unknown Source) at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages$2.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$3.doWork(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$_B.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)".
    But i removed any one column, it wont make any problem and able to preview. Whenever put more than 18 columns, its throwing issue. Can you please help me to identify the issue.
    Regards, Siby

    Hi,
    Are you talking about the fields coming from the Data Source Explorer?.
    If "Yes" then there is no such limits.
    Are you able to run the report through the eclipse designer?
    Thanks,
    Neeraj

  • 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 - Multiple Source queries - One source returns & one doesn't

    Hi Folks.
    Odd one here.
    I have a report query entry in the Shared Components of the APEX UI.
    Within the Query are two source queries.
    Both return unique column names.
    Both use the same bind variable.
    When generating a PDF using the call to the report, the data from one query is being returned and the data from another is not.
    I have generated a sample XML file from APEX which is populated with data for both queries.
    If I import this into MS-Word using the BIP plugin and generate a preview all is fine. All fields using data from both source queries are populated.
    When generated via a regular call within APEX it simply does not work. I only get the data from one query.
    Does anyone have any suggestions?
    Anyone had a similar thing?
    Any comments/suggestions welcome.
    Many thanks
    Dogfighter.
    Message was edited by:
    Dogfighter
    Message was edited by:
    Dogfighter

    Hi Marc
    Does this make sense to you?
    I have now set up a simple report query and report layout.
    The record ID is hard coded into the query so that it only returns one row.
    I am using an RTF based template.
    If I navigate to Shared Components > Report Queries > Edit Report Query and then press the 'Test Report' button it runs perfectly.
    If I copy the 'Print URL:' value from this page and use it as the URL target on any page in the app. it also works perfectly.
    If I try and execute the following...
    update invoice_summary
    set invoice_pdf = APEX_UTIL.GET_PRINT_DOCUMENT (127, -- App ID
    'TEST_INVOICE', -- query name
    'TEST_INVOICE') -- layout name
    where invoice_summary_gsm_id = a.INVOICE_ID;
    I get the pdf saved to the BLOB column with the field labels in place but no data.
    Three ways of running the report.
    Two of them work perfectly but the one I want (generate direct into BLOB column) does not. Why would the exact same report query & report layout work with the other two methods but not the GET_PRINT_DOCUMENT route?
    It's not as if the pdf does not get into the BLOB column, it does, but it only has the labels and no values.
    Any ideas?
    Simon.
    PS. I only have one report query and one report layout set up so as to avoid confusion. Both with the same name.
    Message was edited by:
    Dogfighter

  • Do report queries require BIP?

    Hey all,
    I've created a named column report template which works well with Apache FOP to generate a PDF from a report region. The problem with that approach is that the level of detail for the report region makes the screen too cluttered to easily read. So I thought I'd do a summary report region with a button to launch the PDF of the detail via a report query.
    I duplicated the report region's source query to a new report query, and set the query to use the same report template the region successfully uses. The XML Schema download looks great, but when I use "Test Report", the resulting PDF is HTML tags with "Internal Server Error 500" and the FOP application.log says "oracle.xml.parser.v2.XMLParseException: Start of root element expected."
    I'm not sure how to debug this, but I noticed the message on the upper right hand side of the Edit Report Query screen says "Report queries are rendered using a custom built RTF layout...", which would infer a requirement for BI Publisher, although I haven't been able to find that stated in any web page, help text, forum message, or book.
    If that's the case, is there a technique to mask/hide report region items while still being able to print them?
    Anyone?
    TIA!
    Rich
    Edited by: socpres on Oct 23, 2008 10:28 AM (Rich Text doesn't look very nice w/paragraphs)

    Hi Rich,
    My guess would be that the XML your report query produces doesn't match the XML generated by your report region export. When printing/exporting report regions, the XML data generated for the print server always contains information about your application, page and the session data of your current page. Report queries on the other hand by default only produce the XML needed for you report data. So the actual XML structure is different, hence your report layout might need to reference your attributes slightly differently. In order to make APEX produce the same XML structure when exporting report regions and report queries, simple enable session state inclusion for your report query (it's an attribute on the first page of the report query create wizard and can also be edited on the report query edit page). Even if you don't want to include any actual session state values, this will ensure that same XML structure in both cases. The reason this is working this way is that for report queries, we want to ensure that you can use the same RTF report layouts that you use in BI Publisher.
    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,

  • Report region columns constrained to 4000 chars?   Hitting LOV problems.

    Hi all,
    I've hit a problem that I'm hoping will have a simple answer.
    Quick overview of issue:
    APEX 3.01 application running against a 10gR2 DB.
    We have an LOV defined that works just fine on various forms but in report regions where the LOV is available via a drop down column value in the report region HTML table we are hitting the error:
    report error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Some judicious debugging reveals that this seems to be because we are trying to load in more than 4000 characters into the LOV drop down in the report regions HTML table column (it's a moderately large LOV)..
    This suggests that the default column type in a report region HTML table is VARCHAR2 and thus that there is a default 4000 character limit on any such column values, would that be a fair assumption? I know that the actual report row size always used to be limited to a total of 32k but this limit is a new one to me.
    If there is such a limit, does anyone have any suggestions on how to work-around it i.e. is it possible to redefine report region column values to be other datatypes/dimensions or should we be looking at using an alternative such as a pop-up instead?
    Many thanks.

    Hi Scott,
    Okay, what we have is a fairly simple Dynamic Page with two report regions (both standard type of 'SQL Query'). The second report region is the one causing us the headache. The column headings are set to 'Custom' but apart from that everything seems as it should be.
    The following query populates an HTML table being generated in the second report region (problem line in bold):
    SELECT apex_item.hidden(7,task_id)||
    apex_item.select_list_from_lov(1, estimate_type, 'TASKSMK', NULL, 'YES', 0,'** Select Task **',NULL, NULL) as "Task Type",
    '<img src="/i/themes/aqa/required.gif" alt="Required Field" tabindex="999" />'||apex_item.text(2, description,30,4000,'required="true"') as "Work Item(s)",
    dbms_lob.substr(apex_item.select_list_from_lov_xl(3, username, 'PEOPLE', NULL, 'YES', 0, '** Select Resource **', NULL, NULL),4000) as "Resource",
    apex_item.text(4, days,5,5) as "Days",
    apex_item.text(5, start_date,11,11) as "target Start (dd-mon-yyyy)",
    apex_item.text(6, NVL(end_date,ADD_MONTHS(start_date,1)),11,11) as "Target End (DD-MON-YYYY)",
    rownum link
    FROM
    (SELECT t.task_id,
    e.estimate_type,
    t.description,
    t.username ,
    t.days,
    t.start_date,
    t.end_date
    FROM estimate e, task t
    WHERE e.project_project_id = TO_NUMBER(:F172_PROJECT_ID)
    AND e.active_yn = 'Y'
    -- and t.days > 0
    AND t.ese_id = e.id
    --AND e.creation_date = (SELECT MAX(ei.creation_date) FROM estimate ei WHERE ei.project_project_id = e.project_project_id AND ei.active_yn = 'N')
    UNION ALL
    SELECT 0 task_id,
    0 estimate_type,
    NULL description,
    '0' username,
    NULL days,
    sysdate start_date,
    ADD_MONTHS(sysdate,1) end_date
    FROM dual
    CONNECT BY LEVEL < = TO_NUMBER(:P19_ROWS_CNT))
    All appears well until the number of values being returned in the second LOV (retrieved by the apex_item.select_list_from_lov_xl) exceeds 4000 characters and then we get the error first detailed. The substr around the function isn't usually present, it was added during the debugging, if I allow one more character than the 4000 or remove the substr completely then I get the error again. If the same function is used to retrieve the LOV on a normal Dynamic Form field then all is well, it only seems to have a problem when present in the HTML table being generated.
    Are we doing something silly here?
    Thanks.
    Message was edited by:
    jac

  • Is it possible to call diff  report queries when called from form

    hello all
    I want to know if it is possible to call different report queries when called from oracle 9i form .
    i tried to use he
    SET_REPORT_OBJECT_PROPERTY(REPORT_QUERY = 'q_diff' )
    option and actualy called the report name
    but it dint seem to work !!!
    also is it possible to chng the title of the browser at runtime

    Sandeep,
    this property is used with passing Record Groups as data parameters from Forms.
    Passing the query name indicates that the values contained in the record group substitutes the result of the named query. This may work in client/server Reports, but it definitively doesn't work on teh Web because you can't pass a Record Group as a data parameter in this environment.
    Te problem with changing a Reports query is that you must meet the same number of columns and column types as they exist in the Report. I didn't spend much time with XML based runtime customization in Reports. I think that you can change the Reports query through this feature. In Forms you would create the XML file using text_io and the merge it with an existing Reports. I never did this before. So it could be that all I am saying does not work in the end. Before following this idea, you may better ask in teh Reports forum on OTN if it is possible to use the runtime customization feature to modify the Reports query.
    Fran

  • 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

  • PDF column limitation

    Hello!
    Currently, we are trying to paste a very large XML set into a PDF to be generated and presented to the user via "http://<server>:<port>/XMII/Runner? ......".  At first, this crashed since we expected thirty columns to be pasted on PDF.  We have successfully managed to put thirteen columns on a 11x17 page format (landscape) and even some of the A1, A2 formats.
    However, adding another column (so fourteen total) causes the system to crash.  These columns are not really all that wide and there is word wrap.  Is there a way to further decrease the column width of the XML in order to accommodate this fourteenth row?
    What are the other limitations of the PDF action block/document generation that I should be aware of?
    Thanks
    AJ

    hi marko,
    Thanks for the reply, but i can't find the 45 column limitation from report query and report printing. any clue for this call?
    Regards
    Horatio

  • Need help to develop report with column chart

    Hi
    I am new to SAP BO world.Could  anyone please help me to design report with column chart.Please guide me how to develop report for the following requirement.I am not aware of variance columns and variance labels.Please provide some guidance or some tutorials(for column Chart) so that I can complete the task. Please reply me as soon as possible.Waiting for reply.Thanks in advance.
    Type: Column Chart
    u2022     Rows: Banking Asset Margin (%)
    u2022     Start / End Columns: PY YTD Act(Prior year year to date); CY YTD Act(Current year Year to date)
    u2022     Variance Columns: # Var (CY-PY Act) for GOLM; Volume; Rate; Non Banking NII; Banking Volatility in NII; Banking Volatility in OOI; Fees/One Offs/Other; Volatile Items; Sophie
    u2022     Sub-total columns: PY YTD Underlying; CY YTD Underlying.
    u2022     Variance Labels: % Var (CY-PY Act) for Total Income and Underlying Income
    u2022     Sub-Total Labels: # Var (CY-PY Act) for Net Insurance Income; Banking Volatility; Other Operating Income
    Additional information
    u2022     Variance columns (bar) colours: Red = Adverse to Prior Year; Green = Favourable to Prior Year
    u2022     Columns to show values. Adverse values to be shown in red text in brackets. Favourable results in black text.
    u2022     All values in Black, but adverse to be shown below the bar.

    Hi,
    This type of question is almost impossible to answer over a forum .
    You need to work with your business to understand what these requirements mean in terms of data modelling and relationships between object entities.
    - Some of these metrics should be delegated to source, and calculated in the update routines to your datatargets (aka Cubes/Tables)
    - Others could be resolved in the semantic layer (Universe)
    - Other will be calculated in the presentation layer as local formulae or variables.
    whilst BusinessObjects is a fairly intuitive tool, it may be unreasonble to expect a new learner to deliver an advanced report with conditional formatting.
    Regards,
    H

  • Hints on Interactive Report's column headers

    Hi,
    I've used +"< spa.n title = "Hint" > Header < / span>"+ (the first 'spa.n' is so it doesn't interpret as code) to put hints on my report columns headers but found that, when using interactive report's tools, the column names that appear obviously include the "code".
    Is there any way to put hints on interactive report columns and still maintain the proper title(in this case Header) when using the tools?
    Thank you,
    Marc

    Hi,
    Thank you for the tip Ghoulies. The spaces I put trying to make it read as text. The code works fine, it actually shows the Header in the report's column and the hint appears on mouse-over.
    What I mean is, when using interactive report's tools, such as "Select Columns", The <span title="hint">header</span> {code} appears as the column name in the +display / not display+ boxes.
    Is there any other way to put hints on Interactive reports so that this doesn't happen?
    Marc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Report Queries Rendering Issue

    I'm having real trouble generating RTF reports from Report Queries using BI Publisher. When i copy the url into a button link the output is below
    {\rtf1\ansi\deff0 {\fonttbl {\f0 Arial;} {\f1 Times;} {\f2 Courier New;} {\f3 Helvetica;} } {\colortbl ; \red0\green0\blue0; \red221\green221\blue221; \red239\green239\blue239; } {\info {\title } {\doccomm Generated by Oracle BI Publisher 10.1.3.3.3} } \formshade\viewkind1\viewbksp1\uc1\dntblnsbdb \paperw15840\paperh12240\margt1800\margb1800\margl1320\margr1320\landscape {\header \pard\itap0\qc\sl0\lin120\rin120 \par } {\footer \pard\itap0\qr\sl0\lin120\rin120 {\f3\fs16\cf1 \chpgn}\par \pard\itap0\qc\sl0\lin120\rin480 \par } \trowd \trhdr \trleft12 \clcbpat2\clbrdrt\brdrs\brdrw10\brdrcf1\clbrdrb\brdrs\brdrw10\brdrcf1\clbrdrl\brdrs\brdrw10\brdrcf1\clbrdrr\brdrs\brdrw10\brdrcf1 \cellx13252 \pard\intbl\sl0\lin108\rin108 {\f3\fs16\cf1 CONTACT LABEL}\cell \trowd \trhdr \trleft12 \clcbpat2\clbrdrt\brdrs\brdrw10\brdrcf1\clbrdrb\brdrs\brdrw10\brdrcf1\clbrdrl\brdrs\brdrw10\brdrcf1\clbrdrr\brdrs\brdrw10\brdrcf1 \cellx13252 \row \trowd \trleft12 \clcbpat3\clbrdrt\brdrs\brdrw10\brdrcf1\clbrdrb\brdrs\brdrw10\brdrcf1\clbrdrl\brdrs\brdrw10\brdrcf1\clbrdrr\brdrs\brdrw10\brdrcf1 \cellx13252 \pard\intbl\sl0\lin108\rin108 {\f3\fs16\cf1 Adrian Jones}\line {\f3\fs16\cf1 BRITISH SKY BROADCASTING}\line {\f3\fs16\cf1 GRANT WAY}\line {\f3\fs16\cf1 ISLEWORTH}\line {\f3\fs16\cf1 LONDON MIDDLESEX}\line {\f3\fs16\cf1 SW1E 5JL}\cell \trowd \trleft12 \clcbpat3\clbrdrt\brdrs\brdrw10\brdrcf1\clbrdrb\brdrs\brdrw10\brdrcf1\clbrdrl\brdrs\brdrw10\brdrcf1\clbrdrr\brdrs\brdrw10\brdrcf1 \cellx13252 \row \pard\itap0\sl0\lin120\rin120 {\*\bkmkstart page_total_master0}{\*\bkmkend page_total_master0}{\*\bkmkstart page_total}{\*\bkmkend page_total}\par }
    I expect an attachment box with an RTF file to download. When i use the test functionality within shared components>report queries an RTF is generated. Why when i use the link is the RTF not been rendered. I'm using the latest version of apex with an 11g database. I have had trouble with the access control list before; could this be a problem?
    Any help will appreciated
    Thanks
    Kevin

    It looks like the issue is within the application and not the configuration as the sample application within the same workspace is okay. Does anyone know why i would encounter an error like this. Have i deleted something accidentally or altered a setting?
    Any help will be greatly appreciated.
    Thanks
    Kevin

  • Session State in Report Queries

    Hi all,
    I've got a report query with XML Structure set to advanced. I added two items to session state - a "department name", and a "current date" - these are application items that I want to put in the page header of my report template.
    After I load the XML data and go to insert a field, I see some session info available for inserting (appl id, user, report title, etc.) along with my report fields, but I don't see the two session items I added. I took a look at the XML data and they're not there.
    How do I get the session items to be included with the XML?
    Thanks!!!

    Sorry, I should have mentioned I am using a BI Publisher RTF Layout for my report layout, therefore I don't believe I can use it on apex.oracle.com. If BI Publisher is in fact installed there, then please correct me.
    I am including session variables with the report, but the session variables between all of the report queries in my application are common between report queries. (Even though I really only want variables specific to each report to be included) When I add or delete a session variable from one report query, it affects all report queries in my application. This could be a feature, but I doubt it since it does not seem intuitive.
    In addition, sometimes a random session variable or set of session variables will disappear from the list. (this is what I meant by drop) I cannot seem to determine when/what triggers this action, but it seems like this may occur when I delete a particular report query.
    I can try to put up an example on apex.oracle.com, but I'm not sure if this is dependent on the presence of BI Publisher.
    Thanks in advance for any help!
    -David

Maybe you are looking for

  • Can not open SKYPE on OS 10.3

    I am living in Thailand - and SKYPE could be the ultimate solution for me, to speak with my friends and family in Germany. What a pity, that SKYPE does not work on my Macintosh G4 with OS 10.3. The system requirements of my Mac are okay, the download

  • Why isn't my bluetooth keyboard volume and play controls not working osx x

    For some reason my top row keys are not working on my bluetooth wireless keyboard well the work but the volume up key switches to the dashboard, the volume down triggers the expose' ... it just all out of wack. Please help!! Thanks in  Advance, Marc

  • 1) Device groups

    First question: Workstations (devices) are currently allocated under /Devices/Workstations to folders that represent the office location of the workstation. Is there a way to create device groups without removing the devices from their primary locati

  • K7N2G driver installation issue

    I just bought a K7N2G, and fitted an Athlon XP2000. Everything works fine until I try to install the drivers, at which point the whole system hangs with a black screen. After trying each driver component individually, everything installs except the v

  • Borrar cuenta de correo

    COMO PUEDO ELIMINAR LA CUENTA DE CORREO PRINCIPAL