Is it possible to pass parameters to custom search portlet?

Hello!
I use custom search to display automatically results.
But I need to dynamically add some conditions or change sort order based on user selection in another portlet.
So, is it possible to pass parameters to custom search portlet?
Boris
P.S. I am use Portal 9.0.4

Hello!
Ok, I find how to hack it and find out parameters (p_mainsearch, p_order_by_attribute...), but is there any documentation or notes about it?
And is it possible to change order by list & add there my attributes?
Kind regards,
Boris

Similar Messages

  • Passing parameters by customizing worksheet portlet

    Hi,
    is there a max on number of entries in a "parameterbox" on a worksheet portlet?
    Whenever we try to pass more than 90 selected values for a parameter the portlet comes up empty (it works fine in discoverer viewer/plus). Selecting a few values less (let's say 80) it works fine. Anyone have the same problem or better yet a solution.
    Another funny thing we encountered was the fact that the entries in the parameterbox are always sorted on their type: for example a "Month" parameter in a worksheet based on a discoverer lov with alternative sort on month number (MM), is displayed as a alphabetically sorted list in the "customize" window of a portlet defined on the same worksheet. Anyone recognize this?
    Hope some of you guys can give me some answers.
    Grtz.
    Jurgen

    Hi Jurgen,
    There are plans to support worksheet portlet parameters in the near future. They cannot accept parameters today.
    Peter

  • Is it possible to pass parameters through eventlisteners?

    Hello everyone!
    Inside a .fla file I have some buttons and each button will tween a different image to the stage. All the images are outside the stage in the same x and y position and I just need to tween the x coordinate.
    Now I'm working with an external document class where I'm trying to hold all my functions and I'm stucked with the Tweens. I'm willing to stay away from the flash tween engine and I'm trying to work with tweenLite.
    My question is: Is it possible to pass parameters through eventListeners so I can use something like this inside my docClass?
         public function animeThis (e:MouseEvent, mc:MovieClip, ep:int):void { //ep stands for endPoint.
         TweenLite.to(mc, 2, {x:ep});
    If this is possible, how am I supposed to write the listeners so it will pass the event to be listened for AND those parameters? And how to build the function so it will receive those parameters and the event?
    If this is not possible, what's the best approach to do this?
    Thanks again!

    So, I understand you need to match buttons with corresponding visuals.
    Here is a suggested approach.
    Since SimpleButton is not a dynamic class, I suggest you have an enhanced base class for these buttons that extends SimpleButton. What is enhanced is that button has reference to the target.
    I wrote code off the top of my head and it may be buggy. But concept is clear:
    This is base class for all the buttons:
    package 
         import flash.display.DisplayObject;
         import flash.display.SimpleButton;
         public class NavButton extends SimpleButton
              public var targetObject:DisplayObject
              public function NavButton()
    Now, this is your doc class that utilizes this new buttons:
    package 
         import flash.display.DisplayObject;
         import flash.display.MovieClip;
         import flash.display.Sprite;
         import flash.events.Event;
         import flash.events.MouseEvent;
         public class DocClass extends Sprite
              private var btnArray:Array;
              private var visuals:Array;
              // references to objects being swapped
              private var visualIn:MovieClip;
              private var visualOut:MovieClip;
              public function DocClass()
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              private function init(e:Event = null):void
                   removeEventListener(Event.ADDED_TO_STAGE, init);
                   // buttons and MCs shouldn't be in the same array - otherwise it is counterintuitive
                   // assuming all the objects are on stage
                   btnArray = [price_btn, pack_btn, brand_btn, position_btn];
                   visuals = [g19_mc, g16_mc, g09_mc, g04_mc];
                   configObjects();
              private function configObjects():void
                   var currentVisual:MovieClip;
                   var currentButton:NavButton;
                   for (var i:int = 0; i < btnArray.length; i++)
                        currentVisual = visuals[i];
                        // hold original positioin
                        currentVisual.hiddenPosition = currentVisual.x;
                        currentButton = btnArray[i];
                        // set target MC
                        currentButton.targetObject = currentVisual;
                        currentVisual.addEventListener(MouseEvent.CLICK, placeObject);
                        currentButton.addEventListener(MouseEvent.CLICK, placeObject);
              private function placeObject(e:MouseEvent):void
                   // if NavButton is clicked - make new visual targeted for moving in and currently visible object subject for moving out
                   if (e.currentTarget is NavButton) {
                        visualOut = visualIn;
                        visualIn = NavButton(e.currentTarget).targetObject;
                   else {
                        // otherwise - move visual out
                        visualOut = visualIn;
                   swapVisuals();
               * Accompishes visuals swapping
              private function swapVisuals():void {
                   if (visualIn) TweenLite.to(visualIn, .3, { x:0 } );
                   if (visualOut) TweenLite.to(visualOut, .3, { x:visualOut.hiddenPosition } );

  • Is it possible to pass parameters for the action in the confirmation dialog

    I tried it but a null pointer exception is occuring. Is it possible to pass parameters ,if s give the solution....
    Thanks and regards.
    Karthik.

    Hi Karthi,
    Directly it is not possible. You can achieve it by this way.
    1>     Create 2 Event Handlers  say “OK” and “OKTest”.
    public void OK(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin OK(ServerEvent)
        String param = "abc";
        wdThis.OKTest(wdEvent,param);
        //@@end
    public void OKTest(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String paramtest )
        //@@begin OKTest(ServerEvent)
         wdComponentAPI.getMessageManager().reportSuccess("Param : "+paramtest);
        //@@end
    2>     Code for popup.
                    String dialog = "No of Rows : ";
                    IWDConfirmationDialog confDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialog,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("OK"),"OK");
                    confDialog.setTitle("Test Window");
                    confDialog.show();
    /thread/66776 [original link is broken]
    Regards,
    Mithu

  • Page parameters and custom search

    Hi,
    Is it possible to pass page parameters to a custom search portlet?
    Thanks
    Joel.

    custom search portlet has some limitations due to which we built our own search wrapper using the portal search apis.
    http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/wwsrc_api.html
    In which case you have a search results portlet which will take the searchTerm as parameter and calls the search wrapper(which uses Oracle Search apis) and gets the results.

  • How the ORG_ID pass into OM Customer Search

    Hi all,
    I need some help for understanding how the ORG_ID pass into OM Customer Search (navigation OM Supper User >> Customers >> Summary).   We currently have MOAC settup with that responsibility.
    1. In R12 how the ORG_ID passing into each session, is it through FND_GLOBAL.APPS_INITIALIZE or MO_GLOBAL or?
    2. How can I see the runtime ORG_ID inside HTML or Forms.
    3. What is the function and package MO_GLOBAL.ORG_SECURITY in dba_policies for object_name like 'HZ_CUST%' mean?
    The result of searching is so inconsistent, sometime able to search customer but sometime are not, event it is the same address?
    Thank you.

    I have reviewed those note before.  I performed tested in sqlplus and it work as I expected but within HTML page through multiple responsibilities.  the search sometime work sometime not work.  I really want to know.
    1. How the ORG_ID passing through each session.  As far as I know the "FND_GLOBAL.APPS_INITIALIZE" no longer setting the operation unit in MOAC but rather than the MO: Default Operating Unit at the user level or responsibility level.  Is that mean when I switch responsibility it will perform a) cal FND_GLOBAL.APPS_INITIALIZE b) lookup profile value for MO: Default Operating Unit?
    2. What is the function and package MO_GLOBAL.ORG_SECURITY does?  Should I see that execute when I switch the responsibility every time?
    3. How can I validate the ORG_ID that passing into each session HTML page?
    I am confused because it is inconsistent.
    Thank you.

  • 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

  • Custom Search Portlet : How to Sort the Result By Sequence (Portal 10.1.4)

    Customer request: 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?
    (Like it's possible in MyOracle)
    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

  • Customized search portlet

    In the configuration of the customized searh portlet I have two question:
    1. How can I force the research in a page and it's subpages whitout give the choise to the user?
    2. How can I force the research on a item type only?
    For example, I have an item type with name Faq, and I wold give to the user a search box for to search in the items Faq in a fixed range (a page and it's subpages).
    It's possible with the custom search portlet? What is the right way?
    I have Portal 10.1.2
    Thanks.

    Hi Smignani:
    I've not had much luck funding how to limit a custom search to a specific page and its subpages. You can certainly limit it to a specific pagegroup if that helps. It is on the "What to search" tab. You can also take away their ability to choose a page by clearing the pagegroup and page check boxes on the "Search Form" tab.
    If you don't want to give your FAQs their own pagegroup, here's a trick I have used with success in the past when dealing with a custom search and custom item types:
    Create a new attribute called 'searchable' or 'faq'. Assign the attribute to your custom item type FAQ with a default value of Y. Set it so it is hidden (does not appear on create or edit). Now, edit your custom search and add the 'searchable'/'faq' attribute to the "Search Criteria" tab with a value of Y. Finally, remove the attribute from the search form and results display tabs.
    This will cause the custom search to only return your FAQ item type. If used in conjunction with the removing the user's ability to select a page or pagegroup, this should effectively give you what you wanted I believe.
    Rgds/Mark M.

  • 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

  • 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.

  • Custom Search Portlet: How to specify a page in the auto query?

    I want to specify a page in an auto query (Automatically display search results).
    I'm able to specify a pagegroup (Tab What to Search), but unable to select a specific page and to include/exclude subpages.
    This option is available on the SearchForm Tab. We are running 9.0.4.

    A similar question was asked in this discussion:
    Custom Search Portlet
    A Portal Search Team member replied that this feature might be included in 9.0.4.
    We are testing 9.0.4 and it's not available. When is feature this scheduled?

  • Is it possible to pass parameters from a html to webforms ?

    i4m looking for a possiblity to pass (user-defined) parameters from a html page (which includes the applet call + the standart parameters etc.) to the webform.
    after passing how to find them inside my webforms ...
    thx in advance
    regards
    null

    i found a solution.... :-)
    just create a parameter inside the form and pass the value together with the formcall in the "module" parameter....
    null

  • Not able to pass parameters to append search help

    Hi
    I have created a new search help, when I am testing it, its working fine.
    My requirement is to append this search help to an existing search help.
    The problem is, after appending the parameters are not getting passed through the new search help tab.
    The parameter assignment and all are done.
    Kindly help me in this regard.
    Thanks,
    Pallavi.

    look at how the other elementary search helps are set up within the collective...sounds like you have errors in your settings.

  • Passing  Parameters for url in portlet

    I want to pass parameters through the url to a portlet.
    As I can make that?
    There is some example.
    I am working with the portal 9i release 2 and jpdk november 2002 v2

    hi Frank,
    Thanks for the response. We followed your suggestion and managed to capture URL parameters in afterPhase(LifeCycle.PREPARE_MODEL) and save parameters to ViewScope.
    Then in beforePhase(LifeCycle.PREPARE_RENDER), we retrieve parameters back and invoke FndUIController.openMainTask method to launch the correponding taskflow but nothing happens.
    public static void openTaskflowOnNewTab(String taskflowId) {
    try {
    FacesContext fc = FacesContext.getCurrentInstance();
    ELContext elc = fc.getELContext();
    ExpressionFactory ef = fc.getApplication().getExpressionFactory();
    ValueExpression valExp = ef.createValueExpression(elc,"#{bindings.openMainTask}",Object.class);
    JUCtrlActionBinding methodBinding = (JUCtrlActionBinding)valExp.getValue(elc);
    Map params = methodBinding.getParamsMap();
    params.put("label", "Some Title");
    params.put("taskFlowId", taskflowId);
    params.put("reuseInstance", true);
    methodBinding.invoke();
    } catch (Exception e) {
    e.printStackTrace();
    To prove that this method works, we create a UI button on the page (which binds this method in PageDef.xml), and associate this method to onclick event. At runtime after page is opened, clicking on the button does launch the taskflow on new tab successfully.
    Do you happen to know what I do wrong in the beforePhase() method?
    Thanks
    -Phi

Maybe you are looking for

  • How to copy movies from pc to itunes

    How can i copy movies from my computer to itunes? I already click "add to library" but nothing appears.Still no movies.Pls. help.thanks

  • Purchase Order on particular release date

    Friends, I am SAP HR consultant working on MM. I have one scenario how to find out the Purchase Orders on particular date. Is there is any tcode or report for that.

  • How do you localize AppManifest.xml ???

    How do you localize the AppManifest.xml is it with x:Uid ??? In my instance I want to localize the File Type Association so windows explorer display the File Type using localized string resources, is it possible ?

  • Hierarchy Loaing For HR 0ORGUNIT

    Hi frnds, I am trying to load Hierarchy data for 0ORGUNIT(Organizational Unit).In RSA2 in goto tab in Text Extraction the hierarchies are in RED status. my question is why they are in RED status?Is it effect when I load the data? What is External Cha

  • Maketing Plan & Campaign link with ERP Internal Orders

    Hello, I have a requriemnt where we need to do maketing  Planning & budgeting . We will create marketing plans & Campaings in SAP CRM but will store planning data in SAP ERP Internal Order due to some reason. My question is: is there any way to link