How to use the clause type without hard-coding the values inside?

Query

Select acct_no,

gl_code,

CASE

WHEN entry_type_label ("earned INCOME") THEN

"Recipes".

ON THE OTHER

"Deferred income of credit."

END as entry_type_label,

CASE

WHEN entry_type_label IN ("opening balance") THEN

"Opening balance".

WHEN entry_type_label ("deferred revenue CREDIT") THEN

"The amount of the invoice.

WHEN entry_type_label ("earned INCOME") THEN

"Recipes".

WHEN entry_type_label IN ('closing balance") THEN

"Closing balance.

ON THE OTHER

"Deferred income of credit."

END tag as,

entry_type_no,

orig_chg_start_date,

period_no,

-amt as amt

of revrec_test

WHERE acct_no = 1788562

AND IN (2, 4) entry_type_no (acct_no model dimension,

gl_code,

entry_type_label,

entry_type_no,

orig_chg_start_date,

period_no) measures (amt) rules upsert

all (amt 1788562,

' NON-10011561',

"Opening balance"

2,

2 OCTOBER 17 08.30.00 AM'.

190 = 0,

AMT 1788562,

' NON-10011561',

"Closing balance."

2,

2 OCTOBER 17 08.30.00 AM'.

190 = amt 1788562,

' NON-10011561',

"Deferred income of credit."

2,

2 OCTOBER 17 08.30.00 AM'.

190 - amt 1788562,

"WON-10011561',

"Revenue."

4,

2 OCTOBER 17 08.30.00 AM'.

190,

AMT 1788562,

' NON-10011561',

"Opening balance"

2,

2 OCTOBER 17 08.30.00 AM'.

191 = amt 1788562,

' NON-10011561',

"Closing balance."

2,

2 OCTOBER 17 08.30.00 AM'.

190,

AMT 1788562,

' NON-10011561',

"Deferred income of credit."

2,

2 OCTOBER 17 08.30.00 AM'.

191 = 0,

AMT 1788562,

' NON-10011561',

"Closing balance."

2,

2 OCTOBER 17 08.30.00 AM'.

191 =.

(amt 1788562, "UNEARNED-10011561',"Opening balance", 2,")

2 October 17 08.30.00 AM', 191 + amt 1788562, "UNEARNED-10011561',

("'Revenue deferred credit', 2, 08.30.00 October 2, 17 h", 191)-amt

1788562,

"WON-10011561',

"Revenue."

4,

2 OCTOBER 17 08.30.00 AM'.

191,

AMT 1788562,

' NON-10011561',

"Opening balance"

2,

2 OCTOBER 17 08.30.00 AM'.

192 = amt 1788562,

' NON-10011561',

"Closing balance."

2,

2 OCTOBER 17 08.30.00 AM'.

191,

AMT 1788562,

' NON-10011561',

"Deferred income of credit."

2,

2 OCTOBER 17 08.30.00 AM'.

192 = 0,

AMT 1788562,

' NON-10011561',

"Closing balance."

2,

2 OCTOBER 17 08.30.00 AM'.

192 =.

(amt 1788562, "UNEARNED-10011561',"Opening balance", 2,")

2 October 17 08.30.00 AM', 192 + amt 1788562, "UNEARNED-10011561',

"Revenue deferred credit", 2, 08.30.00 2 October 17: "(, 192)-amt"

1788562,

"WON-10011561',

"Revenue."

4,

2 OCTOBER 17 08.30.00 AM'.

192,

AMT 1788562,

' NON-10011561',

"Opening balance"

2,

2 OCTOBER 17 08.30.00 AM'.

193 = amt 1788562,

' NON-10011561',

"Closing balance."

2,

2 OCTOBER 17 08.30.00 AM'.

192,

AMT 1788562,

' NON-10011561',

"Deferred income of credit."

2,

2 OCTOBER 17 08.30.00 AM'.

193 = 0,

AMT 1788562,

' NON-10011561',

"Closing balance."

2,

2 OCTOBER 17 08.30.00 AM'.

193 =.

(amt 1788562, "UNEARNED-10011561',"Opening balance", 2,")

2 October 17 08.30.00 AM', 193 + amt 1788562, "UNEARNED-10011561',

("Revenue deferred credit", 2, 08.30.00 2 October 17: ', 193)-amt

1788562,

"WON-10011561',

"Revenue."

4,

2 OCTOBER 17 08.30.00 AM'.

193)

ORDER BY period_no, entry_type_no;

The query above works fine. But I hardcoded the values. I want to do the same operation for the other account number which will have different non periodical. How can I reach it?

Thanks in advance.

And why do you need a model for that? If I understand the reqs OK:

with t as)

Select acct_no,

"U-11561' gl_code,

"Deferred income credit ' entry_type_label,.

2 entry_type_no,

orig_chg_start_date,

period_no,

Max)

case entry_type_no

When 2 then - amt

0 otherwise

end

) amt,.

Description of the "invoice."

2 weight

from table_one

Acct_no group,

orig_chg_start_date,

period_no

Union of all the

Select acct_no,

gl_code,

entry_type_label,

entry_type_no,

orig_chg_start_date,

period_no,

-amt,

Description "paid the Bill."

3 weight

from table_one

where entry_type_no = 4

Union of all the

Select acct_no,

"U-11561' gl_code,

"Deferred income credit ' entry_type_label,.

2 entry_type_no,

orig_chg_start_date,

period_no,

AMT 0,.

case lvl

When 1 then 'account opening. "

of other "close account."

description of the end,

case lvl

When 1 then 1

another 99

end weight

from table_one,.

(select level lvl from dual connect by level<=>

Acct_no group,

orig_chg_start_date,

period_no,

LVL

)

Select acct_no,

gl_code,

entry_type_label,

entry_type_no,

orig_chg_start_date,

period_no,

case

what weight (sum) (1.99) can

case weight

When 2 then amt

When 3 then - amt

0 otherwise

end

)

During)

acct_no partition

order of period_no,

weight

)

AMT else

AMT of end,

Description

t

order of acct_no,

period_no,

weight

/

ACCT_NO GL_CODE ENTRY_TYPE_LABEL ENTRY_TYPE_NO ORIG_CHG_START_DATE PERIOD_NO AMT DESCRIPTION
------- ---------------------------- ----------------------- ------------- --------------------- --------- ---------- ---------------
1001 U-11561 deferred revenue credit 2 2 October 17 08.30.00 AM 100 0 opening account
1001 U-11561 deferred revenue credit 2 Bill October 2, 17 08.30.00 AM 100 44
E-11561 1001 recipes 4 08.30.00 2 October 17: 100 13.87 paid invoice

1001 U-11561 deferred revenue credit 2 2 October 17 08.30.00 AM 100 30.13 closing account
1001 U-11561 deferred revenue credit 2 2 October 17 08.30.00 AM 101 30.13 opening account
1001 U-11561 deferred revenue credit 2 2 October 17 08.30.00 AM 101 0 Bill
E-11561 1001 recipes 4 08.30.00 2 October 17: 101 14,35 paid invoice

1001 U-11561 deferred revenue credit 2 2 October 17 08.30.00 AM 101 15.78 closing account
1001 U-11561 deferred revenue credit 2 2 October 17 08.30.00 AM 102 15.78 opening account
1001 U-11561 deferred revenue credit 2 2 October 17 08.30.00 AM 102 Bill 0
E-11561 1001 recipes 4 08.30.00 2 October 17: 102 14.83 invoice paid

1001 U-11561 deferred revenue credit 2 2 October 17 08.30.00 AM 102.95 close account
1001 U-11561 deferred revenue credit 2 2 October 17 08.30.00 AM 103.95 opening account
1001 U-11561 deferred revenue credit 2 2 October 17 08.30.00 AM 103 Bill 0
E-11561 1001 recipes 4 08.30.00 2 October 17: 103.95 invoice paid

1001 U-11561 deferred revenue credit 2 2 October 17 08.30.00 AM 103 0 closing account
1002 U-11561 deferred revenue credit 2 17 November 13 09.30.00 AM 104 0 opening account
1002 U-11561 deferred revenue credit 2 17 November 13 09.30.00 AM 60 104 Bill
1002 fixed costs recurring revenue COA Code 4 09.30.00 November 17, 13 h 104 9.13 invoice paid

1002 U-11561 deferred revenue credit 2 17 November 13 09.30.00 AM 104 50.87 closing account
1002 U-11561 deferred revenue credit 2 17 November 13 09.30.00 AM 105 50.87 opening account
1002 U-11561 deferred revenue credit 2 December 20, 13 09.30.00 AM 105 50.87 opening account
1002 U-11561 deferred revenue credit 2 09.30.00 December 20, 13 h 105 19.24 invoice
1002 U-11561 deferred revenue credit 2 17 November 13 09.30.00 AM 105 0 Bill
1002 fixed costs recurring revenue COA Code 4 09.30.00 November 17, 13 h 105 44,91 paid invoice

1002 fixed costs recurring revenue COA Code 4 December 20, 13 09.30.00 AM 105 - 7.82 Bill paid

1002 fixed costs recurring revenue COA Code 4 09.30.00 December 20, 13 h 105 3.93 invoice paid

1002 U-11561 deferred revenue credit 2 17 November 13 09.30.00 AM 105 29.09 closing account
1002 U-11561 deferred revenue credit 2 December 20, 13 09.30.00 AM 105 29.09 closing account
1002 U-11561 deferred revenue credit 2 17 November 13 09.30.00 AM 106 29.09 opening account
1002 U-11561 deferred revenue credit 2 December 20, 13 09.30.00 AM 106 29.09 opening account
1002 U-11561 deferred revenue credit 2 December 20, 13 09.30.00 AM 106 0 Bill
1002 U-11561 deferred revenue credit 2 17 November 13 09.30.00 AM 106 0 Bill
1002 fixed costs recurring revenue COA Code 4 09.30.00 November 17, 13 h 106 44,91 paid invoice

1002 fixed costs recurring revenue COA Code 4 09.30.00 December 20, 13 h 106 11.75 invoice paid

1002 fixed costs recurring revenue COA Code 4 December 20, 13 09.30.00 AM - 23.47 106 paid

1002 U-11561 deferred revenue credit 2 17 November 13 09.30.00 AM 106-4.1 closing account
1002 U-11561 deferred revenue credit 2 December 20, 13 09.30.00 AM 106-4.1 closing account
1002 U-11561 deferred revenue credit 2 December 20, 13 09.30.00 AM 107 - 4.1 opening account
1002 U-11561 deferred revenue credit 2 17 November 13 09.30.00 AM 107 - 4.1 opening account
1002 U-11561 deferred revenue credit 2 17 November 13 09.30.00 AM 107 Bill 0
1002 U-11561 deferred revenue credit 2 December 20, 13 09.30.00 AM 107 Bill 0
1002 fixed costs recurring revenue COA Code 4 December 20, 13 09.30.00 AM - 13.69 107 paid invoice

1002 fixed costs recurring revenue COA Code 4 November 17, 13 09.30.00 AM 107 35.91 invoice paid

1002 fixed costs recurring revenue COA Code 4 09.30.00 20 December 13 AM 107 6,86 invoice paid

1002 U-11561 deferred revenue credit 2 17 November 13 09.30.00 AM 107 - 33.18 closing account
1002 U-11561 deferred revenue credit 2 December 20, 13 09.30.00 AM 107 - 33.18 closing account

47 selected lines.

SQL >

SY.

Tags: Database

Similar Questions

  • using the function - how to use the values of the input variables on the table select statement names

    Hello community, I have a problem when creating a function. The purpose of this function is to check the table of weather gave yesterday or not. We must check this on different tables on different sachems. We are creating a function with input variables.

    CREATE OR REPLACE FUNCTION IN_SCHEMA.IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    )

    RETURNS INTEGER

    AS

    -Declaring variables

    v_is_true INTEGER.

    BEGIN

    SELECT

    CASE

    WHEN MAX (in_datefield) = TRUNC(SYSDATE-1)

    THEN 1

    ON THE OTHER

    0

    END

    IN

    v_is_true

    Of

    in_schema.in_tablename

    ;

    RETURN v_is_true;

    END;

    /

    When creating, I got error: [error] ORA-00942 (44:19): PL/SQL: ORA-00942: table or view does not exist

    How to use the values of the input variables on the table select statement names?

    Hello

    Here's a way you can use dynamic SQL statements for this task:

    CREATE OR REPLACE FUNCTION IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    in_first_date DATE DEFAULT SYSDATE - 1,.

    in_last_date DATE by DEFAULT NULL

    )

    RETURNS INTEGER

    AS

    -IS_YDAYDATA_TO_TABLE returns 1 if in_schema.in_tablename.in_datefield

    -contains all the dates in the in_first_date of the range through included in_last_date

    - and it returns 0 if there is no such lines.

    -If in_last_date is omitted, the search only the data on in_first_date.

    -If in_first_date is omitted, it defaults to yesterday.

    -Time parts of the in_first_date and in_last_date are ignored.

    -Declaring variables

    sql_txt VARCHAR2 (1000);

    v_is_true INTEGER.

    BEGIN

    sql_txt: = 'SELECT COUNT (*).

    || 'FROM ' | in_schema | '.' || in_tablename

    || 'WHERE ' | in_datefield | ' > =: d1'

    || «AND» | in_datefield | '< >

    || 'AND ROWNUM = 1';

    dbms_output.put_line (sql_txt |) '= sql_txt in IS_YDAYDATA_TO_TABLE");  -For debugging

    Sql_txt EXECUTE IMMEDIATE

    IN v_is_true

    With the HELP of TRUNC (in_first_date) - d1

    TRUNC (NVL (in_last_date

    in_first_date

    )

    ) + 1                -- d2

    ;

    RETURN v_is_true;

    END is_ydaydata_to_table;

    /

    DISPLAY ERRORS

    If you must use dynamic SQL statements, put all the SQL statement in a single string variable, such as sql_txt in the example above.  In this way, you can easily see exactly what will be executed.  Comment out the call to dbms_output under test is completed.

    Try to write functions that will address not only the question that you have now, but similar questions that you may have in the future.  For example, now that interest you only to the verification of the data of yesterday, but later, you might want to check another day or range of days.  The above function combines the convenience of a function simple (looks like yesterday data if you don't tell him otherwise) with the power of a more complex function (you can use the same function to check any day or range of days).

  • How to use the value of the page element in other pages too?

    Hi all

    How to pass the value of the item P26_NO from 26 to all other pages (such as 1, 2, 3... 25) using the & P26_NO. ???
    I set the default for this item.but I can't able to find value in the session state itself?

    Please post your suggestion here!

    Thank you and best regards,
    Robette.

    Robette wrote:
    Hi Amelia,.

    Through application process only we can able to save the page element value in session state? is there another way?
    Since my requirement is like I need to display footer text in all the pages, I have the version number included in this text, so I created a table and my intention to create an item and passing the point value for all other pages and see that point value & P26_NO. in the text. Version number is dynamic, it will change at each deployment.
    Is another way simple, other than my approach?

    Thank you best regards &,.
    Robette.

    You should use point demand for it and an application process to fill

    IF :APP_ITEM_NAME IS NULL THEN
      APEX_UTIL.SET_SESSION_STATE('APP_ITEM_NAME','myvalue');
    END IF;
    

    Published by: VC on June 25, 2012 13:48

  • How to use the value of the column in the old testament even another column in the report

    I have a report based on a query like this

    SELECT
    "AAA."
    'BBB '.
    FROM TABLE2

    and AAA is a NUMBER related to the TABLE1 table. I try in the column attributes writing a correct LOV. In this LOV I have to use a current value of the a.
    Fe SELECT CCC | » '|| DDD FROM TABLE1 WHERE EEE = #AAA #.

    The question is how to get the value of AAA to this query (#AAA # dosent work)?

    the second way to fix this problem I thought changed the first request:

    SELECT
    "AAA."
    "BBB."
    APEX_ITEM. SELECT_LIST_FROM_QUERY
    (2, NULL,'SELECT CCC |) » ''|| DDD FROM TABLE1 WHERE EEE = 'AAA' ') "FFF".
    FROM TABLE2

    but problem is the same... You have a solution?

    THX in advanced for any help

    Hello

    OK, try this

    X_ITEM. SELECT_LIST_FROM_QUERY (1, (SELECT CCC |)) » '|| DDD FROM TABLE1 WHERE EEE = AAA),'SELECT CCC | » ''|| DDD, CCC | » ''|| DDD FROM TABLE1 WHERE EEE =' | AAA, ","NO")"FFF ".

    Concerning

    Paul

  • How to extract the values inside the jquery element dialogue modal rigion

    Hi all

    My requeriment is

    Click report link open jquey editable modal dialog and display all values with respective ID values.

    1.I used page header HTML code below

    < link rel = "stylesheet" href = " " http://AJAX.googleapis.com/AJAX/libs/jQueryUI/1.7.2/themes/

    "Redmond/jquery - ui.css" type = "text/css" / >

    " < script src =" http://AJAX.googleapis.com/AJAX/libs/jQuery/1.4.2/jQuery.js "> < / script > .

    " < script src =" http://AJAX.googleapis.com/AJAX/libs/jQueryUI/1.7.2/jQuery-UI.js "> < / script > .

    < script type = "text/javascript" >

    $(function() {})

    () $('#ModalForm').dialog

    {

    modal: true,

    autoOpen: false,

    Width: 600

    buttons: {}

    Back: function() {}

    closeForm();

    } ,

    Approve: function() {}

    addPerson();

    },

    Return_For_Correction: function() {}

    addPerson();

    },

    Reject: function() {}

    addPerson();

    }

    }

    });

    });

    function openForm (TrxId)

    {

    Alert (TrxId);

    $s ('P3_x_trx_id', TrxId);

    $('#ModalForm').dialog ('open');

    }

    function closeForm()

    {

    $('#ModalForm_input[type="text"]').val (»);

    $('#ModalForm').dialog ('close');

    }

    function addPerson()

    {

    var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is updateStatus', 0);

    ajaxRequest.add ('P3_status', $v ('P3_status'));

    var gReturn = ajaxRequest.get ();

    If (gReturn)

    {alert (gReturn)}

    on the other

    {ajaxRequest = null;

    closeForm();

    doSubmit ('SEARCH'); }

    }

    < /script >

    2. static html Id - ModalForm region

    3. region html Header-

    < div id = "ModalForm" title = "View details" style = "display: none" >

    4.footer-

    < / div >

    5. in the same page created 'extraction of line auotomatic' process by using the value of key PK P3_trx_id

    6 Jquery modal region is created but not showing values.

    Hi Dan,.

    You must create a separate page for your modal dialog box,

    Call this dialog in the parent page and pass the value modal page in some hidden item and use the value of the element to retrieve details on the modal dialog box.

    1. change your report Page-> under the header HTML

    
    

    2. change the link from which column you want to call the modal dialog box.

    Target: URL

    URL: javascript:f_modalDetails(#ID#);

    instead ID, pass the value that you want to pass to the modal dialog box that shows you the data associated with the selected line.

    3. go to the page of the form (modal dialog)

    Change your close button that closes the modal dialog box.

    Action: Redirect URL

    Target URL: javascript:window.parent.closeModalDialog();

    Close the Model dialog box using the "submit" button press

    4. create a branch on the processing section of the Page of the page of the modal dialog box

    Branch point: After Processing (After computation, validation and Processing)

    Target type: Page of this Application

    Page: Redirect to the same page

    Request: CLOSE_MODAL

    When you press the button: select the Send button

    NOTE: Branch must be before all the unconditional branch on this page

    5. create a dynamic Action on the Page modal dialog box

    Event: Page load

    Action: Run the JavaScript Code

    Code: javascript:window.parent.closeModalDialog();

    Kind regards

    Jitendra

  • How to use the values in the columns of an interactive report (Apex 5)

    Hello

    I have an interactive report and a link column and I click to set the value of four fields in a subregion with the value of four columns of the report.

    This without submitting the page every time so I think using javascript.

    But what is the right way to do this in 5 Apex?

    How to have a reference to the column of a report (customer.name to the customer or customer.city, for example)?

    Concerning

    Gianpaolo

    Hi gianpagi,

    gianpagi wrote:

    I can't run your code as well, on apex.oracle.com, I have re-product the situation with the emp table and the columns ename, sal and the fields p1_ename, p1_job, p1_sal

    Can you help me.

    https://Apex.Oracle.com/pls/Apex/f?p=4550:1:103040501310506:

    https://Apex.Oracle.com/pls/Apex/f?p=102726:LOGIN_DESKTOP:104044067688962:

    user and developer demo/demo (TR1 workspace)

    Check the application now. I've done the column 'Empno' as link and execution of your dynamic action on click on the link.

    Here are the changes:

    • Edited the "Empno" column attributes and perform the following settings in the properties of 'column link:

    Text link: #EMPNO #.

    Link attributes: class = 'empdetails '.

    Target: URL

    URL: javascript:void (0);

    NOTE: The link does nothing but on the onclick for the event of link DA no real logic.

    • Edited the dynamic action 'assign values' and set the following properties:

    Selection type: jQuery Selector

    jQuery Selector: a.empdetails

    Kind regards

    Kiran

  • How to use the values acquired by different treatments with 9188 OR cDAQ

    Hi guys, I'm trying to use NI DAQ 9188 chasis with temperature measurement module 9214. I plugged in 3 modules to the module and split signals. But I'm not sure that I can easily these values in functions. I'm trying to convert them into table 1 d, but when I converted the table 1 d I can't see the values and use separately from each other. For example, I simply multiply the first value of 1 thermocouple. How could I do that. In addition, the signals in the waveform table 1 is not smooth. What is the reason for this? Thanks in advance.

    Hi James-D,

    Thank you. Now, it is clear to me.

  • Shuttles: How get/use the value of worth shuttle highlighted?

    Hello

    I use traditional apex 4.0.2.00.07 on IE8 with blue theme. I have browsed the forum but couldn't find an answer to the following question:

    I use a standard part of shuttle in one of my forms. I know how to read the 'selected' on the right side values and how to read the "deselected" on the left side. But what I want to do is of taken later, 'stressed' (i.e. once clicked at, but not yet passed to one of the sides) value to use for example in dynamic action.

    What I want to achieve in the end:
    Sometimes, you end up with many very similar and easy to confuse the entries in a shuttle service. I would like to give a user of the information on the last, once you click on in highlight shuttle value before it actually (de) selects. It should not matter if the value is always off (left) or already selected (on the right).
    Clicking once on a value of shuttle, I for example fill elements only display on the same page with additional information for the selection. But to get back them, I need the return value from the folder highlighted.

    A simple example:
    Tables A and B have USER.USER, .NAME and. DESCRIPTION columns each. There can be many-to-many relationships between A and B that are stored in table A2B (includes just two columns FK A_ID and B_ID).

    On my P1 page I want to hold a new record to table A, plus the relationship with existing records in B. I have a shuttle service with source

    "Select B_ID from A2B where A_ID =: P1_AID" combined with a list of values with B.NAME as display and B.ID as return value. I want to view b. information in another article on the page whenever the shuttle in a new value 'B.NAME' is highlighted.

    Any ideas?

    ARO
    Martin

    Hi Martin

    I think it will work in Internet Explorer. Change the run when the Page loads for:

    $("#P44_SHUTTLE_LEFT,#P44_SHUTTLE_RIGHT").click(function(){
    f_emp_detail($('option:selected').val());
    });
    

    Here's a demo

    http://Apex.Oracle.com/pls/Apex/f?p=579:46

    Basically, rather than bind the option element's onclick event, it binds to the list of all Shuttle, then looks up the selected item.

    Note that if you have other lists of selection on the same page, you will need to do the more selective $('option:selected'). for example $(' #itemid option: sélectionné ')

    See you soon

    Shunt

  • How to use the value of the listitem in LIKE condition?

    I have a list box on the screen. The user must select one of the A, B, C and D in the drop-down list.

    After selecting a value any in the drop-down list, the user must press the button.

    When you press the button, only the name of the employee must appear on another element of text whose name

    first character matches the character, the user selects from the list item.

    I use the following code:

    Select ename into: text_item

    from emp where ename like ' %: listbox % ';

    This query will not return the empname.

    Please help someone... Thanks in advance

    Select ename into: text_item

    from emp where ename like '% "| : listbox. » %';

  • How to use the value of the select in SQL queries list

    I have a list with the list of states (P1_STATE) in Page 1. When I send the page, I get the VALUE of P1_STATE in Page 2 to the format: DC:AS:AK. I use the application to display the form in the Page 2 below.

    Select *.
    of STATE_REF
    where IN location_id (: P1_STATE)

    Now the format of P1_STATE will not work in the query. So it's not fetch all results. Is there a way in which the values of the selection list can be used in SQL queries. Thanks for the help.

    Hello

    Try something like:

    select *
    from STATE_REF
    where ':' || :P1_STATE || ':' LIKE '%:' || LOCATION_ID || ':%'
    

    Andy

  • How to use the value in a combo box as a parameter "with these values?

    Hello, new user.

    I have a box of drop-down list on Page 1, on which the user can choose a number of study. The list box is named "P1_STUDY_NBR".

    Then I have a list, a single entry that goes to my form master / detail, which is Page 6. I would like him to go the number of study that the user choose on Page 1.

    In my goal on the list to create/edit entry, I put in the 'Page of this Application"," Page 6 ", then in any of these items, I put in."
    P6_STUDY_NBR

    My question is what to use with these values, where I want the content of the P1_STUDY_NBR. I tried:
    & P1_STUDY_NBR

    and it does not work. If I put in one of the numbers in the study, as 336-00, then it works, but I want to increase the number of study that the user chooses in the drop-down list. What should I do for P1_STUDY_NBR content?

    -Mary

    Hello

    The format should be:

    &P1_STUDY_NBR.
    

    You seem to miss the point at the end

    Andy

  • How to get the value of the interactive report into apex 5 column

    Hello

    I want to create the master detail report with ajax.

    If I want to get the value of a specific column of interactive report when click on one line and has a value of element of selected row column value.

    Then use the elements of value to refresh the details report.

    You have a better idea to refresh the report Details according to select line of the master report without refreshing the whole page?

    Hi SYSMAN2007,

    SYSMAN2007 wrote:

    I want to create the master detail report with ajax.

    If I want to get the value of a specific column of interactive report when click on one line and has a value of element of selected row column value.

    Then use the elements of value to refresh the details report.

    You have a better idea to refresh the report Details according to select line of the master report without refreshing the whole page?

    You can do this with the help of dynamic action. You need to get the value of the column of a line click in IR (using jQuery) and set the value to the elements which, in turn, can be used as a filter to other reports on the same page.

    See: How to use the values in the columns of an interactive report (Apex 5)

    Can you reproduce your problem on apex.oracle.com and share the credentials of the workspace, so that I can demonstrate how this can be achieved.

    See an example of how it can be done with dynamic actions: https://apex.oracle.com/pls/apex/f?p=35467:5

    Kind regards

    Kiran

  • How to read the value attribute and put inside?

    What happens if we want to read the attribute value? And want to put the data of runtime on the value of the attribute as

    < psoID ID = "user id" / >

    How to get the value of the ID as the user id. And how to put the run value on it?

    I can think about is that

    /psoID/@ID/value GOLD psoID/@ID/*[local-name () = 'value']

    And how to put the value inside ID ="? »

    Thank you

    Because we are dealing with a structure of type anyType you must use the functions of node (local name) in combination with predicates ([]) to read or write values (node) of the element:

    To read the value for example use the copy rule:




    This wil read:

    /processResponse/result/psoID/@ID

    on the message:





    You will see the value 'B '.

    To write, you use:




    Kind regards

    Melvin

  • How to extract the values of XMLTYPE column,

    SQL > create table temporary global xmtype_tab (xmlfile xmltype);

    SQL > select * from all_directories;

    SYS RESTOREDIR/home / / dbimptask /.

    insert into xmtype_tab values (xmltype (dbms_xslprocessor.read2clob ('RESTOREDIR ','LAS_SETUP.xml ')));

    1 line of creation.

    SQL > select * from xmtype_tab;

    XMLFILE
    --------------------------------------------------------------------------------
    <? XML version = "1.0"? >
    rowset <>
    < ROW >
    < DATA_CAPTURE_ON > 1 < / DATA_CAPTURE_ON >


    How to extract the values inside each tag?


    XML file has the following data...


    rowset <>
    < ROW >
    < DATA_CAPTURE_ON > 1 < / DATA_CAPTURE_ON >
    < > 9600 BAUD_RATE < / BAUD_RATE >
    < ACK_TIMEOUT > 1 < / ACK_TIMEOUT >
    < TUBE_TRAVEL_LIMIT > 4 < / TUBE_TRAVEL_LIMIT >
    < SEND_SID_TIMEOUT > 1 < / SEND_SID_TIMEOUT >
    < INDEX_Q_TIMEOUT > 2 < / INDEX_Q_TIMEOUT >
    < HW_HANDSHAKING > 1 < / HW_HANDSHAKING >
    < / ROW >
    < / LINES > ';

    I use the Oracle 10.2.0.3 version...

    Why does this work?

    You are missing the tag of the ROWSET:

    select extractvalue (xmlfile, '/ROWSET/ROW/BAUD_RATE') baud_rate
      from xmltype_tab
     where existsnode (xmlfile, '/ROWSET/ROW/BAUD_RATE') = 1;
    
  • How to retrieve the values of character without using single quotes

    Hi all

    How to retrieve the values of character without the use of single quotes. Its Possible in Oracle SQL

    Please answer me...

    For example

    Is actual query-> Select * from employees where name like in("SCOTT", "JAMES", "ALBERT",...);

    I want to--> Select * from employees where name like(SCOTT, JAMES, ALBERT...); -without the use of single quotes.

    Why I need this application, I need to retrieve the records more than 200 employees in a select statement by using name in where clause.

    shagarmahabubjan wrote:

    Hi all

    How to retrieve the values of character without the use of single quotes. Its Possible in Oracle SQL

    Please answer me...

    For example

    Actual query is---> Select * from employees where name like in("SCOTT", "JAMES", "ALBERT",...);

    I want to---> Select * from employees where name like(SCOTT, JAMES, ALBERT...); -without the use of single quotes.

    Why I need this application, I need to retrieve the records more than 200 employees in a select statement by using name in where clause.

    In short... you can't.  The channels are channels, and SQL and PL languages dictate that the string literals are provided within single quotes.

    I don't see how trying to retrieve more than 200 records of employees in the select statement means that you must get rid of the quotes.

    Be clear in what you ask: Re: 2. How can I ask a question on the forums?

    and take note of the FAQ link davidp provided the solution "variable IN the list.

Maybe you are looking for