Creation of a value of Type Table set of 'EVERYTHING' as one of the value

Gurus,

My requirement is to create value together [table type] which would show the values [LOV] parameter of Conc Progr.
So far, we have three these values to choose from, they are 'frozen', 'pending' and 'Test '. I managed.
My question is,
If the user wants to choose 'ALL' three values, how will welcome him in this game of table type values?
Give the fourth option as ALL who would finally choose 'ALL' three values 'Frozen', 'Pending' and 'Test '.

Thanks in advance.
LDS-

You can't have the UNION in the set of values.
Try to create a view, which is to have the UNION with ALL.
See the following links.
Game table of values.
ORA-00907 is missing a closing parenthesis in the value

By
VAMSi

Tags: Oracle Applications

Similar Questions

  • Microsoft Account closed, but cannot set up a new one with the same e-mail address

    On his brand new Dell laptop, my wife has Microsoft Windows 8, but decided to close it after the establishment because she didn't see the need for it. Now the laptop screen ask password, but it cannot reopen the account to reset the password in him telling that the account does not exist. If she tries to set up a new account with the same email address, he said that the account is not accessible.

    When you delete a Microsoft account, there is a period of 30 days to use the same address to another account.

  • Show/hide the elements if the rule is set to true on one of the many elements

    I'm sure I'm missing something really obvious but I've tried a few things and I can't get this to work...

    I need to show the element X if none of the elements A, B or C = 'Y '. Similarly, I want hide the element X if all a, B and C = 'n'.

    I tried to create a single action with A, B and C contained in the 'when' list of items and I tried also create separate stocks for A B and C, but both methods result in X being shown/hidden based on the last element that was changed, do not take into account the other fields.

    For example, if A and B are both equals Y, then I B = N, X is hidden. It must always be displayed as a still is equal to Y.

    What is the correct way to do it? Thank you.

    Hello

    create 1 dynamic action "to change" of P1_A, P1_B, P1_C

    Then set the status of the dynamic measurement JavaScript and enter the javascript, something like (assuming that the fields of the form are P1_A, P1_B, P1_C):

    $v ('P1_A') == 'Y ' |

    $v ('P1_B') == 'Y ' |

    $v ('P1_C') == 'Y '.

    And then set the true action to display the P1_X field

    Concerning

    Bottom

  • the server script, line 2610; 2 the argument must be of type table

    I get an error message: script server, line 2610; 2 the argument must be of type table.

    This message appears on the screen immediately after that I turned on my laptop. Please see the below.

    Please advise the possible fix for this problem.

    Thank you

    To resolve your concern, we suggest that you perform a clean boot on your computer. Perform a clean boot on your computer will help us eliminate software conflicts that could cause this error message. To perform a clean boot on your computer, follow the steps on this link.

    Let us know how it goes.

  • Value data named to bind variables of Type table

    Hello

    I have a display object with a query that has a where clause, clause which use 'en' (e.g. Select projTitle PROJECT where PROJID in: projIds)

    'projIds' is a variable of type table of liaison.

    I'm moving in that variable binding expects (an array of projIds that can be used by the sql statement), and I did not. I'm calling a method in the bean to support the named child tag data from the action tag in the pageDef file links section.

    Can you give me the proper syntax and object Array as this variable binding will accept, please? Maybe I used the wrong NDType? I found a couple of different options, but none that I can make it work.

    The page definition file:

    < action IterBinding = "ProjPendingApprovalByApproverVO1Iterator" id = "loadPendingApproval".

    InstanceName = "SystemAMDataControl.RooProjIdArrayt.ApprovalAM1.ProjPendingApprovalByApproverVO1"

    DataControl = "SystemAMDataControl" RequiresUpdateModel = "true" Action = "executeWithParams" >

    < NamedData NDName = 'PROJID"NDValue =" #{dashboard.projIdArray} "NDType="oracle.jbo.domain.Array"/ >"

    < / action >

    Application of VO:

    SELECT ProjectEO.PROJ_ID,

    ProjUtnDtlEO.UTN_TYPE,

    ProjectEO.PROJ_SHORT_DESC,

    ProjUtnDtlEO.PROJ_DTL_ID,

    ProjectEO.PROJ_OWNER,

    VEmployeeInfoEO.FIRST_NAME,

    VEmployeeInfoEO.EMPLOYEE_ID,

    VEmployeeInfoEO.FIRSTNAMELASTNAME,

    VEmployeeInfoEO.LAST_NAME,

    VEmployeeInfoEO.LASTNAMEFIRSTNAME,

    ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_DTL_ID,

    ProjApproverEO.PROJ_APPROVER_ID,

    ProjApproverEO.APPROVER_LEVEL,

    ProjApproverEO.APPROVER_NUMBER,

    ProjApproverEO.APPROVER_ROLE,

    ProjApprovalDecisionDtlEO.COMMENTS,

    ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_ID,

    ProjApprovalDecisionDtlEO.LASTUPDATEDBY,

    ProjApprovalDecisionDtlEO.APPROVEDDATE,

    ProjectEO.SYS_STATUS,

    ProjApproverEO.LASTUPDATEDBY AS LASTUPDATEDBY1,

    ProjApprovalDecisionDtlEO.PROJ_APPROVAL_TYPE_ID,

    ProjStatusLkpEO.STATUS_DESC,

    ProjStatusLkpEO.PROJ_STATUS_ID,

    ProjectEO.PROJ_CATEGORY_ID,

    STRING. APPROVAL_DESC

    OF PTS. ProjectEO PROJECT,

    PTS. PROJ_UTN_DTL ProjUtnDtlEO,

    PTS. V_EMPLOYEE_INFO VEmployeeInfoEO,

    PTS. PROJ_APPROVAL_DECISION_DTL ProjApprovalDecisionDtlEO,

    PTS. PROJ_APPROVER ProjApproverEO,

    PTS. PROJ_STATUS_LKP ProjStatusLkpEO,

    PTS. Channel PROJ_APPROVAL_CHAIN_LKP

    WHERE ((ProjectEO.PROJ_ID = ProjUtnDtlEO.PROJ_ID (+))

    AND (ProjectEO.PROJ_ID = ProjApprovalDecisionDtlEO.PROJ_ID))

    AND (ProjectEO.PROJ_ID = ProjApproverEO.PROJ_ID)

    AND (ProjectEO.SYS_STATUS = ProjStatusLkpEO.SYS_STATUS)

    AND (ProjectEO.PROJ_OWNER = VEmployeeInfoEO.EMPLOYEE_ID)

    AND (ProjApprovalDecisionDtlEO.PROJ_APPROVER_ID = ProjApproverEO.PROJ_APPROVER_ID)

    and PROJAPPROVEREO. PROJ_APPROVAL_CHAIN_ID = STRING. PROJ_APPROVAL_CHAIN_ID

    AND (ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_ID = 0)

    and PROJAPPROVEREO. APPROVER_LEVEL <>2

    and PROJAPPROVEREO. PROJ_ID in: PROJID

    Thank you!


    Please refer to http://www.jobinesh.com/2010/09/using-bind-variable-for-sql-statements.html?m=1 for an example of this.

    Timo

  • How to assign values to the nested table and passes as a parameter for the procedure?

    How to assign values to the nested table and passes as a parameter for the procedure?

    Here are the object and its type

    create or replace type test_object1 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type1 is table of the test_object1;


    create or replace type test_object2 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type2 is table of the test_object2;


    GRANT ALL ON test_object1 to PUBLIC;


    GRANT ALL ON test_type1 to PUBLIC;


    GRANT ALL ON test_object2 to PUBLIC;


    GRANT ALL ON test_type2 to PUBLIC;

    Here is the table object type:

    create the table test_object_tpe
    (
    sl_num NUMBER,
    Description VARCHAR2 (100),
    main_val1 test_type1,
    main_val2 test_type2
    )


    NESTED TABLE main_val1 STORE AS tot1
    NESTED TABLE main_val2 STORE AS earlier2;


    -----------------------------------------------------------------------------------------------------------

    Here is the procedure that inserts values into the nested table:

    PROCEDURE INSERT_TEST_DATA (sl_num in NUMBER,
    Description in VARCHAR2,
    p_main_val1 IN test_type1,
    p_main_val2 IN test_type2
    )
    IS
    BEGIN

    FOR rec in p_main_val1.first... p_main_val1. Last
    LOOP

    INSERT INTO xxdl.test_object_tpe
    (
    sl_num,
    Description,
    main_val1,
    main_val2
    )
    VALUES
    (
    sl_num
    description
    test_type1 (test_object1)
    p_main_val1 .val1 (CRE),
    p_main_val1 .val2 (CRE),
    p_main_val1 .val3 (rec)
    )
    )
    test_type2 (test_object2 (p_main_val2 .val1 (CRE),
    p_main_val2 .val2 (CRE),
    p_main_val2 .val3 (rec)
    )
    )

    );

    END LOOP;

    commit;

    END INSERT_TEST_DATA;

    -------------------------------------------------------------------------------------------

    Here are the block anonymoys what values attributed to the object type and pass values in the procedure:

    Set serveroutput on;

    declare

    p_sl_num NUMBER: = 1001;
    p_description VARCHAR2 (50): = 'Test Val1;

    inval1 test_type1: = test_type1();
    inval2 test_type2: = test_type2();

    Start


    inval1 (1) .val1: = "testx1";
    inval1 (1) .val2: = "testx2";
    inval1 (1) .val3: = "testx3";

    inval2 (1) .val1: = "testy1";
    inval2 (1) .val2: = "testy2";
    inval2 (1) .val3: = "testy3";

    CSI_PKG. INSERT_TEST_DATA (sl_num = > p_sl_num,)
    Description = > p_description,
    p_main_val1 = > inval1,
    p_main_val2 = > inval2
    );

    end;
    /
    Someone can correct me.

    Thank you
    Lavan

    Thanks for posting the DOF and the sample code but whenever you post provide your Oracle version 4-digit (result of SELECT * FROM V$ VERSION).
    >
    How to assign values to the nested table and passes as a parameter for the procedure?
    >
    Well you do almost everything bad that could be hurt.

    Here is the code that works to insert data into your table (the procedure is not even necessary).

    declare
    p_sl_num NUMBER := 1001;
    p_description VARCHAR2(50) := 'Testing Val1';
    inval1 test_type1 := test_type1();
    inval2 test_type2 := test_type2();
    begin
    inval1.extend();
    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    inval2.extend();
    inval2(1) := test_object2('testy1', 'testy2', 'testy3');
    
    INSERT INTO test_object_tpe
    (
    sl_num,
    description,
    main_val1,
    main_val2
    )
    VALUES
    (p_sl_num, p_description, inval1, inval2);
    commit;
    end;
    /
    

    See example 5-15 making reference to an element of nested Table Chapter 5 using PL/SQL collections and records in the PL/SQL doc
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/Collections.htm#CJABEBEA

    1. you don't even have the procedure because it is a simple INSERTION in the table you can do directly (see my above code)

    inval1(1).val1 := 'testx1';
    

    Since you have not yet created all the elements, there is no element 1 "inval1". You need EXTEND the collection to add an element

    inval1.extend();
    

    And then, there is an empty element, but "inval1" is a container for objects of type 'test_object1' not for scalars as "val1", "val2", and "val3".
    If you can not do

    inval1(1).val1 := 'testx1';
    

    You must create an instance of 'test_object1 '.

    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    

    And so on for the other collection

    You don't need the procedure (as my code example shows), but once you fill in the variables correctly it will work.

  • The part of report of a report region table setting to fill the region

    I need to make them with any part of the report, the section of report fills the width of the region, the column spacing all also in the entire region.

    The screenshot below shows the report occupies only a small part of the region. I need the region to this width to maintain the page layout consistency between pages.

    I can change the CSS so that it affects

    . Report-standard-alternatingrowcolors {}

    Width: 750px;

    }

    And then the same set the columns to specific width, but this application is displayed on a number of different resolutions, thereby affecting the specific widths is not all good.

    If I value percentage widths it does not.

    Any ideas?

    Screen Shot 2014-10-24 at 10.04.52.png

    The following screenshot shows what I want to achieve, even if it made specific widths specifying, in px, which means that it is not scalable for different resolutions.

    Screen Shot 2014-10-24 at 10.08.42.png

    The external table that contains the table of standard report also must be set to 100% width. Change the CSS rule:

    table[id^="report_"],
    .report-standard {
      width: 100%;
    }
    
  • execution of stored procedure in sql developer/sql more with a table setting?

    Hello

    I create a package with a procedure which has a cursor ref as output and a type as an input parameter.  Here is my definition of the package

    PACKAGE 
    -------
    CREATE OR REPLACE PACKAGE TEST
    As
      TYPE RefCursorType IS REF CURSOR;
      type intTableType is table of varchar2(50) index by binary_integer;
      
      PROCEDURE GETDATA (
              P_RECORDS OUT RefCursorType,           
               YEAR_LIST IN intTableType
      );  
    END;
    
    
    PACKAGE BODY
    -----------------------
    
    SET DEFINE OFF
    CREATE OR REPLACE PACKAGE BODY TEST
    AS 
    PROCEDURE GETDATA
    (
      P_RECORDS OUT RefCursorType,  
      YEAR_LIST IN intTableType  
    )
    AS 
    iYearList  IDTableType;
    BEGIN 
      --GET ARRAY COUNT
      IYEARLIST := IDTABLETYPE();
      IYEARLIST.EXTEND(YEAR_LIST.COUNT);
      
      --LOOP THROUGH LISTS AND POPULATE ARRAY
      FOR I IN YEAR_LIST.FIRST .. YEAR_LIST.LAST
      LOOP
      IYEARLIST(I) := IDTYPE(TO_CHAR(YEAR_LIST(I)));
      END LOOP;
      
       OPEN P_RECORDS FOR 
       SELECT CITHTML AS FORMATTED
        FROM dbTest.FORMATTED_HTML
      WHERE YEAR IN (SELECT * FROM TABLE(IYEARLIST))
      ;
      END GETDATA ;
    END TEST ;
    /
    
    

    I want to perform this procedure from the sql or sql developer more to see if it works properly.   The year field dbTest.FORMATTED_HTML is defined as varchar2 (20 bytes).  He has many years as well as text.

    I've used this in the past with simple stored procedures, but not those with a table setting

    var r refcursor;

    exec GETOLDDATA(:r,40);

    print r;

    How can I modify this to allow him to run my stored procedure?

    Thank you

    Just declare SQL, not type of PL/SQL:

    CREATE OR REPLACE

    TYPE Str50TblType

    AS THE TABLE OF THE VARCHAR2 (50)

    /

    CREATE OR REPLACE

    THE TEST PACKAGE

    IS

    GETDATA PROCEDURE)

    P_RECORDS ON SYS_REFCURSOR,

    YEAR_LIST IN Str50TblType

    );

    END;

    /

    CREATE OR REPLACE

    TEST OF PACKAGE BODY

    IS

    GETDATA PROCEDURE)

    P_RECORDS ON SYS_REFCURSOR,

    YEAR_LIST IN Str50TblType

    )

    IS

    BEGIN

    OPEN P_RECORDS

    FOR

    SELECT CITHTML AS FORMATTED

    OF dbTest.FORMATTED_HTML

    WHERE YEAR IN)

    SELECT *.

    TABLE (YEAR_LIST)

    );

    GETDATA END;

    END TEST;

    /

    SY.

  • TYPE table in duplicate

    I have a procedure I use to build a dynamic HTML region in the APEX. For some reason, I'm getting an extra value in the TYPE table that isn't there in the query. I wonder if someone can point out the default:
    create or replace PROCEDURE PROC_REC_MIXED(x_org NUMBER, x_dt DATE)
    AS
      v_dt             DATE           := x_dt;
      v_org_id         NUMBER         := x_org;
      TYPE tab_pyld is TABLE of VARCHAR(8) INDEX BY BINARY_INTEGER;
      pylds            tab_pyld;
      cursor c_pyld is select DISTINCT(t.PAYLOAD_TYPE_ID), t.PAYLOAD_TYPE_ABBR
          from OTHR_RATES r, PAYLOAD_TYPE t
         where r.PAYLOAD_TYPE_ID = t.PAYLOAD_TYPE_ID
           and r.LOCATION_ID = v_org_id and r.PAYLOAD_TYPE_ID IS NOT NULL;
      pyld_id          INTEGER;
      pyld_typ         VARCHAR2(8);
      j                INTEGER      := 1;
      prod1_id         INTEGER;
      prod1_nm         VARCHAR2(8);
      prod2_id         INTEGER;
      prod2_nm         VARCHAR2(8);
      prod3_id         INTEGER;
      prod3_nm         VARCHAR2(8);
      prod4_id         INTEGER;
      prod4_nm         VARCHAR2(8);
      prod5_id         INTEGER;
      prod5_nm         VARCHAR2(8);
      prod6_id         INTEGER;
      prod6_nm         VARCHAR2(8);
      prod7_id         INTEGER;
      prod7_nm         VARCHAR2(8);
      prod8_id         INTEGER;
      prod8_nm         VARCHAR2(8);
      prod9_id         INTEGER;
      prod9_nm         VARCHAR2(8);
      prod10_id        INTEGER;
      prod10_nm        VARCHAR2(8);
      -----------------------------
      ttl_log_hrs      NUMBER    := 0;
      ttl_std_hrs      NUMBER    := 0;
      s_bill_hrs       NUMBER    := 0;
      d_bill_hrs       NUMBER    := 0;
      s_nobill_hrs     NUMBER    := 0;
      d_nobill_hrs     NUMBER    := 0;
      ttl_s_bill_hrs   NUMBER    := 0;
      ttl_d_bill_hrs   NUMBER    := 0;
      ttl_s_nobill_hrs NUMBER    := 0;
      ttl_d_nobill_hrs NUMBER    := 0;
      -----------------------------
      s1_b_lds         NUMBER    := 0;
      d1_b_lds         NUMBER    := 0;
      s1_nb_lds        NUMBER    := 0;
      d1_nb_lds        NUMBER    := 0;
      s1_b_tns         NUMBER    := 0;
      d1_b_tns         NUMBER    := 0;
      s1_nb_tns        NUMBER    := 0;
      d1_nb_tns        NUMBER    := 0;
      
      prod1_sttllds    NUMBER    := 0;
      prod1_sttltns    NUMBER    := 0;
      prod1_dttllds    NUMBER    := 0;
      prod1_dttltns    NUMBER    := 0;
    begin
      htp.p('<table cellpadding="0" cellspacing="0" summary="Daily Reconciliation - Hourly Work">');
      htp.p('<tr><th rowspan="2" width="60"> </th><th rowspan="2" width="60"> </th>');
          htp.p('<th colspan="3" rowspan="2" class="cl" width="240">Driver Time</th>');
          htp.p('<th colspan="5" class="cl" width="220">Hours</th>');
      open c_pyld;
        LOOP
          EXIT WHEN c_pyld%NOTFOUND;
          FETCH c_pyld INTO pyld_id, pyld_typ;
          --htp.p('<th colspan="'||prod_ct*2||'" class="cl">Loads</th>');
          htp.p('<th colspan="4" class="cl">Loads</th>');
          --htp.p('<th colspan="'||prod_ct*2||'" class="cl">Tons</th></tr>');
          htp.p('<th colspan="4" class="cl">Tons</th>');
        END LOOP;
      close c_pyld;
          htp.p('</tr>');
      
      htp.p('<tr><th class="cl" rowspan="2" width="60">Standby</th>');
          htp.p('<th colspan="2" class="c" width="80">Billable</th>');
          htp.p('<th colspan="2" class="c" width="80">Non-Billable</th>');
      open c_pyld;
        LOOP
          EXIT WHEN c_pyld%NOTFOUND;
          FETCH c_pyld INTO pyld_id, pyld_typ;
      ---------LOADS
          htp.p('<th colspan="2" class="rl" width="80">Billable<br />'||pyld_typ||' '||pyld_id||'</th>');
          htp.p('<th colspan="2" class="rl" width="80">Non-Billable<br />'||pyld_typ||' '||pyld_id||'</th>');
      ---------TONS
          htp.p('<th colspan="2" class="rl" width="80">Billable<br />'||pyld_typ||' '||pyld_id||'</th>');
          htp.p('<th colspan="2" class="rl" width="80">Non-Billable<br />'||pyld_typ||' '||pyld_id||'</th>');
        END LOOP;
      close c_pyld;
          htp.p('</tr>');
      
      htp.p('<tr><th class="r">Emp #</th><th class="c">Unit #</th>');
          htp.p('<th class="cl">Start Time</th><th class="c">End Time</th><th class="c">Logged Hrs</th>');
          htp.p('<th class="c">S</th><th class="c">D</th>');
          htp.p('<th class="c">S</th><th class="c">D</th>');
      ---------LOADS
          htp.p('<th class="rl">S</th><th>D</th>');
          htp.p('<th class="rl">S</th><th>D</th>');
      ---------TONS
          htp.p('<th class="rl">S</th><th>D</th>');
          htp.p('<th class="rl">S</th><th>D</th>');
          
          htp.p('</tr>');
      FOR t in (SELECT rh.TC_ID tc, rh.EMP_ID em, rh.EQUIP_ID eq,
                to_char(rh.START_TIME,'HH:MI AM') s,
                to_char(rh.END_TIME,'HH:MI AM') e, rh.LOG_HRS h,
                NVL(SUM(rs.STANDBY_HRS),0) b
          from V_RECONCILE_HRS rh, V_RECONCILE_STANDBY rs
         where rh.TC_ID = rs.TC_ID (+)
           and rh.ORG_ID = v_org_id and rh.DATE_INDEX = v_dt
         group by rh.TC_ID, rh.EMP_ID, rh.EQUIP_ID,
                rh.START_TIME, rh.END_TIME, rh.LOG_HRS) LOOP
     
     
      htp.p('<tr><td class="c">' ||t.em||'</td><td class="c">'||t.eq||'</td>');
          htp.p('<td class="cl">'||t.s|| '</td><td class="c">'||t.e|| '</td>');
          htp.p('<td class="r">' ||t.h||'  </td>');
          htp.p('<td class="rl">'||t.b||'  </td>');
        select NVL(SUM(j.BILL_HRS),0) into s_bill_hrs
          from TC c, TC_OTHR_JOBS j
         where c.TC_ID = j.TC_ID
           and j.SPECIAL = 'S' and c.TC_ID = t.tc;
        select NVL(SUM(j.BILL_HRS),0) into d_bill_hrs
          from TC c, TC_OTHR_JOBS j
         where c.TC_ID = j.TC_ID
           and j.SPECIAL IS NULL and c.TC_ID = t.tc;
          htp.p('<td class="r">'||s_bill_hrs||'  </td>');
          htp.p('<td class="r">'||d_bill_hrs||'  </td>');
          htp.p('<td class="r">'||s_nobill_hrs||'  </td>');
          htp.p('<td class="r">'||d_nobill_hrs||'  </td>');
        ttl_log_hrs        := ttl_log_hrs + t.h;
        ttl_std_hrs        := ttl_std_hrs + t.b;
        ttl_s_bill_hrs     := ttl_s_bill_hrs + s_bill_hrs;
        ttl_d_bill_hrs     := ttl_d_bill_hrs + d_bill_hrs;
        ttl_s_nobill_hrs   := ttl_s_nobill_hrs + s_nobill_hrs;
        ttl_d_nobill_hrs   := ttl_d_nobill_hrs + d_nobill_hrs;
    
        s1_b_lds           := 0;
        s1_b_tns           := 0;
    
        prod1_sttllds      := prod1_sttllds + s1_b_lds;
        prod1_sttltns      := prod1_sttltns + s1_b_tns;
        --------------------------------------
    
        d1_b_lds           := 0;
        d1_b_tns           := 0;
    
        prod1_dttllds      := prod1_dttllds + d1_b_lds;
        prod1_dttltns      := prod1_dttltns + d1_b_tns;
    
      ---------LOADS
          htp.p('<td class="rl">'||s1_b_lds ||'  </td>');
          htp.p('<td class="r">' ||d1_b_lds ||'  </td>');
          htp.p('<td class="rl">'||s1_nb_lds||'  </td>');
          htp.p('<td class="r">' ||d1_nb_lds||'  </td>');
    
      ---------TONS
          htp.p('<td class="rl">'||s1_b_tns ||'  </td>');
          htp.p('<td class="r">' ||s1_nb_tns||'  </td>');
          htp.p('<td class="rl">'||d1_b_tns ||'  </td>');
          htp.p('<td class="r"> '||d1_nb_tns||'  </td>');
          htp.p('</tr>');
      END LOOP;
      -----------------------------
      htp.p('<tr><td class="cu"> </td><td class="cu"> </td>');
          htp.p('<td class="cul"> </td><td class="cu"> </td>');
          htp.p('<td class="ru">' ||ttl_log_hrs||'  </td>');
          htp.p('<td class="rul">'||ttl_std_hrs||'  </td>');
          htp.p('<td class="ru">' ||ttl_s_bill_hrs||'  </td>');
          htp.p('<td class="ru">' ||ttl_d_bill_hrs||'  </td>');
          htp.p('<td class="ru">' ||ttl_s_nobill_hrs||'  </td>');
          htp.p('<td class="ru">' ||ttl_d_nobill_hrs||'  </td>');
    
      ---------LOADS
          htp.p('<td class="rul">'||prod1_sttllds||'  </td>');
          htp.p('<td class="ru">' ||prod1_dttllds||'  </td>');
          htp.p('<td class="rul">'||prod1_sttllds||'  </td>');
          htp.p('<td class="ru">' ||prod1_dttllds||'  </td>');
      ---------TONS
          htp.p('<td class="rul">'||prod1_sttltns||'  </td>');
          htp.p('<td class="ru">' ||prod1_dttltns||'  </td>');
          htp.p('<td class="rul">'||prod1_sttltns||'  </td>');
          htp.p('<td class="ru">' ||prod1_dttltns||'  </td>');
          htp.p('</tr>');
      htp.p('</table>');
    end;
    /
    I am trying to build a business report. The report should break down the activity by type of product by the project, but there could be a number of different products. In this case, there are only two products. The query:
    select DISTINCT(t.PAYLOAD_TYPE_ID), t.PAYLOAD_TYPE_ABBR
          from OTHR_RATES r, PAYLOAD_TYPE t
         where r.PAYLOAD_TYPE_ID = t.PAYLOAD_TYPE_ID
           and r.LOCATION_ID = 584 and r.PAYLOAD_TYPE_ID IS NOT NULL;
    gives only two lines: Gravel (#5) and Pavement (#18). Still in the output, roadway appears twice. I don't know there is something that I'm on. Your help is greatly appreciated.

    Take the exit after a recovery. (in the two loops)

    You have,

    EXIT WHEN c_pyld%NOTFOUND;
    FETCH c_pyld INTO pyld_id, pyld_typ;
    

    To take

    FETCH c_pyld INTO pyld_id, pyld_typ;
    EXIT WHEN c_pyld%NOTFOUND;
    

    G.

  • Creation function Interior package Error (15,3): PLS-00103: encountered the symbol ";" when expecting one of the following values: back

    Hello

    I am trying to create a function inside the packaging.

    In the Package BODY I've defined the function, but in the definition of the package, it gives me syntax errors.

    • Error (15,3): PLS-00103: encountered the symbol ";" when expecting one of the following values: back
    • Error (39.1): PLS-00103: encountered the symbol "END" when waiting for one of the following values: start the function pragma procedure subtype type current cursor removal exist prior

    What can I do wrong here.

    Thank you

    Ken

    Inner package BODY:

    / * FUNCTION to form the query * /.

    FUNCTION UDF_FORMQUERY)

    IN_CASEID VARCHAR2,

    IN_SRCLYR VARCHAR2,

    IN_SRC_CONDN VARCHAR2

    )

    RETURN VARCHAR2

    AS

    varSQLQuery VARCHAR2 (10000);

    BEGIN

    varSQLQuery: = "test query";

    RETURN varSQLQuery;

    DBMS_OUTPUT. Put_line (varSQLQuery);

    END UDF_FORMQUERY;

    Definition of package inside:

    create or replace PACKAGE BODY MY_SQUERY

    AS

    FUNCTION UDF_FORMQUERY)

    IN_CASEID VARCHAR2,

    IN_SRCLYR VARCHAR2,

    VARCHAR2 IN_SRC_CONDN( )

    RETURN VARCHAR2

    AS varSQLQuery VARCHAR2 (10000);

    END MY_SQUERY;

    your package definition is incorrect, you have included the part of the declaration of the variables of the function in the package definition. It should be like

    FUNCTION UDF_FORMQUERY)

    IN_CASEID VARCHAR2,

    IN_SRCLYR VARCHAR2,

    IN_SRC_CONDN VARCHAR2)

    RETURN VARCHAR2;

  • Insert some values into multiple tables. One of the tables has a complex primary key.

    Hello, I am using Jdeveloper version 11.1.2.3.0

    I have a FORM_TYPE table and another table Str. The table of Str is used to translate the strings from the name of the table which are read from another program from the database and used to generate forms...

    The FORM_TYPE table has a relationship with the table of STR via formtype.title_str_id = str.str_id.

    STR. table has a primary key which is based on the mf_language and str_id. columns I generated the entity for the table of STR, but impossible to insert new values of add-on application for some reason any... It is said that recording invalidates its own entity...

    I am trying to create a table that will be editable and will have the column Description, name, cdes in English, Str in French etc...

    To create a Form_Type and at the same time insert new values for each language. But can not do the inserts of the new work of STR...

    Also the FormType.TITLE_STR_ID already has a lot of null values in the database.

    SELECT FormType.DESCRIPTION,

    FormType.FORM_TYPE_ID,

    FormType.NAME,

    FormType.PAPER_REPORT_FORMAT,

    FormType.PAPER_REPORT_NAME,

    FormType.TITLE_STR_ID,

    in. En_str str,

    in. STR_ID,

    en.object_name en_object_name,

    Fr. Str,

    Fr. STR_ID,

    Fr.object_name,

    of the. Str,

    of the. STR_ID,

    du.object_name,

    BG.Str,

    BG. STR_ID,

    BG.object_name

    OF FORM_TYPE FormType.

    (select str.str_id, str.mf_language_id, str.str, str.object_name

    of mf_language ml, str

    where ml.mf_language_id = str.mf_language_id

    and ml.code = 'fr') en

    (select str.str_id, str.str, str.object_name

    of mf_language ml, str

    where ml.mf_language_id = str.mf_language_id

    and ml.code = 'fr') en,.

    (select str.str_id, str.str, str.object_name

    of mf_language ml, str

    where ml.mf_language_id = str.mf_language_id

    and ml.code = 'from'),

    (select str.str_id, str.str, str.object_name

    of mf_language ml, str

    where ml.mf_language_id = str.mf_language_id

    and ml.code = 'bg') bg

    WHERE

    FormType.title_str_id = en.str_id and

    FormType.title_str_id = fr.str_id and

    FormType.title_str_id = du.str_id and

    FormType.title_str_id = bg.str_id

    Each table that you want to update must have its own entity object. You need to connect it to an another VO/OS using the associations/view links

  • Column of type BLOB in own tablespace in partition in the table, tablespace to move

    Hi all

    First off I use Oracle Database 11.2.0.2 on AIX 5.3.

    We have a table is partitioned on a monthly basis.

    In this table, there is a partition (BOTTOM), this lower score is 1.5 TB in size thanks to a BLOB column called (ATTACHMENT).

    The rest of the table is not large, about 30 GB, it's the BLOB column that uses all the space.

    The lower part is in its own default tablespace (DefaultTablespace), the BLOB column in the lower score is also in its own tablespace (TABLESPACE_LOB) - 1.5 to

    I was invited in order to free up space by moving the TABELSPACE_LOB (from the low partition) to a data archive, confirming the data is there and then remove the lower score of the production.

    I do not have enough free space (or time) make an expdp, I think not only its doable with data so much.

    CREATE TABLE tablename
    (
      xx                          VARCHAR2(14 BYTE),          
      xx                          NUMBER(8),    
      xx         NUMBER,
      ATTACHMENT   BLOB,
      xx             DATE,
      xx             VARCHAR2(100 BYTE),
      xx                     INTEGER,
    )
    LOB (ATTACHMENT) STORE AS (
      TABLESPACE  DefaultTablespace
      ENABLE      STORAGE IN ROW
    NOCOMPRESS
    TABLESPACE DefaultTablespace
    RESULT_CACHE (MODE DEFAULT)
    
    
    PARTITION BY RANGE (xx)
    ( 
      PARTITION LOWER VALUES LESS THAN ('xx')
        LOGGING
        COMPRESS BASIC
        TABLESPACE DefaultTablespace
        LOB (ATTACHMENT) STORE AS (
          TABLESPACE  TABLESPACE_LOB
          ENABLE      STORAGE IN ROW
    )
    
    ...>>
    
    

    My idea was to take a table, excluding the attachment column datapump, export using external tables.

    Then to create the table on the database archive 'with' the attachment column.

    Import data only, as I understand that if you use a dump file that has too many columns Oracle he will manage, I hope it will work the other way around.

    Then on the production, make the TABLESPACE_LOB read-only and move it to the new file system.

    It's a little more complicated that a normal gesture of tablespace because of how the table is split.

    Any advice would be much appreciated.

    I was thinking about an approach as:

    SWAP PARTITION allows to separate the partition of the table

    • Create a non-partitioned table which is otherwise identical in structure to tablename (nonpart_tablename)
    • ALTER TABLE TableName LOWER WITH nonpart_tablename SWAP PARTITION

    Move the segment of the table at TABLESPACE_LOB, or to a different tablespace on its own. It is, as you say, only 30 GB and I think (but not strongly enough to go forward without testing/validation on a smaller scale) that the displacement of the segment of the table in this way does not disrupt the LOB segment, as long as you don't say MOVE LOB.

    • ALTER TABLE nonpart_tablename MOVE TABLESPACE TABLESPACE_LOB

    Now the TABLESPACE_LOB tablespace is self-contained and you can make it transportable.

  • How to use a working repository when the type is set to 'run '?

    Hi all
    I was trying my hand just import and export standards of work, I need to know how we can use a certain repository of work when its type is set to "run".
    I want to import some packages (which are in any other custodian work) in this repository of work but I'm missing something somewhere.
    Can someone tell me what are the exact steps to import packages or repository in this work newly created repository 'Exécution' type?

    Kind regards.

    Hello

    A working repository which is of type EXECUTION cannot be used to import packages/interfaces etc.

    You can able to import only the SCENARIOS in component operator (tabbed scenarios) and run 'just '. In the execution of the term repository State, you can able to run objects created in the development repository.

    In addition, u cannot access designer itself if it is a repository of EXECUTION.

    Thank you
    Guru

  • Help with the new Style of Table set in shape?

    I'm having all sorts of problems using the new table style trainer.  I'm not a RoboHelpHTML 8 experts (I better with version 5).  I am trying to create a table with 3 columns, of which the first is aligned to the left, the last 2 are centered.  The header (rank 1) is bold and centered.  Also I want all lines of the same thickness.  I created the table using the standard SimpleGridBlack... Image2.jpg It is actually a line at the top... don't know what happened.  Then I ran WebHelp and the situation was identical to one here.  Then I duplicated the SimpleGridBlack and apply the new style to the table.  Then I started to make changes to the new style.  I chose the first line and made all columns centered and in bold. Image4a.jpg Because I want the columns 2 and 3 to be centered, I then selected columns even for change. Image5a.jpg He took care of column 2.  Then, I chose the last column of change. Image6a.jpg He took care of column 3.  However, the results were not what I expected. Image10.jpg The upload does not quite show the image correctly.  The line under the "gg" is really there and the lines separating columns 1-2 and 2-3 in row 1 are really there.

    Image15.jpgHowever, the first line of column 3 is not centered and lines A-B-C, D-E-F, A-D-G and H-E-B are thicker than the other lines.

    I hope that someone can help you.  It took 2 days and get a website made available for my use to get to the point that I am now.  It is a document that I am out of this week and I have a lot of tables to change.  Thanks for any help.

    Virginia

    8 HR tables are boring to say the least.

    First your alignment problems, you should take a look in the HTML itself to ensure that it is properly applied. The amoun of timers told me to center text and align and the HTML behind comes usually do. To verify here quickly.

    Regarding the double lines that you seem to be around the table, this may help, but I'm not sure that using your styles around them now.

    If you select the table as a whole, right-click right table properties > tab Table > table borders > turn off all borders of the table. Then go to this tab Table > cell borders > set the thickness to be used here, this applies to all round and will give you the lines you want.

    Good luck.

  • Reading of several objects of type table returned

    Hi gurus,
    I have a procedure that is called by a Java code.
    There are 2 (type VARCHAR) input parameters and output parameters 3 viz TWO objects of type Table and a cursor type.
    As out parameters are objects, not simple variables, I'm not able to test this procedure in Oracle SQL developer, please help me to do so.

    Concerning
    Villepreux

    Published by: Villepreux on February 4, 2010 14:47

    Create an anonymous block like this and run.

    declare
      OutParameter1 ;
      OutParameter2 ;
      OutParameter3 ;
    begin
      procedure_name(InParameter1, InParameter2, OutParameter1, OutParameter2, OutParameter3);
    end;
    

Maybe you are looking for

  • How can I use a Windows CD on my MacBook Air?

    Hello: I have a MacBook Air; OS X Yosemite 10.10.5 version. I don't have a reader of CD/DVD, but really need to install a special CD of library that is based on Windows. Is it possible for me to run the Windows-based CD on my Mac, if I buy an externa

  • versions SCXI-1349

    Hello everyone, I have a doubt. In the past, I'm sure I saw a document (on site or Devzone, but I can't find it now easily), where I read that it is necessary to choose the different versions of the SCXI-1349 module, when you use this card, connected

  • How to detect multiple points of laser on the image

    Consider I have a picture with several spots dark bright laser. I want to find the center of gravity of each laser spot and return the coordinates of each spot. Currently, I managed to detect an single spot to grab an image, adjustment of the thresho

  • All programs blocked when entering. Any input keyboard freezes all programs, browsers, word processing, email clients, etc...

    I have a new HP laptop under Windows 7 Premium (x 64), 4 GB RAM, 2.26 Ghz Intel Core i3.  Almost since the first day programs have stopped responding immediately after the submission of any entry typed using the keyboard.  Programs will work fine unt

  • Adds new Anyconnect customer

    Hi guys I have an existing installation of VPN anyconnect for some users. Now we have another customer who needs VPN access in the network. How I would go to this topic on the plan of separation from the existing VPN. This customer will have a differ