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

Tags: Database

Similar Questions

  • How to get the value of a selected character unicode?

    Hi all

    How to get the value of a selected character unicode?

    The content property of a 'Character' InDesign object is a simple Unicode string. For access to the various characters is a basic javascript operation, and a google gives this as a good first result: http://www.w3schools.com/jsref/jsref_charCodeAt.asp

    Therefore, the value of a selected character unicode is

    App.Selection [0]. Characters [0].contents.charCodeAt (0)

  • PHP to get the result of a selection list

    Hello, I have searched for a solution to get the value selected in a list, then pass this value in a database table and display the value.

    Is there a php for this solution?

    Here's a Javascript solution that I found:

    < p > select a new car in the list. < /p >

    < select id = "Desproges" onchange = "myFunction ()" >

    < option value = "Audi" > Audi

    < option value = "BMW" > BMW

    < option value = "Mercedes" > Mercedes

    < option value = "Volvo" > Volvo

    < / select >

    < p > when you select a new car, a function is triggered which displays the value of the chosen car < /p >

    < id p = 'demo' > < / p >

    < script >

    Function myFunction() {}

    var x = document.getElementById("mySelect").value;

    document.getElementById("demo").innerHTML = "You selected:"+ x; '.

    }

    < /script >

    PHP runs on the server. The only way to use PHP to do what you want to do would be to send the browser to the server, reload the page to the form so that the embedded script can run either to run the script in a new page.

    If you do not want to send the form then you should use javascript (Ajax, JSON) any. I don't know how to direct you there. The script that you have shown will do the trick, but you will need to consider further than that.

  • 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

  • ListView MAF 2.1 how to get the value of line selection

    Hi all

    I'm trying to get the select line of a page with a listview amx

    to pass values of line as a parameter to the detail page

    which to get data from web service, but with links

    I always get the first value in the line of my list view.

    How can I refresh the values?

    Is - this java is better than the binding for this case?

    Can you help me please?

    Thanks for your help

    You can set the value of the selected line in a variable pageFlowScope and pass it to the method on the next page.

    Something similar to this:

    https://blogs.Oracle.com/Shay/entry/adf_mobile_update_through_web

  • How do the value in a selection list to a text field without submit?

    Hi all

    I have a Select list that looks like:
    Select short_name | ' - ' || country d
    SHORT_NAME r
    of mo.eu_country
    order by 1

    Then I have a text field (persons with reduced mobility, saved state).

    What I want to do: when a country is selected in the list-> set the value of text field with the short name of the country from the selection list (short_name r).


    Anyone know how I can get this done? (should I use AJAX?)

    Kind regards
    Ana-Maria

    Here is alink to Scott Spendolini autopopulate generator:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=33867:2:1496599659878861:no:

    I use it and it works fine.

  • Get and set the value to allow selected rolling Shuffle and facing page

    Hello world

    I work with the page and spread,

    For now, I want to value page spead shuffle and type of document.

    but I just find the function to get and set the value for the Document Pages allow Shuffle using the

    InterfacePtr < IPageLayoutPrefs > iPageLayoutPrefs (static_cast < IPageLayoutPrefs * > (: QueryPreferences (IID_IPAGELAYOUTPREFERENCES, iDocument)))

    It has no function to set and get the value of enable selected rolling Shuffle and facing page

    No one knows about it?

    I thank in advance

    There is no code for this example in the SDK or internet. Just understand and apply the concept.

    Find the code for the shuffle spread and together following spread shuffle...

    // Get active spread
    UIDRef GetActiveSpread() {
        UIDRef spreadRef = UIDRef::gNull;
    
        InterfacePtr layoutData(Utils()->QueryFrontLayoutData());
        if(layoutData) {
      spreadRef = layoutData->GetSpreadRef();
      }
    
      return spreadRef;
    }
    
    // Get spread shuffle of passed in spread
    bool16 GetSpreadShuffle(UIDRef& spreadRef) {
        InterfacePtr spread(spreadRef, UseDefaultIID());
        if(!spread)
      return kFalse;
    
      InterfacePtr iBoolData(spread, IID_IISLANDSPREAD);
        if(iBoolData) {
            return iBoolData->GetBool();
        }
    
        return kFalse;
    }
    
    // Set spread shuffle of passed in spread
    // @param bValue: kTrue = no shuffle, kFalse = allow shuffle
    ErrorCode SetSpreadShuffle(UIDRef spreadRef, bool16 bValue) {
        ErrorCode status = kFailure;
    
        InterfacePtr spreadCmd(CmdUtils::CreateCommand(kSetIslandSpreadCmdBoss));
        if(!spreadCmd)
            return status;
    
        spreadCmd->SetItemList(UIDList(spreadRef));
    
        InterfacePtr iBoolData(spreadCmd, UseDefaultIID());
        if(iBoolData) {
            iBoolData->Set(bValue);
        }
    
        status = CmdUtils::ProcessCommand(spreadCmd);
        return status;
    }
    
  • 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];

  • How to get the value of the list item

    Hi all
    How to get the value of the list item?

    I have a problem with the list item object
    in Oracle Forms.
    How can I retrieve the selected item from
    a list?
    I have not found any function as ' list. GET_
    SELECTED_ITEM()'...



    Thank you
    Bala

    Hello

    You get the value as any other element of forms:

    :value := :block.list_tem ;
    

    François

  • ([JDev12c, ADF] 1) how to get the value of a field of the line currently selected in question 2) af:table: flowScope

    Hallo,

    How can I get the value of a field in the row that is currently selected in an af:table?

    I need to pass this value to a setCurrentRowWithKeyValue who took the record to display in another (by a button) called page:

    Limited workflow

    Page1 - goToPage2-> setCurrentRowWithKeyValue-> PAGE2

    I defined a managed bean flowScope for the workflow in which I created the variable 'CodeToSetPage2Row '.

    I will store the value of the field for the selected line in this variable so that I can move on to the setCurrentRowWithKeyValue.

    Could be this method OK? Ore is there any good practice to achieve this goal?

    The managed bean flowScope used to go to the stubborn task may take some values from the outside?

    The workflow defined will be executed in a dynamic region.

    Thank you

    Federico

    Federico, you cannot use a flow variable scope for this page. The region has no access to the bean. You must use a workflow for this parameter.

    To get an attribute of the currently selected line you make slide data vo of control on the page attribute. This will create a link attribute for this attribute. Once this link exists, switch to source mode and remove the component that you do not want.

    The framework passes the value of the current row in this affair of the attribute (table should be in single selection mode).

    Click on the button, you switch the binding of the attribute for the setting of task flow using a setPropertyListener.

    In the workflow, you call the setCurrentRowWithKeyValue with the parameter of workflow as the default activity.

    Timo

  • [JDev12c, ADF] How to get the value of a field from the selected line in af:table and...

    Hallo,

    I want to double click on a line of an af:table to call a page that displays a form (based on a View object) with the details of the selected line.

    I need to go to the second page the value of a field on the line that is selected on the first page.

    How can I do this? In particular, how can I get the value of a field from the selected line? How can I call the second page on double-click on the af line: table?

    Thank you

    F.

    Why would user, you need to pass a value of the line to the shape?

    The framework selects the line you want to display in the form. All you have to do is to show the form with the selected line. It is the framework automatically as long as you use e vo even the same data control.

    Timo

    Post edited by: Timo Hahn
    And the handling double-clicks is described here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf

  • get the values of the selected items to RichSelectManyChoice

    Hi all

    I have a RichSelectManyChoice

    When the user clicks on the "submit" button I want to get the values of the selected items...


    ----------------------------------------------------------page.jspx-----------------------------------------------------------------------------

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1"xmlns:f =" " http://Java.Sun.com/JSF/core "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "> "

    < jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

    < f: view >

    < af:document title = "untitled1.jspx" id = "d1" > "

    < af:messages id = "m1" / >

    < af:form id = "f1" >

    < af:panelGridLayout id = "pgl1" >

    < af:gridRow height = "100%" id = "gr1" >

    < af:gridCell width = '100% ' halign = "stretch" valign = "stretch" id = "gc1" >

    <! - content - >

    < af:selectManyChoice value = "#{bindings." CountriesView1.inputValue}.

    label = "#{bindings." CountriesView1.label}"id ="smc1.

    valuePassThru Binding = "#{suspect." Country}"="true">

    < f: selectItems value = "#{bindings." CountriesView1.items}"id ="si1"/ >

    < f: validator binding = "#{bindings." CountriesView1.validator} "/ >"

    < / af:selectManyChoice >

    < / af:gridCell >

    < / af:gridRow >

    < / af:panelGridLayout >

    < text af:button = "Button 1" id = "b1" action = "#{suspect.valide}" / >

    < / af:form >

    < / af:document >

    < / f: view >

    < / jsp:root >

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

    --------------------------------------------------------------------suspect.java-------------------------------------------------------------------

    package test.view;

    import com.sun.org.apache.xpath.internal.operations.String;

    Import oracle.adf.view.rich.component.rich.input.RichSelectManyChoice;

    public class suspect {}

    RichSelectManyChoice campaign private;

    String string = null;

    public suspect() {}

    ????????????????????????????????????????

    }

    public void valide() {}

    }

    {} public void setCountry (RichSelectManyChoice country)

    This.Country = country;

    }

    public RichSelectManyChoice {} getCountry()

    back country;

    }

    }

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


    Anyone has an idea please?

    Hello

    You can use

    JUCtrlListBinding listBindings = (JUCtrlListBinding) getBindings () .get ("CountriesView1");

    Object [] str = listBindings.getSelectedValues ();

    for (int i = 0; i)< str.length;="" i++)="">

    System.out.println (STR [i]);

    }

    in this loop, you will get all the values of selectManyChoice, for details see Ashish Awasthi (Jdev/ADF) Blog: using the selection Multiple (component selectManyListbox & selectManyCheckbox) in ADF

    hope it helps

  • How to get the values of the list?

    I have no idea for the values in the list.

    For example: I have table countries (CountryID, CountryName).

    I do a SelectOnechoi for another form with another table.

    Display values is CountryName (England, France)... now, I want to get the values of CountryID by CountryName.

    CountryID: 1

    CountryName: England

    CountryID: 2

    CountryName: France

    How can I do?

    It's called list of person in charge of value. Check http://www.oracle.com/technetwork/developer-tools/adf/learnmore/march2011-otn-harvest-351896.pdf ('building model driven dependent list with Oracle ADF BC') and

    https://blogs.Oracle.com/aramamoo/entry/how_to_create_multi_level and

    http://hasamali.blogspot.de/2011/04/ADF-BC-dependent-lov-in-Oracle-ADF.html

    Timo

  • Cannot get the value of the selection of OAMessageChoiceBean

    Hello

    Of our 11i to R12 upgrade, in the customer's advanced search page, we are unable to get the handle suitable for OAMessageChoiceBean (in extendedCO).

    The snippet for the bean handling is as follows:

    OAMessageChoiceBean PartyStatusFilter = (OAMessageChoiceBean) vOAPageContext.getRootWebBean () .findChildRecursive ("xxfeF426PartySearchStatus");
    String xxTest = PartyStatusFilter.getSelectionValue (vOAPageContext);

    The value of the above xxTest (in R12 approx.) is coming with a null value. Considering that the same code works in 11i environment and the xxTest output = "A".

    So we cannot get the value of the selection of the messagechoicebean in our environment of R12. I already looked in previous similar positions in this forum, also tried to use getSelectionText (vOAPageContext) or getSelectedValue(), however, it did not work.

    Pointers please?

    Thank you very much
    Zahid

    Hi Zahid,

    Try with this ID = HzPuiPartyStatus

    -Had

  • How to get the value if the function selection cursor?

    Hello, I have a problem with the cursor, I can't get the value, please help me
    example of
    declare
               bien varchar2(30000);
               cursor cs3 is SELECT DBMS_METADATA.GET_DDL('TABLE',TABLE_NAME) as structure FROM user_tables ;
    begin
     for w in cs3
      loop
            bien:=bien||*w.structure*||'+';  -- w.structure not run  or w.DBMS_METADATA.GET_DDL('TABLE',TABLE_NAME) not run too ?
      end loop;
    end;
    Thank you

    First of all do work, then make it fancy.

    First operate for a single table, before too much complication with LOOP for each table, the schema property.

    If you cannot get the results desired for a single table, then he fails for each table.

Maybe you are looking for

  • Reset iTunes game

    I want to reset my iTunes Macth and told me to remove all songs from within my library and make sure that I click on 'delete cloud '. If I do this, it will delete my music purchased iTunes to the cloud, so I won't be able to upload my story bought it

  • Color Board is not complete

    Hi guys When I want to do a color correction, I see that I lack information in my version of FCPX 2.2.2. Please take a look at these two pictures. On the first image you see under information on the midtones, highlights, shadows... In my interface I

  • 2 keys have changed function, how do I fix?

    The @ key is now on "when it is used to update;" is now press 2 when used offset.  How it happened I have no idea and I can find no help on the web or by calling Microsoft.  HELP someone. Thank you.

  • cannot start windows 7 on my new HD - no operating system!

    I recently replaced the hard drive in my HP laptop Pavilion that was installed with WINDOWS VISTA... My new HDD is W.D. SCORPIO BLUE. I have no operating system. and I tried to install windows 7 but get this message-CANT BOOT CD boot error 5 NONE OPE

  • How can I delete a backup partition C once it has been burned to a disc for recording?

    Hi, I saved my data on a disk and now I'm trying to delete the backup of my computer to save space, but the program always comes up with a window asking permission and does not delete the C drive backup! Also if I save my D recovery drive on a disk r