DropDown in table filter

Hi,
is it possible to use a dropdown menu in a table filter?
Regards

Hi,
You can get a drop down for table filter
IProposalList proposalsCity = wdContext.nodeFilter().getNodeInfo()
                         .getAttribute("lob").getModifiableSimpleType()
                         .getSVServices().getProposals();
               proposalsCity.add("Corportate");
               proposalsCity.add("ERS");
               proposalsCity.add("FS");
               proposalsCity.add("IMS");
               proposalsCity.add("Cisco");
               proposalsCity.add("LOB5");
where "lob" is the column for which you wanted the drop down.Filter-is the name of the filter node
Regards,
Sudhir
Edited by: Sudhir Gorantla on Apr 15, 2008 2:25 PM

Similar Messages

  • Table filter combo

    Hello I have another question.
    I often use the filter on the table data screen. I have some table with column ID and I want to filter it according to this column. So I write ID = 123 in the Filter field and press enter. Now I want to enter another filter. Delete the current one and start typing ID = 12 now from the filter drop down list jumps a "hint" with previously entered ID = 123 and focus is set to it. If I now press enter I will get this ID = ID = 123 into the filter field. Do you think somebody can use this feature??? You not only force users to select some of the drop down list options, you even don't replace the text already typed in the field but add it to it...

    Hi,
    The table filter's auto-suggest feature does indeed behave as you say. It seems as soon as one goes past the first word of an expression, the hint is appended to the existing filter text rather than replacing it. I guess such functionality is necessary to support hints in expressions using AND/OR conditions.
    Anyway, a brief example:
    "ID" + hint("ID = 123") ==> "ID = 123"
    whereas
    "ID " + hint("ID = 123") ==> "ID ID = 123"In your specific test case, the problem can be solved by typing slower and/or less or using the backspace key. You might also consider using filters on individual columns for such a simple case.
    Perhaps someone will log a bug. The logic which triggers an append action versus a replace action could be more sophisticated.
    Regards,
    Gary
    SQL Developer Team

  • How to populate values in to dropdown in table ui element

    Hi,
    according to my scenario  i have atable with five records ...andi have acolumn name DATE and  it contains 5 dropdowns with some values i.e dates from jan 1 2008-dec 31 2008.user needs to select only those values which are in dropdown. can u tell me the code to populate values in to dropdown in table UI element.
    Thanks
    Raju

    Hi,
    you can go for two drop downs like DropDown by Key or Drop Down by Index as per requirment.
    Create context Node for the table UI, in that one will be for ur drop down. Create element for the Context node and add thses to the conetxt.
    Code example for DropDownBy Key:-
    ISimpleType simpleType =               wdContext     .nodeProjEstiTable().getNodeInfo()
         .getAttribute("projphasname")               .getModifiableSimpleType();
    IModifiableSimpleValueSet svs1 =
    simpleType.getSVServices().getModifiableSimpleValueSet();
    svs1.clear();
    for (int j = 0; j < projphasname.length; j++) {
         svs1.put(projphasname[j][1], projphasname[j][1]);
    for DropDownBy Index you can work in normal way means try to create element for the respective context attribute.
    Hope this may help you...
    Deepak

  • Issues with table filter during navigation between task-flows

    Hello everyone,
    I'm looking for a workaround to resolve two issues about the table filter. They are:
    1) If I type something in a filter and I change tha page (in a different task flow) when I return on the first page there is the previous search plus the string "%*". Here the video example: http://screencast.com/t/FbVenZGm
    2) In the same scenario, if I click enter on this filter the system returns this message error: "Attempt to set a parameter name that does not occur in the SQL: vc_temp_1 ". Here the video example: http://screencast.com/t/yMs6rNDF
    I have found something interesting in this thread: task-flow table filtering behaviour related to bug 8602867
    Anyway, I have implemented the solution reported in this document: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/april2012-otn-harvest-1609383.pdf (pp. 8-11). This solution works fine with my master table, but it doesn't with the detail table.
    Have you any idea for this kind of behavior?
    Thanks in advance,
    Baduel

    Sudipto,
    each table has a binding on a page fragment in this way:
    <af:table [...] binding="#{backingBeanScope.MyBackingBean.masterTable}">
    <af:table [...] binding="#{backingBeanScope.MyBackingBean.detailTable}">
    In the pageDef I have two methods, each one of the VOImpl class related to the table:
    <methodAction IterBinding="MasterTableVO1Iterator"
    id="clearOutstandingImplicitViewCriteriaMaster"
    RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="clearOutstandingImplicitViewCriteria"
    IsViewObjectMethod="true" DataControl="MyDataControl"
    InstanceName="MyDataControl.MasterTableVO1"/>
    <methodAction IterBinding="DetailTableVO2Iterator"
    id="clearOutstandingImplicitViewCriteriaDetail"
    RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="clearOutstandingImplicitViewCriteria"
    IsViewObjectMethod="true" DataControl="MyDataControl"
    InstanceName="MyDataControl.DetailTableVO1"/>
    MyBackingBean class:
    public class MyBackingBean {
    private RichTable masterTable;
    private RichTable detailTable;
    /*getter methods here*/
    public void setMasterTable(RichTable masterTable) {
    this.masterTable = masterTable;
    resetTableFilter(1);
    public void setDetailTable(RichTable detailTable) {
    this.detailTable = detailTable;
    resetTableFilter(2);
    /*This method returns the phase id */
    private String printCurrenPhaseID() { 
    FacesContext fctx = FacesContext.getCurrentInstance();
    Map requestMap = fctx.getExternalContext().getRequestMap();
    PhaseId currentPhase=(PhaseId)requestMap.get("oracle.adfinternal.view.faces.lifecycle.CURRENT_PHASE_ID");
    // System.out.println("currentPhase = "+currentPhase);
    return currentPhase.toString();
    public void resetTableFilter(int tab) {
    String phase = printCurrenPhaseID();
    FilterableQueryDescriptor queryDescriptor;
    if(phase.startsWith("RENDER_RESPONSE")) { // Only in this phase the binding is ready
    switch(tab) {
    case 1:
    queryDescriptor = (FilterableQueryDescriptor) getMasterTable().getFilterModel();
    if (queryDescriptor != null && queryDescriptor.getFilterCriteria() != null) {
    queryDescriptor.getFilterCriteria().clear();
    // PPR refresh a jsf component
    AdfFacesContext.getCurrentInstance().addPartialTarget(getMasterTable());
    break;
    case 2:
    queryDescriptor = (FilterableQueryDescriptor) getDetailTable().getFilterModel();
    if (queryDescriptor != null && queryDescriptor.getFilterCriteria() != null) {
    queryDescriptor.getFilterCriteria().clear();
    // PPR refresh a jsf component
    AdfFacesContext.getCurrentInstance().addPartialTarget(getDetailTable());
    break;
    default: return;
    invokeClearViewCriteria(tab);
    public BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    /* This method invokes the exposed method in my fragment */
    public void invokeClearViewCriteria(int tab) {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding;
    if(tab == 1)
    operationBinding = bindings.getOperationBinding("clearOutstandingImplicitViewCriteriaMaster");
    else if(tab == 2)
    operationBinding = bindings.getOperationBinding("clearOutstandingImplicitViewCriteriaDetail");
    else
    return;
    if(operationBinding != null) {
    operationBinding.execute();
    Finally I have two identical exposed methods in the VOImpl classes of the tables:
    public void clearOutstandingImplicitViewCriteria() {
    // we only want to remove the stuff that was added though the table
    //filter (or a default search form)
    // "__ImplicitViewCriteria__" is the magic name for this VC
    ViewCriteria vcDefault = this.getViewCriteria(ViewCriteriaManager.IMPLICIT_VIEW_CRITERIA_NAME);
    if (vcDefault != null) {
    //Clear the stored values
    vcDefault.clear();
    //And refresh the collection
    this.executeQuery();
    Please note that this workaround works fine with my master table, but i does not with the detail table.
    Thanks again.
    Baduel

  • Dropdown in table element using webDynpro for ABAP

    Hi All,
    My requirement is:
    i have a dropdown in table ui element . before i do a bind_table with context , my dropdown should be loaded.
    how to do this ??
    pls help me with sample code.
    thanks,
    Hema.

    Hi Hema Sundar,
    You just need to create an Attribute in your context node and bind it to the
    SelectedKey property of the dropdown.
    Populate the value of the attribute when you are fetching data to fill in
    your internal table.
    Also If you want to populate data into the dropdown on your own
    you can refer to the below code
      data:
        lr_node type ref to if_wd_context_node,
        lr_node_info type ref to if_wd_context_node_info,
        lt_nv type wdr_context_attr_value_list,
        ls_nv type wdr_context_attr_value.
      lr_node = wd_context->get_child_node( if_componentcontroller=>wdctx_element ).
      lr_node_info = lr_node->get_node_info( ).
    build lt_nv ...
      lr_node_info->set_attribute_value_set(
          name = 'ATTRIBUTE'
          value_set = lt_nv ).
    Hope this helps.
    Regards,
    Ismail.

  • Another bug introduced in production release - table filter

    Hello guys,
    check this scenario:
    1) Open some table
    2) Use the column filter to filter the table
    3) Try to use the column filter on same column again without clearing all filters.
    The table filter will display only "Remove ('xyz')" message, where xyz is current value used to filter the column. It is not possible to delete the value and enter new value. You have to clear the filter first and then enter new value...
    Sadly, I have to say, with every new release you are making SQL Developer more and more unusable :(

    My bad.
    Logged Bug 13788551 - regression: have to remove quickfilter before entering new one.
    -Raghu

  • Af:table filter date format : task-flow navigation issue

    hi
    When trying to use the date format configured on the Entity Object, with Format Type as Simple Date and Format as "dd-MM-yyyy", there seems to be a problem when using task-flows.
    The approach involves an explicitly configured attributeValues binding to use in f:validator and af:convertDateTime components in the af:inputDate in the filter facet, as discussed in the forum thread "af:table filter date format"
    at af:table filter date format
    I used JDeveloper 11.1.1.3.0 to create the example application
    in http://www.consideringred.com/files/oracle/2010/TableFilterDateFormatIssueApp-v0.03.zip
    - The page filterEmp.jspx shows expected behaviour, the filter uses the configured date format and there is no problem when navigating to another page and back.
    see the screencast at http://screencast.com/t/CtQ9rsVFH3k
    - The page menuBTFPage.jspx allows for some navigation after using the filter resulting in the filter showing a date in the wrong format, using scenario (sc1)
    -- (sc1-a) : run menuBTFPage.jspx
    -- (sc1-b) : on "menu-btf : menu", click the "do go-filter-emp-btf" link
    -- (sc1-c) : on "filter-emp-btf : filterEmpFragment", filter on HireDate using "10-03-2005"
    -- (sc1-d) : click the "do goReturnSuccess" button
    -- (sc1-e) : back on "menu-btf : menu", click the "do go-filter-emp-btf" link again
    -- (sc1-f) : back on "filter-emp-btf : filterEmpFragment", see the HireDate filter value in the wrong format as "2005-03-10"
    -- (sc1-g) : click the "do goReturnSuccess" button again, which results in an error "The date is not in the correct format."
    see the screencast at http://www.screencast.com/t/ORHauBd3oQ
    questions:
    - (q1) Can the behaviour in scenario (sc1) be reproduced?
    - (q2) Why is the filter value in the wrong date format in step (sc1-f)?
    - (q3) What can be done to have the filter value consistently in the configured date format, so that errors as in step (sc1-g) can be avoided?
    many thanks
    Jan Vervecken

    hi
    First a short summary of relevant aspects of service request 3-2190488381:
    - development has reviewed bug 10193260
    - development identified some code where a pattern was not applied and started fixing the problem
    - out of the blue, development asked "Will clearing out the filter field completely when moving out of ataskflow be an acceptable behavior ?"
    - I pointed out some concerns (even in a phone call with development), but development did not see any alternative not "perceived to be very risky because of the current design", so the question whether the clearing-all-filter-fields approach would be acceptable became superfluous.
    - following this, bug 10193260 suddenly became an enhancement request (for reasons I still don't understand)
    - a workaround was suggested (for behaviour not perceived as a bug), "Clearing the search fields during taskflow exit in the backing bean (in the app)." for which I also received a modified version of my example application TableFilterDateFormatIssueApp-v0.04.zip with an implementation of the suggested workaround
    As an exercise to try an understand the suggested workaround (an because my example application seemed to have been modified using the currently yet-to-be-released JDeveloper 11.1.1.4.0) I re-implemented it in the example application
    at http://www.consideringred.com/files/oracle/2010/TableFilterDateFormatIssueApp-v0.05.zip
    It has a filter-emp-workaround-btf task-flow with a method-call activity on a managed-bean method, responsible for clearing the search fields, resulting in behaviour where the error "The date is not in the correct format." does not occur,
    as can be seen in the screencast at http://screencast.com/t/Nq7TkkRQ
      public void clearFilterFields()
        BindingContainer vBindingContainer =
          BindingContext.getCurrent().getCurrentBindingsEntry();
        DCBindingContainer vDCBindingContainer = (DCBindingContainer)vBindingContainer;
        DCDataControl vDCDataControl = vDCBindingContainer.getDataControl();
        ApplicationModule vApplicationModule = vDCDataControl.getApplicationModule();
        ViewObject vViewObject = vApplicationModule.findViewObject("EmployeesVOVI");
        ViewCriteriaManager vViewCriteriaManager = vViewObject.getViewCriteriaManager();
        vViewCriteriaManager.clearViewCriterias();
        vViewObject.clearCache();
      }Because the managed-bean method requires access to the ADF Model binding layer to get to the View Object instance used for the filtered table, the method-call activity has a page element configured in DataBindings.cpx referring to the same usageId as the page element for the page fragment showing the filtered table. So that both the method-call and view activity depend on one and the same Binding Container (e.i. PageDef file).
    The method-call activity, responsible for clearing the search fields, would need to be called before each task-flow-return activity.
    As there can be multiple view activities with multiple filtered tables in a bounded task-flow, would that result in multiple method-call activities responsible for clearing search fields (all to be called before each task-flow-return activity)?
    It looks like a more general/generic approach is desirable for the suggested workaround to be feasible.
    - (q5) Does the suggested workaround imply (as bug 10193260 is not a bug) that all bounded task-flows with filtered tables should implement it to avoid errors about formatting?
    thanks
    Jan

  • Table Filter with static LOV column

    Hi,
    I am using JDeveloper 11.1.14 and ADF-BC in my project.
    For one of the tables,I have the following scenario.
    1. I have a viewobject [Ex: EmpVo] in which one of the attributes has a static LOV[:Ex: 'Status' attribute in EmpVo has static LOV - StatusLOV with values A - Active I - Inactive].
    2. EmpVo -- > Employee table which stores A and I as status values in database
    3. Display this view object as table in jsff page.
    In the jsff page, when filter is enabled, for the status column I am able to filter only using 'A' and 'I'.
    But actually filter has to work with 'Active' and 'Inactive' as filter values.
    Please suggest the best way to implement filter in this scenario
    Thanks,
    Praveen

    Take a look at the following article:
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/16-custom-table-filter-169145.pdf
    Here, for LOV's you could have an LOV as a filter component instead of the default inputText component.
    Thanks,
    Navaneeth

  • One more Standard table filter weird work

    In the same VO described in previous thread: Standard table filter weird work
    I have another filter trouble.
    The attribute is calculated, not bound to entity.
    SQL:to_char(case when ID_BASE_TYPES_MIME is null then substr(THE_VALUE, 0, 100)
                when ID_BASE_TYPES_MIME = 7 then
           dbms_lob.substr(
              regexp_replace(LargeTextData.DATA_TEXT, '<.*?>|&.*;')
              , 100)
                else LargeBinaryData.Filename
           end) as CONTENT_PREVIEW,VO attribute:<ViewAttribute
        Name="ContentPreview"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="255"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="CONTENT_PREVIEW"
        Expression="CONTENT_PREVIEW"
        SQLType="VARCHAR">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="ru.miit.cms.model.view.ContentComplexView.ContentPreview_LABEL"/>
            <DISPLAYWIDTH
              Value="90"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>With logging turned on I apply filter like P or \P\* - anything that contains letter P. ADF table with standard filter shows me no rows.
    I take the executed SQL and parameter value from AdminServer-diagnostic-1.log. It is like:SELECT * FROM ( main query ) QRSLT  WHERE ( ( (CONTENT_PREVIEW LIKE ( :vc_temp_1 || '%') ) ) )
    [SRC_CLASS: oracle.jbo.server.OracleSQLBuilderImpl] [APP: CMS] [SRC_METHOD: bindParamValue]  [850] Binding param "vc_temp_1": %РI execute this query in PL SQL Developer and it shows me 2 records - that is correct.
    While ADF shows me no records, executing the same VO with the same parameters - that is wrong.
    From this SQL query I also created a test VO with vc_temp_1 bind variable = %Р and run it in AppModule Tester. It shows me 2 rows.
    Any ideas?
    JDev 11.1.2.2

    Hello Derio,
    Thanks for your attention. This view object is a part of a composite application with lots of business components, running ~stable on 11.1.2.2. Sherman installed, of cause.
    There are several tables with filters and all of them work fine except this attribute in this VO.
    I believe the filter would work with no problems with such attribute if I create a clean new application, but in my specific case it doesn't.
    The trouble is I don't know where to look for the error source because generated SQL and app module tester seem fine.

  • Dropdown inside Table - Anyone please?

    Hi Gurus,
                  This is my first post. Im getting started with Adobe Interactive Forms and Im stucked with something. I need to put a dropdown inside a table cell, I am able to do it but I dont know how to do the binding. When I use a simple dropdown (not in a table) its allright but inside a table I have this binding:
    $record.ITEMS.DATA[*].AUXILIAR_COMBO.DATA[*] and in each line of the table the dropdown shows all values of the same combo from other lines.
    Im attaching a screen if it helps. I use a connection from external data, there are not fixed values. I could not find a sample form with a dropdown in table using binding, only with fixed values.
    Please can anyone help me with this?
    Thanks all!
    This is the binding:
    $record.ITEMS.DATA[*].AUXILIAR_COMBO.DATA[*]
    This is the result...AUX1 and AUX2 is ok to appear in the first line, but AUX3 is from the dropdown of the secondline....it seems to be merging all the values in AUXILIAR_COMBO.DATA[*] in all dropdowns:
    I was going to attach de form but i do not know how to do it in this forum

    Hi Nitsan
    What is your browser? Look like it is not WebDynpro compatible.
    BR, Siarhei

  • Is it possible to center a checkbox in a table filter?

    Hi I am using Studio Edition Version 11.1.1.2.0.
    Is it possible to center a checkbox in a table filter without getting a bug? I have tried using a panelgroup with horizontal layout and Halign center. It looks good at first but when I use the filter the checkbox gets a dublicate which is left aligned above the original checkbox. Is there any way to center a checkbox inside a filter?

    Ok I will explain it as well as I can. I have a table with some columns that have an af:selectBooleanCheckBox in their body. These columns I have set the Align property to center because I think the layout looks better that way. This works fine.
    Now I also want to be able to filter these columns. Then I put an af:selectBooleanCheckBox in the filter facet and set the value of that checkbox to #{vs.filterCriteria.attributeName} which also seems to work but the checkbox in the filter facet is left aligned.
    So while I set the Align of the column to center the filter is not center aligned.
    I tried to get the checkbox in the filter center aligned by putting an af:panelGroupLayout where I set Layout: horizontal and Halign: center into the filter facet of the column and then put the checkbox into that af:panelGroupLayout.
    At first when the page is run the checkbox in the filter is in the center and everything seems fine but when you use the filter another checkbox that is left aligned and above the original one appears in the filter so that now I suddenly have 2 checkboxes in the filter.
    Below I have pasted the code of the table and one of these columns so you can see what I mean in case you still don´t understand me. I thought it would be enough to only paste the code of the table and one column but if the rest of the code is neccasary let me know and I will paste that here too.
    <af:table value="#{bindings.FvgQsPeriodTypeQuestionTyVO1.collectionModel}"
    var="row"
    rows="#{bindings.FvgQsPeriodTypeQuestionTyVO1.rangeSize}"
    emptyText="#{bindings.FvgQsPeriodTypeQuestionTyVO1.viewable ? 'No rows yet.' : 'Access Denied.'}"
    fetchSize="#{bindings.FvgQsPeriodTypeQuestionTyVO1.rangeSize}"
    filterModel="#{bindings.FvgQsPeriodTypeQuestionTyVO1Query.queryDescriptor}"
    queryListener="#{bindings.FvgQsPeriodTypeQuestionTyVO1Query.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.FvgQsPeriodTypeQuestionTyVO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.FvgQsPeriodTypeQuestionTyVO1.collectionModel.makeCurrent}"
    rowSelection="single" id="table2"
    partialTriggers=":::pc1:table1"
    columnStretching="column:QTCol">
    <af:column sortProperty="P01AsBoolean" filterable="true" sortable="true"
    headerText="#{bindings.FvgQsPeriodTypeQuestionTyVO1.hints.P01AsBoolean.label}"
    width="50" align="center" id="c6">
    <af:selectBooleanCheckbox
    label="#{bindings.FvgQsPeriodTypeQuestionTyVO1.hints.P01AsBoolean.label}"
    value="#{row.bindings.P01AsBoolean.inputValue}"
    id="sbc1"/>
    <f:facet name="filter">
    <af:panelGroupLayout id="pgl1" halign="center"
    layout="horizontal">
    <af:selectBooleanCheckbox value="#{vs.filterCriteria.P01AsBoolean}"
    id="sbc2"/>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="footer"/>
    </af:column>
    </af:table>

  • Hi Developers help me on table filter

    Hi Developers,
    I want to develop filter concept in nwds7.0.Is there any document on this(or) provide me any link for this article
    Thanks
    Kishore

    Try checking the below,if you haven't already checked
    /people/peter.vignet/blog/2007/01/03/generic-web-dynpro-java-table-filter
    /people/kapil.kamble/blog/2006/12/21/how-to-get-ready-made-filter-for-your-web-dynpro-table-with-minimal-coding
    /people/subramanian.venkateswaran2/blog/2005/05/10/filtering-table-values-using-webdynpro

  • Dropdowns as table cell editors

    Hi
    Does anyone know how to use dropdowns as table cell editors.  I need to create a table where some of the columns have dropdowns as the editor and some don't. 
    I can create the dropdown(by index) by binding a node to the table(the DD list) and binding a subnode-attribute as the text val but that gives me the same list in all rows.  As this is bound to the table and not the column all drop downs would have the same data in the DD list

    Here is what we do for dropdowns that need different values according to the selected row.
    1. Use a DropDownByKey as the table cell editor.
    2. Use the getModifiableSimpleValueSet() API call to modify the values attached to the dropdown on every row selection event.
    We don't have the case where you wouldn't actually have an editor, but you can disable the dropdown if the list is empty, which accomplishes the same effect.
    Beware that if your keys and values are different, the keys not in the current dropdown will not show up correctly on the other rows.

  • Custom Table Filter

    I am using Jdeveloper 11.1.1.6
    I have been trying to follow the following documentation: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/16-custom-table-filter-169145.pdf
    The following XML was added to my page def when creating the tree iterator:
    <tree IterBinding="MyColumnLOV1Iterator" id="MyColumnLOV1">
    <nodeDefinition DefName="com.jcc.csg.model.staticview.MyColumnLOV"
    Name="MyColumnLOV10">
    <AttrNames>
    <Item Value="MyColumnCd"/>
    <Item Value="MyColumnDesc"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    Here is what my the XML for my column looks like:
    <af:column headerText="#{customstoregroupviewcontrollerBundle.DESCRIPTION_LABEL}"
    id="Description" width="300" sortable="true"
    filterable="true" sortProperty="MyColumnCd"
    align="center">
    <af:selectOneChoice value="#{row.bindings.MyColumnCd.inputValue}"
    label="#{row.bindings.MyColumnCd.label}"
    required="#{bindings.MyVO2.hints.MyColumnCd.mandatory}"
    shortDesc="#{bindings.MyVO2.hints.MyColumnCd.tooltip}"
    id="soc2" readOnly="true">
    <f:selectItems value="#{row.bindings.MyColumnCd.items}"
    id="si2"/>
    </af:selectOneChoice>
    <af:selectOneChoice id="soc1"
    value="#{vs.filterCriteria.MyColumnCd}">
    <af:forEach var="listrow"
    items="#{bindings.MyColumnLOV1.rangeSet}">
    <f:selectItem id="si1" itemValue="#{listrow.MyColumnCd}"
    itemLabel="#{listrow.DepartmentName}"/>
    </af:forEach>
    </af:selectOneChoice>
    </af:column>
    For some reason, my itemValue and itemLabel aren't working. If I go to expression builder, I have nothing underneath the "listrow" variable. Do you have some guidance as to why I can't set my itemValue and itemLabel correctly?

    So here is what I have now. I am still unable to get any of the listrow attributes. Do you have any other thoughts
    <af:column headerText="#{customstoregroupviewcontrollerBundle.DESCRIPTION_LABEL}"
    id="Description" width="300" sortable="true"
    filterable="true" sortProperty="MyColumnCd"
    align="center">
    <af:selectOneChoice value="#{row.bindings.MyColumnCd.inputValue}"
    label="#{row.bindings.MyColumnCd.label}"
    required="#{bindings.MyVO2.hints.MyColumnCd.mandatory}"
    shortDesc="#{bindings.MyVO2.hints.MyColumnCd.tooltip}"
    id="soc2" readOnly="true">
    <f:selectItems value="#{row.bindings.MyColumnCd.items}"
    id="si2"/>
    </af:selectOneChoice>
    <f:facet name="filter">
    <af:selectOneChoice id="soc1"
    value="#{vs.filterCriteria.MyColumnCd}">
    <af:forEach var="listrow"
    items="#{bindings.MyColumnLOV1.rangeSet}">
    <f:selectItem id="si1" itemValue="#{listrow.MyColumnCd}"
    itemLabel="#{listrow.DepartmentName}"/>
    </af:forEach>
    </af:selectOneChoice>
    </f:facet>
    </af:column>

  • Adf table filter

    adf filterable table
    filter works only on numeric columns ,on text columns "No data...."

    I created a simple test application in JDev/ADF 11.1.1.6 and I can confirm the problem you encountered. My test application is very simple. It consists of a single ADF Faces page containing a read-only <af:table> with a filter. The <af:table> is based on an ADF ViewObject on a MySQL 5.5 DB table containing two varchar columns.
    The problem happens when a MySQL DB is used and it is related to the MySQL's SQL syntax. The problem is caused by a wrong WHERE-clause criterion generated by ADF when the user enters some condition in a filter field backed by a DB column of character datatype. ADF generates a WHERE-clause similar to this one:
    WHERE MyTable.col1 LIKE ( ? || '%' )This would be a correct WHERE-clause for many SQL-databases, but it is not correct for MySQL, because in MySQL the operator || does not perform a string concatenation but it acts as a logical OR. In this way the expression <tt>( ? || '%' )</tt> is not evaluated to a string but to a boolean value (e.g. 0 or 1), so the operator LIKE fails to filter the rows correctly.
    You can inspect the generated SQL-query and the values of the bind variables yourself by switching ADF diagnostics on (e.g. set -Djbo.debugoutput=console to the runtime configuration of your ViewController project).
    JDeveloper/ADF 11.1.1.6 certification matrix says that MySQL 5.5 is certified for both JDeveloper IDE and ADF, so in my opinion you can submit an official SR if you have a valid support contract which covers Oracle ADF.
    A good workaround would be to implement a custom SQLBuilder or a custom ViewCriteria adapter that patches the problem, but it would require a lot of efforts. Alternatively, you can try to implement a tricky workaround by subclassing the ViewObjectImpl class and overriding some of its query-related methods in order to replace the substring <tt>LIKE ( ? || '%')</tt> with <tt>LIKE CONCAT( ?, '%' )</tt> in the generated SQL query. This is tricky, so I do not recommend you this way either.
    However, if you decide to follow the later alternative, you can override both methods <tt>ViewObjectImpl.buildQuery(...)</tt> in a custom base ViewObjectImpl class (or in a custom ViewObjectImpl class of particular VOs only) as follows:
      @Override
      protected String buildQuery(int noUserParams, boolean forRowCount)
        String query = super.buildQuery(noUserParams, forRowCount);
        if (query!=null) {
          query = query.replace( "LIKE ( ? || '%')", "LIKE CONCAT( ?, '%' )");
        return query;
      @Override
      protected String buildQuery(int noUserParams, boolean forRowCount, String selClause, String fromClause, String whereClause, int subQueryLevel)
        String query = super.buildQuery(noUserParams, forRowCount, selClause, fromClause, whereClause, subQueryLevel);
        if (query!=null) {
          query = query.replace( "LIKE ( ? || '%')", "LIKE CONCAT( ?, '%' )");
        return query;
      }Dimitar
    Edited by: Dimitar Dimitrov on Feb 2, 2013 12:07 PM

Maybe you are looking for