Records not returned

hi! i've some codes:
For i in 1..4 loop
gp:='pollquestion_rec.Option'||i;
htp.p(gp);
htp.p('<BR>');
end loop;
i expected to see the actual records return but i see the output as follows:
pollquestion_rec.Option1
pollquestion_rec.Option4.
but if i type in htp.p(pollquestion_rec.Option1);
i see the actual records return!?
pls advise.
thx

For i in 1..4 loop
gp:='pollquestion_rec.Option'||i;
htp.p(gp);
htp.p('<BR>');
end loop;
in the above piece of code,pollquestion_rec is a cursor and option is the resultset.
and i takes values of the loop counter..ie...1,2,3,4.
since a quote is given ' pollquestion_rec.option'||i
you will get an output
as
pollquestion_rec.option1
pollquestion_rec.option2
pollquestion_rec.option3
pollquestion_rec.option4
if you remove the quotes, then you will get the actual value from database.
the following example may help you.
/* with quote */
SQL> ed
Wrote file afiedt.buf
1 declare
2 cursor c1 is select * from emp;
3 begin
4 for i in 1..10 loop
5 dbms_output.put_line('c1.ename'||i);
6 end loop;
7* end;
SQL> /
c1.ename1
c1.ename2
c1.ename3
c1.ename4
c1.ename5
c1.ename6
c1.ename7
c1.ename8
c1.ename9
c1.ename10
PL/SQL procedure successfully completed.
/*without quote*/
SQL> ed
Wrote file afiedt.buf
1 declare
2 cursor c1 is select * from emp;
3 begin
4 for i in c1 loop
5 dbms_output.put_line(i.ename);
6 end loop;
7* end;
SQL> /
ALLEN
WARD
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
PL/SQL procedure successfully completed.

Similar Messages

  • OraDynaSet not returning the correct number of records.

    Hello All, I am writing VB code in Excel 2007 and retrieving records from a Oracle 9i database. When I run my query from TOAD or any other sql app I get 56 records returned for certain query. However, when I do it from VB in excel and write the values to the excel file, it will not return the last 3 records, any suggestions? Here is part of my code:
    Worksheets("Report").Range("A3").Value = ""
    Worksheets("Report").Range("B3").Value = "Period"
    Worksheets("Report").Range("C3").Value = "Budget"
    Worksheets("Report").Range("D3").Value = "Projected"
    strSQL = "select group_name,period_name,budget_value,budget_value project from nlas_bdgt_loading_stg where plant = " & plant & " and group_number = 1 order by group_number, period_num"
    Set OraDynaSet = objDataBase.DBCreateDynaset(strSQL, 0&)
    If OraDynaSet.RecordCount > 0 Then
    OraDynaSet.MoveFirst
    'Loop the recordset for returned rows
    For i = 4 To OraDynaSet.RecordCount
    'Put the results in columns
    ActiveSheet.Cells(i, 1) = OraDynaSet.Fields(0).Value
    ActiveSheet.Cells(i, 2) = OraDynaSet.Fields(1).Value
    ActiveSheet.Cells(i, 3) = OraDynaSet.Fields(2).Value
    ActiveSheet.Cells(i, 4) = OraDynaSet.Fields(3).Value
    OraDynaSet.MoveNext
    Next i
    End If
    Thanks,
    Chris

    Hello.
    It's a bit weird. It works for me. If you have a look at oo4o help:
    CopyToClipboard Method
    Example
    Applies To
    OraDynaset
    Description
    Copy the rows from the dynaset to the Clipboard in text format.
    Usage
    OraDynaset.CopyToClipboard(NumOfRows ,colsep [optional],rowsep [optional] )
    Arguments
    NumOfRows     Number of rows to be copied to the dynaset ,
    colsep     Column separator in CHAR to be inserted between columns
    rowsep     Row seperater in CHAR to be inserted between Rows
    Remarks
    This method is used to facilitate transfer of data between Oracle Object for OLE’s cache (dynaset) and Windows applications such as Excel or Word. CopyToClipboard copies data starting from current position of the dynaset up to the last row.
    Default column separator is TAB (ASCII 9).
    Default row separator is ENTER (ASCII 13).
    Can it be that you don't have all the References needed?
    Octavio

  • Group Used as LOV does not return records

    Have:
    1. A header table called Claims
    2. A detail table called ClaimLines
    3. The Claims Table has a foreign key called emp_no which refers to an employee table ( Claims for an employee)
    4. The ClaimLines table has a foreign key called mem_id which refers to an employee family members table that also has emp_no as a foreign key (family members for an employee)
    5. A JHS group for Claims that shows the employee name and employee id. An LOV populates the employee name and employee id
    6. A details group fro CalimLines that shows family member name. An LOV populates the member name and member id. (The idea is to pull family members for the employee selected in the header section in 5 above.
    Problem:
    The calims LOV populates the employee name and employee id correctly.
    When I move to the calimlines (details), the members who should be restricted to the employee selected in the Claims group does not return any records.
    The LOV for the members is based on a VO called DependentsofEmpolyee that has a where clause emp_no=:p_emp_id (:p_emp_id is a bind parameter)
    The LOV group for the members has an EL expression in the Query Bind Parameters
    p_emp_id=#{bindings.ClaimsEmpId.inputValue}. The expression is to restrict the members to those who belong to the employee selected in the Claims section of the page.
    Debug gives the following information:
    -ViewObject DependentsOfEmployee1: bind parameter values have not changed, NO Requery performed.
    It seems that the p_emp_id is not being populated with the emp_id from the header section(Claims)
    The same EL expression works if applied to a dynamic LOV. The drawback of the dynamic LOV is that is only populates two fields, the value attribute and the meaning attribute. In our case we need to populate more than one attribute.

    Thanks for the input.
    I tried the following
    1. Create a managed bean in faces-config.xml.
    <managed-bean>
    <managed-bean-name>FamiliyLovContext</managed-bean-name>
    <managed-bean-class>FamiliyLovContext</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    2. Updated the skeleton class FamilyLovContext.java to:
    public class FamiliyLovContext {
    Number empId;
    public void setEmpId(Number empId) {
    this.empId = empId;
    public Number getEmpId() {
    return empId;
    3. Copied tableLovItem to tableLovItemFamily and added the following to the section
    <af:selectInputText
    <af:setActionListener from="#{bindings.ClaimsEmpId.inputValue}"
    to="#{FamilyLovContext.empId}"/>
    4. Used the the new template for the lov item in the claimlines group.
    5. set the query bind parameters of the lov group to #{FamilyLovContext.empId}
    I gor the following error
    16:38:08 ERROR (ApplyRequestValuesPhase) -java.lang.IllegalArgumentException: argument type mismatch
    javax.faces.el.EvaluationException: java.lang.IllegalArgumentException: argument type mismatch
         at com.sun.faces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:248)
         at oracle.adfinternal.view.faces.taglib.listener.SetActionListener.processAction(SetActionListener.java:50)
         at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
         at oracle.adf.view.faces.component.UIXComponentBase.broadcast(UIXComponentBase.java:548)
         at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:243)
         at oracle.adf.view.faces.component.UIXSelectInput.broadcast(UIXSelectInput.java:170)
    The ClaimsEmpId attribute is Number(4,0)

  • How to Create a record if vo.executequery does not return any rows

    I would like to update a single record on adf form. However if the record does not exist would like to create a row and save it in the table.
    The user does not want to add a "create" button on the screen. Hence would need to add the create code if vo.execute does not return any rows...
    How to add this and where to add?

    you can have a TF router for for exists and does not exist and based on that execute transient VO and other VO.
    Add a method call activity like below to create a row in transient VO
    public Row createRow()
    ViewObjectImpl tVO = (ViewObjectImpl)getTVO();
    tVO.executeEmptyRowSet();
    Row newRow = tVO.createRow();
    tVO.setCurrentRow(newRow);
    tVO.insertRow(newRow);
    return newRow;
    }

  • RoadMap does not return the selected step on ESS 600 Record Time entry

    RoadMap does not return the selected step on Record Time entry application in ESS. Is it suppose to behave similar way or is it suppose to take user to the selected step. If yes , then is there a setting or customization that i have to take care of, as its a standard SAP delivered ESS Record working time application.
    Please let me know. I appreciate your help in advance.

    Check with administrator in the src configuration thing,
    Cheers,
    Apparao

  • Reports not returning records utilizing different currency type.

    Good morning,
    My company has numerous subsidiaries utlizing CRM On Demand. Although our defauct currency is USD, one of our operations enters opportuntiy data in Canadian dollars. Both currency types are active in the system but for some reason, the custom reports I have created are not returning records created by our Canadian company entering in CAD.
    There is probably a quick solution, but so far I have yet to find it! Thanks in advance for your feedback!
    Ryan

    yes...your report won't show data for canadian currency. even the admins won't be able to see it.
    try this fix instead:
    you will have to create a new field for currency in the opty page layout and change it to canadian dollar otherwise the currency would still appear as USD in the database.
    Then use this field in your reports.
    This should help. please let us know your feedback.

  • Database adapter not returning all the records

    I've taken over a BPEL from a developer who left the organization and have been having an issue during our User Acceptance Testing. We are querying a table that will return the insurance enrollment information for employee's and their dependants. When an employee change plans, or adds people, the old plan is terminated and a new once is created. When this happens there will be two records on the database to show the old plan and the new plan.
    When we run the SQL thru JDEV or SQLDeveloper, the data comes out fine. When we run it through a BPEL Database Adapter we are only getting one of the rows returned.
    I have created a small tester BPEL that is easily modified and deployed to run the same query to try multiple configurations changes within the DBAdapter. What I have found is all the records are returned when the "Return single result set" box on the DBAdapter Wizard is unchecked. When it's checked then it only returns one record for the employees with an old and a new plan.
    Can someone explain what the "Return single result set" option does, and what the impact will be if it's unchecked?

    Hello,
    In same way i am using two parent-child(header-line) tables. they have one to many relationship.
    I want to generate XML which contains multiple line items under a child elements for header elements.
    I have tried it but i am getting only one line under that child item. i am using jdev10.0.3.3.0
    can u help me please.
    -regards
    satyendra

  • 8i Query not returning expected records

    Using Oracle 8i (8.1.7), a basic spatial query is not returning all the expected results. Table1 contains a variety of polygons; table2 is simply a set of rectangles. I want to return all objects from table1 that intersect a particular rectangle. The query below mostly works, but misses out some objects. On my system, 38 objects are returned where about 41 are expected; on the client system (which does not have identical data) the problem appears to be much worse, with hardly any objects being returned. The missing objects are clearly visible on the map, surrounded on all sides by objects which have been selected correctly. Help?
    Select t1.id from table1 t1, table2 t2
    where t1.IsCurrent = -1
    and (sdo_relate(t1.geoloc, t2.geoloc, 'mask=ANYINTERACT querytype=WINDOW') = 'TRUE')
    AND (t2.ID in ('001'));

    Hi,
    When the non-spatial predicate is dropped, you mentioned the
    objects are not missing. This means the spatial index (which will
    surely be used in this case) should be returning correct results.
    But it is possible the index is not used when other predicates are
    specified. Please look at the "execution plan" in both cases (when the
    objects are missing/not missing).
    Rewrite the query as:
    select /*+ ORDERED INDEX(t1 <spatial_index_name>) */ t1.id from t2, t1
    This should ensure a spatial-index-based evaluation.
    Let us know the execution plans and the behavior in either case.
    Btw, one thing to check is your tolerance values in
    user_sdo_geom_metadata.
    - Ravi.

  • Records Not Showing Up On Report

    I'm using Crystal XI
    I can take the query from "Show SQL Query..." and paste it into a query screen in SQL Server 2008 management studio and retrieve the correct records.  However, the report itself does not contain all the records the should have been returned.
    To the best that I can figure, the records where a transaction date (date/time field) is null is not showing up on the report.  I only display the field, do not do any calculations based on the field. 
    It is part of the record selection formula, where I test for the field to be between start/end parameters or is null (which produces the correct SQL query as I stated above)
    So why are the records not showing up on the report, and more importantly, how do I get them to show up?
    TIA

    It already was set to "Exception for Nulls"
    On the other hand, just on a whim, I tried reversing the order of the query from what it was:
    {MyQuery.Company = {?Company}
        And
        {MyQuery.Transaction_Date} In {?Start/End Date}
        Or
        IsNull({MyQuery.Transaction_Date})
    To:
    {MyQuery.Company = {?Company}
        And
        IsNull({MyQuery.Transaction_Date})
        Or
        {MyQuery.Transaction_Date} In {?Start/End Date}
    And that seemed to work.  I'm not sure why it will work in the Mangement Studio, but not in Crystal Reports, but at least it works.
    Thanks for the tug in the right direction.

  • Function Module - E_T_DATA does not return data

    Hi
    I am trying to create a fuction module Generic extraction, the code belwo dosen't return any data.
    when i debug YBW_MAT_STAT does have but after E_T_DATA = YBW_MAT_STAT it dose not return any data
    can you help?
    Ramesh
    FUNCTION YBW_FM_ACTIVE_MATERIAL.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
    *"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *"     VALUE(I_REMOTE_CALL) TYPE  SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
    *"  TABLES
    *"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *"      E_T_DATA STRUCTURE  YBW_MAT_STAT OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
    Example: DataSource for table SFLIGHT
      TABLES: YBW_MAT_STAT.
    Auxiliary Selection criteria structure
    DATA: L_S_SELECT TYPE SRSC_S_SELECT.
       DATA : YBW_MAT_STAT type YBW_MAT_STAT occurs 0 with header line.
    Maximum number of lines for DB table
      STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
    counter
              S_COUNTER_DATAPAKID LIKE SY-TABIX,
    cursor
              S_CURSOR TYPE CURSOR.
    Select ranges
    Comment copy code
    RANGES: L_R_CARRID  FOR SFLIGHT-CARRID,
             L_R_CONNID  FOR SFLIGHT-CONNID.
    DATA: begin of t_marc occurs 0,
    ZMATNR type MATNR,
    ZWERKS type WERKS,
    end of t_marc.
    DATA: begin of t_ytmd_mat_ref occurs 0,
    ZMATNR type MATNR,
    ZYNA_MATNR_ST type YNA_MATNR_ST,
    ZYEAME_MATNR_ST type YEAME_MATNR_ST,
    ZYFIN_MATNR_ST type YFIN_MATNR_ST,
    end of t_ytmd_mat_ref.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
      IF I_INITFLAG = SBIWA_C_FLAG_ON.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Check DataSource validity
        CASE I_DSOURCE.
          WHEN 'ZAINV_MAT_STATUS'.
          WHEN OTHERS.
            IF 1 = 2. MESSAGE E009(R3). ENDIF.
    this is a typical log call. Please write every error message like this
            LOG_WRITE 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      I_DSOURCE   "message variable 1
                      ' '.                 "message variable 2
            RAISE ERROR_PASSED_TO_MESS_HANDLER.
        ENDCASE.
        APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
    Fill parameter buffer for data extraction calls
        S_S_IF-REQUNR    = I_REQUNR.
        S_S_IF-DSOURCE = I_DSOURCE.
        S_S_IF-MAXSIZE   = I_MAXSIZE.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
        APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
      ELSE.                 "Initialization mode or data extraction ?
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        IF S_COUNTER_DATAPAKID = 0.
    Fill range tables BW will only pass down simple selection criteria
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
          SELECT MATNR WERKS FROM MARC into table t_marc where MATNR BETWEEN '4233940M1' and '4233950M1'.
          loop at t_marc.
            SELECT MATNR YNA_MATNR_ST YEAME_MATNR_ST FROM YTMD_MAT_REF into table t_ytmd_mat_ref where MATNR = t_marc-zmatnr.
              loop at t_ytmd_mat_ref.
                if t_marc-zwerks = 'GB71' AND t_ytmd_mat_ref-ZYEAME_MATNR_ST = 'A'.
                  read table t_ytmd_mat_ref with key zmatnr = t_marc-zmatnr.
                  YBW_MAT_STAT-matnr = t_marc-zmatnr.
                  YBW_MAT_STAT-plant = t_marc-zwerks.
                append YBW_MAT_STAT.
                clear YBW_MAT_STAT.
                endif.
               endloop.
          endloop.
        ENDIF.                             "First data package ?
         clear E_T_DATA.
         refresh E_T_DATA.
         E_T_DATA = YBW_MAT_STAT.
        S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
      ENDIF.              "Initialization mode or data extraction ?
    ENDFUNCTION.

    Hi
    I have a question,
    With the above code i have all my records (450000+) in a single data package.
    how do i break this in multiple data packages
    regards
    Ramesh

  • Error: Expression must not return a multiline value

    Hi all,
    I am doing a file to file scenario. My input file has more than one record. I have to validate for each of these records and send back the erroneous records in a file to the source folder.
    I am using BPM for this. In my BPM, i have some multiline container elements. When i try to activate my BPM, i am getting an error saying: <b>Expression must not return a multiline value.</b>
    Can anybody tell me why this error is coming? Also i want to know what type of mapping i have to do to split my source file.
    Regards,
    Divija.

    "Can anybody tell me why this error is coming? Also i want to know what type of mapping i have to do to split my source file."
    Go through the following blogs which give step-bystep approach for split mapping using BPM:-
    1. /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    2. /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    Also, you might want to look at this, where a BPM is not required..i think you can avoid a BPM altogether if you have very little validation..
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Regards,
    Sushumna

  • Avoid JDBC sender error: Execute statement did not return a result set

    Hi!
    My JDBC sender adapter towards MS SQL server works fine, with an Execute statement calling a stored procedure that returns the source data needed. The stored procedure itself updates the status of database table records, so that only the unread records are returned each time the stored procedure is called.
    However, the communication channel monitoring sets a red flag for the JDBC sender adapter, when there are no values to fetch from the database table (using the stored procedure). Message says: "Database-level error reported by JDBC driver while executing statement 'EXECUTE FetchMessage 1, 9000'. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set.'. For details, contact your database server vendor."
    This is not an error situation, as I do not expect there to be any values to fetch from the database at all times.
    I do not see how to change the stored procedure to avoid this error.
    Is there a parameter to be set on the JDBC adapter that I can use, so the red flag is avoided?
    Thanks for any input!
    Regards,
    Oeystein Emhjellen

    Hi Oeystein Emhjellen.
    The problem is Store Procedure that has to generate always a ResultSet (or cursor). If it doesn't have a output, you have to generate an Empty ResultSet.
    Like a SELECT Statement:
    If there are data, SELECT get an output result but if it get nothing the SELECT Statement get a empty ResultSet.
    Ask to your database team.
    I hope it helps you.
    Bruno.

  • TABLE(CAST()) function not returning the correct results in few scenarios.

    I am using TABLE(CAST()) operation in PL/SQL and it is returning me no data.
    Here is what I have done:
    1.     Created Record type
    CREATE OR REPLACE TYPE target_rec AS OBJECT
    target__id          NUMBER(10),
    target_entity_id NUMBER(10),
    dd           CHAR(3),
    fd           CHAR(3),
    code      NUMBER(10),
    target_pct      NUMBER,
    template_nm VARCHAR2(50),
    p_symbol      VARCHAR2(10),
    pm_init          VARCHAR2(3),
    target_name     VARCHAR2(20),
    targe_type     VARCHAR2(30),
    target_caption     VARCHAR2(30),
    sort_order      NUMBER (4)
    2.     Created Table type
    CREATE OR REPLACE TYPE target_arr AS TABLE OF target_rec
    3.     Created Stored procedure which accepts parameter of type target_arr and runs the Table(Cast()) function on it.
         Following is the simplified form of my procedure.
         PROCEDURE get_target_weights
         p_in_template_target IN target_arr,
         p_out_count          OUT NUMBER,
         IS
         BEGIN
              SELECT count(*) into p_out_count
         FROM TABLE(CAST(p_in_template_target AS                     target_arr)) arr;
         END;
    I am calling get_target_weights from my java code and passing p_in_template_target with 10140 records.
    Scenario 1: If target_pct in the last record is 0, p_out_count returned from the procedure is 0.
    Scenario 2: If target_pct in the last record is any other value(say 0.01), p_out_count returned from the procedure is 10140.
    Please help me understand why the Table(Cast()) is not returning the correct results in Scenario 1. Also adding or deleting any record from the test data returns the correct results (i.e. if keep target_pct in the last record as 0 but add or delete any record).
    Let me know how can I attach the test data I am using to help you debugging as I don’t see any Attach file button on Post Message screen on the forum.

    I am not able to reproduce this problem with a small data set. I can only reproduce with the data having 10140 records.
    I am not sure if this is the memory issue as adding a new record also solves the problem.
    This should not be the error because of wrong way of filling the records in java as for testing purpose I just saved the records which I am sending from java in a table. I updated the stored procedure as well to read the data from the table and then perform TABLE(CAST()) operation. I am still getting 0 as the output for scenario 1 mentioned in my last mail.
    Here is what I have updated:
    1.     Created the table target_table
    CREATE Table target_table
    target_id          NUMBER(10),
    target_entity_id NUMBER(10),
    dd           CHAR(3),
    fd           CHAR(3),
    code      NUMBER(10),
    target_pct      NUMBER,
    template_nm VARCHAR2(50),
    p_symbol      VARCHAR2(10),
    pm_init          VARCHAR2(3),
    target_name     VARCHAR2(20),
    target_type     VARCHAR2(30),
    target_caption     VARCHAR2(30),
    sort_order      NUMBER (4)
    2.     Inserted data into the table : The script has around 10140 rows. Pls let me know how can I send it to you
    3.     Updated procedure to read data from table and stored into variable of type target_arr. Run Table(cast()) operation on target_arr and get the count
    PROCEDURE test_target_weights
    IS
         v_target_rec target_table%ROWTYPE;
         CURSOR wt_cursor IS
         Select * from target_table;
         v_count NUMBER := 1;
         v_target_arr cws_target_arr:= target_arr ();
         v_target_arr_rec target_rec;
         v_rec_count NUMBER;
         BEGIN
         OPEN wt_cursor;
         loop
              fetch wt_cursor into v_target_rec; -- fetch data from table into local           record.
              exit when wt_cursor%notfound;
              --move data into target_arr
              v_target_arr_rec :=                     cws_curr_pair_entity_wt_rec(v_target_rec target_id,v_target_rec. target_entity_id,
                        v_target_rec.dd,v_target_rec.fd,v_target_rec.code,v_target_rec.target_pct,
         v_target_rec.template_nm,v_target_rec.p_symbol,v_target_rec.pm_init,v_target_rec.template_name,
         v_target_rec.template_type,v_target_rec.template_caption,v_target_rec.sort_order);
              v_target_arr.extend();
              v_target_arr(v_count) := v_target_arr_rec;
              v_count := v_count + 1;
         end loop;
         close wt_cursor;
         -- run table cast on target_arr
         SELECT count(*) into v_rec_count
         FROM TABLE(CAST(v_target_arr AS target_arr)) arr;
         DBMS_OUTPUT.enable;
         DBMS_OUTPUT.PUT_LINE('p_out_count ' || v_rec_count);
         DBMS_OUTPUT.PUT_LINE('v_count ' || v_count);
    END;
    Output is
    p_out_count 0
    v_count 10140
    Expected output
    p_out_count 10140
    v_count 10140

  • Bulk editor is not returning values for default properties

    ..even though the content nodes have a value for this property. CQ version is 5.5.
    I need to export a report of all user generated content from /content/usergenerated/content/<sitename>/en. This is the root path.
    The query parameter I have specified is "type:Rating". By default the "sling:resourceType" is selected. No other custom properties are specified in the interface.
    The search returns the nodes of this type, but the results do not return a value for the "sling:resourceType" for these nodes.

    It should work. Might be you do not have data. Is the results shown as zero records?

  • When Adding Report to Dashboard will not return

    Version: 10.1.3.4.0
    When I run a report from answers all is fine, I can view "all pages" no with no issues. When I take the same report and add it to a dashboard, then run the report and view the first page 25 records results are fine. If I try to view "all pages" with the icon at the bottom of the page the report will not return and will stay in a state of "Transferring data from <BI Server Name>"i explorer process just grow in memory size and utilizes about 1GB in memory, but nothing returns.
    When I run the report from answers I get all the records returned in about 10 minutes time. The number of records returned is 28,000. There are 50 columns in the report.
    When I run the query from an SQL tool the response time is less than 20 seconds.
    Thanks
    Edited by: sweetsophia on Apr 11, 2011 6:12 AM
    Edited by: sweetsophia on Apr 11, 2011 6:17 AM
    Edited by: sweetsophia on Apr 11, 2011 6:17 AM

    Hi sophia,
    I suppose the BI server hangs due to lot of records coming up when tried to see with the last page button .We need to handle how many records should be displayed in answers itself.But all is well with your answers screen.Can you look at it by going page by page so is it fetching or not?
    Check what is the SQL generated by BI server when you click last page button
    hope helps you.
    Cheers,
    KK

Maybe you are looking for

  • Error in submitting sample OOB sales order.

    Hi, We are working on 7.2.2.1.0 and O2a Cart. 2.0.1.0.0 while testing OOB code and sample salesorder10000Deliver EBM getting below error on order creation. Any Idea? <68e30e7e84bfb14e:-6114209b:13efa947e1c:-8000-00000000000000e6> <1370003911273> <BEA

  • FM for get Material Inspection setup data

    Hi ALL I'm looking for a Function Module or Method that we can get Material Inspection setup data. ( QMAT data ) Please let me know if you know that. Regards Rie

  • Destrict access to SQ01

    Hello Gurus , I would like some help with restraining access to users that have Tx SQ01. I know there are two ways to do this : 1. With authorization objects 2. With user groups in SQ03. Allthough i created user groups , in SQ01 i have still the opti

  • SystemUIServer quitting every 10 seconds

    hi all, I had a very awkward behaviour in my menu bar which was that the menu bar items were loading and suddenly disappearing repeatedly, every couple of minutes. After checking Activity Monitor I realised the SystemUIServer was repeatedly quitting

  • How do I stop a video playing in the background?

    I'm using videos in a DPS publication for iPad, but when I turn away from the page while the video plays, it continues to play in the background. That's not a thing I want. How do I stop that from happening so that the video pauses or stops when I fl