How to filter the list of data

I am using af:inputComboboxListOfValues to display drop down list of data. The list is binded to a LOV.
I have a requirement that if the value is used in other place, I should not get it listed on the drop down list. I research doc that it let me use "launchPopupListener" to filter the list of data. As a test code, I coded like this:
public void launchListener(LaunchPopupEvent launchPopupEvent) {
// Add event code here...
DCBindingContainer bindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding dcItteratorBindings =
bindings.findIteratorBinding("PersonVO1Iterator");
dcItteratorBindings.getViewObject().setWhereClause("PersonEO.FIRST_NAME <> 'John'");
dcItteratorBindings.getViewObject().executeQuery();
But it does not work. It seems that 'John' is removed from VO but doesn't removed from UI combo box drop down list.
What can I do to fix it?
JDev Version 11.1.1.6.0
Thanks.
帖子经 954727编辑过

Morris Li,
Welcome to the ADF Forum. Have you looked into whether the PartialTriggers for the ui combo box have been set.
This article may also assist: "Building model driven dependent list with Oracle ADF BC"
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/march2011-otn-harvest-351896.pdf
and this http://docs.oracle.com/cd/E16764_01/web.1111/b31973/af_ppr.htm#BGBIIDBF
Stuart

Similar Messages

  • How to filter the Rest Api data based on Taxanomy columns

    Hi Everyone,
    We are using SharePoint2010 Standard Edition.
    I wanted get the library details through REST Api. I am using as below:
    https://SiteUrl/_vti_bin/listdata.svc/Documents?$filter=Title eq 'SharePointDoc'
    Here I am able to get the info regarding "SharePointDoc". But when I am trying to get the details from Taxonomy filter, it didn't.
    Can anyone please tell me how can we filter based on Taxanomy fields.
    Thanks in Advance
    Krishnasandeep

    Hi,
    I understand that you wanted to filter the Rest Api data based on Taxanomy columns.
    Per my knowledge, in SharePoint 2010 , not all types of column are available via REST, most annoyingly managed metadata columns are amongst this group of unsupported column types.
    However, in SharePoint 2013, we can filter list items based on taxonomy (managed metadata) columns.
    Taxonomy fields can be now called via REST API using CAML query in REST calls.
    Here is a great blog for your reference:
    http://www.cleverworkarounds.com/2013/09/23/how-to-filter-on-a-managed-metadata-column-via-rest-in-sharepoint-2013/comment-page-1/
    You’d better to change the REST calls and the CAML query to check whether it works in SharePoint 2010.
    More information:
    http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to get the list of data providers used in a web template?

    I want to find a quick way to retrieve the list of data providers defined in the <object> tag in the Web template. One awkward approach is to parse the entire HTML page for <object> then filter out "DATA_PROVIDER: xxx".
    But is there any method or function call to retrieve the list quickly?
    Thanks!

    Try the function below, pass the item name and get the Data provider for that particular item, you will have to do this for all the items in the template.
    function getDPName(item){
         prop = SAPBWGetItemProp(item);
         var tableHidden=true;
         if (prop != null){
           for(i=1;i<prop.length;i++){
             if (prop<i>[0] == "DATA_PROVIDER")
                   return prop<i>[1]
           }//end for
         }//end if
    }//end function
    Thanks.

  • How to Filter the List in Combo Box in JDeveloper?

    Hey guys, I really need your help regarding this matter. In JDeveloper, I need to filter the list in combobox in order for us to query faster especially when the list is very long. For example in a 'Country' combo box, when you type 'p' in the field, the list must filter simultaneously all countries that start with letter 'p' or when you place 'ph', all countries with 'ph' in the beginning. If you have sample codes, keywords needed, or sites recommended to solve this problem, it will be very much appreciated. Thnx.
    cy

    using this forum may be more efficient -> JDeveloper and ADF

  • How to filter the data in dropdown?

    Hello,
    How to filter the data
    I got all the project name in dropdown when you select the project name in other textbox the project id will come automatically.
    so I want to get only those project name that is assigned to that particular user.
    I have
    ProjectName(dropdown),
    ProjectId(Textbox),
    Employee code(Unique value),
    employee Id (Unique for particular employee means if User A works on 5 projects so for all 5 projects the employee Id will be same),
    Project Id( 5 projects 5 different id)
    I didnt get the exact formula or I have to use any javascript code.Any help...
    Thanks,

    If I am understanding correctly, you want to populate a drop down with values from a list.
    Using InfoPath:
    right click on the drop down to be populated, and choose drop down list box properties.
    add the list with the values as a data source.
    click the filter box next to entries.
    select the field you want from the other list.
    click filter data.
    set the filter (click AND if you need more lines).
    click OK on any dialogs you need to to get back to the editor.
    Test your form.

  • How a varaible on date at runtime can bring the list of dates vs.calendar

    Hi All,
    How a varaible on date at runtime can bring the list of dates that already exists the data for vs.calendar?
    Thanks
    - Shashi

    Hi Santosh,
    Now the BI 7.0 has the filter setting as 'Only posted values in InfoProvider' at the infoobject maintenance screen under BEx tab, and that solved the issue.
    Thanks,
    - Shashi

  • How to filter the data in different sections (e.g. Report Footers)?

    Hi,
    I am using Crystal Reports 11 to generate cross-tables.
    I plan to generate 3 cross-tabs, and each cross-table will be put in a section. For example, cross-tab1 in Report Footer a; cross-tab2 in Report Footer b; cross-tab3 in Report Footer c.
    I know use "Select Expert" to filter data. But, it seems that "Select Expert" filters data for the whole report.
    I want to filter the data for each cross-table separately. For example, filter cross-tab1 based on condition1; filter cross-tab2 based on condition2; filter cross-tab3 based on condition3.
    How to filter the data in different sections (e.g. Report Footers)?
    Thank you in advance.

    Hi,
    Now that you've inserted the subreport just right-click the sub-report and click Edit. The Design page for sub-report should open up.
    You can now insert the cross-tab on the Report Header and insert a record selection formula of your choice.
    Also, suppress all the other sections of the subreport so the Main report only shows the crosstab without any spaces.
    Do the same for all the subreports.
    -Abhilash

  • How to filter the data on Reports from collected from differnet Agents

    1) I have to write a Plug-in which would fetch the same type of data from 7 Agents. I need to generate the report for each Agent separately,This plug-in will be deployed in various different environment. So I will not know the host name as it will be deployed different environment. Can anyone suggest how to filter the data for each agent from the table. I see one solution of using Bind variable for the Target GUID in PL/SQL file. Can you please suggest if there is any other better way of doing this.????
    Also Can you please suggest what are the best ways to debug the OEM Plug-in?
    Thanks Anyway.....

    What I mean filtering data means displaying data for each Agent Seperatly. Assume I have collected Filesystem data from 5 Agents (5 different server). Now I want do display file system data for Agent1 (server 1). How would I fetch it from MGMT$Metric_Current. Currently I use a bind variable
    ??EMIP_BIND_TARGET_GUID?? to filter the data for a Agent from MGMT$Metric_Current view. I compare Target Name entered while deploying Plug-in with the Target_Name column of specified view.Is there any other way of fetching data from this table for a Agent?
    I hope I am prety clear now. My Problem is IO dont want to force user to enter exact Server name while deploying Plug-in.
    Thanks......

  • How to declare a list of dates

    Hi,
    I have an item which type is "Display as text based on LOV". I put in the source section under the type "Pl/SQL function body" the following pl/sql function :
    DECLARE
    X VARCHAR2 (4000);
    Y DATE ;
    BEGIN
    X := 'SELECT distinct(TO_CHAR(DATE1, ''YYYY'')) d, (TO_CHAR(DATE1, ''YYYY'')) r FROM SIVOA.EVV_'|| :p4_site ||' WHERE CLEF_VAR = (SELECT CLEF_VAR FROM SIVOA.SITE_DEBIT_RIVIERE WHERE SITE ='''|| :p4_site ||''')
    order by d';
    EXECUTE IMMEDIATE X INTO Y;
    RETURN Y ;
    END;The problem is that I get an ORA error.
    ORA-00932: types de données incohérents ; attendu : - ; obtenu : -
    I know that I have declared Y as a date and that what is returned by my function is a list of dates. I don't know how to declare a list of dates or whatever to be returned as a lis of values. Hope I am clear, sorry for my english.
    Thank you for your kind help.
    Christian

    Hi Tony
    You hare very patient with me thank you !!!
    Let me clarify well.
    I am trying to create a list of values based on dates contained in a table. This list of values should contains the "years". If the table contains data for the years 2005, 2006, 2007, then the list of value should return :
    2006
    2007
    2008
    As I want a list of value I need to have a display and a return value. The name of the table is 'dynamic' It is the item P4_SITE that contains a part of the name of the table. This is why I am usins PL/SQL, because I don't know the name of the table in advance.
    I have not seen any way to put a pl/sql statement in the List of values definition of the item. Thi s is why I try to make a LOV with the SOURCE of the item.
    Hope I am clear.

  • How to get the list of unviewed Instances?

    Hi All,
    Can anyone tell me how to get the list of unviewed instances?
    I want to get all the instances which have been scheduled but not viewed.
    Please help me on this.
    I tried to get the info from audit report but i could not able to achieve it.
    is it possible from query builder?
    Thanks,
    Nagaveni

    Hi Ravi,
    Thank you for the reply!!
    Then it is not possible to get the unviewed reports.
    how does it work if i create a audit report with Viewed status and list of all instances then we can filter out the unviewed reports.
    Does above solution is going to work?
    i have not tried yet, seeking your opinion.

  • How to hightlight  the new  inserted data in the last low of JTable?

    Could somebody help me?
    i am doing the e-restaurant application system .
    When press the food button, the JTable will list out the order details.
    When the order is long, the scroll pane will show up.
    My problem is[ b] how to hightlight the new inserted data in the last low of JTable when the food button is press every time?The scroll pane will automatically scroll down the to the new insertted data.
    In the List, i get the effect like this command but in the JTable how?
    list.ensureIndexIsVisible(orderDetails.getSize()-1);
    thank in advance.
    Below is the snapshot of my coding:
    DefaultTableModel model=new DefaultTableModel(cells,columnNames);
    OrderModel sorter=new OrderModel(model);
    JTable table=new JTable(sorter);
    JScrollPane scrollPane=new JScrollPane();
    scrollPane.add(table);
    Object[] object={foodName, "1",price};
    model.addRow(object);
    sorter.fireTableDataChanged();
    sorter.fireTableStructureChanged();

    The right place to ask this one is "Swing Forum.
    http://forum.java.sun.com/forum.jspa?forumID=57

  • How to know the list of reports that are in usage

    Hello,
    How to know the list of reports that are in use from the last 3 months by the users on Bw server.How basis team will help me in this regard?
    Regards,
    Anand.

    Hi,
    Pl look at following tables if you need any further detailed information
    Table Name  Use of the table 
    RSZELTDIR
    Directory of the reporting component elements
    RSZELTTXT  Texts of reporting component elements 
    RSZELTXREF  Directory of query element references .
    To get a list of query elements built on that cube.filter by: OBJVERS = 'A', INFOCUBE= [stage:cubename] 
    RSRREPDIR
    Directory of all reports (Query GENUNIID) .
    To get all queries of a cube.filter by: OBJVERS = 'A', INFOCUBE= [stage:cubename] 
    RSZCOMPDIR  Directory of reporting components.
    To get query change status (version, last changed by, owner) of a cube. 
    RSZRANGE  Selection specification for an element 
    RSZSELECT
    Selection properties of an element
    RSZCOMPIC
    Assignment reuseable component <-> InfoCube 
    RSZELTPRIO  Priorities with element collisions
    RSZELTPROP  Element properties (settings)
    RSZELTATTR  Attribute selection per dimension element 
    RSZCALC  Definition of a formula element 
    RSZCEL   Query Designer: Directory of Cells 
    RSZGLOBV
    Global Variables in Reporting 
    RSZCHANGES  Change history of reporting components
    Thanks and regards

  • How to print the list outout with out getting output?

    How to print the list outout with out getting output?
    My requirement is that when i exicute the program the list output has to print with out getting output list display on the screen.
    if possible cana anyone share the code....
    Phani,

    See this Sample Program.
    DATA: PARAMS LIKE PRI_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LT50'
                COPIES                = COUNT
                LIST_NAME             = 'TEST'
                LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 79
                LINE_COUNT            = 23
                LAYOUT                = 'X_PAPER'
                SAP_COVER_PAGE        = 'X'
                COVER_PAGE            = 'X'
                RECEIVER              = 'SAP*'
                DEPARTMENT            = 'System'
                NO_DIALOG             = ' '
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.
    Awrd POints If useful
    Bhupal

  • Filter the list of inputComboboxListOfValues inside an iterator.

    Hello,
    I have a worker that has multiple services. I iterate over all services to display them in the worker form. Each service can be modified. A worker can't have the same service twice. I have added in the database unique constrain <worker, service>.
    When I add the same service to the worker twice and press save button. No error message shows up.
    What I am trying to do is to filter the list of the af:inputComboboxListOfValues to not have an option to select twice the same service of a worker.
    Or to display an error message on the component with the service that is appearing twice.
    I already tried to filter the inputComboBoxListOfValues list but since it is the same component being iterated can't make the filter work.
    [code]
    <af:iterator id="iter" var="row" value="#{bindings.WorkerServiceView1.collectionModel}">
         <af:panelGroupLayout id="pgl4" layout="horizontal"  inlineStyle="margin-top:1px">
              <af:inputComboboxListOfValues id="pathShortFullId" value="#{row.bindings.PathShortFull.inputValue}"
                                 model="#{row.bindings.PathShortFull.listOfValuesModel}"
                                 binding="#{backingBeanScope.wServBacking.inputComboLovService}">
               </af:inputComboboxListOfValues>
         </af:panelGroupLayout>
    </af:iterator>
    [/code]
    How it looks like:
    http://snag.gy/MyuKG.jpg
    I am using Jdeveloper Version 11.1.2.3.0.

    I tried recreating the RowClass but didn't help.
    Here is how my a little shorter version of my Entity looks like:
      BindingStyle="OracleName"
      UseGlueCode="false"
      RowClass="model.eo.WorkerServiceImpl">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Access"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <Attribute
        Name="WorkerServiceId"
        IsNotNull="true"
        ColumnName="WORKER_SERVICE_ID"
        TableName="WORKER_SERVICE"
        PrimaryKey="true"/>
      <Attribute
        Name="WorkerId"
        IsNotNull="true"
        ColumnName="WORKER_ID"
        SQLType="NUMERIC"
        Type="java.lang.Long"
        ColumnType="NUMBER"
        TableName="WORKER_SERVICE"/>
      <Attribute
        Name="ServiceId"
        IsNotNull="true"
        ColumnName="SERVICE_ID"
        SQLType="NUMERIC"
        Type="java.lang.Long"
        ColumnType="NUMBER"
        TableName="WORKER_SERVICE"/>
      <AccessorAttribute
        Name="Worker"
        Association="model.eo.assoc.WorkerRoleFkAssoc"
        AssociationEnd="model.eo.assoc.WorkerRoleFkAssoc.Worker"
        AssociationOtherEnd="model.eo.assoc.WorkerRoleFkAssoc.WorkerService"
        Type="model.eo.WorkerImpl"
        IsUpdateable="true"/>
      <Key
        Name="WorkerRolePk"
        PrimaryKey="true">
        <DesignTime>
          <Attr Name="_DBObjectName" Value="WORKER_ROLE_PK"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="model.eo.WorkerService.WorkerServiceId"/>
        </AttrArray>
      </Key>
      <Key
        Name="WorkerRoleFk">
        <DesignTime>
          <Attr Name="_referencedKey" Value="WORKER_PK"/>
          <Attr Name="_isForeign" Value="true"/>
          <Attr Name="_DBObjectName" Value="WORKER_ROLE_FK"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="model.eo.WorkerService.WorkerId"/>
        </AttrArray>
      </Key>
      <Key
        Name="WorkerRoleMfcRoleFk">
        <DesignTime>
          <Attr Name="_referencedKey" Value="PK_ROLE"/>
          <Attr Name="_isForeign" Value="true"/>
          <Attr Name="_DBObjectName" Value="WORKER_ROLE_ROLE_FK"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="model.eo.WorkerService.ServiceId"/>
        </AttrArray>
      </Key>

  • How to Maintain the MM Master Data from one company code to other co code

    Hi Experts,
    Can any one pls tell me how to Maintain the MM Master Data from one company code to other co code.
    Presently we created New plants,New Purchase Orgs under different company code.
    1) Material Master data
    2) Vendor MAster data
    3) PIR
    4) Source List
    Is there any standard Transactions...??
    Please reply.
    Brgds,
    KK

    Hi
    Check out the link -
    http://wiki.sdn.sap.com/wiki/display/ABAP/StepstocreateasimpleLSMWusingbatchinput+recording
    lsmw for data migration for  xk01 transaction
    http://www.sap-img.com/general/lsmw-steps-for-data-migration.htm
    Regards
    Anand

Maybe you are looking for

  • Premiere Elements 12 - Add media webcam "no device control"

    Hi, I have Adobe Premiere Elements 12 and I am trying to record live using Logitech C920 Webcam. Whenever I try to "add media", even though it recognizes both image and audio devices in the webcam, it shows "no device control" and the screen is black

  • Why doesn't Adobe Reader let me save the editable form on my computer?

    Hello, I am using Adobe reader 10.1.2 I downloaded it free from the internet. When I download an editable PDF real estate contract from the internet and try to fill it out and save it on my desktop it doesn't let me save it. It says I can only fill i

  • 160N rerouting issue

    So, this is about the 5th time, is not more that I am having facebook.com rerouted to pricegrabber.com   I have looked online and it seems to be a flaw in the router itself, I, of course like everyone else, thought it was a virus or something, but it

  • List Of Infocubes For Retail

    Hi to all,      I am going for a retail implementation( Like Bigbazar and Wallmart), can any body provide me the list of cubes.. which are required for this kind of Retail Shop. Regards [email protected]

  • Light room onto a new iMac

    I have just acquired a new iMac with no disc drive and I want to download my LIghtroom package on to the iMac. How do I do this?