Display the value in the selection list

Hi all
Any body know how to get the text to display selection list in another text field? Suite of java script displays the value no text, I need another way around. I don't want to change the selection list that the user needs to see the text value.

in the HTML section.
< script language = "JavaScript" type = "text/javascript" >
int f_getText (pThis, pThat) {}
var enter_val = pThis;
var return_val = pThat;
{
gReturn = document.getElementById ("enter_val") .value;
{html_GetElement (return_val) .value = gReturn.toUpperCase ()}
}
}
< /script >
>

in the HTML form element attributes.
onBlur = "javascript:f_getText('P40_LOC_ID','P40_LOCATION')";
"" Thank you

Pascal M

Change your JS function

function f_getText (pThis, pThat){

var  sel=$x(pThis);
$x(pThat).value= sel.options[sel.selectedIndex].text

}

CITY

Published by: city has 8 November 2008 17:24

Tags: Database

Similar Questions

  • Refresh the report area of PL/SQL (not Page) using the value of the select list

    Hello

    I have a report region based on a "body of the PL/SQL function returning a query'which SQL is generated on the selection of a value of an element from the selection list, select action list is"Redirect and set", but this causes the entire page refresh rather than just the region report." I tried to update the report using only a dynamic action on the item list select (Action now reset to 'None'), but now the report does not appear on the choice of the list. Can someone suggest a solution that will allow me to update this report without refreshing the page? I use APEX 4.2.2 and the syntax of the statement is as follows:

    DECLARE

    v_statement VARCHAR2 (500);

    BEGIN

    SELECT query_text
    IN v_statement
    OF sql_queries
    WHERE query_id =: P2_QUERY;

    RETURN v_statement;

    END;

    where P2_QUERY is Select list item,

    Kind regards

    Kevin.

    KevinFitz wrote:

    The displayed report region is subordinate to the point P2_QUERY is NOT NULL. I guess that the region appears not is because the Action for the select list item is set to None, and so P2_QUERY is always NULL.

    No, the region does not appear because it is subordinated to the P2_QUERY being NOT NULL. This means that the region of report never exists on the page displayed in the browser, so it cannot be updated dynamically. (Dynamic updating is not to evaluate the conditions of the region, and she makes only the content of the report, not the whole region again).

    Remove the condition on the region to report, check the update works and then go back on what exactly are the requirements here. If you want to the area appear only when P2_QUERY has a value, and you want it to be regenerated without submitting and reposting of the page, the region must then be hidden rather than conditionally restored and shown via dynamic when action P2_QUERY Gets a value.

    I tried to add a further Action for the event real value DA but has been a mistake, as stated above,

    All irrelevant if Page to submit items on the region is used correctly.

  • Reset the value of the selection list

    APEX version: 4.2.2

    I'm fighting to implement a solution to reset the value of an element from the list of selection on a page in my application.

    I currently have about 4 pages in my application with a level of tabs with every page on its own tab.

    I have a report of Emp page that lists employees. The page contains an element of selection list for emp_no who submits the page when the value changes. The query for the list of selection queries the emp for name and emp_no table. It has:
    Display additional values: Yes
    Display Null values: Yes
    Display NULL value: all THE
    Return NULL value:
    (no value for the return NULL value)
    Page, in itself, works the way you want. During the first visit to the page, EVERYTHING is selected and the report shows all the EMOS. If I select a specific employee, the page refreshes with just this employee.

    On the Main page is another employee list report. The report has a link between the employee id column and the Emp report page. The link sets the value of Emp.emp_no to the value of Main.emp_no. It works very well so if I take emp hand 123, 123 shows Emp.emp_no and the report shows that retail for emp 123.

    The problem is when a specific employee has been selected previously from the homepage or the Emp page and I click on a tab to another page, say the status tab / page and then click on the tab of the page of the Emp. The current behavior of the page, is that it continues to show some used was previously selected regardless of how it has been set, either Emp or to the homepage page. I want to reset select Emp.emp_no ALL (or null) if I navigate to the page of the Emp to any other page except hand or Emp itself.

    I searched through the forums and tried to use processes at the level of the page and after region to reset the value of Emp.emp_no, but nothing has worked. I believe there is a 'simple' way to do it that doesn't require coding on each page to set Emp.emp_no on a null value before calling it.

    I would like ideas on solving this seemingly simple task that has managed to escape.

    Thanks in advance.

    cagora

    Use a query in your link for filtering the selection list. Create a compuation on the definition page of the selection to NULL list if the request is NULL > PL/SQL Expression >: APPLICATION IS NULL. In this way, you can check the list of selection gets nulled while accessing the page normally.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    https://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • The selection list value does not change when the page is sent

    Hi all

    I have a selection list that acts as an entry for the report. the page is submitted using a button.
    The button uses the branch option "redirecting to page in the application. I select the same page.

    The problem is when I change other values in the value list always takes the first value

    I want to know if the problem is with the key or select list. What should I do about it?

    Concerning
    REDA

    Renon wrote:

    I tried your suggestion. Now that I ask, is the report is expected to show only when the button request is passed. I read to present the action of page the name of the button acts as a request.
    so now my report status is request = Expression1 and value of expression1 takes GO tell button name.

    The report does not appear but. I checked the session. It has the value of the selection list and the page is submitted as but the report is not displayed.

    ASK is disabled before the exposure treatment page unless it is set in a branch or a URL, this is why it has no value when they are referenced in your State in the region.

    Set the attribute request in your branch for & request to make available at the course to see the page the current value of the demand for treatment.

  • Value for the select list

    Hello


    Can someone please let me know how to value to select list (display Null value: Yes, the Null value to display:--select--) through the text field and button.) When I enter a value in the text field and click the button, and then select field must be filled with the respective value.

    I tried to make it through the writing of a query in the source and through dynamic action button, they are populating the value to select the list but we null is folded down, then we must click on the selection list to display the value, but I want the value that is returned to be visible visible null instead.


    Kind regards
    Shoaib

    Hello
    >
    Can someone please let me know how to value to select list (display Null value: Yes, the Null value to display:--select--) through the text field and button.) When I enter a value in the text field and click the button, and then select field must be filled with the respective value.
    >
    a. What is the source of the LoV? Static? Dynamics?
    b. the value that you set using point and button is the value display or the return value of the LoV? It should be the return value.
    >
    I tried to make it through the writing of a query in the source and through dynamic action button, they are populating the value to select the list but we null is folded down, then we must click on the selection list to display the value, but I want the value that is returned to be visible visible null instead.
    >

    As you mention DA, you are on 4.x. But it is better to ask clearly the Apex version.
    See you soon,.

    PS: What you have specified in the Retrun Null value?

    Published by: Dominique on July 20, 2012 13:31

  • The highlight in the selection list values

    I have a list of selection of a code that display additional values. Usually I would only code values where the obsolete_ind = "N" and limits the selection to these codes, but when a record is displayed with a code rendered obsolete once the record was initially created, I MUST allow display additional values. IIF, that I don't have, the first value in the list by default, and it seems that it is the current value, which is not true!
    So, I have 'show extra values', but I would like to avoid the registration of 'saved' by using the now obsolete value. Of course, a validation that will solve, but the user will not know who are the valid codes to select.
    Can specific values highlighted in red or something? If the tag selectlist < option value = "" > id has also been = "", a code for the dynamic action, but I do not see how to add this 'id' to the tag option. "
    Any suggestions?

    Some options that come to mind
    -use apex_item to build your selection list, the parameter cattributes allows you to easily add custom attributes to color some entries
    -Several times in the past, I've seen some old values of code marked with an asterisk, then users are educated to know that they are the older options and validation (browser or submit) it applied.
    -Having a display-only field that shows the current value and a selection list that offers only the current options

    Scott

  • Select the value of the text element based on the selection list

    Hello

    I have a selection list that displays a number of codes of a table, and I want to display the description of the code (from the same table) in a field of text next to it.

    The selection list works good based on an LOV, but I can't seem to find how to get the return value, so I can identify the correct description of the table to be displayed.

    Thank you

    See this link: http://htmldb.oracle.com/pls/otn/f?p=31517:80:6340934958598741:NO

    It will have a lov that calls an application process that fills a text box...

    Thank you

    Tony Miller
    Webster, TX

  • dynamically change the value of a selection list in the form based on a table

    Hi friends,

    I use a form based on a table. I want to display two fields in the form of lists of selection instead of text boxes and when a value

    in a select list is selected, the corresponding values will be included in the next list of selection. For example if Department

    value is selected in a selection list that employees in this Department will be included in the employee selection list. I saw a

    even using ajax to achieve this as a table in the Dene example application [click here | http://apex.oracle.com/pls/otn/f?p=31517:176:462842537250908:NO].

    Is it possible to achieve the same for a form based on a table.

    Thank you
    TJ

    Hi TJ.

    Take a look on: [http://apex.oracle.com/pls/otn/f?p=56976:4] - instructions are on the page

    Andy

  • get the value of a selection list

    I made a request and on a page, I have a selection list filled from a list of values (made with a sql statement select).
    on the same page, I have a report made after a select statement.

    How can I did... when I select an item in the selection list in the report show me the item that is selected in the select list

    example:
    Select list: select name of EMP

    List of reports:
    Select * from emp;

    When I click on the selection list and chose a name of the employee in the report show me the first name, middle name, address and everything in emp.

    I tried to use emp.name = 'selectlist.value' and it gives me the invalid number.
    tried with the selection list with submit but still without work.

    can someone give me an ideea? How the current value of the selection list can be put in select condition of a statement or something to do all this?

    Thank you

    E-mail: [email protected]
    name: Andrei


    a quick description

    Page rendering
    Regions
    Point of view: Page (1) template body

    * Report: emp (10)

    Display: Position of the region 01

    * HTML: EMP1 (20)
    * Report: search (30)

    Elements
    Region: research

    * 10: P4_X select list


    Lists of values

    * EMP_name



    is an element of the region of report research.
    search source report is select name, address from emp;
    and the list of values is select name from emp;

    Andrei,

    Change your selection of P4_X list and make a list of selection with Submit. Now edit the report in the form query

    SELECT name, first name, address of the emp, whose name is nvl(:P4_X,name);

    I hope this helps.

    Thank you
    Manish

  • How to set the default value in the select list to cascaded

    Hello
    I use Denes Kubicek cascade example list of selection http://htmldb.oracle.com/pls/otn/f?p=31517:119

    And I want to give cascading the selection list with a default value. So, anyway, I use this application process:

    < pre >
    BEGIN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< select >");
    HTP.prn ("< option value ="' | 1 |) "" > ' | '- all employees-' | ' < / option > ");"

    FOR c IN (SELECT ename, empno
    WCP
    WHERE mgr =: cascading_selectlist_item_2)
    LOOP
    HTP.prn ("< option value ="' | c.empno |) '">' || c.Ename | ("< / option >");
    END LOOP;

    HTP.prn ("< / select >");
    END;
    < / pre >

    How can I select for example empno default 1000?
    Thanks in advance.
    Jacob

    Jakob,

    In this case, your default value is

    HTP.prn (')

    However, you can set the default value in the loop as you want. You just say that is your default - first, second, third...

    In the list select ajax there's no submit and no calculation of values then I assuem your default is the punch one you wan to display when a selection list has been changed?

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Get the selected value of a select list item in a tabular presentation.

    Hi, I have a tabular form and I'm trying to get the selected value of a select list item and store the selected value in a page element hidden elsewhere on the form of tables, so I can use this value.

    I already have something similar to the input on the tabular presentation elements.

    Get the initial values
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems var = $(' input [nom = "f12"]', ligne) [0];

    numberOfItems = 123456.123

    What I want to do is soemthing similar as above but capture the value of a select element in tabular form. I thought I could do something like:

    Get the selected value
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems var = $('selected [name = "f08"] .val ()', line) [0];

    But this method leaves the as undefined var numberOfItems.

    Please help me to find a way to identify the item 'select' in the tabular form called "f08" and get this value.

    I am a newbie to jQuery selectors etc...

    Thank you.

    Strange that you do not get an error when you run your 2nd selector.
    In any case for this kind of thing, see the HTML code of your tabular form and tell us what triggers, the element can be useful. Or better create an example at apex.oracle.com.
    In any case, I see two errors:
    (1) is there any html element "not selected" instead, the LOV in the APEX element has the select tag
    (2) you can not write a. val() inside a selector that you must place it after your selection.

    So I'd like to rewrite your code to:
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems = $("select_[nom_="f08"]",_row).val () var [0];

  • Refreshing a report on the change in value of the selection list

    -Very well, this should be very easy, but I can't seem to do things.

    I have 2 items on a page: a list of selection and a report.

    The report contains a WHERE clause that uses the value of the selection list.

    So when I change the value of the selection list, the report needs to be recharged.

    I don't want to use a 'Redirect and set' when I change the selection list, because I don't think it's very pretty.

    So I created a dynamic action that updates the State when the selection list is changed.

    Now for the problem: the report get updated, but the new value of the selection list is not used!

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    Thank you.

    popovitsj wrote:

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    It is in the region of report definition: Page to submit items in the Source section.

  • create the single text field to display in the select list

    Hello, I will through in circles with what I have to achieve. I have this on a previous post, but do not know if what I was asking, it was OK

    what I need to do, is to have a list of selection of size for the end user, BUT in the backend, I need to have a text field or text fields which can be manually changed. the db has a prod table with

    ID

    / / DESC

    Price

    Size

    fields, so I thought that if it was a field of single line text that could store all sizes in the db, a field and can be edited in the backend

    OR

    paypal buttons how it where the backend has a function of size to add you can add one set

    Mount of sizes and can manually change them is necessarily, because I have the backend show if a product has sold out and I wanted to be able to type "sold out" so that in the selection list

    Thanks in advance for any help

    Not much needs to change.

    You can always display the same result as you would if a product is available.

    The only difference would be the item would show "sold out". In this case, add a conditional event listener to listen to 'Sold Out' in the status of product on your front-end server. A hyperlink to 'request form' echo here.

    Basically, a 'form' link would appear if the product is "sold out".

  • Sending e-mail based on the value selected in the select list

    Hi all
    I have a request when there is a list of select 'Choose with Submit', considers this point as & P5_STATUS. with 2 values approved and rejected.
    There are 2 methods of mail send different:
    1. process e-mail with approved content, that will be executed when the approved value is returned by the select list item "Status,"
    2 process e-mail with rejected, elements that will be executed when the rejected value is returned by the select list item "Status,"

    The foregoing is the requirement.

    How I can get it working, what exactly should I do in the part 'Condition' of the 2-mail process.

    Help, please!

    Hi Suzi,

    You must select "value of element in the Expression 1 = Expression 2" as a condition in the process of your mail. For the approved procedure, write approved as Expression 2 in the State and rejected for the rejection process. For both processes write P5_STATUS in the Expression 1.

    Hope that helps.

    Kind regards

    Sergio

  • By default, all the value in the selection list, so Select percent select list

    Hello

    I created the application process to extract the name of the State in the selection list based on the name of the city.
    Now I need if I don't have the name of the city and I select % in city name select list then any name should come in the select list.
    Now if I select % in select list and then he shows me empty in state name select list.

    How can I extract all the name of the State if I select % in select list.

    My application process
    BEGIN
      OWA_UTIL.mime_header ('text/xml', FALSE);
      HTP.p ('Cache-Control: no-cache');
      HTP.p ('Pragma: no-cache');
      OWA_UTIL.http_header_close;
    htp.prn('<data>');
       HTP.prn ('<select>');
       FOR c IN (select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND C.CODE =:SELECT5)
    LOOP
      HTP.prn ('<option value="' || c.CODE || '">' || c.NAME || '</option>');
       END LOOP;
    
       HTP.prn ('</select>');
    htp.prn('</data>');
    
    END;
    My city name Table

    CREATE TABLE  "CITY_MAS" 
       (     "CODE" VARCHAR2(3) NOT NULL ENABLE, 
         "NAME" VARCHAR2(1000) NOT NULL ENABLE, 
         "STATE_CODE" VARCHAR2(3) NOT NULL ENABLE 
            )
    My name status Table

    CREATE TABLE  "STATE_MAS" 
       (     "CODE" VARCHAR2(3) NOT NULL ENABLE, 
         "NAME" VARCHAR2(50) NOT NULL ENABLE 
         )
    /
    How can I do that.

    Thank you

    Published by: 805629 on January 25, 2011 02:06

    Change the cursor query loop to handle this

    select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND C.CODE =:SELECT5
    

    TO

    select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND
    ( C.CODE =:SELECT5 OR :SELECT5 = '%' )
    

Maybe you are looking for

  • Weak signals of TV on my Qosmio F25

    HelloI just bought the Qosmio F25 and I put on the antena, but all channels are coming in a very weak signal and the picture is very distorted, and is therefore the audio. Why do you think it is happeing. What should I do to get better signals and a

  • Presario CQ61: Windows 7 Build 7601 - this copy of Windows is not genuine

    I have owned my laptop again (about 6 years). Log today received the initial "serial number not found" message, then in the lower right of the desktop another message "Windows 7 Build 7601 this copy of Windows is not genuine". Wallpaper has now gone

  • How to connect the USB WiFi adapter to a Linksys e2500

    I need to use a USB Wifi adapter and I don't know how to configure the router to communicate with the device.  The installation disk supplied with the device that has the installation software does not work with windows 7.  Because I don't have the i

  • Triple the screen on Windows Vista problem

    Moose title: Triple display problem I have a laptop Toshiba A505D and I connect a HP 2159 m 21 "LCD monitor on the left side and keep there for a second monitor, I have a hub of Toshiba DynaDock USB which has built in video card that I run a second 2

  • When I try to defrag it will not terminate the process, I tried a system restore but it would not be completed.

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: tried a system restore You have problems with programs Error messages Recent changes to your computer What you have already tried to solv