SelectOneChoice

Hello

I use Jdev 11.1.2.4

I have a voLOV which has a required parameter.

There is a table that contains a column of voLOV and another column that is in fact the required parameter.

My use case is such that when I click on the lov, it should pass the value of the column required as parameter, run the VO and display the LOV.

The code of the selectOneChoice column is as follows:-

< af:column sortProperty = "#{bindings." DtlVO1.hints.TransactionId.name}"blockable ="true"sortable ="true ".

headerText = "#{bindings." DtlVO1.hints.TransactionId.label}"id ="c8">

< af:selectOneChoice value = "#{row.bindings.TransactionId.inputValue} '"

label = "#{row." Bindings.TransactionId.label}.

required = "#{bindings." DtlVO1.hints.TransactionId.mandatory}.

shortDesc = "#{bindings." DtlVO1.hints.TransactionId.tooltip}"id ="soc2">

< f: selectItems value = "#{row.bindings.TransactionId.items}" id = "si2" / > "

< / af:selectOneChoice >

< / af:column >

Link to page code

< methodAction id = "Det" InstanceName = "data. DataControl WBDataControl.dataProvider"="WBDataControl. "

RequiresUpdateModel = 'true' Action = 'invokeMethod' MethodName = "Det" IsViewObjectMethod = "false" >

< NamedData NDName = "p_itemid" NDValue = "#{row.bindings.InventoryItemId.inputValue}" NDType="java.lang.Integer"/ > "

< / methodAction >

The lov must change all the rows according to the value of the column "inventory_item_id."

Kind regards

There is a table that contains a column of voLOV and another column that is in fact the required parameter.

My use case is such that when I click on the lov, it should pass the value of the column required as parameter, run the VO and display the LOV.

you never mentioned the parent, so clear your condition value

you pass vo even attribute or relationship master detail and you wish to pass the value of the key attribute in the lov child accessor?

For same VO-see previous comment

For VO parent-just use viewLinkAccesorName.AttributeName

Thank you

Tags: Java

Similar Questions

  • Apply a color style to a selectOneChoice in a table

    Hello

    I created a table in which there are several types of objects like the outputText and selectOneChoice.

    <af:table value="#{bindings.AegEnteteView1.collectionModel}" var="row"
                                  rows="#{bindings.AegEnteteView1.rangeSize}"
                                  emptyText="#{bindings.AegEnteteView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                                  rowBandingInterval="0"
                                  selectedRowKeys="#{bindings.AegEnteteView1.collectionModel.selectedRow}"
                                  selectionListener="#{bindings.AegEnteteView1.collectionModel.makeCurrent}"
                                  rowSelection="single" fetchSize="#{bindings.AegEnteteView1.rangeSize}" id="t1"
                                  binding="#{backingBeanScope.backing_export1_gestion_aeg.t1}" scrollPolicy="page"
                                  partialTriggers=":::b1">
                            <af:column headerText="#{sigifappcentralBundle.SOCI_U00E9T_U00E9}" id="c17" width="180">
                                <af:selectOneChoice value="#{row.bindings.Idsocieteae.inputValue}"
                                                    label="#{row.bindings.Idsocieteae.label}"
                                                    required="#{bindings.AegEnteteView1.hints.Idsocieteae.mandatory}"
                                                    shortDesc="#{bindings.AegEnteteView1.hints.Idsocieteae.tooltip}"
                                                    readOnly="true" id="soc3">
                                    <f:selectItems value="#{row.bindings.Idsocieteae.items}" id="si3"/>
                                    <f:validator binding="#{row.bindings.Idsocieteae.validator}"/>
                                </af:selectOneChoice>
                            </af:column>
                            <af:column headerText="#{sigifappcentralBundle.REF__USINE}" id="c5" width="100">
                                <af:outputText value="#{row.Refusineae}"
                                               shortDesc="#{bindings.AegEnteteView1.hints.Refusineae.tooltip}" id="ot5"/>
                            </af:column>...
    

    Later, I applied styles to the table so that when I walk through the cursor, the line changes color and written too.

    af|table::data-row:highlighted af|column::data-cell, af|column::data-cell:hover {
      background-color:#82C138;
      color: red;
    }
    

    My problem is that only the outputText columns act as if I expected (color change to move the mouse); on the selectOneChoice, written columns keep their color even

    Thank you

    The superimposition of selectOneChoise cell. You need the selectOneChoice too to get the effect desired skin.

    Timo

  • Size of the selectOneChoice

    It is possible to prevent, to selectoneChoice, the amount of data that he wears. In other words, I want to load q 25. Is it possible to control it, as we do through arrays of the size range?

    Refer

    https://blogs.Oracle.com/ADFProgrammers/entry/restrict_the_number_of_items

    ADF SelectOneChoice selectItems supports Fetch size such as ADF table.

  • SelectOneChoice required field validation problem

    Got a query on the selectonechoice required field validation

    Below is the code works well, I generate the list of static elements (VO)

    < af:selectOneChoice value = "#{bindings." Division.inputValue}.

    label = "Division" styleClass = "Division".

    required = "true" autoSubmit = 'true '.

    shortDesc = "#{bindings." Division1.hints.ToolTip}.

    ID = "soc1" >

    < af:forEach elements = "#{bindings." Var Division1.Items}"="row">

    "< f: selectItem itemLabel =" #{row.label} "ItemValueOptional =" #{row.label} ".

    ID = "si21x1x25" / >

    < / af:forEach >

    < / af:selectOneChoice >

    The question is how to add "- Select -" in the above code and default value "- Select -" selected must, if the value is "- Select -", he must request the validation

    I want to be the label = "- Select -" to be selected by default

  • How to reset the value of selectOneChoice when it is af:table

    12.1.3 Jdev

    I need to reset the selectOneChoice of the first empty value when you click a Refresh"" button.  The selectOneChoice is located in one of the columns of af: table.  I tried to reset by getting the selectOneChoice component and set the value to «»   Please see the snipplet of code for more details. However if the selectOneChoice is not within the af: table, then using the same way to reset works!

    in jspx

    "< af:commandToolbarButton id ="ctb15"icon="/images/refresh_qualifier.png "shortDesc ="Refresh"action =" #{viewScope.backing_requestOverview.onRefresh} "partialSubmit ="false"> < / af:commandToolbarButton >"

    < af:table value = "#{bindings." ItasTaskAssigneesListVO1.collectionModel}.

    var = "row".

    lines = ' #{bindings. " ItasTaskAssigneesListVO1.rangeSize}.

    emptyText = "#{bindings." ItasTaskAssigneesListVO1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." ItasTaskAssigneesListVO1.rangeSize}.

    rowBandingInterval = '1' id = 't4 '.

    styleClass = "AFStretchWidth."

    columnStretching = "column: c1.

    rowSelection = 'single '.

    selectionListener = "#{bindings." ItasTaskAssigneesListVO1.collectionModel.makeCurrent}.

    selectedRowKeys = ' #{bindings. " ItasTaskAssigneesListVO1.collectionModel.selectedRow} ">"

    < af:column id = "c6" headerText = "Action".

    rendering = "#{bindings." EventLevelTypeCode.inputValue! ' = ' 10 G ' & amp; & amp;! viewScope.backing_requestOverview.isReadOnly} ">"

    < af:selectOneChoice id = "soc2".

    autoSubmit = 'true '.

    valueChangeListener = "#{viewScope.backing_requestOverview.onChangeMyPendingAction} '"

    Disabled = "#{!}" line. TaskActionEnabled} ">"

    < f: selectItems value = "#{backing_requestOverview.actionsMap [row." StatusUid]} ".

    ID = "si3" / >

    < / af:selectOneChoice >

    < / af:column >

    < / af:table >

    < af:selectOneChoice id = "soc222" >

    < af:selectItem label = "Complete"

    value = "COMPLETE"

    ID = "si4" / >

    < af:selectItem label = "Assign".

    value = "ASSIGN".

    ID = "si555" / >

    < / af:selectOneChoice >

    Java bean:

    public String onRefresh() {}

    RichSelectOneChoice actionDropdown = (RichSelectOneChoice) JSFUtils.findComponentInRoot ("soc2");

    actionDropdown.setValue("");

    RichSelectOneChoice actionDropdown2 = (RichSelectOneChoice) JSFUtils.findComponentInRoot ("soc222");

    actionDropdown.setValue("");

    If (actionDropdown! = null) {}

    AdfFacesContext.getCurrentInstance () .addPartialTarget (actionDropdown);

    }

    If (actionDropdown2! = null) {}

    AdfFacesContext.getCurrentInstance () .addPartialTarget (actionDropdown2);

    }

    }

    Please notify.

    Thank you

    -Mina

    The root of the problem remains the same. As long as you don't set a value for each of SPC property that you use, you cannot reset them without running into trouble.

    An soc within a table must be stored too, you must provide the form of attribute value each of them. If you only use a soc, to distinguish the action to take, it belongs in the table.

    Timo

  • How to display the different attribute value in the ToolTip of selectonechoice

    In the selectonechoice when hovering over the values in the drop-down list, it displays the same value in the ToolTip too. I want to see the value of another attribute in the ToolTip.

    For example if the list displays the name of the lov, ToolTip should show its description attribute value. I tried assigning a different value to shorDesc, but have no effect on the values of the ToolTip.

    selectonechoice_tooltip.jpg

    < af:selectOneChoice value = "#{row.bindings.TfesNdx.inputValue} '"

    label = "#{row." Bindings.TfesNdx.label}.

    required = "#{bindings." ATfes.hints.TfesNdx.mandatory}.

    shortDesc = "#{bindings." ATfes.hints.TfesNdx.tooltip}"/ / changed it to shortDesc =" #{row.bindings.Notes.inputValue} "does not yet "

    ID = "soc17" autoSubmit = "true" >

    < f: selectItems value = "#{row.bindings.TfesNdx.items} '"

    ID = "si17" / >

    < / af:selectOneChoice >

    PS: Using 11.1.1.7.0 version adf

    You probably need property shortDesc on af:selectItem http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_selectItem.html

    For example, you can use af:forEach to make your items to select like in this blog post: http://learnfrommike.blogspot.com/2013/11/adf-using-selectonechoice-in-afiterator.html

    Dario

  • AF:selectOneChoice with no empty entry, the first during the CREATION value

    JDeveloper 12.1.3

    I thought that this is done by the framework and then after that some research it seems must be encoded. Looking for best practice.

    In my VO, for certain attribute so I created LOV using VO another for the list of values. I specifically to deselect the option "include any element of selection." During CREATE it, it must be that the af: selectOneChoice don't NOT have an empty value and so by default regardless of (first) row of the list.

    I read this blog http://www.gebs.ro/blog/oracle/oracle-adf-select-one-choice-default-selection/

    and wonder if it is the best possible approach (work environment 12 c)

    Listeners of phase can be tricky to handle correctly (and I wonder if solution in targeted Blog will break if lov is empty).

    In addition, JSFUtils.findComponentInRoot ("socDepartment"); probably will not work in the region...

    So, maybe you can solve this completely (and consistently) in the model layer.

    For example, you can generate for your 'main' VO class ViewRowImpl, override the getter for your attribute and allows to obtain the value first lov lov accessor VO.

    or in pseudo-code:

    public SomeType getSomeAttrib(){
         Object value = getAttributeInternal(SOMEATTRIB);
         if(value == null){
            Row r = this.getYourLovAccessor().first();
            if(r != null){
                value = r.getAttribute("SomeAttribFromLov");
           }
         }
         return (SomeType)value;
    }
    

    Dario

  • SelectOneChoice based on the view object

    Hello

    I have a simple need to create a selectOneChoice based on viewObject.

    If I drag the VO dataControle Panel and drop it into the page as a selectOneChoice, I have something like this

    < af:selectOneChoice value = "#{pageFlowScope.myBean.mySelectedValue} '"

    label = "#{Bindings.myVO.label} '"

    required = "#{bindings. . myVO. hints.mandatory}.

    shortDesc = "#{bindings. . myVO. hints.ToolTip}"id ="soc2">

    < f: selectItems value = "#{bindings. . "{myVO.some}" id = "si4" / >

    < / af:selectOneChoice >

    NB. I manually modified value points to an attribute in the bean

    The problem is that when the user choose a value and submit, the value set in the myBean.mySelectedValue is that the label not display the code (actually I don't know where I can choose which attribute represent the value).

    So, how can I ask to ADF to set the value, and not on his label as the value selected in the selectOneChoice.

    NB. in the case of slectManyChoice, when we drop the VO, the popup displays choose us the attribute which is the base attribute and the screen, but this is not the case for selectOneChoice.

    Thank you

    Elias.

    I now, however, it's the simplest solution possible. You do not have to use the VO itself that you store the selection elsewhere. You can create a VO with a transitional attribute that allows you to create a list of value. This allows you to leave the framework it's magic.

    Timo

  • Select all radio buttons in a table based on the value of selectOneChoice

    Hi all

    I have a selectOneChoice with two values

    positive i.

    II. negative

    1.png

    created vo and am

    I have an adfTable with selectOneRadio added as a transitional attribute.

    The table is created on the vo.

    2.png

    what I have to do is, when the user select positive of selectOneChoice all the positive radiobutton in the adfTable must be selected and the same for negative also.

    3.png

    I can get the value of the selectOneChoice in the bean using valueChangeEvent.

    But I need assistance in the selection of all positive values in adfTable using the selectOneChoice value.

    Reference would be useful.

    Thank you very much

    Kind regards

    Jean-Felix

    Hi all

    Let me post the answer, hope this helps someone.

    selectOneChoice

    Positive P

    N negative

    on selectOneChoice event ValueChangeListener

    to loop through the rows of the adfTable

    If valueChangeEvent.getNewValue () is equal to 'p '.

    Assign PositiveRadiobtn attribute 'p '.

    otherwise set it to "n".

    Kind regards

    Jean-Felix

  • setValue and getValue selectOneChoice

    Jdev 11.1.1.7

    try the following code:

    Have a selectOneChoice as:

    < af:selectOneChoice value = "#{bindings." ApplicationsVO1.inputValue}.

    label = "Select the Application" autoSubmit = 'true '.

    required = "#{bindings." ApplicationsVO1.hints.mandatory}.

    shortDesc = "#{bindings." ApplicationsVO1.hints.tooltip}.

    ID = "soc1.

    Binding = "#{pageFlowScope.CRoleARoleBean.applicationSOC}" >

    < f: selectItems value = "#{bindings." ApplicationsVO1.items}.

    ID = "si1" / >

    < / af:selectOneChoice >

    The following execution time:

    "String temp = getApplicationSOC () .getValue ()! = null? getApplicationSOC () .getValue () m:System.NET.SocketAddress.ToString ():" ";" "

    getApplicationSOC () .setValue (temp);

    Basically, to get the value and set the same value but get following error message:

    < SimpleSelectOneRenderer > < _getSelectedIndex > could not find selected corresponding to the "9" value item < index of the selected item > in RichSelectOneChoice [UIXEditableFacesBeanImpl, id = soc1]

    What is the problem with this approach?

    This is the right way to do:

    "String appId = getApplicationSOC () .getValue ()! = null? getApplicationSOC () .getValue () m:System.NET.SocketAddress.ToString ():" ";" "

    int appIdInt = Integer.parseInt (! appId.equals("")? appId: "0");

    getApplicationSOC () .setValue (appIdInt);

    SetValue would recognize that if a whole and not a string that is the reason why I was getting

    <_getSelectedIndex>Did not find selected corresponding to heart... item exception

  • SelectOneChoice VO, control problem

    I use "Custom SQL" VO (read only VO) to fill the component SelectOneChoice I need some form of entry. The requirement is that in this element, the values are sorted and I tried ' Orader by ' vo. However when I move desired attribute from left right "in order to", it looks like nothing is happening, VO seems unchanged, and the sorting feature does not work. Is this a bug?

    It's just a bug JDeveloper - ADF always supports OrderBy without problem - but it would be ridiculous not reach.

    Just add the OrderBy = 'salary desc' attribute manually in your tag ViewObject.

    Remember that typing the ORDER BY clause directly in the SQL body will create unwanted performance issues when used in af:tables with the active sort, because the query are as follows:

    SELECT * FROM (select employee_id, salary from employees by salary desc) QRSLT ORDER BY employe_id

    On the other hand, if you use the ORDER BY clause, the query will be a single ORDER BY clause.

    Another note: JDeveloper and ADF are two products different, developed by two different teams. Sometimes, the teams synchronize perfectly.
    Therefore, I can work around a bug in Jdeveloper as ADF DURATION works correctly.

  • How to apply the vertical scroll bar to &lt; af:selectOneChoice &gt;?

    Hi all...

    JDeveloper Version is 11.1.1.7.1

    My use case is as follows:

    I used < af:selectOneChoice > that contains 10 items. When the user clicks on an item, instead of a list of all the Articles 10, I want only 3 items to display, remaining is displayed only when the user scroll down.

    Here is my code:

    < af:selectOneChoice label = "Numbers".

    Binding = "#{backingBeanScope.backing_scroll." Soc1}.

    ID = "soc1" >

    < af:selectItem label = "Item1" value = "One"

    Binding = "#{backingBeanScope.backing_scroll." SI1}.

    ID = "si1" / >

    < af:selectItem label = "Item2" value = "Two"

    Binding = "#{backingBeanScope.backing_scroll." SI2}.

    ID = "si2" / >

    < af:selectItem label = 'Item3' value = "Three"

    Binding = "#{backingBeanScope.backing_scroll." Si3}.

    ID = "si3" / >

    < af:selectItem label = "Item4" value = "Four"

    Binding = "#{backingBeanScope.backing_scroll." Si4}.

    ID = "si4" / >

    < af:selectItem label = "Item5" value = "Five"

    Binding = "#{backingBeanScope.backing_scroll." Si5}.

    ID = "i5" / >

    < af:selectItem label = "Item6" value = "Six"

    Binding = "#{backingBeanScope.backing_scroll." Si6}.

    ID = "si6" / >

    < af:selectItem label = "Item7" value = "Seven"

    Binding = "#{backingBeanScope.backing_scroll." Si7}.

    ID = "si7" / >

    < af:selectItem label = "Item8" value = "Eight"

    Binding = "#{backingBeanScope.backing_scroll." Si8}.

    ID = "si8" / >

    < af:selectItem label = "9" value = "Nine"

    Binding = "#{backingBeanScope.backing_scroll.si9} '"

    ID = "si9" / >

    < af:selectItem label = "Article 10" value = "10"

    Binding = "#{backingBeanScope.backing_scroll.si10} '"

    ID = "si10" / >

    < / af:selectOneChoice >

    How can I accomplish this? Any suggestions?

    Hi all

    JDeveloper by default displays a vertical scroll bar if it has more than 20 Articles in selectOneChoice.

    Thank you.

  • Programming selectonechoice on the Board of the ADF

    Hello

    I have an ADF Table I created by dropping a VO on the page. Now, in one column of the table, I have replaced the inputtext selectonechoice and selectonechoice East of programmatically filling.

    When the form is open in design mode, I get the list COS values programmatically and I select the value of SOC and save on DB and it works fine. But when I open it in edit mode, I want no matter what value is there in the database must be screened in the SelectOneChoice programming.

    Code for table JSFF is:

    < af:table value = "#{bindings." Var LtpuserView1.collectionModel}"="row ".

    lines = ' #{bindings. " LtpuserView1.rangeSize}.

    emptyText = "#{bindings." LtpuserView1.viewable? "{'No data to display.': 'Access Denied.'}".

    rowBandingInterval = '0 '.

    selectedRowKeys = ' #{bindings. " LtpuserView1.collectionModel.selectedRow}.

    selectionListener = "#{bindings." LtpuserView1.collectionModel.makeCurrent}.

    "single' = rowSelection fetchSize =" #{bindings. " LtpuserView1.rangeSize}"id ="t2 ".

    >

    < af:column headerText = "#{res ['rta.]}" "{[Criteria ']}" id = "c5" >

    <!-value = "#{bindings." LtpuserView11.inputValue} "->".

    < af:selectOneChoice label = "#{bindings." LtpuserView11.label}.

    required = "#{bindings." LtpuserView11.hints.mandatory}.

    shortDesc = "#{bindings." LtpuserView11.hints.tooltip}"id ="soc8 ".

    valueChangeListener = "#{RTALongTermBindingBean.criteriaIdForUserChanged} '"

    autoSubmit = 'true '.

    Binding = "#{RTALongTermBindingBean.userCriteriaSOCBinding}" value = "#{bindings. LtpuserView11.inputValue}.

    >

    < f: selectItems value = "#{pageFlowScope.RTALongTermPlanBean.criteriaItemList} '"

    ID = "si13" / >

    < / af:selectOneChoice >

    < / af:column >

    < af:column headerText = "#{res ['rta.]}" "{[Users ']}" id = "c6" >

    < af:selectOneChoice value = "#{row.bindings.Userid.inputValue} '"

    label = "#{row." Bindings.UserID.label}.

    required = "#{bindings." LtpuserView1.hints.Userid.mandatory}.

    shortDesc = "#{bindings." LtpuserView1.hints.Userid.tooltip}"id ="soc4">

    < f: selectItems value = "#{row.bindings.Userid.items}" id = "si9" / > "

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

    < / af:selectOneChoice >

    < / af:column >

    < af:column headerText = "#{res ['rta.]}" "{[BackUpUser']}" id = "c7" >

    < af:selectOneChoice value = "#{row.bindings.BackupUserid.inputValue} '"

    label = "#{row." Bindings.BackupUserid.label}.

    required = "#{bindings." LtpuserView1.hints.BackupUserid.mandatory}.

    shortDesc = "#{bindings." LtpuserView1.hints.BackupUserid.tooltip}.

    ID = "soc5" >

    < f: selectItems value = "#{row.bindings.BackupUserid.items}" id = "si10" / > "

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

    < / af:selectOneChoice >

    < / af:column >

    < af:column headerText = "#{res ['rta.]}" "{[Approver ']}" id = "c8" >

    < af:selectOneChoice value = "#{row.bindings.Approverid.inputValue} '"

    label = "#{row." Bindings.Approverid.label}.

    required = "#{bindings." LtpuserView1.hints.Approverid.mandatory}.

    shortDesc = "#{bindings." LtpuserView1.hints.Approverid.tooltip}.

    ID = "soc6" >

    < f: selectItems value = "#{row.bindings.Approverid.items}" id = "si11" / > "

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

    < / af:selectOneChoice >

    < / af:column >

    < af:column headerText = "#{res ['rta.]}" "{[BackUpApprover']}" id = "c9" >

    < af:selectOneChoice value = "#{row.bindings.BackupApproverid.inputValue} '"

    label = "#{row." Bindings.BackupApproverid.label}.

    required = "#{bindings." LtpuserView1.hints.BackupApproverid.mandatory}.

    shortDesc = "#{bindings." LtpuserView1.hints.BackupApproverid.tooltip}.

    ID = "soc7" >

    < f: selectItems value = "#{row.bindings.BackupApproverid.items}" id = "si12" / > "

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

    < / af:selectOneChoice >

    < / af:column >

    < / af:table >

    Please help me on this.

    Thanks and greetings

    Rati

    Outside the query, check value of #{row.bindings.Criteriaid.inputValue} , it returns the value or index?

    a new column in the table and the text inside output and set the value of its value as a #{row.bindings.Criteriaid.inputValue} and the value of control for all lines

    Ashish

  • selection of default choice for selectOneChoice in the JSF Page in the ADF

    I want to show the default choice in af:selectOneChoice here is the component of selectOneChoice

    < af:selectOneChoice label = "Search the Notifications" id = "soc1.

    Binding = "#{SupervisorApprovalsBean.lovNotificationType} '"

    valueChangeListener = "#{SupervisorApprovalsBean.searchNotificationLovChange} '"

    autoSubmit = 'true '.

    inlineStyle = ' height: 15px ">

    < af:selectItem label = "Approved" value = "Y" id = "si3" / >

    < af:selectItem label = "Denied" value = "N" id = "si1" / >

    < af:selectItem label = "Raw" value = "U" id = "si2" / >

    < af:selectItem label = 'All' value = 'A' id = "si4" / >

    < / af:selectOneChoice >

    I want to choose the third selectItem. How can I do?

    User, tell us your version of jdev, please!

    To do this, you set the value property to the index of the default value. You ave not set the property value at all, it means that the selection is not stored at all.

    Timo

  • selectOneChoice displays the first value of the attribute

    Hi people,

    In my demo application, there are a couple of selectOneChoice drop down LOV which are based on the query based VO. The UnselectedLabel property is set to "No Selection". These LOVs are used to filter the set of query data. When the drop down menus are not called and the push of a button, the LOVs, behind the stage, have the first value of the attribute that is assigned automatically. Is there a way to ciircumvent the issue without the implementation of valueChangeEventListener?

    Thank you

    udys

    udys,

    It's not like you have implemented correctly.

    1. the error message says:

    "The class"oracle.summit.selfservice.view.HZHRLocsocBean"does not have the property"vLocvalue"

    On the screenshot, it is clear that the name of the variable is "fromLovValue" and not "vLocvalue". Please make sure you use the correct name.

    Reference:

    Advice from the Oracle Johny: ADF: how to create SelectOneChoice based on values from a database table in the ADF Web Application

    See you soon

    AJ

  • Show/hide panelFormLayout based on the current selection of selectOneChoice

    Hey all,.

    I have a relatively basic question, I'm looking for a clear answer.

    I have a layout with the following structure:

    JSP:root

    AF:panelFormLayout

    AF:panelGroupLayout

    -component selectOneChoice

    AF:panelFormLayout

    AF:panelGroupLayout

    ADF - components

    AF:panelFormLayout

    AF:panelGroupLayout

    ADF - components

    AF:panelFormLayout

    AF:panelGroupLayout

    ADF - components

    I'm looking for the easiest way to show/hide the 3 children of panelFormLayout based on what is selected in the selectOneChoice component.  I've hard-coded these values and set their values like "1, 2, 3" respectively.

    I've already tried defining a ValueChangeListener on the selectOneChoice component, but when I run the page and change the value - it doesn't seem to be hitting my method when I select something.

    Any help would be appreciated.

    JDev Version is 11.1.1.7

    Please add autoSubmit true on the selectOneChoice element and try, it will hit valueChangeListener.

    Also, you can set three PFL render property conditionally in your VCL and make a real at the same time.

    Thank you

Maybe you are looking for