Implementing Search Filed in apex 4.1

Hi All,
I am new to APEX
I have an application, which is based on SQL query. For that apllication i want implement a search function based on particular column.
For Ex: I have name column in the application, So in the search text filed when i any type a string present in name column it should redirect me to the same page by filtering the records on that search criteria
when the criteria matches
else if it doesn't matches the search criteria appropriate message "not found" should be displayed.
the report i have for this is classic report.
Please anybody guide me on this as i need this on urgent basis.
Thanks

Hi,
This is my code
select * From (
select
apex_item.checkbox(21,'#ROWNUM#','UNCHECKED') " " ,
APEX_ITEM.HIDDEN(1,ptr.row_id)||APEX_ITEM.text(22,ptr.country_code||'-'||ptr.name) partner,
ptr.row_id,
ptr.country_code,
cmp.country_description,
ptr.name,
ptr.gsrt_category,
ptr.gcm_ptr_category,
APEX_ITEM.TEXT(19,ptr.opn_number_esrt,5) opn_number_esrt,
ptr.company_id,
count(ptr.emea_category),
apex_item.select_list_from_query(23,ptr.emea_category, 'select category_description,category from fridge_esrt_ptnr_cat_mst') cat,
apex_item.select_list_from_query(24,ptr.partner_group, 'select partner_group,group_id from APEX_SRT_PTNR_GROUP') partner_group,
apex_item.select_list(25,ptr.global_isv,'Y;Y,N;N') global_isv_flg,
apex_item.select_list(26,ptr.specialised_partner,'Y;Y,N;N') specialised_partner_flg,
apex_item.select_list(27,ptr.opn_membership_level,'Diamond;Diamond,Platinum;Platinum,Gold;Gold,Silver;Silver,Remarketer;Remarketer') opn_membership_level,
apex_item.select_list(28,ptr.high_impact_stl,'High Impact Partner;High Impact Partner,Managed Partner;Managed Partner,Partner STL;Partner STL') high_imp_ptr,
apex_item.select_list(29,ptr.managed_ptr,'Strategic;Strategic,Managed Partner;Managed Partner,Investment;Investment') managed_ptr_flg,
apex_item.select_list(30,ptr.we_apps_type,'Transformational,Best-in-Class,C-Level') we_apps_type,
apex_item.select_list(31,ptr.isv_ready_status,'Y;Y,N;N') ptr_stl_account,
round(sum(srt.cd_sum/1000),4) cd_sum
from apex_srt_partner ptr
left outer join apex_ptr_revenue_a srt on ptr.name = srt.partner_name and substr(ptr.country,1,3) = srt.country_code
left outer join oxo_cube.l_company_d cmp on srt.country_code = cmp.country_code
where
cd_sum>0 and ptr.emea_category <>'DIR' and
ptr.country_code in(select country_code from ept_sec_apex_data_vis where upper(trim(user_email))=upper(trim(:APP_USER)))
and
(case when :P1_CATEGORIES is null then 'X'
else emea_category end) = nvl(:P1_CATEGORIES, 'X')
and
(case when :P1_PNAME is null then 'X'
else name end) like '%'||upper(:p1_pname)||'%'
and
(case when :P1_COUNTRY is null then 'X'
else cmp.country_code end)  = nvl(:P1_COUNTRY, 'X')
and
(case when :P1_REGION is null then 0
else cmp.region_seq end)  = nvl(:P1_REGION, 0)
and
(case when :P1_CLUSTER is null then 0
else cmp.cluster_seq end)  = nvl(:P1_CLUSTER, 0)
and
(case when :p1_subcluster is null then 0
else cmp.sub_cluster_seq end)  = nvl(:p1_subcluster, 0)
and
(case when :p1_fiscalmonth is null then 'X'
else srt.fiscal_month end)  = nvl(:p1_fiscalmonth, 'X')
having count(ptr.emea_category)=1
group by ptr.row_id,
ptr.country_code,
cmp.country_description,
ptr.name,
ptr.gsrt_category,
ptr.gcm_ptr_category,
ptr.opn_number_esrt,
ptr.company_id,
ptr.emea_category,
ptr.partner_group,
ptr.global_isv,
ptr.specialised_partner,
ptr.opn_membership_level,
ptr.high_impact_stl,
ptr.managed_ptr,
ptr.we_apps_type,
ptr.isv_ready_status
order by cd_sum desc)
where(
instr(upper("NAME"),upper(nvl(:P1_PNAME,"NAME")))>0
)Thanks
Edited by: 917574 on May 30, 2012 1:28 AM

Similar Messages

  • How to implement search in Oracle Apex 3.2?

    I am new to orale apex & i want to impelment keyword based search in my app. I want a textbox on page 0 so that this textbox will come on every page. User will enter the search criteria & clieck on search button, app. will search that keyword in database & if found will redirect to that page other messa eg to the user.
    Any help would be highlt appretiated...
    Thanks,
    -Amit

    Create Page 0;
    - Add a HTML Region to it
    - Add a Texfield to it within the region
    - Add a Button to it within the region
    - The button should branch to the to page where the details will be shown (let's say Page 2).
    On page 2 you will have a report with the details. The code may look something like this:
    SELECT * FROM DETAILS_TBL WHERE ID = :P0_TEXTwhere P0_TEXT is the name of the textfield.
    Mike

  • How to implement Search Help in Interacive Form based on WebDynpro Java?

    Hi Experts,
    How to implement Search Help in Interacive Form based on WebDynpro Java?
    Could someone please provide the prerequisites and the code for the same.
    Regards,
    Shobhit

    Extend the controller and get the handle of the current row of the VO. Set set the attribute context filed accordingly. Also get the handle fo the flexbean and set the context. According rendering would change.
    Regards
    Sumit

  • Implement Search Engine in Oracle ADF 11g

    Hi All,
    I am using Oracle jDev 11.1.1.5.0
    I want to implement Search Engine within my application.
    User of my application will search for anything which is very related to my application only.
    User can't use it like Google/Yahoo/..etc.
    He/She can only search for the things which are stored in my Database only.
    Is it possible?
    If yes, then how should I proceed?
    Appreciate your help.
    Thanks and Regards,
    Madhav K
    Edited by: Madhav on Mar 9, 2012 3:59 AM
    Edited by: Madhav on Mar 9, 2012 4:33 AM

    Hi Navneeth,
    Thanks for your reply.
    I heard about this for the first time from you. I read about this on Google.
    I think this is a new separate big software.
    Can you please look at this,
    http://docs.oracle.com/cd/E10502_01/doc/install.1018/e10464.pdf
    and tell me is this the one which you are talking about?
    Is there any other way to implement search engine within my application?
    Bacause I think this software is a very big software.
    Thanks and Regards,
    Madhav K.

  • How to implement search engine for pdf file.

    Hi
    I am newbie to AIR technolgy .how  to implement search engine . when i enter the name of file in search box , it should fetch correspoding  the pdf file .
    Please help me out
    Thanks
    Mohan

    Hi sekhar,
    Your Requirement can be implemented by OVS(Object Value selector) This is the custom search help .So that you can define on what basis the value has to be fetched.
    Look at the below link
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
    You need to use the component WDR_OVS.
    It has 3 phases
    In phase 1
         You will fetch the value from input field to F4 help dialog box.
    In phase 2
         You will generate the search results , in this phase look for the input value given in field 2 and accordingly generate search result for the field 3.
    In phase 3
         The selected value will be returned to the original screen.
    Regards
    Karthiheyan M

  • To implement search help for date and time fields details

    how can i implement search help for date and time fields in screen painter

    Hi
    Declare the variables as sy-datum and sy-uzeit or any other pre-defined data typ of date and ime types. Serach help will automatically comes.
    Aditya

  • Implementing Search functionality on Database Table

    Hi Experts,
    I am working with webcenter sites 11gR1.
    I would like to implement search functionality in our Site on a  Specific DataBase table.
    could you please let us know the best solution.
    Thanks in Advance
    Rajendar Pilli.

    Hi Jay,
    Thanks for your response and help. 
    1)Both the ways are fine with me. Could you please suggest me know the best way.
    2)And, if i want search on a  table which is not an "AssetType" table , is it possible?
    (Means,i want implement one search in my site that can search the data only in non Assettype table).
    Could you please provide your valuable help ASAP.
    Thanks in Advance,
    Rajendar Pilli.

  • ATG 10.1.2, Endeca guided search: Implementing search field

    My team is working on implementing an application with ATG Commerce 10.1.2 and Endeca Guided Search 3.1.1, but no Endeca Experience Manager.
    We understand that in a keyword search HTTP request that gets sent from ATG to Endeca, the following URI parameters must be present:
    Ntt = Search keywords
    Ntx = Match mode
    Ntk = The search interface
    Is there an ATG OOTB (out-of-the-box) component or mechanism for generating keyword search requests to Endeca guided search?
    Or do we need to build the URI for the request from ATG to Endeca guided search with custom code?
    Thanks!
    -Jon

    If you would have been using the experience manager then you could have created/used cartidge for search box and inserted in your pages as below to show search textbox. here (/content/Shared/Global Search Configuration/Search Box) is path where Search Box cartidge is located in experience manager (you can refer CRS10.1.2 for it)
    <dsp:droplet name="InvokeAssembler">
    <dsp:param name="contentCollection"
    value="/content/Shared/Global Search Configuration/Search Box"/>
    <dsp:oparam name="output">
    <dsp:getvalueof var="searchBox"
    vartype="com.endeca.infront.assembler.ContentItem"
    param="contentItem" />
    <dsp:renderContentItem contentItem="${searchBox}" />
    </dsp:oparam>
    </dsp:droplet>
    but now since you are not using the experience manager and cartidges you would need to have something below like code to show text search box to query endeca
    <dsp:page>
    <dsp:importbean bean="/OriginatingRequest" var="originatingRequest"/>
    <dsp:importbean bean="/atg/multisite/Site" var="currentSite"/>
    <dsp:importbean bean="/atg/endeca/assembler/SearchFormHandler"/>
    <dsp:getvalueof var="contextPath" vartype="java.lang.String" value="${originatingRequest.contextPath}"/>
    <dsp:form action="${contextPath}/browse" id="searchForm" >
    <input type="hidden" name="Nty" value="${Nty}"/>
    <input name="Ntt" value="${searchText}" type="text" />
    <dsp:input type="hidden" value="${currentSite.id}" bean="SearchFormHandler.siteIds"/>
    <dsp:input type="submit" bean="SearchFormHandler.search" value="submit" />
    </dsp:form>
    </dsp:page>

  • How to implement SEARCH HELP for input field in WDA

    Hi All,
    I am doing a tool for my team. in this tool there are 4 input fields to show different processes. I implemented the 4 input fields and also bind the respective tables to these fields successfully. Actually I want to filter the data between 2 fields . Means the data in the 2nd input field should be based on the 1st input field. Means when I'll select for example 'CHI' (code for CHINA) in the 1st input field the 2nd field meant for country name should show all country name with value 'CHINA'. But the problem is that all values related to each field are in different table with no foreign key relationship and also some combinations are in single table..
    I have tried the import and export parameter method for search help but no luck till now.
    Can anyone please suggest me how to implement this scenario..
    Thanks in advance...
    sekhar

    Hi sekhar,
    Your Requirement can be implemented by OVS(Object Value selector) This is the custom search help .So that you can define on what basis the value has to be fetched.
    Look at the below link
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
    You need to use the component WDR_OVS.
    It has 3 phases
    In phase 1
         You will fetch the value from input field to F4 help dialog box.
    In phase 2
         You will generate the search results , in this phase look for the input value given in field 2 and accordingly generate search result for the field 3.
    In phase 3
         The selected value will be returned to the original screen.
    Regards
    Karthiheyan M

  • Search Function in APEX 4.2.3 doesn't work propertly

    Hi,
    I have an issue in APEX 4.2.3
    When I perform a search in the "Search Application" box, I don't get any results.
    I have to try again in the next search box and so I get this message:
    report error:
    ORA-01489: result of string concatenation is too long
    I've tried the same search string in the same application en APEX 4.2.2 and it fetch the right results anytime.
    Someone knows about this issue ?
    Thanks!

    Hello Mario,
    there is an issue with the unpatched 4.2.3 that affects the application search results. More details are available on our Known Issues page:
      http://www.oracle.com/technetwork/developer-tools/apex/application-express/apex-423-known-issues-2015120.html
    I have not heard of any ORA-01489 problems with search before, though.
    Regards,
    Christian

  • How to implement countdown timer in apex

    Hi all,
    I want to implement timer in my application.i am working on apex 4.0 version.I am developing online test application,so for this i want to display timer for test.
    can anyone suggest me how can i implement countdown timer in my application.
    thanks
    jitu

    Hi,
    You can refer "Martin Giffy D'Souza's" Enhanced APEX Session Timeouts example
    http://www.talkapex.com/2009/09/enhanced-apex-session-timeouts.html
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • How to Implement search Refiners for social tagging in SharePoint 2013

    Hi Sharepointers,
    Scenario is that when i add tags to Site Collection I can be able to refine that Site url with the tag term in Enterprise Search. I had implemented refined search with Managed Metadata Column in Custom List and Document Library. But now I need to implement
    Refined Search for Social tags. Need Valuble suggestions
    Thanks,
    Vinnarasi

    Hi Anil Avula,
    Thanks for your reply. Already I had used "Refinement" Webpart for having Search Refiners in List Level. I had referred
    Add
    Search Refiners link. Now my requirement is that, When I add a tag (i.e)Social tagging in "Tags&Notes"  for a Site Collection and search for
    the tagged-term, Search results should be refinable for the tagging. Hope to have a reply
    Thanks,
    Vinnarasi

  • Implementing search engine on website

    Hi,
    can anyone advise me on how to go about implementing a search engine that I have coded in java onto a website? Thanks!

    Without knowing anything about what you've coded, no.

  • Is there a way to Assign Values in many rows based on search values in APEX.

    I used Region, Process by to search the report which appears as shown above. Then I use Choose Auditors column to select my Auditor and copy paste it into the report under To be Audited By col. Is there a way to automate the process. I am here using a tabular form in APEX. My main aim is to assign auditors based on Region, not equal to Processed by.
    Any support on this will highly be appreciated.

    There are company-internal resources for assistance with company-internal issues.
    There are MOS forums available through a MOS login, readability limited to anyone with a MOS login, so that one is quasi-public.
    ... then there are these public-readable forums-dot-oracle-dot-com that are for the generic user community -- readable to anyone in the world regardless whether logged in or not.
    I think you may need to take some time to get familiar with where you need to seek help for each individual occasion.
    In the mean time, I have arranged to have this thread locked.
    The text in it may help others in the future to pause for a moment before joining and posting.

  • Implementing Search Using MessageChoice - Help

    Hello all,
    I'm trying to implement a search operation for a Master-Detail Page.
    For which I've 2 MessageChoice's and a MessageTextInput.
    1) The first MessageChoice (Parent) represents the Table or View.
    2) The second MessageChoice (Child) represent the field or Attribute name of a particular table or view.
    3) The MessageTextInput would be for the user to enter the value for the search.
    Consider that my Master Detail is based on the Departments-Employees Scenario.
    Now for the MessageChoices I've created a Parent-child relationship based on this Post.
    Re: Parent-Child using <messageChoice> to <table>
    POSTS -> 464
    My Problem is that after following the steps mentioned in this link I don't have a "NAME" property in the Property Inspector for the messageChoice. It is only based on this "NAME" property that I can perform the search operation by writing an appropriate method in the application module Class. For an ordinary MessageChoice there is a property called "NAME" but in this case when i drag an drop an attribute as a messageChoice it's not there. If I try to manually include it... the whole parent-child relationship fails to work.
    I would like to know whether there is any other way of identifying the MessageChoice's or is there any other way of implementing the search. Thanks in advance.
    Regards,
    Arun.V

    [EasyFind|http://www.devon-technologies.com/products/freeware/index.html] can do this, though it's a lot slower than Spotlight.
    You can probably do it in Spotlight as well, but I think you need a "Raw Query" search, which is pretty clumsy. I believe that the Spotlight/Finder "friendly" interface implicitly uses all three of these search modifier options listed in Apple's [Spotlight Query Programming Guide|http://developer.apple.com/library/mac/#documentation/Carbon/Conceptual/S potlightQuery/Concepts/QueryFormat.html]:
    !http://i51.tinypic.com/2vngp37.jpg!
    The standard search options don't provide for changing this, but a Raw Query search which uses just dw as the modifiers instead of cdw should be case-sensitive. To set this up you could start with a Finder window, type command-F, set the search scope at the top to "Contents, set Kind to "Other" and choose Raw Query, then enter the following in the text entry box:
    kMDItemTextContent == "THIS TEXT AS IT APPEARS HERE"dw
    I've tried this in Snow Leopard and it seems to work - I don't have a Leopard system to test it on. You could substitute any string of your choice between the quotes, and can include wildcards by using the * character. Having to enter "kMDItemTextContent == " is clumsy, though, and EasyFind might be a better choice.

Maybe you are looking for

  • Creation of function based index using escape

    Hello, I have the following SQL, sometimes performing bad: SELECT DISTINCT UPPER(A.PROCESSIDCODE), UPPER(A.RULENAME), CHARSET FROM XIB_DETECT A, XIB_PROCESSIDPROPERTIES B, XIB_RULES C WHERE ( A.KEY1 = :P1 OR ( :P1 like REPLACE(REPLACE(REPLACE(REPLACE

  • All of my files were deleted. How do I get them back?

    Recently I logged on to the computer and I could not find any of the files I was looking for. How do I get them back?

  • Problem upgrading to itunes 10.5

    I upgraded my imac to itunes 10.5 without problem. I'm now trying to upgrade a Windows PC running XP and half way through the install I get this message: Installer has insufficient privileges to access directory://c:\program files\itunes    Installat

  • Tricking COTS Into Using Sequences

    I am using a COTS software that does about 100-200 concurrent inserts into many tables at a time. This software uses a table to store the values of about 25 sequences. So for each insert, a process has to lock the row, select the value, insert the ro

  • Premiere pro crashes / debug event

    When I open the project adobe crashes..Also with te backup files. I'' ve removed ICLOUD but no results.. See screenshots. Thanks in advance. Bernie Simons