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

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

  • Oracle: how to use the max() function in expression box

    How to use the max() function in the case where expression, please explain with an example

    Hope this helps and should be explicit

    with t as
    (select 1 col,100 col2 from dual union
    select 2 ,100 from dual union
    select 2 ,200 from dual union
    select 3,100  from dual union
    select 3,200  from dual  )
    select col, case when max(col2)=100 then 'with 100 range'
    when  max(col2)=200 then 'with 200 range' end  from t group by col
    
  • 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.

  • 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

  • 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 resxtop feature NFS/power of 4.0 U2 with vMA?

    Hi guys,.

    We have been migrated to the use of ESXi in our environment vSphere and the VMAs lets do a little of the day-to-day management of the environment. Now that U2 is out, we are interested in access to the new functionality of NFS/power of esxtop metrics, however the version of the vCLI which comes with VMA have currently access to these settings. So far the only way to see console should be and esxtop running, that I regard as quite friendly.

    Because we do not have to enable SSH on our ESXi hosts, we are looking for something we can run through the vMA. I did a scan of vima-updated quick of the unit and nothing appears, which makes sense since I have seen security RPMs runoff through it so far. So should I just try to dig out a new version of the vCLI and layer it on or is there a more elegant approach?

    Thanks for the comments!

    Hello

    The current version of vMA 4.0 is based on the GA of vCLI release 4.0, was not a refreshed in bits of vMA for Update1 who had a few minor vCLI corrected or improved from the last update 2 which includes resxtop, VMware does not a good job of keeping these things up to date. However, simply download the latest version of vCLI 4.0 Update 2 install on vMA, which will provide you with the version the most recent. I hope that VMware does a better job of providing these via vima-updated, because it is a good method of keeping the virtual appliance to update without having to re - deploy.

    =========================================================================

    William Lam

    VMware vExpert 2009,2010

    VMware scripts and resources at: http://www.virtuallyghetto.com/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • How to read the value of list boxes by iteration in a loop For?

    I have a lot of list boxes on the front of my VI. I want to know how to read the value of this combo with a loop boxes For. The point is that I don't know how to get the reference of each combo box in a loop.

    Any information would be welcome. Thank you!

    su27 wrote:

    I have a lot of combo boxes on the front of my VI [...]

    Be sure to close the references that you have finished with them.

  • 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

  • kindly tell how to use the unique value of a table with the index 0

    kindly tell how to use the unique value of a table with the index 0

    Hi
     
    Yep, use Index Array as Gerd says. Also, using the context help ( + h) and looking through the array palette will help you get an understanding of what each VI does.
     
    This is fundamental LabVIEW stuff, perhaps you'd be better spending some time going through the basics.
     
    -CC
  • 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

  • HP Elitebook 8740w: validity and windows 10 fingerprint sensor: does not

    Dear all, I come to you today because I have already tried many (perhaps all) of the suggested solutions posted on this forum. Unfortunately, I could never get a correct installation, work. After upgrading to windows 10 (automatic update of windows -

  • Pavilion g6 2323dx windows 7 drivers?

    Hello I have a g6-2323dx pavilion and removed windows 8 because I like not and knew from the beginning that I would need drivers for win 7.  Anyone know where to find the g6 drivers for win 7 or someone did it for g6, because I could not fine the app

  • Cannot install HP 1320 on Windows 8.1 network

    I have Windows 8.1 on a LAN, and a HP LaserJet 1320 PCL6 printer is connected to another machine on the network.  The printer appears in the 'network' thingy on explore just as it is supposed to, so the network connection is OK.  I downloaded the lat

  • HP Envy 4500 will not scan to the MacBook Air Yosemite 10.10.3

    My printer connects wirelessly with my MacBook to print. It seems perfectly fine copy. However, the scan will be get no MacBook computer a friend and scan to it and refuses to scan at mine. I tried printing via system preferences > printer and scanne

  • HP Pavilion 11 360: button / stop does not

    I close the laptop and then when I want to open it again the power button works and the system seems to be booting the system. However, when the HP sign disappears the screen becomes black although I can still hear the fan operation. It does not have