How to get a value for Select One Choice in the backing bean

Friends,
Does any one have any idea, how to get the value of a selected item value from the Select One Choice component in the backing bean iin valueChangeListener method. Right now I am always getting the sequence of the selected item, instead the actual selected value. I tried using 'ValuePassTrhough=true' also.. but didn't help
Below is the my code snippet
<af:selectOneChoice value="#{bindings.country.inputValue}"
required="#{bindings.country.hints.mandatory}"
shortDesc="#{bindings.country.hints.tooltip}"
id="soc1" autoSubmit="true" valuePassThru="true"
valueChangeListener="#{pageFlowScope.Bean.onValueChange
<f:selectItems value="#{bindings.country.items}" id="si2"/>
</af:selectOneChoice>
Thanks in advance.

check my other post at Re: Pass data from a variable to another page

Similar Messages

  • How to get a value from  select one choice (created by static view)

    Hi,
    Whene ever Iam trying to get value from select one choice which is created by static view iam getting only index.How to get the actual value in 11g .please help me anybody .Thanx in advance....
    Edited by: 874530 on Jul 22, 2011 11:05 PM

    Thnax for your quick reply..
    Iam using 11.1.1.3.0 version.
    My code is
    <af:selectOneChoice value="#{bindings.DenialLevel.inputValue}"
    label="#{bindings.DenialLevel.label}"
    required="#{bindings.DenialLevel.hints.mandatory}"
    shortDesc="#{bindings.DenialLevel.hints.tooltip}"
    id="soc2"
    valuePassThru="true"
    binding="#{backing_denialcomment.denialLevelList}">
    <f:selectItems value="#{bindings.DenialLevel.items}" id="si6"/>
    </af:selectOneChoice>
    and in bean am not able to get value of attribute .Iam getting only index...

  • How to get accurate values for select statement using single column

    Hi All,
    Below is my query which runs fine
    Select Distinct Top 4
    FiscalYearId,
    FiscalMonthOfYearId
    From ODS.Common.tODS_Date
    Inner Join
    UTL.Utility.tUTL_ProcessDate
    On tODS_Date.DateShort < tUTL_ProcessDate.ProcessDate
    And tUTL_ProcessDate.DatabaseName = 'ODS'
    Order By
    FiscalYearId Desc,
    FiscalMonthOfYearId Desc
    Below is the generate output
    FiscalYearId FiscalMonthOfYearId
    2014 2
    2014 1
    2013 12
    2013 11
    But i want to use this query in one of my where clause condition as its being used in the where clause it can only return 1 row.So, i tried something like this
    Select Distinct Top 4
    FiscalMonthOfYearId
    From ODS.Common.tODS_Date
    Inner Join
    UTL.Utility.tUTL_ProcessDate
    On tODS_Date.DateShort < tUTL_ProcessDate.ProcessDate
    And tUTL_ProcessDate.DatabaseName = 'ODS'
    Order By
    FiscalMonthOfYearId Desc
    And the result set of this one gives me the output like
    FiscalMonthOfYearId
    12
    11
    10
    9
    Which is not correct,( if you see the result set above). 
    Can someone please help me with any ides on this.

    If you want to use this query in the WHERE clause, then use it with EXISTS option which allows to return more than 1 column. 
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • How to prevent flushing out the value in Select one choice on page refresh

    Hi All,
    I am using Jdeveloper 11.1.1.4.0. In my page fragment I am using select one choice ADF component. I have a requirement that unless one fills all details on 1st fragment he/she cant move to next fragment.
    So validations are there to check that mandatory fields filled or not. If not than I am showing message to fill the mandatory fields when user press on "Review " Button.
    But the value in select one choice is getting cleared while other input values like date fields or input text are not(The input information stored in static variables)
    How can I prevent flushing out of select one choice value .
    Thanx
    kanika

    Kanika,
    You don't have value property set due to which the selected value doesn't get stored and looses its value on refresh.
    When you drop attribute as select one choice on page, the value property get bounded to some value, did you remove it intentionally?
    If so, can you try keeping the property and see if you see the intended behavior?
    Sireesha

  • How to set a default value in Select one choice.

    Hi
    I'm using ADF BC, in that how to set a default value in select one choice.
    pls. help on this.
    regards

    set the default value on the underlying EO or VO attribute
    john

  • How to get column names for a specific view in the scheme?

    how to get column names for a specific view in the scheme?
    TIA
    Don't have DD on the wall anymore....

    or this?
    SQL> select text from ALL_VIEWS
      2  where VIEW_NAME
      3  ='EMP_VIEW';
    TEXT
    SELECT empno,ename FROM EMP
    WHERE empno=10

  • Get selected value from a select one choice in the bean

    I'm trying to do with the SelectOneChoice valueChangeListener and this is the code of my method, I'm using jdeveloper11g if alguin can help as I need the value you selected in the bean
    public void cambioCombo(ValueChangeEvent valueChangeEvent) {
    CoreSelectOneChoice csoc = (CoreSelectOneChoice) valueChangeEvent.getSource();
    List childList = csoc.getChildren();
    for (int i = 0; i < childList.size(); i++) {
    if (childList.get(i) instanceof CoreSelectItem){
    CoreSelectItem csi = (CoreSelectItem) childList.get(i);
    if (((String)csi.getValue()).equals((String) valueChangeEvent.getNewValue()) ){
    System.out.println("------------>"+csi.getLabel());
    I get the following error when running the application and selecting in my select one choice
    oracle.adf.view.rich.component.rich.input.RichSelectOneChoice cannot be cast to org.apache.myfaces.trinidad.component.core.input.CoreSelectOneChoice

    This is an example of some code that i wrote.
    public void changeDesc(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    System.out.println("value "+ valueChangeEvent.getNewValue().toString());
    //System.out.println("old value "+ valueChangeEvent.getOldValue().toString());
    if (valueChangeEvent.getNewValue().toString().equals("Area Uno")){
    this.descripcion.setValue("RR.HH");
    } else {
    this.descripcion.setValue("Finanzas");
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.descripcion);
    For get the Value select in the "SelectOneChice" component i use this: valueChangeEvent.getNewValue().toString()
    cheers

  • How To get Characteristic values for an Equipment in a particular Class ?

    Hi All,
    How i will get  Characteristic values for an Equipment in a particular Class ?
    Any table or FM ?
    Thanks in advance
    Srikanta Gope

    Hi,
    You can use the FM BAPI_OBJCL_GETDETAIL to fetch the characteristic values for an equipment from the table parameters ALLOCVALUESNUM; ALLOCVALUESCHAR; ALLOCVALUESCURR.
    Or u can use the tables EQUI, KLAH, KSSK, AUSP, CABN
    Regards,
    Aditya

  • Populating static values in addition to database value in select one choice

    Hi All,
    We are using jdev 11.1.1.2.0.
    I am populationg a select one choice based on a read only VO. The vo is populating fine,but in addition to the values from the database I want to add two static values. I want to add 'select customer' and 'all customer'.
    Currently I am doing this using UNION in the sql query of my VO. WhenI add union in my sql query its taking more time to load the value from the database.
    Is this the proper adf way to do it? Is there someother way to attain it.
    Following is the query I am using to populate one of the VO's
    SELECT * FROM(
    SELECT ID,NAME,3 SORT_ORDER FROM CUSTOMER
    UNION
    SELECT -1,'SELECT CUSTOMER,1 FROM DUAL
    UNION
    SELECT -2,'ALL CUSTOMER,2 FROM DUAL)
    ORDER BY SORT_ORDER,NAME
    Please advice
    Susan

    Hi,
    You can do this usecase by populating the values to SelectOneChoice Programmatically.
    <af:selectOneChoice label="List"
    binding="#{MyTestBean.myTestListComponent}">
    <f:selectItems value="#{MyTestBean.listOfItems}"/>
    </af:selectOneChoice>
    backing bean code will be:
    public List<SelectItem> getListOfItems() {
    List<SelectItem> items= new ArrayList<SelectItem>();
    SelectItem si = new SelectItem();
    //if u trying to populate data from VO then u have set the values
    DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind = (DCIteratorBinding)dcBindings.get("DepartmentsView1Iterator");
    for(int i=0;i<iterBind.getEstimatedRowCount();i++)
    Row row = iterBind.getViewObject().getRowAtRangeIndex(i);
    if(row!=null)
    si = new SelectItem();
    si.setLabel((String)row.getAttribute("DepartmentName"));
    si.setValue(row.getAttribute("DepartmentId"));
    items.add(si);
    //here you can add the static values;
    si = new SelectItem();
    si.setLabel("Static Value1");
    si.setValue("Static1");
    items.add(si);
    si = new SelectItem();
    si.setLabel("Static Value2");
    si.setValue("Static2");
    items.add(si);
    return items;
    }

  • How to get default values on selection screen(multiple ranges)?

    i want to know how to maintain default ranges in selection screen...like 2000 to 3000 and 7000 to 8000 and 11000 to 15000
    all the above ranges must get by default how to provide those to selection screen by default...please give me idea...with example...

    Hi Suresh,
    You can either use select-options or Ranges. If you want the selection screen to be displayed with allwoing user to enter values apart for the default ones use select options else use ranges. With ranges what ever values use hard code would be set and the end user will not be able to add any more values (or range of values).
    Simply write the following code
    tables : <name of the table from which the field belongs>
    select-options <fieldname> for <tablename>-<fieldname>.
    <fieldname>-sign = 'I'.
    <fieldname>-option = 'BT'.
    <fieldname>-low = '7000'.
    <fieldname>-high = '8000'.
    append <fieldname>..
    similiarly add all the ranges that you need to include as default and in your select statement use the IN operator inthe where clause to include the range.
    If using range replacethe select-option with the range statement.
    Thanks.

  • How to get meacure value for a sibling attribute in MDX

    Hi,
    I have a table with the following data
    Activity Id
    Last   Activity Id
    1
    NULL
    2
    NULL
    3
    NULL
    4
    NULL
    5
    3
    6
    2
    7
    3
    8
    1
    9
    4
    I have created a dimension "Activity" with 2 attributes : ActivityId, LastActivityId
    I have a Fact table like this :
    Activity Id
    Count   of Activities
    1
    10
    2
    12
    3
    34
    4
    45
    5
    32
    6
    23
    7
    56
    8
    34
    9
    56
    Now getting the count by activity is straight forward, But what I need to get is the count of last activity per activity. So if I select Activity 9 the measure value should not show me 56 but should show me 45 which is count for Activity 4 as Activity 4
    is the last activity for Activity 9.
    So essentially if I take all activities this is what the result of MDX should be :
    Activity
    Count of Activities (Last)
    1
    NULL
    2
    NULL
    3
    NULL
    4
    NULL
    5
    34
    6
    12
    7
    34
    8
    10
    9
    45
    Any suggestions on how to achieve this will be helpful.
    - Girija
    Please mark responses as answered if it helped you.. This helps others... - Girija Shankar Beuria

    Hi Soma,
    that will not work. The measure is related to Activity id. The measure value per row is not value for LastActivityid.
    I want to show the measure value for last activity id and not this activity id. So there is an indirect relationshipid. Ideally the path would be :
    Activity id --> Figure out the last activity id for this activity id --> Get the measure value for last activity id..
    - Girija
    Please mark responses as answered if it helped you.. This helps others... - Girija Shankar Beuria

  • How to get Multiple Values for a single Variable in BPS.......

    Hi Gurus:
    I have a layout for planning, where I can plan for 5 days of the week. I also have a day column (yesterday) where I have the actual values. Users want to edit/foecast the next 5 days values. I am using a Variable to get the Date column which uses the System Date. However, since I am getting just one date in the Function Module (Code given below), the remaining days are greyed out and I can not enter the forecast values. I would like the same variable to get a series of dates in the same function module. What changes do I nee dto make in the ABAP code so that the remaining columns (Date) becaoe available for editing??
    The FM code I have to get "Today's Date" is as follows:
    FUNCTION ZCSHFL_GET_TODAY.
    ""Local Interface:
    *" IMPORTING
    *" REFERENCE(I_AREA) TYPE UPC_VAR-AREA
    *" REFERENCE(I_VARIABLE) TYPE UPC_Y_VARIABLE
    *" REFERENCE(I_CHANM) TYPE UPC_Y_CHANM
    *" REFERENCE(ITO_CHANM) TYPE UPC_YTO_CHA
    *" EXPORTING
    *" REFERENCE(ETO_CHARSEL) TYPE UPC_YTO_CHARSEL
    data: ls_charsel type upc_ys_charsel.
    ls_charsel-seqno = 1.
    ls_charsel-sign = 'I'.
    ls_charsel-opt = 'EQ'.
    ls_charsel-CHANM = I_chanm.
    ls_charsel-low = sy-datum.
    insert ls_Charsel into table eto_charsel.
    ENDFUNCTION.
    I want to get the Yestarday's Date as weel as dates for next 4 days from Today for this variable which are being used in the layout. Can anyone suggest the code tor this please.
    Thanks very much in advance......
    Best.... ShruMaa

    Hi,
    What I understand you need to return those dates from function module using parameter ETO_CHARSEL , right? If so just use this code:
    ls_charsel-seqno = 1.
    ls_charsel-sign = 'I'.
    ls_charsel-opt = 'BT'.  "we are giving ranges, so days between...
    ls_charsel-CHANM = I_chanm.
    ls_charsel-low = sy-datum - 1.  "...first day is yesterday
    ls_charsel-high = sy-datum + 4. "...and last day is 4 days from today
    insert ls_Charsel into table eto_charsel.
    This way you provide 5 days starting from yesterday till 4 days from today.
    Regards
    Marcin

  • How to get lookup value for a lookup_type and pass as a parameter in OAF

    Hi,
    I have requirement wherein I have to enable the "Add Attachment" Button only for a particular deliverable name.
    Steps I followed
    1) I have extended the corresponding Controller class.
    2) Sting str1="XYZ";
    3) Getting the attachment table bean and the deliverable name thru Data Mappings as Attachment is the built-in funtionality in OAF.
    4)Checking if the deliverable name whether it is equal to str1 or not
    Case1: If the deliverable name is not equal to str1 then I am placing the insertallowed as BOOLEAN.FALSE
    Case2:If not it will be enabled.
    5)The functionality as per the requirement is working fine.
    6)Here for str1 I have hardcoded the value initially but I need to take up the value from a lookup created for this value because may be in future if for more than one value the "Add Attachment" Button has to enabled they it will be easy to add in the look up only. No need to change the controller class.
    7) So please let me know the steps in getting the value from a lookup and have to pass the lookup values (Here str1--"XYZ","ABC","DEF") into the extended Controller Class.
    Thanks in Advance,
    Regards,
    Ramya

    Ramya,
    Here for str1 I have hardcoded the value initially but I need to take up the value from a lookup created for this value because may be in future if for more than one value the "Add Attachment" Button has to enabled they it will be easy to add in the look up only. No need to change the controller class.For this u need to iterate through the lookup values.
    Share ur existing Controller Code.
    Regards,
    Gyan

  • How to get modified values in selection screen

    address data  is filled in selection screen by default.
    if  we want to change the address on selection screen
    and pass it to another variable .how to handle this  please let me know

    Hi,
    Change the value of address in the selection screen by delting the default value and replcaing it by new 1.
    Then assigh this value of that variable to the new variable
    new_variable = variable.

  • How to get a Field for Selection in 8 Datasource

    Hello All,
    We have a scenario where in we need to change the Generated Export Datasource (8Z******) and check one more field for Selection, so that it appears in the Data Selection tab in InfoPackage.
    But I am not able to do that. I tried to change the transfer Structure for the same but to no luck. I also tried to change the Data Source in RSA6, but even that dint helped.
    In Ideal cases it should have taken all the Characteristic fields as Selection when the Export DS is generated, but for this particular case it took only 6 fields by default. I need to have one more field.
    Can anyone help me with this..??
    NOTE: We are working on 2004s.
    Regards
    Rohit Rakhan

    Hi,
    for Export DataSources, you can only use selections for Full-Update mode, when using the 3.x functionalities.
    But in 2004s, you can assign selections in your DTP.
    So the you'll export via export DataSource into the PSA and then perform selections via DTP onto the PSA-Data.
    hth
    Cheers
    Sven

Maybe you are looking for

  • Need Help with Photomerge Group Shot

    I'm trying to photomerge a group shot and having trouble with it.  The person I'm trying to cut out of the source photo gets plopped into the middle of the final photo and I can't line her up with in final shot.  Is there a way I can relocate the sec

  • You are not authorized[...] while completing bpm task.

    Hello community, i am facing a strange problem while completing bpm tasks. System is 7.3.1 SP5. User opens bpm task out of UWL or directly via link out of a email. The task UI is a WD4J component. Claiming works fine, UI is shown and user can work wi

  • Problem in Address Endaddress statement in sapscript

    Hello Friends, I have 1 problem in existing sap script for delivery where address is printed using command address endaddress. Problem is In output while displaying PO BOX text , it is displayed in DE language insted of EN whether logon lang is EN. R

  • Automatic time option is missing

    Im missing the "automatic time" option on my L920. Is there any way to enable it? Will gdr2 fix this problem? Why such a basic function is missing? Pls advice, help....

  • HT4623 I Cant update my ipod it tells me unknown error occurred

    I Cant update my ipod it tells me unknown error occurred