Searching using a combination of MessageChoice & TextInput in ADF UIX  Page

Hello,
I'm trying to create a page in ADF UIX which implements search operation using a combination of "Message Choice" & "Text Input". I refered to the OTN How to's Document for "Building a list of Values (LOV) with ADF UIX". It's been mentioned in the document to create an LovInput component & when you do that an UIX page LovWindow0.uix is created by default along with two handler's "LovFilter" and "LovSelect".
when I try to implement this concept in the simple UIX page with out creating a LOV Input field.... i.e; I tried to implement this concept by just using the List of values component.... I'm not able to associate a handler to the go button present in the default list of files component.
Consider the scenario where I'm using the Departments View.. In the list I'm displaying the filter Choice & in the Text Input specifying the where condition...
Can anyone please help me out on this...I'm new to this concept...
Thanks & Regards,
Arun
Message was edited by:
sam_1328

Hi Sam,
i think this link should have part of ur solution.
http://www.oracle.com/technology/products/jdev/tips/shmeltzer/setwhereclause/uix.html
There you need to make slight modifications to the codes so as to suite ur scenario of search(having a message choice to choose filter and a textinput for the search value)
The new method that you add by reading the page can be modified.
Origional method mentioned is
public void setCondition (String p_cond)
ViewObject empvo = findViewObject("EmployeesView1");
     //Creating a Where clause for the query
String whereclause = "LAST_NAME like '%"+ p_cond +"%'";
empvo.setWhereClause(whereclause);
empvo.executeQuery();
replace this with the new method
public void setCondition (String p_filter,String p_value)
ViewObject empvo = findViewObject("EmployeesView1");
     //Creating a Where clause for the query
String whereclause = p_filter+" = "+p_value ;
empvo.setWhereClause(whereclause);
empvo.executeQuery();
But if u have a filter which is suppposed to be charechter field den the code should be
public final void setMoreConditions(String p_field, String p_value)
ViewObject empvo = findViewObject("EmployeesView1");
if (p_field.equalsIgnoreCase("last_name")||p_field.equalsIgnoreCase("first_name"))
String whereclause = p_field+" LIKE '%"+p_value+"%'";
empvo.setWhereClause(whereclause);
else
if (p_field.equalsIgnoreCase("manager_id")||p_field.equalsIgnoreCase("department_id") )
String whereclause = p_field+" = '"+p_value+"'";
empvo.setWhereClause(whereclause);
else
String whereclause = "";
empvo.setWhereClause(whereclause);
empvo.executeQuery();
In the above code include all the charechter field names in the first if condition.
I think that should solve ur purpose.
Try it and let me know if ur having any problems.
Regards,
Vineet

Similar Messages

  • When I search using my address bar it comes up and say page not found jar file, how do I fix this?

    File not found
    Firefox can't find the file at jar:file:///C:/Program Files (x86)/Mozilla Firefox/omni.jar!/chrome/en-US/locale/browser-region
    Check the file name for capitalization or other typing errors.
    Check to see if the file was moved, renamed or deleted.

    hello Kygirl, please install the search reset addon - it will revert the most common customziations those adware programs do in firefox back to the default (including the keyword search from the location bar): https://addons.mozilla.org/firefox/addon/searchreset/

  • Product Search Using Oracle Text or By Any Other Methods using PL/SQL

    Hi All,
    I have requirement for product search using the product table which has around 5 million products. I Need to show top 100 disitnct products searched  in the following order
    1. = ProductDescription
    2. ProductDescription_%
    3. %_ProductDescription_%
    4. %_ProductDescription
    5. ProductDescription%
    6. %ProductDescription
    Where '_' is space.  If first two/three/or any criteria itslef gives me 100 records then i need not search for another patterns
    Table Structure Is as follows
    Create Table Tbl_Product_Lookup
        Barcode_number                Varchar2(9),
        Product_Description Varchar2(200),
        Product_Start_Date Date,
        Product_End_Date Date,
        Product_Price Number(12,4)
    Could you please help me implementing this one ? SLA for the search result is 2 seconds
    Thanks,
    Varun

    You could use an Oracle Text context index with a wordlist to speed up substring searches and return all rows that match any of your criteria, combined with a case statement to provide a ranking that can be ordered by within an inner query, then use rownum to limit the rows in an outer query.  You could also use the first_rows(n) hint to speed up the return of limited rows.  Please see the demonstration below.  If you decide to use Oracle Text, you may want to ask further questions in the Oracle Text sub-forum on this forum or space or whatever they call it now.
    SCOTT@orcl_11gR2> -- table:
    SCOTT@orcl_11gR2> Create Table Tbl_Product_Lookup
      2    (
      3       Barcode_number       Varchar2(9),
      4       Product_Description  Varchar2(200),
      5       Product_Start_Date   Date,
      6       Product_End_Date     Date,
      7       Product_Price          Number(12,4)
      8    )
      9  /
    Table created.
    SCOTT@orcl_11gR2> -- sample data:
    SCOTT@orcl_11gR2> insert all
      2  into tbl_product_lookup (product_description) values ('test product')
      3  into tbl_product_lookup (product_description) values ('test product and more')
      4  into tbl_product_lookup (product_description) values ('another test product and more')
      5  into tbl_product_lookup (product_description) values ('another test product')
      6  into tbl_product_lookup (product_description) values ('test products')
      7  into tbl_product_lookup (product_description) values ('selftest product')
      8  select * from dual
      9  /
    6 rows created.
    SCOTT@orcl_11gR2> insert into tbl_product_lookup (product_description) select object_name from all_objects
      2  /
    75046 rows created.
    SCOTT@orcl_11gR2> -- wordlist:
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference('mywordlist', 'BASIC_WORDLIST');
      3    ctx_ddl.set_attribute('mywordlist','PREFIX_INDEX','TRUE');
      4    ctx_ddl.set_attribute('mywordlist','PREFIX_MIN_LENGTH', '3');
      5    ctx_ddl.set_attribute('mywordlist','PREFIX_MAX_LENGTH', '4');
      6    ctx_ddl.set_attribute('mywordlist','SUBSTRING_INDEX', 'YES');
      7    ctx_ddl.set_attribute('mywordlist', 'wildcard_maxterms', 0) ;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> -- context index that uses wordlist:
    SCOTT@orcl_11gR2> create index prod_desc_text_idx
      2  on tbl_product_lookup (product_description)
      3  indextype is ctxsys.context
      4  parameters ('wordlist mywordlist')
      5  /
    Index created.
    SCOTT@orcl_11gR2> -- gather statistics:
    SCOTT@orcl_11gR2> exec dbms_stats.gather_table_stats (user, 'TBL_PRODUCT_LOOKUP')
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> -- query:
    SCOTT@orcl_11gR2> variable productdescription varchar2(100)
    SCOTT@orcl_11gR2> exec :productdescription := 'test product'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> column product_description format a45
    SCOTT@orcl_11gR2> set autotrace on explain
    SCOTT@orcl_11gR2> set timing on
    SCOTT@orcl_11gR2> select /*+ FIRST_ROWS(100) */ *
      2  from   (select /*+ FIRST_ROWS(100) */ distinct
      3              case when product_description = :productdescription            then 1
      4               when product_description like :productdescription || ' %'       then 2
      5               when product_description like '% ' || :productdescription || ' %' then 3
      6               when product_description like '% ' || :productdescription       then 4
      7               when product_description like :productdescription || '%'       then 5
      8               when product_description like '%' || :productdescription       then 6
      9              end as ranking,
    10              product_description
    11           from   tbl_product_lookup
    12           where  contains (product_description, '%' || :productdescription || '%') > 0
    13           order  by ranking)
    14  where  rownum <= 100
    15  /
       RANKING PRODUCT_DESCRIPTION
             1 test product
             2 test product and more
             3 another test product and more
             4 another test product
             5 test products
             6 selftest product
    6 rows selected.
    Elapsed: 00:00:00.10
    Execution Plan
    Plan hash value: 459057338
    | Id  | Operation                      | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT               |                    |    38 |  3990 |    13  (16)| 00:00:01 |
    |*  1 |  COUNT STOPKEY                 |                    |       |       |            |          |
    |   2 |   VIEW                         |                    |    38 |  3990 |    13  (16)| 00:00:01 |
    |*  3 |    SORT UNIQUE STOPKEY         |                    |    38 |   988 |    12   (9)| 00:00:01 |
    |   4 |     TABLE ACCESS BY INDEX ROWID| TBL_PRODUCT_LOOKUP |    38 |   988 |    11   (0)| 00:00:01 |
    |*  5 |      DOMAIN INDEX              | PROD_DESC_TEXT_IDX |       |       |     4   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter(ROWNUM<=100)
       3 - filter(ROWNUM<=100)
       5 - access("CTXSYS"."CONTAINS"("PRODUCT_DESCRIPTION",'%'||:PRODUCTDESCRIPTION||'%')>0)
    SCOTT@orcl_11gR2>

  • ADF UIX Messagechoice element with databinding in Search Page

    How can we use the Messagechoice element with databinding in a ADF UIX search page? The Messagechoice element needs both target and destination dataSources and returns the selectedIndex (0,1,2,3....) and not the actual value. Is there a way of retrieving the actual value from the dropdown Messagechoice list in a search page without using the selectedIndex?

    Arvind -
    You can use databinding by using the "childData" attribute in the contents tag. This will stamp out the data bound to childData as the options in the message choice. For example,
    <messageChoice name="myChoice" prompt="Choose a Language">
    <contents childData="${uix.data.data1.lang}">
    <option text="${uix.current.text}"/>
    </contents>
    </messageChoice>
    Matt Lee
    UIX Team

  • How do I combine text and photos on the same page in iPhoto using photobook

    How do I combine text and photos on the same page in iPhoto using photobook?

    You mean while creating a book in iPhoto?  Click on the layout button while viewing a page and select the layout that includes both text and photos.  Most themes will have those options.
    OT

  • Enterprise Search using Sharepoint Server 2007 + SAP R/3

    Hi experts,
    I want to achieve an enterprise search using SharePoint Server 2007 (MOSS).
    SharePoint includes the BDC (business data catalog) which allows you to communicate with the SAP System.
    I read in the Microsoft whitepapers that thereu2019s a need for a web application server 6.40.
    So here is the problem:
    We have SAP R/3 Enterprise 4.7 with WAS 6.20. We donu2019t want to change or upgrade the SAP system.
    There are ways to connect the WAS to the R/3 system e.g. RFC.
    But does this still work for search in SharePoint?
    Did anybody already deal with this problem?
    Any other ideas connecting SharePoint to SAP in this scenario?
    Best regards
    Philipp Detemple

    > and having requirement to upgrade OS version from B.11 to B.23. Currently server is hosting SAP R/3 Enterprise version.
    So you upgrade HP-UX 11.11 to HP-UX 11.23?
    > I have tried to serach SAP service market place for PAM, but could not find specific information on version upgrade from B.11 to B.23
    Yes - because there is no HP-UX 23.x, only 11.23 and 11.31. For the version overview check
    Note 939891 - HP-UX: End of Support Dates
    Note 1075118 - SAP on HP-UX: FAQ
    > My Questioin is: If we copy system as it is to new host and if we keep the same Kernel Patch 196, will it work fine or give issue?
    It will work.
    > So even if I got for latest patch 304 which is released on 16.11.2009, still the OS version for which it built is B.11, so if we have B.23, will it work? I would not see the possibilities of kernel upgrade at this stage.
    Why no possibility for a kernel upgrade if you install a new server?
    > so with same kernel will it work? What else I need to check for the migration and make sure that everything works fine on new server.
    Check
    Note 831006 - Oracle 9i installation on HP-UX 11.23 and 11.31
    Markus

  • Reading (and searching, use of TOC and index) Acrobat files offline

    OK - I have tried several things in effort to read PDFs offline.
    The 'tools' that allow me to access these files PDFReader Pro and GoDocs are incapable of doing searches, use TOC, and index.. It is basically a picture of a PDF. They also present it in the linear form where I need to actually scroll the 343 PAGES to get to the information I want to read mid-way into the document.
    Is there a realistic tool that actually properly presents PDF files offline and allows it to be used as it was intended? OOPS - correction Safari cant display this right either.... never mind ....
    Thanks
    Message was edited by: EmbeddedGeek
    I removed an erroneous statement that safari can properly display PDFs - it can't provide search, index/toc accesses. Bogus!

    On a possibly related note, see http://reviews.cnet.com/8301-13727_7-20004258-263.html?tag=mncol;txt for a way to ADD stuff to the TOC. I'm just passing this along, I haven't tried it.
    Doug

  • How do you perform partial word search using PDF Open Parameters?

    Hello,
    We are using the 'search=' open parameter in the URL string, which open a PDF and automatically searches for a word within the PDF.  It works great for whole word searches. Unfortunately, it does not work for partial word, or phrases. In other words, if I'm searching on '123456' and there is a word in the document that is '1234567', it will not find the partial word, or first 6 characters of the 7 character word. You can perform a partial or phrased search using the advance search feature of Adobe Reader.  So, currently after the PDF opens, and shows no hits on the automatic search for '123456', we are able to manually search again for a partial word search, and then see matches in the document.  Is there any way to specify to use a whole or partial word search when using the 'search=' open parameter, so that we can automatically match on partial and whole words?  Something like 'search=123456*'?

    It never worked that way. Command-F shows the page search bar.

  • Service Ticket: Search using Inbox & My Worklist in IC WebClient

    Dear Gurus,
    When I create a Service Ticket in the IC WebClient in CRM 5.0 and save it, the system generates a Transaction Number which I can then search for by using Interaction History, Inbox and My Worklist.
    When I search using Interaction History, I select the relevant Service Ticket and the system takes me to an Interaction Record, and from there I can navigate to the correct Service Ticket.
    When I search using Inbox, the system takes me to a Service Order, which I do not believe is correct.
    When I search using My Worklist, the system also takes me to a Service Order, which I do not believe is correct.
    Any recommendations?
    Rgs,
    Alan

    Hi
    You can search service ticket from inbox ideally by entering the object ID in the agent inbox or you can also search for service tickets in interaction record which is an activity transaction type if you maintain the copy control for service ticket from interaction record then you can search for service ticket through the interaction record as well.
    refer to best practice link for the service ticket custimiseing settings for icwebelient
    http://help.sap.com/bp_crmv250/CRM_DE/index.htm
    Reward points if helpful
    Regards
    Dinaker vikas

  • Buying a subscription. How do i use a combination ...

    I want to buy a 12 month subscription. It costs £58.88. I have £15.94 credit in my account. How can I use that £15.94 and add to it the extra £42.94 with my credit card to make up the total of £58.88?
    The Skype 'buy credit' function only allows me to buy credit in £10 or £20 amounts. I don't want to have to buy £50 worth of credit, only £42.94. 
    What do I have to do please moderators?

    kumast wrote:
    What do I have to do please moderators?
    I'm afraid it's not possible to use a combination of payment options.
    You will have to either purchase Skype Credit or use your credit card to fund the full amount.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • UCM Search using firstname and lastname

    Hi,
    One of our requirement is to enable the search using firstname and lastname. We store users, groups, roles, and accounts in Oracle Internet Directory and integrated with UCM. I would like to know the ways to show firstname and lastname fields in the search so that users can search with those properties instead of author metadata .
    Thanks,
    Raj

    If I got the question, first name and last name refer to first and last names of document authors, right? Otherwise, I miss the link between search for documents and people identities in an identity pool.
    Note that search dialogs support "wild-characters" - that is, you can enter "Jiri Mac*" instead of "Jiri Machotka" - alternatively, use "Contains" rather than "Equals To" criteria.
    Furthermore, I'm wondering how you intend to use first and last names in GUI - do you prefer to have two names that you somehow construct together? Do you want to display the names to users? (How many names will be in first names? How many in last names?)

  • BP telephone Search using wildcards (IC Winclient)

    I'm unable to search business partners by telephone number using wildcards (*) because I get the error message "enter a country to do the search using wildcards".
    How can I include a default country and state on the html template of the BP Search?
    I´ve tried this code below (on tcode smw0)but it doesn't work:
    Portugal
    Lisbon
    Any help?
    Thanks

    hey buddy
    yes i would like to enahnce the BP search too
    but right now the things is that the BP search screen the standard one is coming emmpty
    i have assigned the search criteria as BPSearch which is a default profile for search
    but when i assign the BP search workspace ,the screen is coming empty
    i mean  firstly the standard screen should be coming ,then i could enhance it
    please tell me what all are the settings required to use BP search in winclient
    again mentioning the standard screen containing the existing standard criteria for BP search is not coming ,the screen under the BP search tab is empty
    please advise
    help will be appreciated
    best regards
    ashish

  • Can we use a combination of structural and role authorisations in BW?

    Can we use a combination of structural and role authorisations in BW for the same object (eg cost centre CC) in the same report?
    If so how does it work? Read the structurals from the DSO and if missing then look for role auth?

    When you say two different reports do you mean two different data grids in the same report or two different reports each saved with a different name?
    Two data grids in same report connected to same data source will reflect changes in point of view as you are indicating.
    If you have two physically different reports then they will not be connected the way you want.
    If they are two separate reports what you can do is set up drill links from one report to the other that will let you open the second report from the first report and pass your filter selections to the second report being opened.

  • Executing a full-text search using KM APIs

    Hello,
    I'm doing a KM Folder search using KM APIs. The code looks similar to this
    =====================================================
    IGenericQueryFactory queryFactory = GenericQueryFactory.getInstance();
         IQueryBuilder queryBldr = queryFactory.getQueryBuilder();
         IPropertyName ipn = new PropertyName("http://sapportals.com/xmlns/cm", "lang");
         IQueryExpression queryExpr =
              queryBldr.like(ipn, language.toLowerCase());
         IGenericQuery query = queryFactory.toGenericQuery(queryExpr);
         IResourceList result = query.execute(
         collection, Integer.MAX_VALUE,7,false);
    ======================================================
    Issue: How can I execute a full-text search using these APIs. 
    i.e. If the keyword exists in the body of the document, the search should return that document.
    Any help on this would be much appreciated.
    Thanks,
    Harman

    Thanks for your helpful answers.
    So, which APIs should I use to accomplish my goal?  I need to search for custom KM attributes, AND the body of the document.
    We are currently running EP6 SP2.
    Should I use the IFederatedSearch API.
    Thanks,
    Harman

  • Can't click links when searching using Google - iPhone 5

    Strange problem but bear with me.
    iPhone 5. When I search using the google box in the upper right corner, and the search results come up, I am unable to click any of the result links that appear.  The browser appears like it is opening the link, but nothing happens and the circle just spins.
    Bookmarked links work fine as well as any web address keyed directly into the bar. The only issue is when I search and attempt to go to a web page by clicking the link after a search. Any idea what's wrong?   I've only noticed this while using cellular not on wifi but I can't confirm.

    Oh that you can leave on BlackBerry Browser.
    If you're in the browser go into Options | General Properties can you set the default browser to Internet Browser?
    Also try to reset the device by removing the battery for 15 seconds and replacing it.
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

Maybe you are looking for

  • Issue with PP-PI report

    Dear PP-PI Expert! I already searched many forums on internet about this subject, but i have not got any answer about this issue I want to collect the pp-pi datas which is inputed into SAP system with TCODE CO54, CO53,CO60, The follow process is: 1.G

  • Is there a way of opening up old PSD documents and photos on the iMac please?

    Is there a way of opening up old PSD documents and photos on the iMac please?

  • PO to SO IDoc change (ORDCHG) - Extra condition pricing line generated. Why?

    Hi guys, My ECC6 system currently has an IDoc automation setup where creation/change of Purch Order will also trigger creation/change of Sales Order. By default, condition pricing type will be PB00 or PBXX. I have implemented some code in EXIT_SAPLVE

  • SelectInputDate set first day of week

    Hi all! I was trying to change the first day of week showed in the calendar (Ex. set the first day the Monday) but i dont find any results :( Someone know how to change it? Many thanks. Jose.

  • Locale problem (cannot log into shell)

    hi, I can't log into my archlinux system. when I am trying to log into from the shell the shell resets when I enter my correct credentials (if I enter wrong ones it displays expected errors). I never had this error before. I don't even know what's wr