Refresh a query driven list based on a search field

I have a text field in a control block that I am using as a search criteria.
I have another list whose source query is based on the previously mentioned text field's value.
As I am typing in the text field, I want the list to update based on what I have typed.
For example, as I type ORACLE, the list would show all O records, then OR records, then ORA records, then ORAC records, and so on and so on.
I have been unable to find when/where the trigger exists that will allow me to do this.
Can anyone help?

Hello nameless,
first: do not use timers, because they have a negative influence on the performance.
use a pre-query trigger in which you check the value of your text field. In this trigger you can set the block property WHERE of the block to be queried like: "column_name LIKE '%'||:block_name.item_name||'%'
with this all records containing the text in your text item will be shown. You could also add a radio button with three values: Starts with, Contains, Ends with. When you implement the functionality like this, the USER controls what happens and not the programme.
greetz,
Hans

Similar Messages

  • Sharepoint Online: Find an Item box is not finding all items in a list based on keyword search

    I am using SharePoint Online.
    I have a standard SharePoint list with a "Name" field (single line of text) and a "Description" field (multiple lines of text).  The Find n Item search box is present as expected, and works very sporadically.  For example, I
    have an item with the word "white" in the Description field.  Searching for "white" doesn't find the item.  I have a number of items with the word "vending" in the Name field.  Searching for vending returns some
    of the items, but not all of them.  
    I have gone into the list settings (Advanced) and reindexed the list.
    Here are two screenshots that illustrate the issue.  The first is unfiltered. The second shows a filter on the word "vending".  Note that some are found and some are not.
    Filtered
    Any idea what's going on?  

    I am also experiencing an issue with the find. If not the same issue David is having, I suspect it is related, so I will describe it here.
    I created a list based on the Contacts content type and within a standard list view, entering values in the "Find an item" box will match content of some columns, but not others. The four columns that the find misses are Position(renamed from Job Title),
    Email Address, Mobile Phone, and Years Of Service (a Numeric column I added to the list). I too have re-indexed the list and retested after several hours.
    Full Name and Email Address are both native columns of the Contact content type and both are Single line of text. I am able to filter the list by finding partial matches on Full Name, but not Email Address.

  • Query returns list of objects with all fields = NULL

    Hi there,
    I must be doing something wrong. I have tried to query for all activities and all contacts using the code pattern shown below (for activities):
    Activity_ServiceLocator serviceLocator = new Activity_ServiceLocator();
    serviceLocator.setActivityEndpointAddress(config.get(CONFIG_KEY_URL) + ";jsessionid=" + sessionId);
    ActivityQuery aq = new ActivityQuery();
    ListOfActivityQuery laq = new ListOfActivityQuery();
    laq.setActivity(aq);
    ActivityQueryPage_Input aqpi = new ActivityQueryPage_Input();
    aqpi.setListOfActivity(laq);
    laq.setPagesize(new BigInteger("100"));
    laq.setStartrownum(new BigInteger("0"));
    ActivityQueryPage_Output aqpo = serviceLocator.getActivity().activityQueryPage(aqpi);
    When I do getListOfActivity() from the ActivityQueryPage object, I get a non-empty list, however, when I loop over the list, it seems that all fields in all the objects are NULL. This, even though I have checked in the system that the activities (appointments) all contain fields with data.
    As mentioned, when I try to query for all contacts using the exact same code pattern, I also get a non-empty list of (contact) objects with non-empty fields .. So, I guess I'm doing a simple mistake (since I have hundreds of contacts in my CRM system), but which?
    Thx in advance

    Okay, I partly found the answer myself. It appears that one has to explicitly set a (empty) query type for the fields that one wants returned from the query .. At least this appears to return the field value of the returned objects .. But is this really the correct way of doing it?
    A few related questions;
    1) What is the purpose of the UseChildAnd? I cannot read this from the documentation!
    2) Is there any more documentation than the Oracle CRM On Demand Release 16? I would like to have some more documentation on
    a) how to make a cross table query, e.g. across activities and contacts (for instance, give me all contact who have an appointment tomorrow), and
    b) how to use the QueryType.
    Any references to something that can enlighten me? :-)

  • ADF query panel with table, adding new search fields dynamically

    I am a beginner very new to ADF world. I have a ADF query panel with table which has its source from a ViewCriteria. I need to add a new search field on the form dynamically based on the user's need. Assume I am using a Employee table and I have search "employee ID" as one field in the form, upon clicking a add button in the form I need to have a another "employee ID" field appears along with the already existing one.
    I tried to add the condition in ViewCriteria but do not know how to add it ?
    Could some one pls address how it can be approached ?

    User, please always tell us your jdev version.
    Well, this use case need some thinking to be done. What do you want to archive with adding a new query field to the panel? As you said you already have one field for employeeId and now, on a click on a button, you add another one. How would the resulting query work with the new field? Should it use 'and' to concatenate the query or should it use 'or'?
    I suggest that you use the ADF Riche Client Demo (http://jdevadf.oracle.com/adf-richclient-demo/faces/index.jspx) select the Query node and then select 'af:query'. This shows you what is possible otu of hte box using the af:query component. You can add fields to existing queries in advanced mode (e.g. use system query 5, which starts with an empty panel and allows you to add fields).
    Once you understand how this works you may come back with a more detailed use case description or you have found the solution already. Read the documentation on af:query along with trying otu the component.
    Timo

  • Query for listing several values in same field

    Hi,
    is there a function for listing more than one value in the same field, only with comma seperation?
    For example, I want to group by cardcode from ORDR and list all docnum's like this:
    Cardcode    Docnum's
    21355          98765, 95498, 95164
    21564          95484, 54684, 95654, 98465
    21865          95484, 12486
    Kind regards
    Kjetil Sandvik

    HI,
    Thank for your replies.
    We need to update all old orders for sure, but my idea was to use this query:
    Select CardCode, COUNT(Address2) From ORDR Where Docstatus <> 'C' GROUP BY address2, cardcode order by cardcode, address2
    The results will give me two lines for each customer and count the addresses, so then I know that the count of one of the lines must me changed. Let's say there is 20 orders with new address and 20 orders with old address, my intention was to manually change the 20 orders that is old. Instead of checking all 40, It would help alot to list all order numbers in a column beside in the query.
    BR
    Kjetil

  • Populate field based on other lookup field in form

    Hello,
    In a list item in Infopath, I have a field which looks up a location. You can select the location in a dropdown list.
    I want to fill another field with the manager name of the selected location. That manager name is a field in the other form also. In a Sharepoint workflow you can do such a thing (look for a specific list item in another list, based on a selected field in
    that list).
    To summarize: if I fill the location field with info from another list, I want to automatically fill another field with the manager of that location - which is also in that other list.

    Hi  mRRRc1,
    For achieving your demand , please take steps in the InfoPath as below:
    Open the list which contains the look up field using InfoPath.
    Create a Data Connections from  SharePoint list:  Click From SharePoint  List  control under tag DATA -> Input your site URL in the Data Connection Wizard page -> Select the original
    list -> Select  Location and Manager field -> Enter a name for this data connection(such as Test) -> Finish.
    Create a Rule for Location look up field :   
    Condition: LocationLookUp  is not blank
    Rule type: Action
    Run these actions: Add “Set a field’s value”
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Problem writing a sql query for a select list based on a static LOV

    Hi,
    I have the following table...
    VALIDATIONS
    ID          Number     (PK)
    APP_ID          Number     
    REQUESTED     Date          
    APPROVED     Date          
    VALID_TIL     Date
    DEPT_ID          Number     (FK)
    I have a search form with the following field item variables...
    P11_DEPT_ID (select list based on dynamic LOV from depts table)
    P11_VALID (select list based on static Yes/No LOV)
    A report on the columns of the Validations table is shown based on the values in the search form. So far, my sql query for the report is...
    SELECT v.APP_ID,
    v.REQUESTED,
    v.APPROVED,
    v.VALID_TIL,
    d.DEPT
    FROM DEPTS d, VALIDATIONS v
    WHERE d.DEPT_ID = v.DEPT_ID(+)
    AND (d.DEPT_ID = :P11_DEPT_ID OR :P11_DEPT_ID = -1)
    This query works so far. My problem is that I don't know how to do a search based on the P11_VALID item - if 'yes' is selected, then the VALID_TIL date is still valid. If 'no' is selected then the VALID_TIL date has passed.
    Can anyone help me to extend my query to include this situation?
    Thanks.

    Hello !
    Let's have a look at my example:create table test
    id        number
    ,valid_til date
    insert into test values( 1, sysdate-3 );
    insert into test values( 2, sysdate-2 );
    insert into test values( 3, sysdate-1 );
    insert into test values( 4, sysdate );
    insert into test values( 5, sysdate+1 );
    insert into test values( 6, sysdate+2 );
    commit;
    select * from test;
    def til=yes
    select *
      from test
      where decode(sign(trunc(valid_til)-trunc(sysdate)),1,1,0,1,-1)
           =decode('&til','yes',1,-1);
    def til=no
    select *                                                                               
      from test                                                                            
      where decode(sign(trunc(valid_til)-trunc(sysdate)),1,1,0,1,-1)
           =decode('&til','yes',1,-1);  
    drop table test;  It's working fine, I've tested it.
    The above changes to my first idea I did because of time portion of the DATE datatype in Oracle and therefore the wrong result for today.
    For understandings:
    1.) TRUNC removes the time part of DATE
    2.) The difference of to date-values is the number of days between.
    3.) SIGN is the mathematical function and gives -1,0 or +1 according to an negative, zero or positiv argument.
    4.) DECODE is like an IF.
    Inspect your LOV for the returning values. According to my example they shoul be 'yes' and 'no'. If your values are different, you may have to modify the DECODE.
    Good luck,
    Heinz

  • Select List (based on LOV) query problem

    Hello experts! I have a small problem here, which I can't seem to overcome.
    I have a page item (select list based on LOV), which is based on a query. The query returns all potential employees of a department that are responsible for a certain duty. So far so good!
    The problem is that there are two departments, which should not only see there own employees but also the name of the employee that has carried out a certain task. However, due to my query, the name of that person is not displayed - only the pk is returned.
    Do you have a recommendation how I display all employees of a specific department and have additional values translated as well?
    My query is as follows: select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where cnt_bearbeiter in (SELECT
    CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK) union select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where int_behoerde in (SELECT
    CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK where STR_REGIERUNGSBEZIRK = lower (:app_user)) whereas :app_user holds the information of the department.
    Any hint is appreciated!
    Many thanks,
    Seb

    Okay, I just had the right idea and it's working well! Sorry for posting!
    I return the name of the employee that has edited a dataset and simply add all others of the logged on department! Really easy! Should have thought of that before posting! ;-(
    The correct code is select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter a, vt_tbl_punktdaten b where a.cnt_bearbeiter = b.int_bearbeiter and
    inv_pt_id_sub = :P4_PTIDS
    union select str_bearbeiter, cnt_bearbeiter from vt_tbl_bearbeiter where int_behoerde in (SELECT
    CNT_REGIERUNGSBEZIRK FROM TBL_REGIERUNGSBEZIRK where STR_REGIERUNGSBEZIRK = lower (:app_user))Bye,
    Seb

  • Data is not populated in List based on custom Query

    Hi
    I want to query the BO and display only certain instances in a advanced ListPane based on a query condition. But when i bind the custom query to the advanced list pane no data is displayed.
    1. Created a Bo PersistForcastBo.
    2. In Ti screen of PersistForcastBo add a tab QUALIFICATIONS.
    3. Two Advanced List Panes are created in QUALIFICATIONS tab
    4.fields of second advancedlist pane are bound to respective fields of Bo.
    5.Also an absl action script I created which displays data in the advanced listpane on click of QUALIFICATIONS tab.
    6.created a SADL Query in the controller and added the fields required for selection.
    6.also created condition in the selected parameter
    6. In AdvancedListPane added the default set created., but after the querying the Bo data doesnt display in AdvancedlistPane
    Can Anyone Please suggest a solution to this.
    Regards

    hi  Fred,
    On click of QUALIFICATIONS tab , Eventhandler gets called . In the eventhandler a Bo action is called first which is a absl script- displayforecast, to get all the data . The data in the list pane is populated due to this script. But when i created the query and binded the default set to the listpane the data is not populated
    the Eventhandler is called on Click of Qualifations Tab, first action gets called and then eventhandler  that executes defaultset is fired . This eventhandler is the handler created when query->defaultset is created
    but after firing this query no data is displayed.

  • How to refresh data in SelectOneChoice component based on backing bean

    Hello.
    I am using JD Studio Edition Version 11.1.1.5.0 on Weblogic 11.1.1.5
    I have page fragment with SelectOneCoice based on backing bean (used as filter)
    <af:selectOneChoice label="#{projectBundle['label.toolbar.spinbox.period']}"
                                        valueChangeListener="#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.onPeriodValueChangeListener}"
                                        binding="#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.soc2}"
                                        id="soc2" value="#{pageFlowScope.ContentMainView.period}" autoSubmit="true">
                      <f:selectItems value="#{pageFlowScope.YearsListBean.yearItems}"
                                     binding="#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.si2}" id="si2"/>
    </af:selectOneChoice>
    there is backing bean which reads data from database and creates list + add null value
    package sk.web.view.bean;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.model.SelectItem;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.share.logging.ADFLogger;
    import oracle.jbo.Row;
    import sk.web.view.common.utils.ADFUtils;
    * Class is supposed to provide list of years for the af:SelectOneChoice component.
    public class YearsListBean {
        private static final String PERIOD_ITERATOR_NAME = "PeriodView1Iterator"; //auto generated id
        private List<SelectItem> yearItems;
        public YearsListBean() {
            super();
            yearItems = new ArrayList<SelectItem>();
            addYearsToList();
        public void addYearsToList() {
            DCIteratorBinding iter = null;
            iter = ADFUtils.findIterator(PERIOD_ITERATOR_NAME);
            Row[] rows = iter.getAllRowsInRange();
            addYearItemToList("", "");       
            for(int i = 0; i < rows.length; i++){
                Row row = rows[i];
                log.info("row[" + Integer.toString(i) +"]: " + rows[i].getAttribute("Year").toString());
                addYearItemToList( rows[i].getAttribute("Year").toString(), rows[i].getAttribute("Year").toString());
        public void clearYears() {
            log.info("Called.");
            getYearItems().clear();
       private void addYearItemToList(String strInYearLabel, String strInYearValue) {
            SelectItem tObjItem = new SelectItem();
            // Setup object
            tObjItem.setLabel(strInYearLabel);
            tObjItem.setValue(strInYearValue);
            // Add it ro list
            yearItems.add(tObjItem);   
        public List<SelectItem> getYearItems() {       
            // Get Output
            return yearItems;
    When I insert new record into DB table I want to show new value into filter. How to achieve this?
    I tryied get current instance of YearsListBean
         YearsListBean yearsList = (YearsListBean)FacesUtils.getManagedBean("pageFlowScope.YearsListBean");
    then clear and fill it again
         yearsList.clearYears();
         yearsList.addYearsToList();
    at the end I refresh view adding partial target
    AdfFacesContext.getCurrentInstance().addPartialTarget(getSoc1());
    But this procedure doesn't work. Please help me find working method.
    Thanks in advance.

    Why don't you use a model driven list in the first place? Your list gets it's data from a vo do this would be the preferred solution.
    Check out my sample http://wp.me/pcBZk-vM
    Which shows an similar use case.
    Timo

  • ABAP Query, To list both, the PO created and PO modified for a given period

    Hi
    I want to create a query that list the purchasing orders created or modified during a given period. however, the creation date and the modification date are two different fields stored in differents tables.
    if I have these two fields in the selection creteria screen, the relationship between them will be the operator AND. so this will not enable me to have the information targeted.
    My quetion, is there a possibility to have the Operator OR in the first selection creteria screen , between these 2 fields.?
    the tables are:
    for the creation EKKO
    for the change :
    MECDGRID
    CDHDR Change document header
    CDPOS Change document items
    thanks

    Hello,
    Fetch data from EKKO and do a for all entries on the table CDHDR on the field OBJECTID and EBELN and t-code = ME21N OR ME21 ETC.
    Similarly between CDHDR and CDPOS tables based on objectid`s.
    Hope this helps you in solving your problem!
    Regards,
    Reetesh

  • Creating a dynamic Selection List based on a View Object

    Hello,
    I'm new to JDeveloper and I would like to create a JSP Page with dynamic Selection List based on a runtime query or based on a view object (BC4J). The selection made by an user should serve another dynamic query with the necessary parameters that I built using createViewObjectFromQueryStmt(). By now I tried this using the InputSelectLOV from the Component Palette in JDeveloper. But without success. By the way: the selection list is not very large (5 values), so it's not necessary to have a form finding the desired value.
    Maybe someone had experience about creating this already. Please give me a tip or a little example.
    Thanks.

    http://otn.oracle.com/products/jdev/howtos/jsp/renderers.html

  • Select list based on LOV - and allowing new values

    Hi All,
    I have a page that has a select list based on a dynamic list of values. I wanted to test out how the system was working, so I truncated all of my tables, and now my select list is blank (which makes sense). The problem is that I can't type anything into the select list. How can I make it so that if there isn't a value returned from the query that populates the LOV, I can just type one in? This also goes further in that if the value I wanted isn't already in the db, how does the user add in another value?
    Thanks in advance,
    Corey

    Hello,
    Well as you now know HTML based select lists don't work like that, that widget is called a combo box and there will be built in combo boxes in APEX 3.0, it's a fairly complex dhtml widget.
    What you might want to do is provide a text item next to your select box and an Add New Value Option in your select list.
    Carl

  • Order in a Select List based in a LOV is wrong

    I have a select list based upon a LOV SQL Query.
    Values in table are:
    FIELD
    001
    002
    003
    AAA
    when I make query in SQL Workshop:
    select FIELD from TABLE order by FIELD;
    I get
    001
    002
    003
    AAA
    But when I make a similar query in LOV the result is in the select list
    AAA
    001
    002
    003
    Someone knows what is happening?
    Thank
    Ander

    mhichwa wrote:
    It looks like your application is running a different sort / NLS preference then is the SQL workshop. Is there a chance your application identifies a language that sorts differently then default APEX. I am just guessing but it could explain this behavior.OK, I think something like this is happening because my Oracle instance have SPANISH like a NLS_LANG parameter, but why is different result between sql Workshop and LOV query, I have installed english and spanish languages in my apex instance, I get the same problem in both cases.
    Other curious think is that my min and max values are OK,
    for example
    BETWEEN: <select list 1> AND <select list 2>
    default value for <select list 1> is
    DECLARE
    exitvalue varchar2(10);
    BEGIN
    select min(FIELD) into exitvalue
    from TABLE
    return (exitvalue);
    END;
    I get 001
    default value for <select list 2> is
    DECLARE
    exitvalue varchar2(10);
    BEGIN
    select max(FIELD) into exitvalue
    from TABLE
    return (exitvalue);
    END;
    I get AAA
    But select list are ordered like
    AAA
    001
    002
    003
    I have based select list in a lot of different sql ways
    select FIELD from TABLE ORDER BY FIELD
    select FIELD from TABLE ORDER BY 1
    select FIELD from TABLE ORDER BY FIELD ASC
    select FIELD from TABLE ORDER BY 1 ASC
    Other extraneous think is that I use DESC order I get
    003
    002
    001
    AAA
    Thanks
    Edited by: user10999912 on 24-Jul-2010 08:07

  • Question: To derive Query technical name based on RSZCALC table.

    Hello All -
    Could you please kindly help to share your thought on Link of Query table. I am interested to see the list of Queries using Exception Aggregation against particular Characteristic.
    I use RSZCALC table to get Information about Exception Aggregation, however, I am not sure how to get Query technical name.
    Could you please kindly share your thought, what table I should use to get Query Technical name based on data from RSZCALC? And appreciate to share your thought what column that I should use to link between those tables.
    Looking forward your feedback on this, and appreciate much.
    Thanks,
    Cheers,

    Also Refer this Wiki  , For More information about bex  query  tables.
    Relation between between BEX Query DefinitionTables - SAP NetWeaver Business Warehouse - SCN Wiki

Maybe you are looking for

  • Business Configuration - Task to Set Default Logistics Area

    Hello! I created a customer-specific solution with a BO Extension. The BO Extension includes a field logisticsArea and that field should have a default value, that is defined by the user. The difficult part ist, that the user should be able to set a

  • Displaying a Simple Timer

    i want to display a simple MM:SS count-up timer on screen. im using: int time = (int)(curr - start); Date date = new Date(); date.setMinutes(time / 60) date.setSeconds(time % 60) gfx.drawString <- simpleDateFormat.(formatdate) // formatted with "mm:s

  • Ampersands not being encoded in recordset paging

    Trying to validate a page and it appears that the ampersands are not being encoded, thus not validating the page. When I create a link and use parameters the ampersands get encoded correctly, its just the next/previous links that don't appear to get

  • Forms 10g window size in unix

    Hi, when I migrated from 6i to 10g I added some code to maximize window size in When-New-form-Instance trigger of the form. It works in windows but when I try to run the form in Unix the window size is not big enough to see the whole form. i tried to

  • RAW thoughts

    iPhoto still needs better support for raw files. I can get it to import .nef files from a Nikon D70, and also the same files converted to .dng by the Adobe utility. But .dng files made by a Leica M8 - no way. If I use Adobe DNG Converter on these fil