Search Results in the Same Window..as we have in SDN

Hello Gurus,
I want the search results to be displayed exactly like we have in SDN. I mean search result should be displayed in the same window rather than opening a new window. Also when click on a document that document should open in the same window.
Please help in this.
V

Hello, we want to implement this functionality as well.
We are on Portal 6.0 SP15.
I’ve already modified the ToolAreaIview.jsp to right align the search input box and redeployed the portal archive as a new portal archive to our system.  I’ve created a new iview off this portal archive and the search box is right aligned.    Works great.
Now we want the search results to appear in the content area iframe? in the same manner as the search results at SDN.  I followed the instructions as kindly outlined by Vaibhav.  I removed the old var searchURL= and window.open code.   My Toolareaivew.jsp now contains this in the function openSearch():
var searchURL= "http://"location.hostname":50000""<%=url%>" QueryString;
EPCM.raiseEvent('urn:com.ourcompany','searchResult', searchURL );
I redeployed the par file to the portal and created a new search iview based on this code.
I can see the javascript modifications in my browser when I go to view -> source.
I can event take the variable  searchURL that’s displayed in the  source and paste it into my browser and the URL seems to be correct.  I then modified the com.sap.portal.navigation.contentarea.par ->  workarea.jsp and put in this code:
// Search Result set
function handle_searchResult_Event( eventObj ) {
self.location.href = eventObj.dataObject;
EPCM.subscribeEvent('urn:com.ourcompany','searchResult', handle_searchResult_Event);
I saved the par file with the same sap name com.sap.portal.navigation.contentarea.par and redeployed it to the portal.  Now when I search on this newly created iview, it appears this event is not being raised as nothing happens.   I have further read that I may want to rename the .jsp from workarea.jsp to something else.  So I saved workarea.jsp as workarea_new.jsp and redeployed the par file.   Still nothing happens during the search.   I  have even stopped /restarted the portal but still no luck. 
Could anyone provide any hints at what I might be doing wrong?
Thanks in advance.

Similar Messages

  • Display search results on the same page

    I have a text box with a submit button to the left. Once the user enter the a number in the search field my select query executes.
    My question is how can i display the reult on the same page? I have been able to display results on the same page but my table headers are also displayed at the same time while user is trying to enter the item number.
    i tried using <c:if> but its not wokring, Any help?
    <%@ include file="/WEB-INF/jsp/include.jsp" %>
    <html>
    <head>
    <title>VDP QOH UPDATE</title>
    </head>
    <body>
    <spring:bind path="quantityOnHand">
      <FONT color="red">
        <B><c:out value="${status.errorMessage}"/></B>
      </FONT>
    </spring:bind>
    <P>
    <FORM name="quantityOnHandForm" method="POST" action = ''>
    <CENTER>
    <table BORDER=0  CELLSPACING=0 CELLPADDING=5 WIDTH=600>
        <tr>
              <td COLSPAN=2 BGCOLOR="#003366"><P ALIGN=CENTER><B><FONT COLOR="#FFFFFF" SIZE="2" FACE="Arial,Helvetica,Univers,Zurich BT">Query</FONT></B>
              </td>
         </tr>
         <tr>
              <td WIDTH=215 BGCOLOR="#336699"><P ALIGN=RIGHT>
                  <B>
                     <FONT COLOR="#FFFFFF" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">
                        Item No:
                      </FONT>
                   </B>
              </td>
              <td ALIGN=LEFT><spring:bind path="quantityOnHand.itemNumber">
                      <input type="text" maxlength="30" size="10" name='<c:out value="${status.expression}"/>' value='<c:out value="${status.
                             value}"/>'>
        <td><font color="red"><c:out value="${status.errorMessage}" /></font>    </td>
           </spring:bind>
              </td>
         </tr>
        <tr>
            <td BGCOLOR="#336699" WIDTH=215> </td>
            <td>
                <input type="submit" name="Submit" value="Submit" >
           </td>
       </tr>
    </table>
    </center>
    </form>This is basically all of my search jsp code. Now i've added my other code after </form> to display the results.
    </form>
    <table BORDER=0  CELLSPACING=0 CELLPADDING=5 WIDTH=600>
        <tr>
              <td COLSPAN=2 BGCOLOR="#003366"><P ALIGN=CENTER><B><FONT COLOR="#FFFFFF" SIZE="2" FACE="Arial,Helvetica,Univers,Zurich BT">Quantity On Hand Search Results</FONT></B>
              </td>
         </tr>
         </table>              
    <c:choose>
    <c:when test="${empty qohInfo}">
             <div align="left" style="color:#336699;"><b>No records Found.<br><br></b></div>
    </c:when>
    <c:otherwise>
         <table width="602" height="92">
              <tr>   
                   <th ALIGN=CENTER BGCOLOR="#336699" width="110" >
                       <B>
                          <FONT COLOR="#FFFFFF" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">Item Number</FONT>
                       </B>
                   </th>
                   <th ALIGN=CENTER BGCOLOR="#336699" width="115">
                       <B>
                          <FONT COLOR="#FFFFFF" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">Vendor Id </FONT>
                       </B>
                   </th>
                   <th ALIGN=CENTER BGCOLOR="#336699" width="120">
                       <B>
                          <FONT COLOR="#FFFFFF" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT"> Inventory Date</FONT>
                       </B>
                   </th>
                   <th ALIGN=CENTER BGCOLOR="#336699" width="130" >
                       <B>
                          <FONT COLOR="#FFFFFF" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">Update Date Time </FONT>
                       </B>
                   </th>
                   <th ALIGN=CENTER BGCOLOR="#336699" width="100" >
                       <B>
                          <FONT COLOR="#FFFFFF" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">Quantity</FONT>
                       </B>
                   </th>
              </tr>
              <c:forEach var="qohInfo" items="${qohInfo}" varStatus="loop">
        <tr BGCOLOR="#99CCFF">
          <TD align="center"><c:out value="${qohInfo.itemNumber}"/></TD>
          <TD align="center"><c:out value="${qohInfo.vendorId}"/></TD>
          <TD align="center"><c:out value="${qohInfo.inventoryDate}"/></TD>
          <TD align="center"><c:out value="${qohInfo.updateDateTime}"/></TD>
          <TD align="center"><c:out value="${qohInfo.quantity}"/></TD>
        </TR>
      </c:forEach>
      </table>
      </c:otherwise>
      </c:choose>As you can see that the table headers are always shown but i would like to hide the table headers and everything until and unles user clicks on submit button. Any help is appreciated.

    Thanks balusc for your reply. I was curious how would you have used the c:if statement to display the table and hide the table if a user have not clicked the button.
    I wanted to stay away from javasscript

  • Cannot open Google search results in tab\same window\new window

    Google search results are not opening in the new tab\same window\new window.<br />
    It is happening only in Firefox, Internet explorer. It is working fine in chrome.<br />
    I have tried many solutions like<br />
    1. cleared cache, history,everything from browser's, still no result.<br />
    2. opened in safe mode, no result.<br />
    3. unchecked hardware acceleration, still no result.<br />
    4. Other search engines it is working fine, only problem with Google search engine.<br />
    5. Tried changing my DNS (Google open DNS, others), no result.<br />
    6. Checked with antivirus blocking, nothing is blocking.<br />
    7. Reinstalled browsers(Firefox, explorer) no result.<br />
    8. Tried with different versions of browsers, including the latest updates ( Firefox,explorer), no result.<br />
    9. while disabling Java in about:config it is working in Firefox.<br />
    Please help me on this issue.<br />
    Thanks in advance.

    Google normally routs the result link to their safe browsing testing service via an onmousedown event that modifies the link (href attribute) if you click it once.
    You can check if this bookmarklet makes a difference:
    <pre><nowiki>javascript:(function(){var e=document.querySelectorAll('#search a[onmousedown]'),E,i;for(i=0;E=e[i];i++){E.removeAttribute('onmousedown')}})()</nowiki></pre>
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    *https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware

  • Why does using Google in the search bar (and only Google) not let me open search results in the same tab?

    Hello,
    When I use Google in the search bar, I have to open the search results in a new tab. If I simply click on them to open in the current tab, I'm inevitably redirected right back to the main Google site. This has only started happening in the past month or two -- I'm considering switching to Chrome after 5 years with Firefox because of this. Please help! It's incredibly frustrating to consistently have to remind myself to open all search results in a new tab. It's quite a waste of time over the course of a day.
    Here are the basic steps:
    1) I do a search using Google in the search bar.
    2) As is supposed to happen, the search returns results in the current tab.
    3) When I click on a result link, I'm immediately sent back to www.google.com.
    4) If I hit back to try to return to the search results, I'm taken to the page that was loaded BEFORE I even did the search.
    5) If, and only if, I instead right-click or Mouse3 click on the search results and open them in a new tab, I can successfully go to the search result pages.
    --Thank you

    Try to clear the Google cookies.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"

  • Opening a document in the Same Window.

    Hello Gurus,
    I'm able to display the search results in the same window rather than opening a new window. Now i want to display the document also (clicked by the User) in the same window and dont want to open a new window at all.
    Any help on this would be highly appreciated. Full points are guaranteed..
    Vaib

    Hi Vaibhav,
    I need to display the serarch results in the same window.
    I have followed the steps mentioned by you in the thread
    <i> Search Results in the Same Window..as we have in SDN</i>
    Even after making changes to 2 PAR files mentioned in the above thread, on click
    of Search button nothing happens.
    It will be great if you can send me your modified PAR files, to identify where i am
    going wrong. My mail id is [email protected]
    Thanking you,
    Vikas

  • How do I display search results in a new window?

    Our current search feature (http://mainedreamvacation.businesscatalyst.com/business-search) displays the search results in the same page. When someone clicks to see the details page, the goes "back" the browser displays an alert asking the user if they want to re-submit the form.
    Is there a way for the search results to display in a new window? My hope is that by loading results into a new window, a user could click to see the detail, then return without the alert message.
    I'm open to simply suppressing the alert message, but I don't think that's possible.
    I should point out that this is NOT a site search. Also, I have tried  {module_webappsresults,,_blank} without success.
    Thanks!

    Hi Tim,
    The approach would be similar to customizing this for normal site search. 
    You'll need to locate the page where you inserted the web app search access the html and locate the pageID in the form action.  Use the same method found in the site search to apply the specific page.
    - http://helpx.adobe.com/business-catalyst/partner/add-search-form.html> Point to the results page
    **Ensure you please the {module_webappsresults} on the custom page to have the content display as well. 
    Kind regards,
    -Sidney

  • Firefox doesn't show/display my addressbook within my hotmail account anymore. Cookies/Cashe has been emptied already, result is the same.

    Firefox doesn't show/display/load my addressbook within my hotmail account anymore, it worked previously well, so has nothing to do with the change from hotmail to outlook. Since a week or so, I realized a slowness in loading my recently used addresses with opening a new e-mail, but it was still working from time to time. For a few days, it has been stopped working, complete addressbook doesn't load anymore, just displays the load circle in the middle of the screen, apart from that I have only a white page. Cache and Cookies already emptied/deleted, result is the same. No settings have been changed, but have the same issue with Internet Explorer, but it's working with Chrome. For testing, I deactivated my firewall and anti virus (Comodo), but the result was still the same. I would appreciate if I could get it working again here. Every suggestion is welcome here

    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test to see if that helps.
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    Do a malware check with some malware scanning programs on the Windows computer.<br />
    Please scan with all programs because each program detects different malware.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • I have some trouble with Safari!  Everytime i google something, I expect safari to open the link i click in the same window and same tab - as it did before - but now it always opens a new tab! I'm getting really tired of that! So please help me!

    I have some trouble with Safari! 
    Everytime i google something, I expect safari to open the link i click in the same window and same tab - as it did before - but now it always opens a new tab! I'm getting really tired of that! So please help me! I want safari to open the google search link in the same window and tab! How to fix that?
    Please help me!!!
    Thank you!

    From the Safari menu bar, select
    Safari ▹ Preferences ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.

  • Parallel paragraphs in the same window - Sapscript

    Hi, I want to place two paragraphs next to each other in the same window .
    I have tried to do it with paragraph formats but always get the same result, a paragraph below the other.
    How can i do it ?
    Edited by: Marcel ochoa on Jan 27, 2011 2:40 PM

    two windows side by side is the option I would explore

  • HT1296 whenever I try to sync my phone with itunes, it prompt with a window saying that this computer is not authorised. Although I again authorise my computer through store option but again while sync it shows the same window. I am unable to sort it out

    whenever I try to sync my phone with itunes, it prompt with a window saying that this computer is not authorised. Although I again authorise my computer through store option but again while sync it shows the same window. I have reinstaled itunes also but invain. I am unable to sort it out pl help

    Hello dizzy bizzy,
    Thank you for providing the details of the issue you are experiencing with purchases from the iTunes Store.  I recommend following the steps in the following article:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • My Google preferences are set to show search results in a new window. However, when I do a Google search, it Firefox always opens 2 new windows with the (same) results. How can I fix this?

    I did not change my Google settings. I always have had it set to open search results in a new window. Some time ago, it started opening up two windows that have identical url/content.

    That issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • When I enter a search in the Mozilla Start Page and press enter the browser does nothing. It doesn't bring in any search results. I use Windows Vista pack2

    I just upgraded Firefox for windows to version 21.0
    After upgrading, when I enter a subject to search in the search box (in the middle of the page) of the Mozilla Start page and press enter nothing happens. It doesn't bring in any search results.
    The only way to navigate using the browser is to enter the website name in the address box at the top of the page and press enter. I'm running the browser for Windows Vista - 32 bits.
    I tried re-installing firefox and I got the same result. I also tried re-booting after installation and it still behaves the same way.
    Please help,
    Thank you,
    Hektor

    he man check here
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • I have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me

    i have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me???

    If Join was on then your home wi-fi must be set to Non-Broadcast.  If you did not set this up (maybe your provider did) then you will need to find the Network Name they used, and any password they used.  The SSID is Security Set ID and to see more try http://en.wikipedia.org/wiki/SSID .  Basically it is the name used to identify your router/network.  A lot of times the installer will leave it set as LinkSys, or Broadcom or whatever the manufacturer set it as for default.  Your best bet is to get whoever installed it to walk you through how they set it up, giving you id's and passwords so you can get in.  HOWEVER, if you are not comfortable with this (if you set security wrong, etc.) you would be well ahead of the game to hire a local computer tech (networking) to get this working for you.  You can also contact the vendor of your router and get help (if it is still in warranty), or at least get copies of the manuals as pdf files.  Sorry I can't give you more help, I hope this gives you an idea where to go from here to find more.

  • I just downloaded FF4 and now the "SEARCH" tab located at the center of my home page isn't functional. I unisntalled and reinstalled but the result is the same.

    Question
    I just downloaded FF4 and now the "SEARCH" tab located at the center of my home page isn't functional. I uninstalled and reinstalled but the result is the same.

    I think what I did was right clicked on the toolbar when I went to the tab and properties to find out the name of it. I then opened the extensions and add-ons and found what it was there (I don't remember the extension)., You will find the mess involves the homepage tab you have. Click on your tool bar for customization and put the home page away. This doesn't remove it but it will stop bing from showing up. Instead, my tabs now go to a Google page but I can't put in a homepage. Instead I bookmarked Google to my menu bar and when I open a tab I just click that! Cheaper than a trip to a computer vet.
    The only option you will have is to remove google, but if you do, you loose all your goodies. Though I did not try this myself, I fear saving your tabs,bookmarks , etc. will store with it, whatever this bing thing is. Hope this helps

  • "Open each folder in the same window" not working

    hey guys, just today, I noticed that whenever i double click a folder, it opens in a new window.  I went to folder properties, and made sure I checked "Open each folder in the same window," and its checked.  I tried switching it on, then off, then restoring all defaults in both those settings and the view settings, and I've tried restarting the computer, even using a system restore point.  No Matter what, whenever I double click a window, it opens in a new window, but if I use the navigation pane, or if I highlight a window and click the open button at the top left, it opens in the same window.  This is very very very annoying, because just navigating my harddrive, I might end up with 20 windows open to reach just 1 file.
    Does anyone know what's wrong?  or how I can fix this? 

    I was experiencing this same issue on my laptop and spent several frustrating hours of searching in vain for a solution. I tried most of the same fixes mentioned here with no success (re-registering DLL's, running the system file checker [sfc /scannow],
    turning off the navigation pane, performing virus scans, etc). After almost giving up, I discovered that I only experienced this behavior when I accessed Explorer from the shortcut which was pinned to my taskbar. When I opened the "Computer" shortcut
    on my desktop, I was able to open individual folders without having new windows open each time. I suspect that this is related to the new design/function of the taskbar in Windows 7. To get the results I wanted, I opted to revert to the "classic" style
    taskbar seen in Windows Vista (AKA the "Quicklaunch" toolbar) by following the instructions here:
    http://www.howtogeek.com/howto/windows-7/add-the-quick-launch-bar-to-the-taskbar-in-windows-7/
    Then, I simply added a new shortcut to "Computer" in the new Quicklaunch toolbar and, "Voila!" - problem solved. Oddly enough, I don't experience the same behavior on my desktop PC which is also running Windows 7. Ain't Microshaft grand?!? (a-hem)

Maybe you are looking for