Search select one option to get selected value no description

Hello

I have a link called 'responsible' (source of data is the list by model).

The original version has the description and code of two attributes.

And I select only one option in jsff to represent above.

In value, replace listner I am discovering current selected information using code below
ADFUtils.evaluateEL("#{bindings.responsible.items['" + (Integer)valueChangeEvent.getNewValue() + "'].label}");
But it always gives me the description.

If I try
ADFUtils.evaluateEL("#{bindings.responsible.items['" + (Integer)valueChangeEvent.getNewValue() + "'].value}");
seems that it gives a certain number

I'm amazing hos to get the code?

Help needed please

Try this

    public void StatusChangedListener(ValueChangeEvent valueChangeEvent)
    {
        BindingContext lBindingContext = BindingContext.getCurrent();
        BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry();
        JUCtrlListBinding list = (JUCtrlListBinding) lBindingContainer.get("responsible");
        int newindex = (Integer) valueChangeEvent.getNewValue();
        Object row = list.getDisplayData(); // make sure the data is present
        Row lFromList = (Row)list.getValueFromList(newindex);
        Object lAttribute = lFromList.getAttribute("code");
        String newVal = (String) lAttribute;
        //.....
     }

Timo

Tags: Java

Similar Questions

  • ASD service - how to get the values of Description and reason in the workflow

    Hi all

    I've created a workflow-based service of ASD. When the catalog of the ASD is requested, the first tab is 'Request information' which has the field description and reason. How to access these values to the underlying stream.

    Thank you

    Hello

    Here's a simple solution:

    ASDRequestId = System.getContext () .getParameter ("__asd_catalogRequestId");

    ASDRequest = vCACCAFEEntitiesFinder.getCatalogItemRequest(vRA_CAFEHost,ASDRequestId);

    Request_Reason = ASDRequest.reasons;

    Request_Description = ASDRequest.description;

    Request_Owner = ASDRequest.requestedFor;

  • HW 2 get the value to select only one option selected by the user in the bean support

    IAM using the select only one option button that is filled during execution.

    I want to get the value selected by the user of a choice selection in the bean to support for other operations of... .IAM using this method, but I got a null pointer exception.

    Public Sub test (ValueChangeEvent tokenChange)
    {
    Integer tokenIndex = (Integer) tokenChange.getNewValue ();
    DCIteratorBinding tokenListIter is getBindings1 () .findIteratorBinding ("TokenIDVOIterator");. in this line null pointer exception
    Token of the line = tokenListIter.getRowAtRangeIndex (tokenIndex.intValue ());
    currenttoken = (Number) token.getAttribute ("TokenId");
    System.out.println ("token ID selected:" + currenttoken);

    }

    I want to know if there is any method to get the value of the value selected by the user to select a choice...

    pls help? //

    3 words:

    "research on the forum.

    asked and answered countless times.

  • I can't and never been able to open a file that was previously saved on hard disk by selecting the print option to get in the print dialog box

    I can not and never been able to open a file that was previously saved on hard disk by selecting the print option to get in the print dialog box. Firefox displays gooblygook, even if the name of file is an html element, the Notepad of Windows crashes, MS Excel does not recognize the file type. MS Word also displays goobblys when the file has no file extension.

    If you use the file printing, then you will get a file that is supposed to be sent to a printer, and this file has any sort of code formatting for this printer.

    Open such a file in Firefox or a text editor can only work if you use one printer for text to print the file to, then make sure that such a printer is installed and selected.

  • Exception while trying to get the selected value for the choice of SelectOne in ADF Mobile

    I added the following code after arriving through this post https://forums.oracle.com/thread/2536419

    DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("facilitySelectItems");

    Attribute String = (String) iterBind.getCurrentRow () .getAttribute (0);

    But Jdeveloper complained class BindingContext wasn't available and I get the jar file adfm.jar has not been added to the project. I added it manually the path C:\JDeveloper11r24\oracle_common\modules\oracle.adf.model_11.1.1\adfm.jar. Once I've deployed code on an android emulator, I get the below error. Can someone please?

    07-25 13:18:03.812: D/CordovaLog (869): [SEVERE - oracle.adfmf.framework - adf.mf.internal - logError] request: {classname: oracle.adfmf.framework.api.Model; method: evaluateMethodExpression; params: [0: #{pageFlowScope.IBCMSearchBean.getSearchParams}] [1:] [2: {}] [3:] ;} exception: {message: oracle/adf/model/binding/DCBindingContainer (unsupported major.minor version 50.0); the severity: ERROR; .Guy: oracle.adfmf.framework.exception.AdfException; .exception: true ;}}}

    The version of the compiler maximum the JDev shows that 1.4. And I'm using version 11.1.2.4.0 for JDeveloper. The JDK version is 1.6.0_24.

    Sorry I missed the question!

    First of all, to get the value of selectedItem in selectOneChoice do not have another function in the domain controller. Here is an excellent article by Frank that explains this. Or you can use the below function to get the selected value immediately. Here the market is the value of selectOneChoice attribute. I wasn't aware of this method until you have read this article.

    {} public void getAndSetMarketValue (market of the object)

    ValueExpression ve = (ValueExpression) AdfmfJavaUtilities.getValueExpression ("#{bindings.marketSelectItems}", Object.class);

    AmxAttributeBinding attrBinding = (AmxAttributeBinding) ve.getValue (AdfmfJavaUtilities.getAdfELContext ());

    access the iterator that populates the list of values in

    the selectManyChoice component

    AmxIteratorBinding amxListIterator = attrBinding.getIteratorBinding ();

    the AmxIteratorBinding is a wrapper for the BasicIterator

    iterator which sets out the information we need

    ListIterator BasicIterator = amxListIterator.getIterator ();

    for each index value, query the name of the service (you can

    access and attribute from the line) to display

    SelectedValue = string

    (String) listIterator.getAttributeValueAtIndex (((New Integer ((String) market))) .intValue (), "Value");

    }

    Second, you can use #{row} in commandLink's action since it is something that is evaluated when the user clicks on the link and we do not have access to #{line} after that the entire component is rendered. To remedy this give an action for the commandlink which is a function in the bean and the function of bean back to the action of the link selected.

    ListOfReports.amx

    .......

    .......

    LoginBean.java

    ......

    public String returnClickValue() {}

    Option of string = AdfmfJavaUtilities.evaluateELExpression("#{viewScope.selectedItem}").toString ();

    return option;

    }

    ......

  • 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 make any attribute to select one option to read only based on different att

    I have two select a choice .one attribute is to create without binding and another is based on the control of data .i don't want to write code in backing bean to make read-only attribute.

    Example:
    < af:form id = "f1" >
    < af:selectOneChoice label = "Label 1" id = "soc1.
    autoSubmit = "true" >
    < af:selectItem label = 'Y' value = 'Y' id = "si3" / >
    < af:selectItem label = "N" value = "N" id = "si1" / >
    < / af:selectOneChoice >
    < af:selectOneChoice value = "#{bindings." ViewObj.inputValue}.
    label = "#{bindings." ViewObj.label}.
    required = "#{bindings." ViewObj.hints.mandatory}.
    shortDesc = "#{bindings." ViewObj.hints.tooltip}.
    ID = "soc2" partialTriggers = "soc1" >
    < f: selectItems value = "#{bindings." ViewObj.items}"id ="si2"/ >
    < / af:selectOneChoice >
    < / af:form >

    on the basis of the choice of a second selection select choice should be disable.



    I know I need to link select all first choice of backing bean also make self submit true and add partialTriggers in second select only one option.


    Please give me advice


    Thank you

    Prateek

    is there a any error

    Yes, Af.l1 in your case is the component itself not the value returned by the list.

    Change it like this:

    
         
         
              
              
         
         
              
              
         
    
    
    package a;
    public class A {
         private String l1;
    
         public A() {
         }
    
         public void setL1(String l1) {
              this.l1 = l1;
         }
    
         public String getL1() {
              return l1;
         }
    }
    

    Jean Lou

  • Get the value of select Combobox data

    Hi all

    I have a major issue while trying to get the value of the items selected through the change event in a combobox control.  Here is my code... I really need help ASAP... Thanks in advance

    public var test:ArrayCollection = new ArrayCollection([
                { Id:"one", Amount:2000 },
                { Id:"two", Amount:1000 },
                { Id:"three", Amount:200 } ]);

    protected function regionCB_changeHandler(event:ListEvent):void
                   {
                      Alert.show(//tried so many things here to acces the items amount field.. nothing is working
                   }
    <s:ComboBox change="regionCB_changeHandler(event)" dataProvider="{test}" labelField="Id" id="regionCB" visible="false" />

    Have you tried selectedItem.Amount?

  • Get the selected value in the list drop-down/messagechoice

    Hi friends,
    App R12.
    I create a drop-down list programmatically in the process request:

    OAMessageChoiceBean OAMC = oapagecontext.getWebBeanFactory () .createWebBean (OAWebBeanConstants.MESSAGE_CHOICE_BEAN, null, oapagecontext, null) (OAMessageChoiceBean);

    oamc.setPickListViewUsageName ("MyVO1");
    oamc.setListValueAttribute ("MyId");
    oamc.setListDisplayAttribute ("MyDescription");
    oamc.setID ("xxMypicklist");
    oamc.setRendered (Boolean.TRUE);
    oawebbean.addIndexedChild (oamc);

    This shows the list of choices and there MyVO1 query search results.

    Now, I want retrieve value MyId in the processFromRequest (after pushing a button on the screen). I do the following:

    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    ...
    MyVOImpl myvoimpl = (MyVOImpl) am.findViewObject("MyVO1");
    MyVORowImpl PicklistRow = myvoimpl.getCurrentRow ((MyVORowImpl));
    NUMBER auxId = (NUMBER) PicklistRow.getAttribute ("MyId"); THIS SENTENCE GIVES A NULL POINTER EXCEPTION

    Then..., is not enough to find the original Version? and get the rank "perceive"... and then get the desired attribute?

    Do I need to load data from MyVO1 into myvoimpl? How? How to get the folder selected on the screen?

    Many thanks for any help. It is very urgent for me to solve this problem. Dev guide does not help with this kind of usual problems.
    Jose L.

    Hello

    u can not get the value of this way, becz you try to get the value of the original Version which is used for bean of choice message, to get the value selected in this field of choicebean message, you must get the VO initialized for this page, both would be different VO, you can opt for the following approach

    (1.) an another VO wiil be there in your page get implemented to capture the data on this page, the attribute of this VO would be added to your field of beans of choice, need to understand that VO and and capture your selected value.

    or the other way is

    2.), you can change your code in the same way in the pR method

    OAMessageChoiceBean OAMC = oapagecontext.getWebBeanFactory () .createWebBean (oapagecontext, OAWebBeanConstants.MESSAGE_CHOICE_BEAN, null, "XXMypicklistBean) (OAMessageChoiceBean);

    and get the selected value in pFR method in this way

    OAMessageChoiceBean getCHBean = (OAMessageChoiceBean) (webBean.findIndexedChildRecursive ("XXMypicklistBean"));

    String val = (String) getCHBean.getValue (pageContext));

    thanx

    Pratap

  • When I select this option I get the dialog box 'Create image s system' but it cannot find any 'backup devices on this computer"and lists the error 0 x 81000036

    Error image system original title: windows 7 0 x 81000036

    I'm doing a backup system image.  When I select this option I get the dialog box 'Create image s system' but it cannot find any 'backup devices on this computer"and lists the error 0 x 81000036.

    I have an ESATA connection on my Dell laptop I was trying to make the image on.  I use the unit every day to save files and which works very well.  He just leaves me CCADE with the system image backup...

    any ideas?

    Hello

    ·         You have created a system image backup before that?

    ·         You did it changes on your computer?

    ·         Is your esata formatted NTFS drive?

    Try to save the image of the boot system: http://support.microsoft.com/kb/929135

    Note: make sure that you start the computer in normal mode after a repair.

    See also the linkfor more information about the backup: http://windows.microsoft.com/en-US/windows7/Back-up-your-programs-system-settings-and-files

  • APEX new documentation of tree - get selected value

    Hello

    I played for a while with the new tree APEX and also the sample application that I have not found anything at all on this subject. Unfortunately after a few painful hours, I'm not even able to get is of value (at least, I guess it should be possible somehow to get the value of a selected node). The only documentation that I could find was this:

    SQL query

    Enter the SQL source for this component.

    Examples

     select case when connect_by_isleaf = 1 then 0 when level = 1 then 1 else -1 end as status, level, ename as title, 'icon-tree-folder' as icon, empno as value, ename as tooltip, null  as link from emp start with mgr is null connect by prior empno = mgr order siblings by ename 

    More information

    • Type: SQL statement
    • Supported Bind Variables: Application, Page and System Variables
    • The minimum column: 7
    • The maximum column: 7

    So please, any ideas how to get the value of a selected node would be highly appreciated. There is already a similar question here APEX 5.0 tree , but the proposed solution redirects to the same page and sets the item via the link values. I don't want to redirect anywhere, do anything, I just want to read the value of a selected node.

    Thank you very much

    Pavel

    I simplified my previous solution and she calls a underlying $s directly from select function, is not necessary to create a JS function in a header.

    So all we need to do are:

    (1) create an element on the page P1_SELECTED_EMP

    (2) create a region of the tree and as a source of the region use the following select

    select case when connect_by_isleaf = 1 then 0
                when level = 1            then 1
                else                          -1
          end as status,
          level,
          "ENAME" as title,
          'fa-folder' as icon,
          empno as value,
          empno as tooltip,
          'javascript:$s(''P1_SELECTED_EMP'', '''||EMPNO||''')' as link
    from "#OWNER#"."EMP"
    start with "MGR" is null
    connect by prior "EMPNO" = "MGR"
    order siblings by "ENAME"
    
  • ([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

  • I can't get my calculations right away, even after the selection "commit selected value immediately" on my drop-down menus. Any ideas?

    I can't get my calculations right away, even after the selection "commit selected value immediately" on my drop-down menus. Any ideas?

    The field calculation order is probably not set correctly. The specific configuration procedure it depends on which version of Acrobat you are using. Acrobat 11, you would go first in forms editing mode (Tools > forms > change), and then select:

    Tasks > other tasks > set field calculation order

Maybe you are looking for