Displaying a CLOB value on a report page in an application from a DB-link

Hello, i am having trouble displaying a CLOB value from a DB-Link, i have tried using temporary local tables, but they didnt work.
I am now trying to use a collection (page process) to display the CLOB column's data from the link but to no avail :(
This is my collection source:
declare
  col1   number;
  col2   date;
  col3   clob;
begin
  apex_collection.create_or_truncate_collection('LOBCOLLECTIONPLAN');
  for r in ( select * from TABLENAME@DB-Link ) loop
    APEX_COLLECTION.ADD_MEMBER('LOBCOLLECTIONPLAN',
    p_c001          => r.col1,
    p_c002          => r.col2,
    p_clob001       => r.col3);
end loop;
end;when i run the page it displays 'no data found', yet there is data in the linked DB table.
Is there anything i am doing wrong?
Or is there another way around this?
Thanks in advance

There used to be a problem with pulling CLOB's through dblinks. I don't know if that is still an issue, but I think it probably is, as that is a 'problem' with the database itself.
If you run the same SQL query on your local database, getting the CLOB's from a remote database, do you get any errors or do you get all of the data?
No idea if I'm right or not, but it's something you should be able to test fairly easily.
Bill Ferguson

Similar Messages

  • How to display only Negative values in the report.....

    Hi,
    I want to display only negative values for one particular column.
    Any suggestions ?
    Thanks,
    Jeetu

    Hi,
    define a condition for all characteristics and for specially the keyfigure. Set it to < 0. That should do the trick.
    regards
    Siggi

  • Populate report page based on results from stored procedure

    Is it possible to populate a report page in APEX based on the results from a stored procedure? If so, how do I do it? Do I write a stored procedure with a ref cursor as out parameter?

    I would use a stored procedure to return the values for a form but not for a report. For a
    report, I would use a pipelined function. See an example here:
    http://htmldb.oracle.com/pls/otn/f?p=31517:146
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to display an USERID on  "Portal Activity Report - Pages and iViews"

    HI,All.
    I have a question.
    It is as follows.
    A purpose&#65306;
    iView of EP is used and called for contents of the WEB-AP server of various (Tomcat(Java)).
    The acquisition of "EP login user ID" is difficult from the log of each WEB-AP server.
    It wants to acquire information on "Which iView which EP login user how many times executed?" by using EP, and analysis/to use it.
    A present specification&#65306;
    "Only information on "Number of users using iView" can be acquired in this function
    though "Page and iView of portal activity report" of EP was verified to achieve the above-mentioned purpose.
    It is impossible to analyze it, that is, "Which user ID used iView?".
    A question&#65306;
    In "Page and iView of portal activity report"
    How should I do to display "Which iView how many times did each EP login user execute?"?
    Or, I want to know if there is a table with the informations.
    Environment&#65306;
    EP6.0&#12288;SP18
    OS:WindowsServer2003 EE sp1  rc2
    CPU:Xeon3.2GHz x2
    MEMORY:4GB
    HDD:36GB*2
    Other:Clustering
    Thanking you in advance.
    matsu.

    Hi,
    You can try Setting the 'Monitor Users' property of the pages to 'Yes'. We did this for one of our portal but there seem to be a slight performance trade-off.
    Please award point if helpful.

  • Refresh APEX_ITEM.TEXT Value when Interactive Report Page Changes

    I use an APEX_ITEM.TEXT column in an IR where the user can enter some number date.
    to make this data persistent while paginating the ir, i use some DA . Via ajaxthis DA call an onDemandProcess to save the entered data in a collection.
    works great; the input is stored in the collection.
    To show the already entered data, the ir sql statement joins the collection.
    select  APEX_ITEM.hidden(2,artikelnr)||
            APEX_ITEM.TEXT(1
              ,COL_artikel.preis
              ,3
              ,3
              ,'autocomplete="off" onfocus="javascript:f_set_last_val(this);" onchange="javascript:f_validate_integer(this);"'
              ,'INPUTBESTELLEN'
             ) Inputbestellen,
    article.*
    from article
    left outer join COL_artikel on COL_artikel.nummer = artikelnr where col_artikel is a view for better access on the collection
    Now the issue:
    On the first Page i add some data, then i go head to page 2 and 3 of the ir. The collection is filled withe the entered data.
    But when i navigate back to page 1 the entered data is not shown in the input field unless i relload the whole page . I guess because the query is not re-executed when paginating foreward/backward.
    ist there any way to overcome this tiny small issue?
    regards
    peter

    It looks like you are trying to combine apex_item function with a standard tabular form and as far as I know this won't work. You will need to create a manual tabular form in that case. See this and other examples as a refference:
    http://htmldb.oracle.com/pls/otn/f?p=31517:170
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Displaying the correct value of Y in page X of Y when running a batch

    Hi There
    Does anyone know how I can re-set the Y of page X of Y in the footer for each PO when running a batch?
    I am using <?for-each@section:G_HEADERS?> which is working great for each PO - re-setting the PO number in the header and re-setting the X in page X of Y in the footer for each PO, but unfortunetly the Y is set to the maximum number of pages of the first PO. I.e. If the first PO have 5 pages then each PO after that will have a Y set to 5 even if they have less or more pages.
    Does anyone know what I can do to get round this?
    I am running version 5
    Regards
    Ruth

    OK I don't have the time to try it out - here just the solution idea.
    1) XSL allows you to have links that gets the page number of an object with an id.
    This is used for example in our table of contents.
    2) You create a link to an object (empty fo-block) on the last page.
    3) The problem is that each of the objects for each of the sections needs a seperate
    identifier otherwise you have the same bug that 5.0 has.
    4) You use i.e. the position() from the loop (@section loop) to concatanate it to the id.
    Total Page Number
    <fo:page-number-citation ref-id="MY_KF_END_OF_PAGE{position()}" />
    End of Page reference
    <fo:inline id="MY_KF_END_OF_PAGE{position()}" />
    You may have to save the position in a varaible - be careful to use the correct
    context - probably incontext - check the user guide on contexts.... I would need
    to play with the context for the variable myself.
    Hope that helps.

  • Display variable values in Web report

    Hi Bw Mates,,,
    I am trying to display the variable values in Web Report.
    I put one text Item in Template and checked the Variable Display and entered the variable name in List.
    still I cannot see the variable values in the report.
    Thanks for your help.
    RSB

    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="GENERATE_CAPTION" value="BORDER"/>
             <param name="SHOW_COMMON_ELEMENTS" value=""/>
             <param name="ELEMENT_TYPE_1" value="VARIABLE"/>
             <param name="ELEMENT_NAME_1" value="Z_CP_018"/>
             ITEM:            TEXTELEMENTS_1
    </object>
    as the other poster mentioned the variable name has to be in upper case.
    if only_values = 'X' you will just get the value other wise
    you will get something like below.
    variable description = variable value
    Regards
    Raja
    Reward the helpful answers and close the thread once its answered.
    sorry for the delay in answering, it was weekend for us

  • How to Display Parent Form Values in Child Form

    Hi,
    I have Order Page and Item Page
    In the order Page If I select any Item and click on Submit Button, It should open Item Page and results should display in advance table region. In my Item page i have header region(Default double) with 3 fields (dummy) like
    Item
    Description
    org
    Now my question is I need to display the Item Value in the Item Page Header region in the Item Column which I was selecting in the Order Page.
    I have an order 100 with item A, B , C I select B and click on submit It should open Item Page and in items page i have a column called Item and the value B sholud be populated.
    Thanks,
    Mahesh

    Hello Ajay,
    Thanks for your reply..
    What Iam doing is Iam capturin the values in session variables like below when submit button is clicked
    pageContext.putSessionValue("SItemNo",ItemNo);
    And when my item page is opening I need to set this value to that VO Attribute..
    Iam trying the below way to set the attr value in PR
    String SItemNo=(String) pageContext.getSessionValue("SItemNo");
    OAMessageTextInputBean oa = (OAMessageTextInputBean)webBean.findChildRecursive("ItemNo");
    oa.setAttributeValue(SItemNo);
    But it is giving compilation error
    Error(35,9): method setAttributeValue(java.lang.String) not found in class oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean
    Please correct me ajay.
    Thanks,

  • Display Multiple Parameter Values in Specific Format

    In CR XI, I have a string parameter that allows single and multiple values.
    Values are Ward 1, Ward 2, Ward 3, Ward 4
    Iu2019m still a newbie at Crystal and canu2019t figure out how to display the parameter values in the report header in a specific way. Join({?ward},",") works fine to show the values selected, but the format is awkward.
    Would love to hear any suggestions on a formula that will display the parameter values in the header as follows:
    For a single parameter value:     Ward 1
    For two parameter values:     Wards 1 and 2
    For three parameter values:     Wards 1, 2 and 3
    If all four values are selected:     All Wards
    Hope I made my question clear, and thanks in advance!

    Thank you so much for your response; it does work, at least partially.Certainly is pointing me in the right direction.
    Is it possible to modify the case statement to add more arguments? I tried, but it didn't work correctly, although that is likely user error.
    For instance, if selecting a single value, it could any of the wards, not just Ward 1. And multiple values could be Wards 2 and 3, or Wards 1 and 4, or Wards 2, 3 and 4. There are at least a dozen different possibilities, and I need a formula  or case statement to account for all those possibilities.

  • Displaying Folder name in WEB I Report

    Post Author: mega-bo
    CA Forum: WebIntelligence Reporting
    Hey,
    I need to display the folders path, where the report has been taken/open from, in the WEB I report.
    like this Eg.,-.. /Datawarehouse folder/Lab Test/Lab Result Report
    any formula?

    Post Author: amr_foci
    CA Forum: WebIntelligence Reporting
    i dont think so, that you can do something like that
    when you design a new report using WebI, where is report has been saved?,, answer is NO WHERE, coz its still in memory, you dont have physical file for this report
    so i dont think that there is an option for this thing.
    good luck

  • Creating an index of all pages in the application?

    Is there anyway I can create a page in my app that displays a dynamic index (list) of all pages in the application? Sort of like a table of contents that automatically updates if I create a new page?
    Thanks!
    BoilerUP

    BoilerUp,
    The page comment is the last region on the page definition page. Just select a page, click the icon to edit and then click the Comments 'button' on the far right and it will focus you on that region.
    As to why it is not working, what version of APEX are you using? There have been some changes to the views from their debut in 2.2 to 3.0. You should perfect your query using SQL Commands in the SQL Workshop and then can paste it into a report region. If you are using 3.0, you can also use the APEX Views utility under the Utilities tab.
    -- Sharon

  • Reports in MS Excel Application

    Hi, All,
    We are using Oracle 10g database and forms. We have installed Jinitiator version 1.3.1.22.
    We are generating some of the reports in MS Excel Application from the Oracle forms.
    To generate the report in excel format we are using Client_OLE2 command.
    Recently we got a client machine with windows 7 OS with IE 10.
    In this client machine once we open the report opening screen and select the report format as Excel the Runtime application is getting expired.
    In this case we have to close entire internet explorer.
    The same report is opening in other format like PDF and HTML.
    This is a very very important requirement to us.
    Please help me.
    Regards,
    Tulasi

    submit Service  Request to MOS

  • Display Currency symbol with value in ALV Report

    Hi Experts,
    I need to display currency symbol with value in ALV Report like if currency type is dollar then $200.
    Here I am using field catalog type slis_t_fieldcat_alv and suing field merge catalog FM: 'REUSE_ALV_FIELDCATALOG_MERGE'
    I tried like this
        IF <fs_fieldcat>-fieldname = 'STPRS'.
          <fs_fieldcat>-seltext_s = 'Std Cost '.
          <fs_fieldcat>-seltext_m = 'Std Cost'.
          <fs_fieldcat>-seltext_l = 'Std Cost '
           <fs_fieldcat>-tabname = 'MBEW'.
          <fs_fieldcat>-ctabname = 'T001'.
          <fs_fieldcat>-cfieldname ='WAERS'.
          <fs_fieldcat>-datatype = 'CURR'.
        ENDIF.
    Please any one can suggest the solution for this.
    Advance Thanks.
    Regards,
    Bala Achari

    Hİ,
    Check this link.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=24379571
    Take care.
    Çağatay

  • Display image in report page but just a link if file is not an image

    Hello,
    I've been working on displaying an image in a report page but need to add some logic.
    I would like to be able to call the image using a Region Source of type SQL instead of the HTML Expression. The reason for this is because I need to use logic to determine if the file is an image or not and to determine wether to show a thumbnail or just a link. I did find a "GET_BLOB_FILE_SRC" Function on the internet that suggests that I could do this but I need some help in making it work in my application.
    Here it is as a Region Source of type SQL:
    SELECT ID,
    NAME,
    CASE WHEN NVL(dbms_lob.getlength(document),0) = 0
    THEN NULL
    ELSE CASE WHEN attach_mimetype like 'image%'
    THEN '<img
    src="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'" />'
    ELSE '<a
    href="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'">Download</a>'
    end
    END new_img
    FROM TEST_WITH_BLOB
    If anyone can help me with this that would be appreciated.
    Thanks
    LEH

    John,
    The problem is that I do not know how to use the "GET_BLOB_FILE_SRC Function". I never got it to work but the HTML Expression did work for me. If you know how the GET_BLOB_FILE_SRC Function works then that would be helpful. I don't think it would be helpful if I posted my example on apex.oracle.com. But here is the information I have on the GET_BLOB_FILE_SRC Function.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    GET_BLOB_FILE_SRC Function
    As an alternative to using the built-in methods of providing a download link, you can use the APEX_UTIL.GET_BLOB_FILE_SRC function. One advantage of this approach, is the ability to more specifically format the display of the image (with height and width tags). Please note that this approach is only valid if called from a valid Oracle Application Express session. Also, this method requires that the parameters that describe the BLOB to be listed as the format of a valid item within the application. That item is then referenced by the function.
    See Also:
    "About BLOB Support in Forms and Reports" in Oracle Application Express Application Builder User's Guide
    Syntax
    FUNCTION GET_BLOB_FILE_SRC (
        p_item_name           IN VARCHAR2 DEFAULT NULL,
        p_v1                  IN VARCHAR2 DEFAULT NULL,
        p_v2                  IN VARCHAR2 DEFAULT NULL,
        p_content_disposition IN VARCHAR2 DEFAULT NULL)
        RETURN VARCHAR2
    Parameters
    Table 1-28 describes the parameters available in GET_BLOB_FILE_SRC function.
    Table 1-28 GET_BLOB_FILE_SRC Parameters
    Parameter Description
    p_item_name
    Name of valid application page ITEM that with type FILE that contains the source type of DB column.
    p_v1
    Value of primary key column 1.
    p_v2
    Value of primary key column 2.
    p_content_disposition
    Specify inline or attachment, all other values ignored
    Example
    As a PLSQL Function Body:
    RETURN '<img src="'||APEX_UTIL.GET_BLOB_FILE_SRC('P2_ATTACHMENT',:P2_EMPNO)||'" />';
    As a Region Source of type SQL:
    SELECT ID,
           NAME,
           CASE WHEN NVL(dbms_lob.getlength(document),0) = 0
                THEN NULL
                ELSE CASE WHEN attach_mimetype like 'image%'
                          THEN '<img
    src="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'" />'
                          ELSE '<a
    href="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'">Download</a>'
                          end
            END new_img
       FROM TEST_WITH_BLOB
    The previous example illustrates how to display the BLOB within the report, if it can be displayed, and provide a download link, if it cannot be displayed.Thanks
    LEH

  • Crystal Reports For Eclipse - Multi-values not showing on page..

    Tried two different ways to set params, but to no avail.  Values seems to be set, but only one value appears on the report.The value is updated, so not an old value or anything.
    Also if I look at the values I can see the values are set!  The Field is set to multi=true and the height is big enough to display lots of date grow=true.
    <%@page import="com.businessobjects.samples.JRCHelperSample" %>
    <%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer" %>
    <%@page import="com.crystaldecisions.reports.sdk.ReportClientDocument" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.data.Fields" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.data.ParameterField" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.data.Values" %>
    <%@page import="com.crystaldecisions.reports.sdk.*" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.data.*" %>
    <%
         // This sample code calls methods from the JRCHelperSample class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the JRCHelperSample class.
         try {
              String reportName = "Report1.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // ****** BEGIN LOGON DATASOURCE SNIPPET **************** 
                        //     Database username and password
                        String connectString = "jdbc:oracle:thin:@localhost:1521:XE";
                        String driverName = "oracle.jdbc.OracleDriver";
                        String JNDIName = "";
                        String userName = "darren";
                        String password = "darren";
                        // logon to database
                        //JRCHelperSample.logonDataSource(clientDoc, userName, password);
                        // Switch all tables on the main report and sub reports
                        JRCHelperSample.changeDataSource(clientDoc, userName, password, connectString, driverName, JNDIName);
                   // ****** END LOGON DATASOURCE SNIPPET ****************           
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
                        // Create the CrystalReportViewer object
                        CrystalReportViewer viewer = new CrystalReportViewer();
                        //     set the reportsource property of the viewer
                        IReportSource reportSource = clientDoc.getReportSource();                    
                        viewer.setReportSource(reportSource);
                        // set viewer attributes
                        viewer.setOwnPage(true);
                        viewer.setOwnForm(true);
                        // MyParameter
                        String paramName = "MyParameter";
                        String theValue1 = "Hello";
                        String theValue2 = " World!";
    // Method 2
                        //We will be using the ParameterFieldController quite a bit through-out the rest of this function.
                        ParameterFieldController paramFieldController = clientDoc.getDataDefController().getParameterFieldController();
                        // MULTI-VALUE DISCRETE PARAMETERS.
                        Object[] multiVals = {theValue1, theValue2};
                        // sReportName - the report that contains the specified parameter field.
                        // sFieldName - the parameter field name.
                        // newValue - the collection of values to be stored in the parameter field.
                        paramFieldController.setCurrentValues("", paramName, multiVals);
    // Method 1
                        Values values = new Values();
                        values.add(theValue1);
                        values.add(theValue2);
                        ParameterField paramField = new ParameterField();
                        paramField.setName(paramName);
                        paramField.setAllowMultiValue(true);
                        paramField.setAllowCustomCurrentValues(true);
                        paramField.setCurrentValues(values);
                        Fields parameterFields = new Fields();
                        parameterFields.add(paramField);
                        viewer.setParameterFields(parameterFields);
                        viewer.setEnableParameterPrompt(true);
    // Show parameter values to console          
                        Fields fields = viewer.getParameterFields();
                           for (int i = 0; i < fields.size(); i++) {
                           ParameterField pf = (ParameterField)fields.get(i);
                           Values v = pf.getCurrentValues();
                           if (v.isEmpty()) {
                                System.out.println(pf.getName());
                           } else {
                                System.out.println("v.size(): " + v.size());
                                for (int j = 0; j < v.size(); j++) {
                                     ParameterFieldDiscreteValue pfdv = (ParameterFieldDiscreteValue)v.get(j);
                                    System.out.println(pf.getName() + " - " + pfdv.getValue());     
                        // Apply the viewer preference attributes
                        viewer.refresh();
                        // Process the report
                        viewer.processHttpRequest(request, response, application, null);
    Thanks in advance!

    This is not a support site but a community forum. For direct help purchase a case on line

Maybe you are looking for

  • Lighter adapter for MacBook Pro?

    Hello, I just wanted to know if a good lighter adapter existed for the MacBook Pro. Or, would it be simpler to get a cheaper 120V inverter, knowing that the vast majority are modified sinewave type, which is not supposed to be the ideal waveform. How

  • Please check excise base for the item is zero

    Hi, My scenario is Cross company Stock transfer (Two different Company Codes) I have done following steps : 1.Create Purchase Order 2.Create Outbound Delivery for Purchase Order 3.Post Goods Issue for Delivery 4.Creating Billing Document 5.Creating E

  • Auto Goods Issue not taking place

    Hii All I hv Maintained backflush indictor in work center and in MRP2 view it is maintained as Workcenter decides whether to backfluch . But the auto goods issue is not taking place when the production order is saved and confirmed. The stock remains

  • Swi-prolog package is missing interface libraries for Java (jpl)

    I want to embed Prolog in my Java app, but Arch's swi-prolog package doesn't seem to have the Java interface libraries (jpl) included. Anyone know why?

  • How to use CVS in NWDS for MDK

    Hi All, We are working on customizing MAM3.0, we need help on using CVS to manage developments. We in the team are 3 members and the development is depending on each other. We are using NWDS 7.XX, can somebody help us in using CVS / DTR to resolve co