Simple Search Portlet

I am working in Portal 3.0. I want to create a small portlet on a page that returns one record. I want the user to input a bind variable and have the result returned to the same window with a reset button that will refresh to a new form...all within the same portlet window. What component should I use?

You will create a page and place on the page two portlets. This example will only work if you place the portlets on a page. One portlet will be a simple form that will ask a user for some input that will be sent to the report through the URL. Once the user clicks the button, the portlet will call the page that it's on and append to the URL the information typed by the user. The report on the page will read the url and output the results on the same page.
One way to create the simple input portlet:
1. Create a form against a table.
2. Create the form against the dual table
3. The next screen will be the typical buttons and one field called dummy. Delete all buttons and the field until you have nothing. Create one input field, "Search Criteria" and one button called, "View Results", or something like that.
4. One you have one field and one button, finish the page to save the results. Then edit the page.
5. The input field can be anything like a combo box or a straight input field.
6. The button's onclick event include callWindow(); //
7. Do not forget the "//" this comments out the doSubmit. You don't want to have the page sent to the server.
9. In the form text header section include the javascript function:
function callWindow()
var form = document.forms[0];
var search_criteria = form.elements["FORM_PT_PACKAGE_SEARCH.DEFAULT.SEARCH_CRITERIA.01"].value;
window.location = ("http://faweb.oraclecorp.com/servlet/page?_pageid=485,1051,497&_dad=faweb&_schema=FAWEB&a.search="+search_criteria);
</script>
The JavaScript will need to be tweaked for your specifics. But window.location calls intself with the appended &a.search="+search_criteria.
The report:
The SQL statement like usual in the where section here is an example:
lower(a.tracking_num||a.name_loc||a.sender) like lower('%'||(decode(faweb.wwpro_api_parameters.get_value('search','a'), null,'zzzzz',faweb.wwpro_api_parameters.get_value('search','a')))||'%')
What is important is:
wwpro_api_parameters.get_value('search','a')
This procedure (probably in portal schema) will read the URL and find anything that is a.search. If found, it will return the value assigned to a.seach. This value will then influence your select statement to give you the desired results. Lookup wwpro_api_parameters on google and you'll find http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/PLSQL/DOC/PLDOC_9026/wwpro_api_parameters.html
This documentation is great.
Hope this helps.
Tom

Similar Messages

  • LDAP Connection and simple search (Portlet)

    Hi,
    Is there a simple example for a portlet that does a simple bind to LDAP and does a LDAP-lookup
    I know about JAAS-example, but any more barebone examples?

    http://forum.sun.com/jive/thread.jspa?threadID=96963&tstart=0 ...
    you will find similar question in here.

  • Authorization on Search portlet

    Hello,
    Is it possible to authorize an auto query custom search portlet?
    I want to show the results of this query only to some users.
    Thanks,
    Ton

    I know the various search portlets only show results of items of which users have sufficient rights.
    But I want to use search portlets to show public items to a certain group.
    Say, I have lots of news items, which are all available to all employees of a company. These items have perspectives which are the same of the departments. So, some of the items have the perspective Sales, others have Human Resource.
    For each department, I'd like to create an autoquery custom search, which shows only the items with the perspective of the department, and place this portlet on the home page. To show only 'their' news items, I need to limit the viewing of this search portlet to a specific group (department).
    It's Okay if these users find others news items when using other search portlets (simple search, advanced search) or simply by navigating to the 'news' page.
    Ton

  • Setting a default content area for simple search

    How to set up a default content area/all content areas for simple search when searching from a page?
    The only way i can set a content area, is to go to advanced search and specify the content area or say all content areas
    When i am searching from a content area, simple search searches the same content area.

    Harish,
    One simple way is create a navigation bar in the content area you are interested in searching, containing just the search element, and expose that navigation bar as a portlet.
    Now you can add this portlet to any page and the search will search only on the content area it belongs to.
    null

  • How to create a custom search portlet that groups results by category

    Hello,
    Is it possible to create a custom search portlet whose search results are displayed on a page grouped by Category? Basically the results page should have Category heading followed by search results.
    I realize this is not canned functionality but any ideas on how to accomplish this using PLSQL APIs is also welcome.
    Thanks.

    hi,
    one workaround i could think of is using the CM views to search for content that belongs to a category and display it in a custom way.
    http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc904/wwsbr_api_view.html
    this only allows you to search for the meta-data available in the CM views but not the content of an item that is available when doing a search.
    in the next major portal release we will have a publich search API that can be used for these type of requirements. you can execute your search and format the results in the way you want.
    regards,
    christian

  • Is there a simple search function available in the revised App Store?

    I cannot seem to find a way to conduct a simple search of the millions of Apps in the newest version of the App Store in IOS 6?  The older version had the Categories option with a search window included.  The new version is far less flexible and causes a user to painfully conduct manual searches with out getting to the desired available apps quickly.  If you do not know the exact app you want you are forced to do these manual searches which frankly caused me to give up after 30 minutes of trying to find a simple print app. 

    I have the same problem. You no longer have a widely comprehensive search, and iBooks search has the same issue. If you search for example, for "Sherlock Holmes," you used to get every Sherlock Holmes title. Now you only get titles with "Sherlock Holmes" in the actual title. You do not get "A Study in Scarlet" (the very first Sherlock Holmes novel).
    So far, iTunes in my Mac allow comprehensive searches in both categories, but it has taken a lot of joy out of using iPad for me. I would look for cool new apps and titles when I had a few moments, but now I only look when I have something specific in mind because I can't really do it with iPad.

  • Error in Simple Search

    i have created simple page with simple emp search. i have created query region(construction mode is autocustomizationcriteria, for that i have created query components(simplesearchpanel and simplesearchmapping) and i am searching based on empno.
    when i am running the page, if i click just go button w/o entering anything in empno textbox, it is giving all the details.
    but if i enter any particular empno in the textbox then click go button then it is giving error like,
    No current row for View .
    i have added advanced panel also, it is working fine in advanced search. and if i add LOV to the empno textbox then also it is working fine.
    only in simple search, if i don't add any LOV if i enter any particular empno then it is giving above error.
    i don't know where i am wrong.can anyone help.
    Message was edited by:
    user536125

    Do you have any view object and attribute mapped to the Emp. No. Criteria Message Text Input...?
    Is yes, please remove it.

  • Custom Search portlet : how to sort the result in sequence (Portal 10.1.4)

    With a Custom Search portlet how to Sort the Result By Sequence. i.e. by respecting arrangements of the items in the page of contents?
    Actually the Results Options "Order By" are : Create Date, Author, Creator, Date Updated, Display Name, Last Update by, Publish Date, Score.
    Is there an action to add the "Sequence" Order By result Option?
    Great thanks for your kind help.
    Best regards

    No, I agree that it is functionality that should be added to the product, but it
    is not a bug because it was not written to do this.
    It is a short coming of the product.
    Cheers,
    Ersan

  • How to change the view of the basic search portlet

    Hi,
    I want to change the view of the basic search portlet. To be more precise, I just want a text box and a Go button in it. Cananybody advise on how to do this?
    Regards,
    Priya

    Indeed the 'Basic Search Box' item is what you want to use. You can choose what label you want or an icon if desired.
    As mentioned in a previous reply, you need to edit the properties of the Page Group where you want to add the item and add the 'Basic Search box' to the list of available items that a user can add to the page group.
    Navigator -> Properties (for the desired page group) -> Configure Tab -> Edit link in the 'Content Type and Classification' section -> Item Types section add the 'Basic Search Box'.
    Now in a page in that page group, add an item, and from the list of 'Built-In Navigation Item Types' you will see the 'Basic Search Box'.

  • Custom Search Portlet : Find all item created in a such year

    Hi,
    I'd like to find the way to search for items created in a such year.
    I have added the 'created on' attribute in the form, but the operator is equal lower of higher.
    What I need is to find the item created from 1st January to 31 December.
    Does anyone have an idea ?
    Benoit Pironet

    hi,
    this is the expected behavior. the way it is working is that the search portlet is going against the search index. in fact there are 2 search indexes on the server: one for the meta-data and one for the content. both indexes are craeated using oracle text. by default the indexer is refreshed every 1 hour due to performance reasons.
    if you want to change this you can do it - this is described in the portal configuration guide. you can also real-time synch your indexes. this is a new features in 10.1.4.
    http://download.oracle.com/docs/cd/B14099_18/portal.1014/b19305/cg_srch.htm#i1027594
    8.3.5.1 Synchronizing Oracle Text Indexes
    hope this helps.
    regards,
    christian

  • Personalized Simple Search with new messageLovInput - Search does not work

    I have currently set an Message LOV Input into a Simple Search Panel for IcxPorRcvSrchPG.
    I have got the LOV bringing back the correct values, but when I hit the GO button the Search does not work.
    Can someome please help me on how I am able to get the search working in the Simple Search Panel.
    Details of VO's are as follows:
    xxReceiveItemsDueVO (extended from ReceiveItemsDueVO)
    xxReceiveMyItemsVO (extended from ReceiveMyItemsVO )
    xxReceivePurchaseItemsVO (extended from ReceivePurchaseItemsVO)
    xxReceiveReqItemsVO (extended from ReceiveReqItemsVO)
    Extended Attribute I am looking to search with is xxWono.
    Current search items are working 100% with extended VO's, but when I try and search with new item, I am having no luck. The search is acting as though the new item has not even been created.
    Additional Lov Details are as follows:
    Level: Site
    Item Style: Message Lov Input
    ID: xxWONumSearch
    Data Type: VARCHAR2
    External LOV: /oracle/apps/icx/lov/webui/WorkOrderLovRN
    Prompt: Work Order Number
    Search Allowed: False
    Search Criteria: False
    Lov Map
    ID: xxWipEntityName
    Criteria Item: xxWONumSearch
    LOV Region: WipEntityName
    Programmatic Query: False
    Required: False
    Return Item: xxWONumSearch
    Framework version: 11.5.10.6RUP
    Is there a way of doing this through Personalization?
    With the version of framework I am not able to add a simpleSearchMapping through Personalization.
    Can someone please advise?
    Thanks
    Lee

    When I generate and then view the help, it looks perfect!  I changed the name of the project folder since the information is proprietary.  I have several pictures including the parent folder and the only 3 folders that are generated.  I cannot find the Webhelp output folder.  I think this is what you need to see.

  • Basic Search portlet returns error when Display in New Browser Window set

    Ora AS Portal 10G release 2 (10.1.2.x)
    Have a region of type Portlets.
    The enable users to include content in this region is enabled.
    I added a Basic Search Portlet in this region.
    Basic search works fine if launched from current area, however if change attributes of region to have a link that displays item in new browzer window, then
    basic search portlet opens in new browzer window but returns error "Error: You do not have permission to perform this operation. (WWC-44131)"
    The Basic search portlet in the new window contains a link to advanced search. If use advanced search, results are returned.
    to test further, I added a advanced search portlet to this region, also with the display option to display item in a new window. In this case, the same error is obtained when doing a search.
    Has anyone experienced this?
    Any solutions?
    Thks in advance.
    Paulo

    Hi,
    Can you clarify what you mean by "change attributes of region to have a link that displays item in new browzer window"?
    Are you referring to Edit Region > Attributes tab ? Which of the Available Attributes did you select?
    Thanks,
    Chris

  • Customizing L&F of Search Portlet

    By default, Portal adds a graphical and text link to "Content Area Home" to its search portlet. The design of our site is not supposed to include links to our content areas, but I haven't found a way to get rid of the link in the search portlet. Can anyone shed some light on how I can custimize the portlet in such a way? Thanks.

    Unfortunately, the search Portlets make extensive use of javascript, as do many other parts of the Portal product. There isn't a way of getting the search portlets to work without javascript. Neither is it easy to write your own portlet user interface to Portal Search at present.
    If you only wish to search public content you could consider using Oracle Ultra Search to crawl and search Portal. This provides java implemented sample search portlets. These may meet your requirements, or they could be used as the basis for your own Ultra Search portlets that don't use javascript.

  • Custom Search Portlet not getting the results as expected.

    Hi All,
    I am using CustomSearchPortlet and I am having following problems. I created an itemtype IT with attributes A1,A2.Then I configured my custom search portlet to search based on A1,A2 attributes only. I have created 3 instances of items Item1,Item2,Item3 based on itemtype IT as follows
    Item1(A1=value11,A2=value12)
    Item2(A1=value21,A2=cat22)
    Item3(A1=value11,A2=value32)
    and when I search for value11, I get Item1,Item3 as results. Till here it was nice and behaving as expected. Suddenly after some time, it stopped working and i am not getting the results I used to get before. The only thing i remember to have changed in the meanwhile was to change the A2 attribute values of some of these items. my searchtext remained the same as value11. I was confused as to why the custom search portlet is not getting these results that it was getting before...Thanks for any help in solving this.
    Thanks,
    Prasanth.

    Hi,
    If Oracle Text is enabled in your portal, the updated items need to be synchronised before they can be returned in the Search. Since you updated those items, though not changing values for this particular attribute, it will be in the queue for indexing and hence will not be returned until it is indexed.
    Thanks.

  • Ultra Search Portlet Configuration Problem

    Guten Tag,
    we are using OracleAS 10g Rel. 2 Portal. I've registered the Provider for Ultra Search.
    Now I understand that I have to add a data source in the OC4J_Portal configuration file "data-sources.xml"
    I want to make Ultra Search crawl and search our Portal.
    So I need to create a news Instance with the following entries (also for the data-sources.xml):
    - username and password are the Oracle Ultra Search instance owner's database user name and password.
    where do I find these info? It all has been done automatically by the RepCa when installing the IASPortal... ?- database_host is the host name of the back end database computer.
    is this the URL of our portal server (with or without /pls/portal/)?- oracle_port is the port to the user's Oracle Database.
    the standard Port of the Oracle Listener (1521)?- oracle_sid is the SID of the user's Oracle Database.
    Where do I get the SID of Portal DB after Installation?Thx,
    Gerhard

    Hi echee!
    I don't know what happened in the weekend, but now the Ultra Search portlet doesn't throws any exception.
    It seems works correctly.
    Maybe the servers was restarted or the sheduled crawler recovered something in the indexed data.
    I'm totally surprised.
    I checked the log files, but I didn't find any failure message.
    Now I must build a new Search Portlet for our portal, and I will contact you, if the problem returns.
    Csaba.

Maybe you are looking for

  • How to upgrade my browser

    How do I upgrade my browser.

  • Mail Signature: image size keeps changing to fit window

    When adding a logo image to a signature in mail, the image is not remaining the same size, it changes in size semingly to fit the width of the window that the email happens to be in. Mostly the image is showing larger than the window itself. We are h

  • Oracle XE Course??

    Is there any courses about Oracle Application XE? And in which country?

  • Problems creating a jar executable file...

    Hi there, I am new to these forums, my name is Jay. I am trying to create an executable .jar file for my program I created in JBuilder 2005, with java files and several other files as well. I am having MAJOR problems with either the main class not be

  • Derived column transformation from varchar(8) YYYYMMDD to DATETIME column

    It seems I have tried everything, but all I need to do is change a column from varchar(8) to DATETIME. Some lines are blank, zero length strings, and some have dates such as 20140829. All the rows go to an exception table or it just bombs altogether.