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>

Similar Messages

  • 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

  • Selection screen for custom table

    We have developed a custom table and user want to have a selection selection screen similar to SE16. There are 9 fields in the table and user can enter data to the selection screen with any combination. My question is how do I filter based on the user input ? DO I need to write multiple SQL for different combination of selection screen parameter within IF ELSEIF statement ? If so then there will be huge number of SQL within IF & ELSEIF statment for 9 selection parameter. Please suggest if you have any better ideas.

    Even after using select-option along with IN statement in where clause , it did not work.
    I used following selection screen defination :
    SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS: P_PCBUS FOR MARA-ZZPC_BUSINESS NO-EXTENSION NO INTERVALS,
                    P_PCBUS1 FOR MARA-ZZPC_BUS_SUB1 NO-EXTENSION NO INTERVALS,
                    P_PLNFMT FOR MARA-ZZPLNG_FORMAT NO-EXTENSION NO INTERVALS,
                    P_PRDB FOR MARA-ZZPROD_BRAND NO-EXTENSION NO INTERVALS,
                    P_SEASCD FOR MARA-ZZSEASON_CODE NO-EXTENSION NO INTERVALS,
                    P_SNP FOR MARA-ZZSUP_NET_PATH NO-EXTENSION NO INTERVALS,
                    P_MAT_DC FOR MARA-MATNR NO-EXTENSION NO INTERVALS,
                    P_MAT_MG FOR MARA-MATNR NO-EXTENSION NO INTERVALS.
    SELECTION-SCREEN: END OF BLOCK B2.
    and SQL statement :
    SELECT ZZPC_BUSINESS
          FROM ZTB_RTL_TO_WHS
          INTO TABLE TA_ZZPCBUS
          WHERE ZZPC_BUSINESS =  P_PCBUS
          AND  ZZPC_BUS_SUB1  IN  P_PCBUS1
          AND   ZZPROD_BRAND   IN  P_PRDB
          AND  ZZPLNG_FORMAT   IN  P_PLNFMT
          AND  ZZSEASON_CODE   IN  P_SEASCD
          AND  ZZSUP_NET_PATH  IN  P_SNP
          AND  ZZD_MATNR       IN  P_MAT_DC
          AND  ZZM_MATNR       IN  P_MAT_MG.
    While executing program, I only enterd value for the field P_PCBUS. Though record present for that value, I rcvd SY-SUBRC = 4.
    ANy Idea?
    Edited by: J. Bakshi on Jul 14, 2009 10:17 AM

  • Need help for record deletion from custom table

    Hi friends
    I have to write a custom program which will be generic to delete any table record with date field.
    This program needs to be generic (should be able to delete records from any custom table) in nature with selection screen parameters as:
    Table Name and Number of Days prior to which records are deleted, both mandatory.
    Program Flow:
    1.     From number of days calculate date before which records are deleted, ( current date u2013 no. of days = past date).
    2.     Custom table have date field, delete records prior to that date.
    3.     Program may be scheduled for background job, put default values for both fields. No. of days should not be less than 60.
    4.     Classical Report output with number of records deleted.
    My query is how will I know the name of the Date field so that I can write a DELETE query.
    If I use 'DDIF_FIELDINFO_GET' it gives me all field names but how to filter out?
    with regards
    samikhya

    Hi
    I have added  field on the selection screen as p_fieldname and got the F4 help for it , so that the user will get the field name run time as per the table name.
    Now I am facing problem while writing the DELETE query.
    I wrote like
    DELETE (fp_tab)
    where (fp_fieldname) LE date
    It is not working. I also tried with taking a string to concatenate fp_fieldname, LE and date to l_string
    when I write like this:
    DELETE (fp_tab)
    where (l_string) , sy-subrc is getting 4 and no records are getting deleted.
    I do not understand where the dynamic Delete is failing??
    with reagards
    Samikhya

  • Custom table header renderer

    I am trying to make a custom table header. I have seen some examples on the web such as
    <mx:DataGridColumn width="150" dataField="SalePrice"
                    headerRenderer="myComponents.RendererDGHeader"/>
    where that class is a Box
    I also tried to inline it as such:
    <mx:DataGridColumn draggable="false" editable="true" headerText="Source RNC" headerStyleName="tableHeader" dataField="sourceRNC">
         <mx:headerRenderer>
              <fx:Component>
                   <mx:DataGridItemRenderer>
                        <s:Group/>    
                   </mx:DataGridItemRenderer>
                 </fx:Component>
         </mx:headerRenderer>
    </mx:DataGridColumn>
    In both these cases I get the following:
    VGroup declaration must be contained within the <Declerations>
    tag since it does not implement mx.core.IUIComponent
    Now clearly it does. Is this a bug or am I doing something
    wrong. My goal is for the table's header to have a combo
    box and a text field below the header's name to put filter
    options on the column(like hide values <5) etc
    Thanks, I know I have been posting a lot of questions lately

    By using s:MXDataGridItemRenderer, your renderer is now using Spark, and in Spark, clipping is not available by default.  You have to set clipAndEnableScrollbars=true on the layout.  Headers are asked for height if variableRowHeight=true, but not width. The width is determined by the DG columns.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • 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

  • Update custom Table Form DSO (in SAP BI)

    Hello everyone,
    i need to load a custom table in SAP R3(4.6c) from a DSO in SAP BW (7.0).
    My first idea was to use a RSANWB transaction with update CRM attribute funconality, but in Target system (SAP R3 4.6c) there is not the function module CRM_BW_PROTIDS_GET cause CRM was not istalled.
    Do you have any other solution or a smart tip to use the CRM function?
    Another info: Before load data into target table i need set a filter on source data and truncate target table.
    Thanks a lot for your help.
    Emiliano

    Hi there,
    Get your ABAP person to write an RFC function to read and pass the DSO table records and then update the table in SAP R/3. That will be the best option.
    -Senthil

  • Request for ready to deploy sample code for Table Filter/ Table Utilities

    i have gone thru some article about table filter
    /people/subramanian.venkateswaran2/blog/2005/05/10/filtering-table-values-using-webdynpro
    /people/peter.vignet/blog/2007/01/03/generic-web-dynpro-java-table-filter
    as well as the implemented the tableUtilities class
    /people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities
    does anyone successfully done this....
    can anyone send the ready-to deploy application for reference...
    pls send to
    [email protected]
    Message was edited by:
            yzme yzme
    Message was edited by:
            yzme yzme

    Hi:
    try:
    <https://www.sdn.sap.com/irj/sdn/softwaredownload?download=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/webdynpro_sampleapps/web_dynpro_java_table_filter.zip>

  • Error while deleting a customer table

    When I try to delete a customer table which is saved as a local object I get an error stating that the table is still used in ABAP Dictionary. It seems that the customer table is still used in a customer program, but the program is already deleted! I deleted the program earlier and thus no longer exist in our system. I cannot find any trace of the program, but am unable to delete the customer table now. Any suggestions?

    Program name would have been of the table maintenance generator and you deleted it manually.
    It should have been deleted from TMG .
    Your problem will be resolved if you will create Table maintenance of the database table and then delete it again.

  • How to find out the user who has created  a new field in the custom table.

    How to find out the user details who has created  a new field in the custom table.
    Thanks,
    Joan

    Hi Jesudasan ,
    You can know the user details with version management.Please find the
    below procedure to know.
    Go to table->Utilities tab->version->Version management->Compare the previous one .
    Hope this solves the issue,Let me know if you have any issues.
    Thanks,
    Rajani

  • How to find the Table from which a Custom table is created.

    Hi Gurus,
    I have a custom table in SAP and want to figure how that has been created. How can I do that?
    Regards
    Prashant

    Hello Prashant,
    what do you mean by "how"?
    When you say custom table do you mean "Customization table" or a "Customer table" (in namespace Z... or Y...)
    Anyway, you can access SE11 transaction, view the table and then check its attributes.

  • Converting garbled characters for JAPANESE characters in a custom table

    Hi all,
    I have a custom table that store Japanese characters.
    After my company has upgraded to ECC6.0, this data in the custom table has become garbled and its alot of it garbled.
    Is there any SAP tool that can I use to make the correction on those garbled Japanese characters?
    Thanks,
    William Wilstroth

    Hi Nils,
    I really really really had a field day reading and testing around UC... To my dissappointment, I do not have the authorization to use SUMG and SCP too as well as a few of the TCODES...
    I finally told my higher level technical mgnt. that this table might need some changes...
    Has this problem of mine got anything to do with MDMP since its no longer supported in ECC6 and I found one coding that search for MDMP in RSVTPROT...
    My colleagues suggest that the data be corrected from table DBTABLOG... which i find, in my opinion, is not the right way...
    Thanks,
    William

  • 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 Track the changes made to the custom table field value

    I want to track the changes made to the custom table field value in table maintenance generator.please help me it is very urgent
    Thanks & Regards,
    Kranti

    Hi Satya,
    These are the steps you've to do.
    1. Enable the change document flag in the data element level for the fields of the tables you want to monitor.
    2. Go to transaction SCDO. Create a new change object, and add your table to this object. After generation, you'll get a function module.
    3. Call this function module in the table maintainence generator screen, after the data is saved to the database table. This function module automaticallly writes the changes, with the old and new values, and the fields that were changed to the tables CDHDR and CDPOS.
    4. You can keep track of the changes made to the table by monitoring these tables.
    Regards
    Anil Madhavan

  • Custom Table for Verifying Duplicate Invoice against Legacy Invoice Data

    Hi All,
    We are trying to upload legacy invoice data in a custom table. Then we want to use SAP duplicate invoice check functionality to look for the potential duplicate invoice from this custom table as well apart from the standard SAP tables.
    If you know of some user exit or any function module which I can use to link this custom table with the standard SAP duplicate invoice check functionality then it would be of great help.
    Regards,
    Sanjay

    Hi Jurgan!
    Thanks for the reply,
    We are using ECC6,
    Support pack : SAPKH60013
    Settings for Duplicate Invoice Check In Vendor Master is correct
    Customization setting OMRDC transaction, tick mark for invoice reference no. only
    If all the cited characteristics match, the system displays a
    customizable message. M8462 (if logistics invoice documents are found) or M8108 (if accounting documents are found).
    I have ensured that message M8108 (if accounting documents are found) is maintained as an error message in OMRM.
    Still system is allowing duplicate invoices for the reference nos. 00082 and 00072.
    For other reference Nos. which are previously used for other documents, system issues error message successfully.
    I dont want to delete archived accounting doc. and if I maintaind BKPF entris of this archived doc manually it will create probelm in FI.
    is this happen due to life span of secondory index of archived accounting doc. is completed ?.
    Please Help
    Many Thanks
    Vikas

Maybe you are looking for

  • Need help with download problems on Ipod-5th Generation

    Hello everyone. Another newbie here who is not technologically inclined but love their Ipod. I just purchased new music videos from the Itunes store, connected my Ipod to the PC and left everything alone until I saw the update complete prompt. Howeve

  • UWL Basic configuration

    Greetings, I am trying to solve a problem I have in UWL - SAP transactions (such as requisition approvals) are opened in not-maximized browser window, and ITS is creating a screen, which is smaller then it should appear. Not all elements are visible,

  • Apple app store, download fails,  error 1004 please try later

    Can't down load Purchased Software from Apple App Store on Mac BookPro running Mavericks. Asked to sign in with Apple ID, do so successfully, but when download starts, bet message: Error 1006 please try later. I have tried a couple solutions to clear

  • How to convince Apple Support of faulty iPod?

    I have some Problems with the battery life of my touch. 1. sometimes my touch won't charge the battery, even if it shows the battery charging symbol on the ipod. have to unplug an replug it several times, problem is since it is always stating that th

  • Blocking Web-Email Issue...

    Hey Hi All of you!!! I'm using TMG 2010 and I want to block web based email like gmail, hotmail yahoo-mail. I've added web-email URL category, Domain set and URL set as well, I checked and it worked for yahoo and hotmail and I say even for gmail but