How to pass notification request in. where condition in a task list

Dear friends

I need the page extension in the notifications page.
iI developed the query, for the moment, I hard coded requisition_header_id. This work of extension properly, now I want to spend requisition_header_id dynamically i.e. which users click on this id must go to my request of VO. Any person can give idea please.
This is my request

Select the site of ood.ORGANIZATION_NAME
hla. Location of DESCRIPTION
prha.segment1 Req_number
to_char (PRH. CREATION_DATE, 'Dd-mon-yy') Req_date
WP. FULL_NAME
-, hla. LOC_INFORMATION14 contact_person
hla. TELEPHONE_NUMBER_1 contact_number
-, hla. LOCATION_ID
-, hla. INVENTORY_ORGANIZATION_ID
SUM (prla. Unit_price * prla. Total_Estimated_value of QUANTITY)
-, hla. LIGNE_ADRESSE_1 | HLA. LIGNE_ADRESSE_2 | » '|| HLA. Location zip_code
of po_requisition_headers_all PRH
po_requisition_lines_all prla,
org_organization_definitions ood
hr_locations_all hla
per_all_people_f WP
where prla. REQUISITION_HEADER_ID =: 2... I tried this way... here I give condition... this: 2 is given by others SEEDED in the same page.
-PRH. REQUISITION_HEADER_ID = 34002... earlier I've hardcoded in this way
-segment1 = '38'
- and prha.ORG_ID = ood.ORGANIZATION_ID
and PRH. REQUISITION_HEADER_ID = prla. REQUISITION_HEADER_ID
and prla. DELIVER_TO_LOCATION_ID = hla. LOCATION_ID
and hla. INVENTORY_ORGANIZATION_ID = ood.ORGANIZATION_ID
and PRH. PREPARER_ID = WP. PERSON_ID
and sysdate between ppf.effective_start_date and ppf.effective_end_date
Ood.ORGANIZATION_NAME group
hla. LIGNE_ADRESSE_1 | HLA. LIGNE_ADRESSE_2 | » '|| HLA. ZIP_CODE
prha.segment1
PRH. CREATION_DATE
hla. LOC_INFORMATION14
hla. TELEPHONE_NUMBER_1
hla. LOCATION_ID
hla. INVENTORY_ORGANIZATION_ID
-, SUM (prla. Unit_price * prla. QUANTITY)
hla. DESCRIPTION
WP. FULL_NAME


I want to know for any clarification, please help.
Thank you
Aravinda

Published by: Aravinda on April 16, 2013 03:01

Now that you have downloaded the workflow, open it in the workflow designer and find the notification that is displayed on the screen, under the condition. Once you have identified the notification in the workflow, all you have to do is minor changes to the notification. There's a chance he could be created using Page OA region. If this isn't the case, then take assistance of a workflow developer to make changes to the HTML notification.

Tags: Oracle Applications

Similar Questions

  • How to pass the request to < a href = "f? p = & APP_ID.:7: & SESSION. : & DEBUG. : < /a >

    Dear friend,

    I want to move using the request
    '{a href="f?p=&APP_ID.:7:&SESSION.::&DEBUG.::::">Create New Invoice</a}'
    I want to spend #COSTING_CODE # request using the link above and I want to spend the POINTS value with respect to the request when I click on create a new invoice link.


    P7_COSTING_CODE #COSTING_CODE #.


    P7_FILE_CODE #FILE_CODE


    P7_VERSION_NO #VERSION_NO #.


    How can I pass request above link and value point page No 7?


    How can I do this?

    Thank you

    Published by: Sophie Sep 6, 2011 02:29

    Published by: Sophie Sep 6, 2011 02:29

    Published by: Sophie Sep 6, 2011 03:49

    Hello

    Try

    '<a href="f?p=&APP_ID.:7:&SESSION.:COSTING_CODE:&DEBUG.:7:P7_COSTING_CODE,P7_FILE_CODE:'||COSTING_CODE||','||FILE_CODE||'">Create New Invoice</a>'
    

    Kind regards
    Jari

  • How to pass the parameter in where clause contained in the custom file?

    I have the tracking query

    Blue are the parameters

    I paste this to a custom folder

    and

    Select last_update_date, creation_date

    of ra_customer_trx_all

    "where trunc (last_update_date) = 29-SEP-2012."

    and customer_trx_id = 1109

    in another folder custom return 1 row only and create a different worksheet in the same workbook and create

    3 setting and 2 of them pointing to the 1 row to query and create a calcualtion

    SET_CONTEXT ("Date_From", TO_CHAR(:Date From)) and SET_CONTEXT ('Date_TO', TO_CHAR(:Date To))

    and 1 condition 1 = SET_PARAM3(:Period)

    but this does not work for me, no data back please help

    Select m.party_name TENANT_NAME

    b.interface_line_attribute10 lease_num

    -, b.interface_line_attribute12 «PPS Number.

    b.interface_line_attribute2 LOCATION_CODE

    flexv.description property_name

    INVOICE_NUMBER a2.trx_number

    -, t.nom "Type of Transaction".

    -, e.attribute15 "AS400 Key."

    , b2.description 'BILL_ITEM_INVOCIE_DESCRIPTION '.

    , case when gcc.segment5 like 6% ' then ' P/L '.

    When gcc.segment5 like 7% ' then ' P/L '.

    When gcc.segment5 as 8% ' then ' P/L '.

    When gcc.segment5 like 9% ' then ' P/L '.

    else "B/S".

    end as account_nature

    -, gcc.concatenated_segments as 'account of burden '.

    gcc.segment1 company_code

    gcc.segment2 department_code

    gcc.segment3 property_code

    gcc.segment4 business_segment

    gcc.segment5 account_code

    gcc.segment6 project_code

    gcc.segment7 intercom_code

    gcc.segment8 spare1

    gcc.segment9 spare2

    b2.extended_amount BILL_ITEM_INVOICE_AMOUNT

    to_char (substr(ps.gl_date,4,8)) gl_period

    b.interface_line_attribute11 bill_start_date

    b.interface_line_attribute14 bill_end_date

    decode (a2.invoicing_rule_id, '-2',

    DECODE (TO_CHAR ("b.RULE_START_DATE, ' YYYYMM"), to_char (to_date (to_char (TRUNC (to_date (SETPARAM.) GET_PARAM3, "YYYYMM"), 'Month')-1), "MON-DD-YYYY"), "YYYYMM"), "Current", "Forward").

    'In progress' Bill_nature)

    , to_char (a2.trx_date, ' MON-DD-YYYY "") invoice_date

    pal.lease_commencement_date

    pal.lease_termination_date

    h.user_name created_by

    -, NULL as remarks

    of ra_customer_trx_all one

    ra_customer_trx_lines_all b

    pn_leases_all d

    e pn_tenancies_all

    hz_cust_accounts l

    hz_parties m

    fnd_user h

    ar_payment_schedules_all ps

    RA_CUST_TRX_LINE_GL_DIST_ALL dist

    gl_code_combinations_kfv gcc

    AR_RECEIVABLE_APPLICATIONS_all app

    ra_customer_trx_all a2

    ra_customer_trx_lines_all b2

    RA_CUST_TRX_TYPES_all t

    fnd_flex_values_vl flexv

    pn_lease_details_all pal

    where

    App. APPLICATION_TYPE = "CM".

    and flexv.flex_value = gcc.segment3

    and flexv. FLEX_VALUE_SET_ID = 1014916

    and pal.lease_id = d.lease_id

    and app.applied_customer_trx_id = a.customer_trx_id

    and app.customer_trx_id = a2.customer_trx_id

    and a2.cust_trx_type_id = t.cust_trx_type_id (+)

    and a2.org_id = t.org_id (+)

    and b.customer_trx_line_id = b2.previous_customer_trx_line_id

    and dist. CUSTOMER_TRX_LINE_ID = b2. CUSTOMER_TRX_LINE_ID

    and dist.account_class = 'REV '.

    and dist.account_set_flag = DECODE (NVL(a2.invoicing_rule_id,1)-2, 'Y', 'n')

    and gcc. CODE_COMBINATION_ID (+) is Dist. CODE_COMBINATION_ID

    and b.interface_line_attribute10 = d.lease_num

    and d.lease_id = e.lease_id

    and e.primary_flag = 'Y '.

    and b2.customer_trx_id = a2.customer_trx_id

    and a2.bill_to_customer_id = l.cust_account_id

    and l.party_id = m.party_id

    and a2.created_by = h.user_id

    and ps.customer_trx_id = app.customer_trx_id

    and ps.gl_date between trunc (trunc (TO_DATE (SYS_CONTEXT ('DISCO_CONTEXT', 'Date_From')), 'MM')-1, 'MM') and trunc (TO_DATE (SYS_CONTEXT ('DISCO_CONTEXT', 'Date_To')), 'MM')-1

    What exactly is the problem with the results? Can you do the report include the gl_date, so that you can see exactly what is included?

    The only way to solve this is back to basics. You must be certain that the setting and calculations for the date work 100%. You have granted the Execute permission on the function to your landlord EUL - Yes? I did create the function in a package belonged to EUL_US, then I got no problem with permissions or grant.

    Also, gl_date is a DATE string and not a right? I ask because if it is not a date, but a string then a few dates could be left out.

    Assuming that you are 100% some of the building blocks, you should start by including only the gl_date and the primary key of the table you are using. Once you are sure you have found the right data, you can start adding in addition to fields.

    I note that you use the E-Business Suite objects. I copied the code in my system where I don't use rental. So I put comment references to tables 3 PN. I had 150 lines of data when I asked for it by using the parameter, and then when I hard coded the BETWEEN operator for the gl_date. You don't have to make sure that your landlord EUL got right SELECT all tables and views used in your code and, if you want to share this code with someone else, you must also have LICENSING rights.

    Try your code in a SQL like TOAD tool and see what happens. Are you absolutely sure that each of your transactions has an entry in the tables PN? Maybe it's why you don't get the results you expect. You can try, as I did, to comment these lines out and then see what happens.

    Hopefully this has given you enough to solve your problem

    Michael

    PS. It would be nice to know your name. You have not used once it in your thread.

  • How to pass the .obj files to the linker in a listing file?

    Our project has reached a stage when we generate as many .obj files only by passing them to the linker is upper control limit in Windows, and part of it is chopped. Accordingly, the linker does not receive all the names file entry and defective. Fortunately, for such file names can be included in a text file that is then passed to the linker as argument @FILE.

    Now, the question: is there a way to make Momentics create such a file and use it instead of simply to list all of the command-line .obj files?

    It's not a way to configure Momentics to use the @FILE argument.  My recommendation would be to link some of the object files in one or several static libraries and then add these libraries to the main project.

  • How to make a sum of text_field or column with where condition?

    Hi all

    In Oracle forms 6i, I created a form in which there are 5 text_Items (with 20 none of the displayed fields) namely ACCOUNT FD DO, AMOUNT, INTEREST RATE, STATUS and INTEREST_YEAR.

    FD ACCOUNT NO.

    AMOUNT

    INTEREST RATE

    STATUS

    INTEREST_YEAR

    47665

    50000

    1. 11.5

    E

    5750

    37463

    60000

    12

    D

    7200

    47651

    100000

    1. 12.5

    D

    12500

    34766

    70000

    11

    E

    7700

    I want to make the sum of the INTEREST_YEAR where status = 'E '.

    I created a TOTAL_INTEREST_YEAR name field in which I want to display the sum.

    How the sum with where condition?

    Thank you.

    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production

    Oracle form Builder 6i.

    Michael,

    When you write the formula for a calculated item, it does not use PL/SQL expressions (to include built-in DECODING) in Forms 6i.  If there was no conditional control over your calculation, you can simply make your article a summary point and perform the summation over column interest_rate .  However, because your calculation depends on the value in the STATUS column, you will need to use a combination of a calculated item and a summary article because you can't use an IF, DECODE or any other PL/SQL statement in the formula for the calculated item.  Therefore, you need to create a function in the knot of program units and call the function in your formula.  I tested it using the following code and it worked correctly.

    First, create the following function in the node of the object browser program units.

    FUNCTION calc_interest RETURN NUMBER IS
         n_ret_val  NUMBER := 0;
     BEGIN
       IF ( :YOUR_BLOCK.STATUS = 'E' ) THEN
           n_ret_val := :YOUR_BLOCK.interest_rate;
       END IF;
       RETURN n_ret_val;
    END calc_interest;
    

    First, you must change the property to BLOCK request all archives = Yes

    Then, open the palette of your calculated item property, and set the following properties:

    1. calculation = Formula

    2 property Forumla = CALC_INTEREST

    3. point data base = No.

    Now create a second item in the table not based on in your block that will display the amount of the interests summarized.  Open the palette property for this element and set the following properties:

    1 Data Type = number

    2 calculation Mode = Summary

    3. function = sum

    4 summarizes point = "name of your element calculated.

    5 base of data point = No.

    6 canvas = "your canvas.

    When you query your block, you should see the sum of all records where STATUS = 'E '.

    It worked for me, in my example form that I created so this should work for you.

    Craig...

  • How to add a where condition to seeds VO

    Hi I have a VO PoRequisitionLinesVO.Now knowledge I want to add the SQL where condition...

    How can I do this...? There is no addition of all fields... only adding a where condition clause?

    Will I need to extend that VO? If yes then how should I do this?

    Thank you...

    Yes, you must extend the VO.

    To get the procedure you can search the Internet, there is a great article (that I mentioned below):

    https://blogs.Oracle.com/prajkumar/entry/eo_based_vo_extension_in

    Kind regards

    Sandeep M.

  • How to use where condition in an update statement

    Oracle forms 6i
    Hai All

    I generate table of attendance. My name of the table is daily_attend and fields

    name varchar

    empcode number

    Date of the respondent

    Outtime date

    number of working_hrs

    Date of Attend_date

    Attend_status varchar

    So here, I calculate the hours of work of an employee by

    Update dail_att set wtime = lpad (((outtime-intime) * 24 * 60), 4, 0);

    It works great for example for one day

    When I want to do on a daily basis, I have to give in the where Clause and how I can give attend_date in where Clause

    Thank you in advance

    Srikkanth.M

    change this to more well-intentioned and reusable procedure... Remove commit inside of the procedure

    PROCEDURE W_TIME(p_date date)
    
    IS
    BEGIN
    update dail_att set wtime= lpad(((outtime-intime)*24*60),4,0)
    where trunc(attend_date) = trunc(p_date);
    
    END;
    

    and whenever you want to call it simply call

    begin
     ......
     w_time('12-APR-2010');
     commit;
    ....
    
  • How to pass the value to query LOV of rows in the table.

    simple table on the page of the ofa:

    col1 col2
    ABC lov-activated
    PQR lov-people with disabilities
    MNO lov-activated

    Col2 is lov and turned under condition if it meets certain conditions. I am capable of until.
    How to pass values in col1 to the co of lov lov query?

    Help, please
    Thank you

    Hello

    You can pass the value to LOV in this way in a region of the table.

    col1 col2

    DEPTNO empname (Lov field)
    1 lov1
    2 lov2

    requirement: lov1, you will need to pass the value of deptno 1.

    If deptno is message style text then you need to create a value of the deptnoFormValue with the attribute in the base page table area, and the same instance of vo.

    danslechamp empname lov

    fields of lov region:

    EmpName,
    DEPTNO,
    and deptnoFormValueinLov

    lov mappings: a first return to the basic page.

    a second part of the criteria

    Point lov region: deptnoFormValueinLov
    Return article: -.
    Point of criteria: deptnoFormValue
    Required: true
    Query programmatically: true

    Now create a controller for the region of Lov

    the code example is:

    Import oracle.apps.fnd.framework.OAApplicationModule;
    Import oracle.apps.fnd.framework.OAViewObject;
    java.util.Dictionary import;

    in the process request:

    OAApplicationModule m = pageContext.getApplicationModule (webBean) (OAApplicationModule);
    Dictionary passiveCriteria = pageContext.getLovCriteriaItems ();
    String deptno = (String) passiveCriteria.get ("deptnoFormValueinLov");

    System.out.println ("org code in controller of lov is" + orgcode);

    OAViewObject vo = (OAViewObject) am.findViewObject ("view instance of lov");
    vo.setWhereClause ("Organization_code =" "+ deptno +" ' "");

    System.out.println ("request after adding where clause." + vo.getQuery ());

    hope this is useful

    Kind regards
    Barros.
    [email protected]

  • How to pass the ObjectType as input for search criteria

    Hi all

    I have the search function that takes input parameters and returns all matching rows. It is only forward. My problem is to have several types as an input parameter. This is the reason why I'm not able to pass the value of entry for these types.

    My Input Type table looks like this.

    CREATE OR REPLACE TYPE T_T_PARTY_REQUEST_CRITERIA
    AS THE T_O_PARTY_REQUEST_CRITERIA TABLE;
    /
    CREATE OR REPLACE TYPE T_O_PARTY_REQUEST_CRITERIA
    AS AN OBJECT
    (
    SYSTEM_IDENTIFER VARCHAR2 (50).
    PROCESS_TYPE VARCHAR2 (50).
    UPDATED_BY VARCHAR2 (50).
    STATUS VARCHAR2 (50).
    CHILD_REQUEST_INDICATOR VARCHAR2 (25).
    TRACKING_REQUEST_INDICATOR VARCHAR2 (25).
    REQUEST_TYPE VARCHAR2 (50).
    REQUEST_TYPE_CLASS_NAME VARCHAR2 (50).
    PARTY_KEY_IDENTIFIER T_T_PARTY_KEY_IDENTIFIER,
    ADDTN_IDENTIFIER_INFO T_T_ADDTN_IDENTIFIER_INFO
    )
    /

    Finally the two entries are type again.my question is how to pass the values of these two T_T_PARTY_KEY_IDENTIFIER and T_T_ADDTN_IDENTIFIER_INFO. I defined the last two types now.

    CREATE OR REPLACE TYPE T_T_PARTY_KEY_IDENTIFIER
    AS THE T_O_PARTY_KEY_IDENTIFIER TABLE;
    /

    CREATE OR REPLACE TYPE T_T_ADDTN_IDENTIFIER_INFO
    AS THE T_O_ADDTN_IDENTIFIER_INFO TABLE;
    /

    CREATE OR REPLACE TYPE T_T_ADDTN_IDENTIFIER_VALUES
    AS THE T_O_ADDTN_IDENTIFIER_VALUES TABLE;
    /

    CREATE OR REPLACE TYPE T_O_PARTY_KEY_IDENTIFIER
    AS AN OBJECT
    (
    PARTY_KEY_TYP_NM VARCHAR2 (50).
    PARTY_KEY_VALUE VARCHAR2 (50)
    )
    /

    CREATE OR REPLACE TYPE T_O_ADDTN_IDENTIFIER_INFO
    AS AN OBJECT
    (
    ADDTN_INFO_KEY_TYP_NM VARCHAR2 (50).
    ADDTN_IDENTIFIER_VALUES T_T_ADDTN_IDENTIFIER_VALUES
    )
    /

    CREATE OR REPLACE TYPE T_O_ADDTN_IDENTIFIER_VALUES
    AS AN OBJECT
    (
    ADDTN_RQST_VALUE VARCHAR2 (50).
    ADDTN_RQST_VAL_DT TIMESTAMP (6).
    NUMBER OF ADDTN_RQST_VAL_NUM (19: 2)
    )
    /

    I glued the request my function here. When I pass the value null in the entry for these 2 types my query works. otherwise, it's say no valid Identifier.First I tried with the first Type.

    I am passing the value that
    (PRKYTP. PRTY_KEY_TYP_NM = ITTPRC. PARTY_KEY_IDENTIFIER. PARTY_KEY_TYP_NM OR ITTPRC. PARTY_KEY_IDENTIFIER. PARTY_KEY_TYP_NM = 'ALL' OR ITTPRC. PARTY_KEY_IDENTIFIER. PARTY_KEY_TYP_NM IS NULL).

    Error is Error (34,147): PL/SQL: ORA-00904: "ITTPRC." "" "" PARTY_KEY_IDENTIFIER '. "" PARTY_KEY_TYP_NM': invalid identifier


    SELECT DISTINCT T_O_PARTY_REQUEST_IDENTIFIER (PR. IN BULK PRTY_RQST_ID) GATHER IN T_T_P_R_CRITERIA
    TABLE (CAST (I_T_T_PARTY_REQUEST_CRITERIA AS T_T_PARTY_REQUEST_CRITERIA)) ITTPRC;
    PRTY_RQST PR
    JOIN BUSN_APPLC ON BIAP BIAP. BUSN_APPLC_ID IS PR. BUSN_APPLC_ID
    JOIN INTN_STATS INSTS ON INSTS. INTN_STATS_ID IS PR. INTN_STATS_ID
    JOIN INTN_PROCES_TYP INTPTY ON INTPTY. INTN_PROCES_TYP_ID IS PR. INTN_PROCES_TYP_ID
    LEFT JOIN RQSTYP ON RQSTYP RQST_TYP. RQST_TYP_ID IS PR. RQST_TYP_ID
    JOIN ADDTN_RQST_INFO ADTINF WE PR. PRTY_RQST_ID = ADTINF. PRTY_RQST_ID
    JOIN ADDTN_INFO_KEY_TYP ADDKEY ON ADTINF. ADDTN_INFO_KEY_TYP_ID = ADDKEY. ADDTN_INFO_KEY_TYP_ID
    JOIN PRTY_KEY PRTKEY WE PR. PRTY_RQST_ID = PRTKEY. PRTY_RQST_ID
    JOIN PRTY_KEY_TYP PRKYTP ON PRTKEY. PRTY_KEY_TYP_ID = PRKYTP. PRTY_KEY_TYP_ID
    WHERE (BIAP. BUSN_APPLC_NM = ITTPRC. SYSTEM_IDENTIFER OR ITTPRC. SYSTEM_IDENTIFER = 'ALL' OR ITTPRC. SYSTEM_IDENTIFER IS NULL)
    AND (INTPTY. INTN_PROCES_TYP_NM = ITTPRC. PROCESS_TYPE OR ITTPRC. PROCESS_TYPE = 'ALL' OR ITTPRC. PROCESS_TYPE IS NULL)
    AND (PR. UPDT_BY = ITTPRC. UPDATED_BY OR ITTPRC. UPDATED_BY = 'ALL' OR ITTPRC. UPDATED_BY IS NULL)
    AND (INSTS. INTN_STATS_NM = ITTPRC. STATUS OR ITTPRC. STATE = 'ALL' OR ITTPRC. THE STATUS IS NULL)
    AND (PR. CHLD_RQST_IND = ITTPRC. CHILD_REQUEST_INDICATOR OR ITTPRC. CHILD_REQUEST_INDICATOR = 'ALL' OR ITTPRC. CHILD_REQUEST_INDICATOR IS NULL)
    AND (PR. TRACK_RQST_IND = ITTPRC. TRACKING_REQUEST_INDICATOR OR ITTPRC. TRACKING_REQUEST_INDICATOR = 'ALL' OR ITTPRC. TRACKING_REQUEST_INDICATOR IS NULL)
    AND (RQSTYP. RQST_TYP_NM = ITTPRC. REQUEST_TYPE OR ITTPRC. REQUEST_TYPE = 'ALL' OR ITTPRC. REQUEST_TYPE IS NULL)
    AND (RQSTYP. RQST_CLASS_NM = ITTPRC. REQUEST_TYPE_CLASS_NAME OR ITTPRC. REQUEST_TYPE_CLASS_NAME = 'ALL' OR ITTPRC. REQUEST_TYPE_CLASS_NAME IS NULL)
    - AND (ITTPRC. PARTY_KEY_IDENTIFIER IS NULL).
    - AND (ITTPRC. ADDTN_IDENTIFIER_INFO IS NULL).
    AND (PRKYTP. PRTY_KEY_TYP_NM = ITTPRC. PARTY_KEY_IDENTIFIER. PARTY_KEY_TYP_NM OR ITTPRC. PARTY_KEY_IDENTIFIER. PARTY_KEY_TYP_NM = 'ALL' OR ITTPRC. PARTY_KEY_IDENTIFIER. PARTY_KEY_TYP_NM IS NULL).

    someone can say is that this approach is correct. If this isn't the case, suggest me.

    I am passing the value that
    (PRKYTP. PRTY_KEY_TYP_NM = ITTPRC. PARTY_KEY_IDENTIFIER. PARTY_KEY_TYP_NM OR

    PART_KEY_IDENTIFIER here is a nested table. If you cannot join it like that.

    Try like this

    prkytp.prty_key_typ_nm in (select party_key_typ_nm from table(ittprc.party_key_identifier)) or
    

    Here is an example based on the EMP table.

    I created as a result of nested table.

    SQL> create or replace type my_emp_list as table of number(10)
      2  /
    
    Type created.
    
    SQL> create or replace type my_dept_obj as object(deptno number(10), emp_list my_emp_list)
      2  /
    
    Type created.
    
    SQL> create or replace type my_dept_tbl as table of my_dept_obj
      2  /
    
    Type created.
    

    I'm going to use the data of the table nested within a query to get the value of the emp table

     my_dept_tbl
     (
       my_dept_obj
       (
         10, my_emp_list(1,2,3,4,5)
       ),
       my_dept_obj
       (
         20, my_emp_list(6,7,8,9)
       )
     )
    

    The query would be like this

    SQL> select e.*
      2    from emp e
      3    join table
      4         (
      5           my_dept_tbl
      6           (
      7             my_dept_obj
      8             (
      9               10, my_emp_list(7839,7782)
     10             ),
     11             my_dept_obj
     12             (
     13               20, my_emp_list(7566,7369)
     14             )
     15           )
     16         ) t
     17      on e.deptno = t.deptno
     18     and e.empno in (select column_value from table(t.emp_list))
     19  /
    
         EMPNO ENAME  JOB              MGR HIREDATE         SAL        COM     DEPTNO
    ---------- ------ --------- ---------- --------- ---------- ---------- ----------
          7839 KING   PRESIDENT            17-NOV-81       5000          0         10
          7782 CLARK  MANAGER         7839 09-JUN-81       2450          0         10
          7566 JONES  MANAGER         7839 02-APR-81       2975          0         20
          7369 SMITH  CLERK           7902 02-APR-81       2975          0         20
    
    SQL> 
    
  • WHERE condition in a sql statement

    Hello people,

    I have a screen with data grid where one of the columns is STATES_CODES and other VOLUMES one. Grid consists of several lines. I need to create a CUSTOM SEARCH field that will be filtering on this database.

    Unfortunately a customer wants to enter a search string with custom functions: '+' (plus) to include in the selection of the result and "-" (less) to exclude from the selection of the results. For example: "+ IT + -100". Based on this string, I need to return only the States HE and and exclude volumes with a value of 100.

    A tip how to build a query where condition, so it will be more effective as possible?

    Simple example:

    test data:

    with t (select 'IT' State, volume 90 of any union double

    Select 'IT' State, 100 volumes of all the double union

    Select 'IT' State, 100 volumes of all the double union

    Select 'OF' State, 90 volume of all the double union

    Select 'OF' State, in 100 volumes of all the double union

    Select 'OF' State, in 100 volumes of all the double union

    Select 'NL' State, 90 volume of all the double union

    Select 'NL' State, 100 volumes of all the double union

    Select 'NL' State, 100 volumes of all the double union

    Select 'FR' State, 90 volume of all the double union

    Select 'FR' State, in 100 volumes of all the double union

    Select 'FR' State, in 100 volumes of all the double union

    Select 'ARE' State, 90 volume of all the double union

    Select 'ARE' State, in 100 volumes of all the double union

    Select 'ARE' State, 100 volumes of double

    )

    Select * from t

    Search string: "+ IT + - 100".

    I thought to somehow using regular expressions REGEXP_LIKE condition, but do not know how to change the entered search string in above format as long as the regular expression.

    And if you want to be specific about the characters representing the State and the numbers represent the amount then you will need to divide them into more...

    SQL > with t (select 'IT' State, 90 volume of all the double union)
    2 Select 'IT' State, 100 volumes of all the double union
    3 select 'IT' State, 100 volumes of all the double union
    4. Select 'FROM' State, 90 volume of all the double union


    5. Select 'FROM' State, in 100 volumes of all the double union
    6. Select 'FROM' State, in 100 volumes of all the double union
    7 select 'NL' State, 90 volume of all the double union
    8 select 'NL' State, 100 volumes of all the double union
    9 select 'NL' State, 100 volumes of all the double union
    10. Select 'FR' State, 90 volume of all the double union
    11. Select 'FR' State, in 100 volumes of all the double union
    12. Select 'FR' State, in 100 volumes of all the double union
    13. Select 'ARE' State, 90 volume of all the double union
    14 select 'ARE' State, in 100 volumes of all the double union
    15 select 'ARE' State, in 100 volumes of double
    16              )
    17, ch. as (select "+ IT + -100"as the double criterion)
    18, split as (select regexp_substr (trim (', ' regexp_replace (criteria,'([+ -]) ', ', \1')), "[^,] +', 1, level") as a criterion of)
    19 c
    20 connect the regexp_substr (trim (', ' regexp_replace (criteria,'([+ -]) ', ', \1')), "[^,] +', 1, level") is not null
    21                 )
    22, inc_state as (select substr(criteria,2) as a criterion
    23 split
    where the 24 regexp_like(criteria,'^\+[A-Z]+')
    25                     )
    26, inc_vol as (select substr(criteria,2) as a criterion
    27 split
    where the 28 regexp_like(criteria,'^\+[0-9]+')
    29                    )
    30, exc_state as (select substr(criteria,2) as a criterion
    31 split
    where the 32 regexp_like(criteria,'^\-[A-Z]+')
    33                     )
    34, exc_vol as (select substr(criteria,2) as a criterion
    35 split
    where the 36 regexp_like(criteria,'^\-[0-9]+')
    37                    )
    38-
    39 select *.
    40 t
    where the 41 (exists (select 1
    inc_state 42
    43 where inc_state.criteria = t.state
    ((44) or (select count (*) in inc_state) = 0)
    45 and (exists (select 1
    46 by inc_vol
    where the 47 inc_vol.criteria = t.volume
    ((48) or (select count (*) in inc_vol) = 0)
    49 and (not exists (select 1
    50 to exc_state
    where the 51 exc_state.criteria = t.state
    ((52) or (select count (*) in exc_state) = 0)
    53 and (not exists (select 1
    exc_vol 54
    where the 55 exc_vol.criteria = t.volume
    ((56) or (select count (*) in exc_vol) = 0)
    57.

    ST VOLUME
    -- ----------
    HE 90
    90

  • explain query plan uses no unique index with where condition

    Hi all

    I use in the 10.2.0.5 oracle database Enterprise edition 64-bit on 64-bit windows server 2008.

    I'm following this tutorial on my own table

    Guide to understanding Oracle QUERY PLAN - 10 minutes

    my questions are below

    Analyze table LIB_CLASSIFICATIONS compute statistics;
    explain plan for  SELECT class_id  FROM lib_classifications WHERE class_no = '538' ;
    select * from table(dbms_xplan.display);
    

    the result is less than

    Hash value of plan: 3022072076

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

    | ID | Operation | Name                | Lines | Bytes | Cost (% CPU). Time |

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

    |   0 | SELECT STATEMENT |                     |     1.    10.     5 (0) | 00:00:01 |

    |*  1 |  TABLE ACCESS FULL | LIB_CLASSIFICATIONS |     1.    10.     5 (0) | 00:00:01 |

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

    Information of predicates (identified by the operation identity card):

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

    1 - filter ("CLASS_NO" = '538')

    DESC LIB_CLASSIFICATIONS

    Name of Type Null

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

    CLASS_ID NOT NULL NUMBER (10)

    CLASS_DESC VARCHAR2 (50)

    REMARKS VARCHAR2 (250)

    CLASS_NO VARCHAR2 (20)

    CLASS_TYPE VARCHAR2 (10)

    CREATE_USER VARCHAR2 (10)

    MODIFY_USER VARCHAR2 (10)

    CREATE_DATE DATE

    MODIFY_DATE DATE

    CLASS_CATEGORY_ID VARCHAR2 (10)

    class_id has a primary key.

    now when I remove the condition where the query, the result is lower;

    Analyze table LIB_CLASSIFICATIONS compute statistics;
    explain plan for  SELECT class_id  FROM lib_classifications ;
    select * from table(dbms_xplan.display);
    

    the result is less than

    Hash value of plan: 262704430

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

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

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

    |   0 | SELECT STATEMENT |             |  1558.  6232.     2 (0) | 00:00:01 |

    |   1.  FULL RESTRICTED INDEX SCAN FAST | SYS_C005653 |  1558.  6232.     2 (0) | 00:00:01 |

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

    now it's using indexes with INDEX FAST FULL SCAN.

    I need the index using the WHERE condition as well.

    How to do this?

    Thank you.

    you have indexes on the column class_id not on class_no column how u would expect index to use when there is no index on the column class_no

  • How to pass the PHP variable to menu jQuery Modal popup

    Hello

    Need help to find how to pass a variable in php (which is recovered in a while loop) in a modal window.

    There is a list of users on the page (shown with a while loop), with buttons Remove next to each of them.

    When the administrator clicks the button Delete for that specific user, a modal window appears confirming their action.

    I can't find a simple way to communicate the id of the user to be removed the modal (where the query is performed, once 'Yes to confirm deletion' is clicked).

    I deleted the jQuery, seeing as how this could change how the modal opens and closes.

    This is the modal:

    < div class = "modal" >

    < div class = "modal_wrapper" >

    < div class = "modal_title" > are you sure you want to delete this user? < / div >

    < div class = "modal_content" >

    < div class = "modal_button_no" > n < / div >

    < div class = "modal_button_yes" > Yes, delete it < / div >

    < / div >

    < / div >

    < / div >

    < div class = "delete_btn" > delete user < / div >

    The variable with the user name is:

    $user_id

    Any help would be much appreciated!

    Thank you

    It is a fairly simple procedure. Personally I'm not sure that its worth the effort for a box of administration but good we all have different opinions - there is no wrong or it.

    Suppose that your buttons delete on your page are anchor tags and you have locked down your database of names to create anchor tags. The value of dir below has been inserted via php through loop and is your RegID.

    Delete

    Delete

    Delete

    Delete

    When you click the anchor tag (that class name "delete") opens a lightbox. You also have to collect the value of "dir" at the time the lightbox opens - happening of value to a hidden in the lighbox code entry field.

    The value of the "dir" command is passed to the light table in a hidden form field:

    "You have a delete button in the light table with the class of ' delete_record ':

    Delete the record

    When the user clicks on the button Delete in the light table the value of hidden form field is harvested and forwarded to your page of delete_record.php via the jquery/ajax script below, were also on the same page.

    Your delete_record.php would look like below, assuming that you use mysqli or if you are using mysql then you would follow the same delete procedure as usual.

    <>

    $conn = new mysqli ('localhost', 'root', 'root', 'name');

    {if ($conn-> connect_errno)}

    echo $conn-> connect_error;

    Die (' sorry, can not connect to the moment, try again later ');

    }

    ?>

    <>

    delete the record

    $record_id = $conn-> real_escape_string (stripslashes (trim($_POST['record_id'])));

    $conn-> query ("' DELETE FROM names WHERE record_id = ' $record_id ' '");

    $record_deleted = "true";

    ?>

    An alert box will appear at the end, confirming that the record has been deleted. You do not have to deploy an ugly alert box - you sends the data to the device of light therapy from the delete_record.php page in a few nice melted in

    If you want to be more subtle about it.

  • How to grant under request

    Can you please let me know how to grant under request:

    SELECT the element, dest, tlt, src_eff

    TMP_UDT_SKU-TLT4 T4

    where (item, dest, src_eff

    IN (SELECT an item, dest, MIN (src_eff)

    of TMP_UDT_SKU-TLT4

    GROUP BY article, dest)

    Note: TMP_UDT_SKU-TLT4 table contains 116852049 records.

    user9370235 wrote:

    Yes, I tried with all the queries posted by Greg, John and knani. But performance is not improved. Please, help me to tune more far.

    He should have things improved a bit - they should be scanning your table once rather than twice.

    Publish the plan of the request of John explain command.

    Also, if you have enough resource, consider using parallelism on the query.

  • It costs more to go to monthly payments?  How to pass the year to monthly payments?

    It costs more to go to monthly payments?  How to pass the year to monthly payments?

    Diane H,

    Yes, the month subscriptions are expensive as they come without see all annual contract, Adobe - General conditions of subscription

    To change your plan see, update or change your plan creative cloud

    Let us know if that helps.

    Kind regards

    Bani

  • How to pass the start settings in starting a virtual machine?

    How can I use PowerCLI to start a new Linux VM and the nucleus of some startup parameters?

    What would be more simple: (a) to make and use a virtual machine model, or (b) to boot from an ISO image, or (c) start with a Linux VM and the clone who?

    The basic Linux is RedHat on an ISO on the network (ISO can be on a local path running the PowerCLI script if necessary).  If a model would be easier then a diagram how to make one of my ISO would be great!

    RedHat Linux can be configured by passing parameters of the kernel startup, so kickstart configures the system, something like

    KS=/my/path/KS.cfg otherparams

    where KS.cfg says kickstart what to do.

    How to pass the start settings in the new virtual machine?

    (It is probably completely irrelevant, but I work with Xen using bash scripting and)

    $UUID = xe model vm-install = "RedHatLinux64bit."

    XE vm-param-set uuid = $UUID PV-args="ks=/my/path/ks.cfg '.

    XE-vm-beginning uuid = $UUID

    now, it must be implemented on ESX. To determine when the new VM is fuly configured, my scripts from kickstart wrote a semaphore to be detected by the bash script.)

    I know very little about ESX and PowerCLI details will be particularly useful if you please!

    Thank you!

    Enjoy your break

Maybe you are looking for

  • Why a trail shaded in an album of my friends?

    Why a track appears dimmed in an album of my friends, and what that means? iTunes can play the track if you click on it, but if it comes after another track iTunes jump it! I have the latest version of iTunes.

  • Remove the iWeb site

    I created a site for my organization using iWeb. About 12 months ago, we changed our host (for Wix), but I still have a customer who pays to see the old site even after their cache cleaning and using different browsers. I have more access to the comp

  • ChaceResult empty to blackBerry Smartphones

    Also when I go to the internet on my BlackBerry "BOLD", I get a message saying something like "CacheResult empty." Help, please -DaFrauge

  • Unable to VPN outside to the

    I just walked in this job to halfway through a passage of a software firewall to the cisco box. The config on this thing is crazy. I need help! I need a VPN client from outside to the inside, so the IT Department. can access the network hardware. Nex

  • Re-install the software to windows 7 but missing at the end

    I had to wip for my drive for many reasons and was able to load my OS drive, but it seems that I missed Dell the Microsoft Works disc that came with the computer when I ordered it. Any ideas on how I can get this software without going to the store a