Setting the value of a textbox to be the display value of a selected item

I have two seperate regions on the same page. In the top region I have a select list with submit and in the bottom region I have a textbox. I can get the value of the textbox to be set to the RETURN value of the select list, but it is merely a number. I would like for the value of the textbox to be set to the DISPLAY value of what the user has selected from the select list. How can I accomplish this?
Thanks,
BoilerUP

Hi BoilerUP,
Can’t you create an item based on a select, that returns the value you want?
select text from mytable where id = :myselectlist_id;
Regards Pete

Similar Messages

  • Trouble setting the session state of a select item.

    Hi,
    I have a requirement whereby I need to change the session state of a select list item in my form without the need to submit. I am using Application Express 4.1.0.00.32. I thought this would be straight forward using a dynamic action or javascript and calling an on demand process for example.
    P1_MY_SELECT onchange="set_option();"
    function set_option() {
    var l_option=$f_SelectValue('P1_MY_SELECT');
    alert( 'My new value is ' + l_option );
    // ON DEMAND Set the new session state value
    var lRequest = new apex.ajax.ondemand
    ('SET_P1_MY_SELECT',function()
    {  /* start the return function */
    var l_s = p.readyState;
    if(l_s == 1||l_s == 2||l_s == 3)
    else if(l_s == 4)
    { gReturn = p.responseText;
         (gReturn)?json_SetItems(gReturn):null;
    else{return false;}
    /* end the return function */
    lRequest.ajax.addParam('x01', l_option );
    lRequest._get()
    My on demand application process
    DECLARE
    l_options varchar2(2000) := wwv_flow.g_x01;
    BEGIN
    APEX_UTIL.SET_SESSION_STATE('P1_MY_SELECT',l_options);
    apex_util.json_from_items('P1_MY_SELECT');
    END;
    Is there a better method to set the session state of my P1_MY_SELECT other than what I am doing as above or can you tell me why the session state of P1_MY_SELECT is not changed?
    Thanks.
    Edited by: 968358 on 01-Nov-2012 08:40

    if you are on 4.1 why don't you use a dynamic action instead of writing the code again?
    create a dynamic action like this
    Event: Change
    Source Type: Item
    Item: P1_MY_SELECT
    True Action:
    =========
    Action: Execute Plsql Code
    Plsql Code: null;
    Page Items to Submit: P1_MY_SELECT
    Page Items to Return: P1_MY_SELECT (this is optional)
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/advnc_dynamic_actions.htm#HTMDB27020

  • How to set the DISPLAY variable to run admsi.pl?

    Dear Experts,
    I'm trying to patch Oracle apps R12 using admsi.pl.
    hostname: black
    APPS db: VIS
    But I keep getting the error:
    Please set the DISPLAY variable and re-run this script
    This is what I did:
    VIS database and listener are already running.
    login to the linux server as unix user: applmgr
    cd /oapps/applmgr/VIS/apps/apps_st/appl/
    . APPSVIS_black.env
    cd /oapps/applmgr/VIS/apps/apps_st/appl/ad/12.0.0/bin/
    admsi.pl
    Invoking Oracle Patch Application Assistant....
    Please set the DISPLAY variable and re-run this script
    huh ?
    set | grep -i "display"
    DISPLAY=:0.0
    set | wc
    435 486 25235
    I notice that there are 36 .env files!
    For applmgr alone!!
    find /oapps/applmgr/ -type f -name "*.env" | wc
    36 36 2626
    For oracle, there are another 7 .env files!
    find /oapps/oracle/ -type f -name "*.env" | wc
    7 7 513
    Did I get the environment (env) file correct?
    Or do I need to run a few more env first?
    If so, which ones?
    What would the order of operations be?
    sqldeveloper has given me problems with Display sometimes.
    But even sqldeveloper works fine.
    What is the secret to get admsi.pl to run in the normal manner?
    Thank a lot!

    Thanks a lot, that worked! So the perl script was wrong.
    In the meantime, I had done this, and it seemed to work:
    admsi.pl -debug
    Gathering Information..
    Enter the patch_top : /oappsinstall/update12.1.1/7303030
    Enter the APPS user password:
    Logfile for this session is located at admsi.log
    Generating installation instructions for patch 7303030..
    Updating database....
    install_7303030.html generated successfully
    install_7303030.txt generated successfully
    cat /oapps/applmgr/VIS/apps/apps_st/appl/ad/12.0.0/bin/admsi.log
    Executing begin :value := ad_manual_step_object.is_step_already_done('per_hrglobal','120.2.12010000.1'); end;
    Generating installation instructions for patch 7303030..
    Updating database....
    install_7303030.html generated successfully
    install_7303030.txt generated successfully
    Performing final cleanup..
    Do you think this worked ok?
    Thanks again!

  • How to set the display size of the PDF - in percent?

    Hi, I wonder if anyone knows if it is possible to set
    the display size of the PDF document, so that it always
    shows in, let´s say 100%, in the viewers browser window?
    Much grateful for any help!
    /Anni

    In Acrobat, under Document Properties (Ctrl+D), you can edit the Initial
    View settings, including the zoom level.

  • Setting the display name in a message

    Hello for the following code:
    String from = "[email protected]";
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(from));
    I'd like to set the display name, i.e.
    "A Message From Foo"
    However I did not see a msg.setDisplayName() method... is there any way to do this?
    As a working example, amazon sends an email with a return address of [email protected], but the display name is 'Amazon Payments' which looks a lot nicer for the customer. I'd like to do the same.
    Thanks

    Solution is:
    new InternetAddress(email_address, display_name);

  • Set the display in UNIX

    Hi
    I need to access SDM to deploy the Java patch  ( we have X manger enterprise 3)
    We try to set the display in UNIX
    sb2adm> DISPLAY=10.211.146.141:0.0
    sb2adm> export DISPLAY
    sb2adm> set |grep DISPLAY
    DISPLAY=10.211.146.141:0.0
    _=DISPLAY
    sb2adm>
    sb2adm> xclock
    Error: Can't open display: 10.211.146.141:0.0
    My questions:
    When run the command set |grep DISPLAY it would be show DISPLAY=10.211.146.141:0.0
    But in my case it show DISPLAY=10.211.146.141:0.0
    _=DISPLAY
    Thanks so much for your help!!!!
    I would greatly appreciate
    Regards
    Naveen

    Hi ,
    Your shell is ksh (Korn Shell) yout have run export command.
    > sb2adm>setenv DISPLAY 10.211.146.141:0.0
    > -ksh93:: not found
    >
    > Note: one of my college who in onshore he can able to access.as per below command
    >
    > sb2adm> DISPLAY=xxxxxxxxx:0.0
    > sb2adm> export DISPLAY=xxxxxxxxx:0.0
    > sb2adm> set |grep DISPLAY
    > sb2adm > xclock
    You can also use same it will work.
    OR
    sb2adm> DISPLAY=xxxxxxxxx:0
    sb2adm> export DISPLAY=xxxxxxxxx:0
    sb2adm> set |grep DISPLAY
    sb2adm > xclock
    Thanks
    siva

  • Is the "Display list of web app items submitted by a user" feature not available in the free trial?

    Is the "Display list of web app items submitted by a user" feature not available in the free trial? I can see it in the tutorials but its not available when I am logged in.

    Its just named a little differently now. You should be able to add the module {module_webappscustomer} through the Modules toolbox in the web page editor window, as indicated below. Please note that webapps feature is available only for webCommerce sites. Read more about the available modules and its usage in detail here - http://kb.worldsecuresystems.com/134/bc_1345.html?bc-partner#main_Web_App_Modules
    Thanks,
    Vinayak

  • How to pass the whole set of values of a shuttle item in AJAX

    Hi,
    I am trying to pass the value of shuttle item to a dynamic process using Ajax. But if I use shuttle_right, I am able to get only the first selected value. If I simply give shuttle it returns null.
    Please let me know How I can get the whole set of values separated by ':'
    Thanks,
    Vikas

    Vikas,
    Here's a little snippet that should get you going:
    var shtVals = '';
    var shuttle = new dhtml_ShuttleObject("PXX_SHUTTLE_LEFT","PXX_SHUTTLE_RIGHT");
    for (x=0; x<shuttle.Op1Init.length; x++) {
       shtVals += shuttle.Op1Init[x].value + ':'; //Op1 = left & Op2 = right
    shtVals = shtVals.replace(/:$/,'');
    alert(shtVals);Regards,
    Dan

  • Set Default Value of Multi-select list item

    I have a multi-select list item I want to default the value of to '%' (which is really '%null%') and have it selected. I tried setting default value of item, but it doesn't take '%null%'. I also tried a computation with a static of
    :P507_ITEM := '%null%'; How do you get the default value set and selected?

    Hi
    Shijesh is right, you need to change your null return value and use that return value as your default. Try and use something of the same datatype as your real return values if you plan to use '%' to display all as it will make your queries simpler. eg.
    Company A returns 1
    Company B return 2
    % returns 0
    Then your query would be...
    SELECT ...
    FROM ...
    WHERE company_id = DECODE(:P_COMPANY,1,1,2,2,0,company_id)
    Hope this makes sense.
    Cheers
    Ben

  • Setting current values in Multiple Select List in SQL Query based Report

    Hi,
    I have a report based on a sql query that contains a multiple select list. Unfortunately I cannot get the multiple select list to display the current values (p_value) correctly. I have created a page item, :p311_current_versions, that is set using a pre-header process and it returns a value with a colon delimited format e.g. '10.1.2.1.0:10.1.2.2.0'. Then this item is used in the sql query to set the current value (p_value) of the apex_item.select_list_from_query function. However when the table is displayed, instead of having two entries, 10.1.2.1.0 and 10.1.2.2.0 selected, it has an extra entry '10.1.2.1.0:10.1.2.2.0' selected.
    Here is my code:
    select distinct a.product, a.version from (
    select distinct
    apex_item.display_and_save(2,product)||apex_item.hidden(1,env_product_id) PRODUCT,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(3,decode(product, 'HTTP Server' , :p311_current_versions, version), 'SELECT distinct version d, version r FROM ebs_tech_stack where
    product ='''||PRODUCT||'''',
    decode(PRODUCT, 'HTTP Server' ,'multiple="multiple" style="width:170px"','style="width:170px"'),
    'NO') as version
    from ebs_environment_tech_stack
    where environment_id = :p311_umgebung_id) a order by a.product
    If anyone can help me figure out how to set the current values correctly I'd be really grateful!!
    Thanks in advance,
    Jean

    Jean,
    I don't think this is possible using the apex_item package. The select_list_from_query function accepts only a single value for the second parameter.
    Scott

  • Setting the display to binary

    Does anyone know how to set the CWIMAQViewer Palette to binary using C++? I know how to do it in Visual Basic, but I can't figure it out in C++. I need to do it programatically. Thanks in advance.

    To Set the viewer to binary:
    m_cViewer.GetPalette().SetType(4096);
    I don't know where 4096 is defined...
    To Set the viewer to grayscale:
    m_cViewer.GetPalette().SetType(2048);
    Again, I don't know where this is defined. To get these values I just inserted the line,
    long paletteType=m_cViewer.GetPalette().GetType();
    and ran the debugger to see what it set paletteType to when I changed the palette using the viewer's palette menu.

  • Setting default value of Tabular form item is not working

    Hi,
    I have a tabular form and in that I want to set the default value of the username to app_user. So in the default value of the item, I wrote v('app_user') and type Pl/SQL, but that does not seem to work. I tried the static application & page item with :app_user. That threw an error.
    Also, I wanted to populate the date field in one column. Doesn't sysdate work?
    Thanks,
    Sun

    Bob, I did read that. MY problem is that it is still not working. I am wondering if this is because the table is in execute query mode maybe? I am wondering if the default value needs to be added after the tabular data is populated through some other way? Maybe the default value would work only for static non database items?
    ThanksYou're right, I just tested that using the default setup on the column in report attributes and it did not work.
    I think you'll have to update the columns with the default value post query but I'm not sure exactly what you need to do.
    I have a form that has a weight entry column. I tried changing the query to set the default value in the query
    from..
    Select Weight
    From...
    to
    Select 999.99 Weight
    From...That appeared to work, but the 999.99 value was not populated back to the Database since it wasn't entered through the form UI. APEX maintains the entered values internally so it can do its checksumm processing and update modified rows back to the DB. I'm thinking you could update what needs to be updated using Javascript in a Dynamic Action, but I'm afraid I don't know how to do that.
    Excuse my incorrect assumption when first replying.

  • How do I set the default page when I select "+" for a new tab? Right now it defaults to Yahoo search and I want to set it to my Speed Dial page. I did have the default page set to Speed Dial but I can't find anywhere how I did it in the past.

    You can set the homepage for opening tabs, but I can't find the setting for designating what page opens when I hit the + button on tabs.
    This is the page that loads:
    http://search.yahoo.com/?fr=freeze&type=W3i_NA,132,3_6,Tab%20Search,20100937,6693,0,16,0
    How did Yahoo embed this in the Tab settings?

    Firefox '''does not''' come with a setting for a page that opens in a new Tab, the default installation always opens a blank page when you open a new Tab. Many extensions include a feature to open their choice of a webpage when you open a new tab, as does the Speed Dial extension which uses a "local page" internal to Firefox.
    You need to figure out which extension has taken over that preference that Speed Dial needs to use. You didn't bother providing a Troubleshooting Information... listing as requested when you asked this question, but I can guess your problem is related wither a Yahoo extension or a Conduit / OurToolbar extension - as there is a plugin listed = Package Installer & Install Conduit.
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • How to set the display ratio of master and detail view

    Currently, I use SplitApp that contain the master and detail view. And I would like to show the master view on the left half and detail view on the right half. Is there any proper way to adjust this?
    Thank you in advance.

    You can set the width ratio by adding css. Check this,
    http://jsbin.com/dakir/1

  • A 2-sided track's Thumb, with a list of items in center, forces the tumb to jump on selected item

    With Adobe Catalyst, you can create nifty VerticalScrollBars for DataLists. I've create a thumb of the verticalscroll bar as two images (left & right of track).  When I click on an item in the list, the thumb listens to the mouse on the track and tries to scroll to that area, instead on selecting the ticket.
    Check the image for a clearer explanation:
    In the Code of the Skin of List:
    <s:VScrollBar fixedThumbSize="true" skinClass="components.VerticalScrollbar1" x="0" y="0" viewport="{dataGroup}"/>
    And the Skin VerticalScrollBar1:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:s="library://ns.adobe.com/flex/spark" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:d="http://ns.adobe.com/fxg/2008/dt">
    <fx:Metadata>[HostComponent("spark.components.VScrollBar")]</fx:Metadata>
    <s:states>
    <s:State name="normal"/>
    <s:State name="disabled"/>
    <s:State name="inactive"/>
    </s:states>
    <s:Button skinClass="components.Track1" x="7" y="0" id="track"/>
    <s:Button skinClass="components.Thumb1" x="0" y="104" id="thumb"/></s:Skin>
    and the Thumb1:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:s="library://ns.adobe.com/flex/spark"     xmlns:fx="http://ns.adobe.com/mxml/2009"     xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:graphics="assets.graphics.*">
    <fx:Metadata>[HostComponent("spark.components.Button")]</fx:Metadata>
    <s:states>
    <s:State name="up"/>
    <s:State name="over"/>
    <s:State name="down"/>
    <s:State name="disabled"/>
    </s:states>
    <graphics:Graphic2 x="0" y="0" d:userLabel="ThumbLeft"/>
    <graphics:Graphic1 x="146" y="0" d:userLabel="ThumbRight"/>
    </s:Skin>
    Notice that there are two thumbs, and an empty area in the middle, in the hope that it would ignore the mouse of that area where the items are located.

    Here's a sample script that first defines a list of items in an array and uses it to update a number of dropdowns, name dd1...dd10:
    // Populate an array with the list items
    var aItems = ["-- Select a state --", "Alaska", "Hawaii", "Washington", "Oregon", "Idaho", "Montana", "Wyoming", "Nevada", "Colorado", "Arizona", "New Mexico"];
    // Loop through the dropdowns...
    for (var i = 1; i < 11; i += 1) {
        // ...and set the list items
        getField("dd" + i).setItems(aItems);
    That's all there is to it. This can be run from the Mouse Up event of a temporary button that you create, the interactive JavaScript console (Ctrl+J), etc.
    More info on setItems: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.752.html

Maybe you are looking for

  • On Demand Application Process not working on IPad or IPhone

    I have application processes that use AJAX to refresh my select list values (see code below). They all work fine on normal devices, but they do not populate at all if I try from an IPad or IPhone. Any ideas? HTML Form Element Attributes: onactivate="

  • Custom NFS share point directory showing up on all network machines

    Hi, I'm in the process of migrating our 10.4 PowerMac server to a Mac Pro (running 10.5). I've been trying to recreate our 10.4 server setup as much as possible and so far I've only come across one annoying issue. We have fink installed on the server

  • Recording time on the Save to ASCII%2FLVM step

    To Ni application engineers: I have Signal Express 3.0, and I would like to find out if there are ways to put real time stamp (or relative time based on DAQ rate).   We would like the time stamp to be in the 1st column in Excel along with the mean st

  • Do we need to convert Chinese/Japanese properties to Unicode?

    Dear friends, I am new to this Internationalization concept. I have a web application and I am looking forward to implement Internationalization. To make my app support muti-language, I am using Locale & Resource bundle to find properties files based

  • Adding Current Date Using A Prologue File When Converting to a PDF

    I'm trying to embed the current date on a postscript file (.ps) to pdf conversion using a prologue file (prologue.ps) in a certian position on the page. What is the script necessary to acommplish this task? Is this similar to the case that is still o