Access query strings in a search results page with custom display template

am trying to create a  custom display template in my search results page , so i went to download the itemdefault html file and renamed it and  saved as  different file.and  am started to updating.
the issue i am facing here is : in my  search results page there are 2 query strings, which are passed by anotehr .net appln[ another asp.net appln will be sending the query string to my sp 2013 search results page]
but, how can i  read these 2  query strings using jslink and  new token _#- ? 
         <!--#_
           var QStringResults= null;
ctx.OnPostRender = [];
ctx.OnPostRender.push(function(){ 
QStringResults= getQuString(); //here am unable to read the QStringResults value 
 _#-->  
the below is my cstomhtml file
am unable to  get the values :
               <a href="http://srvrname:2013/sites/CMP/_layouts/15/BIFAddInputRef/bifpage1.aspx?bif1=_#= $htmlEncode(QStringResults) =#_"> Add Input Reference </a>
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"> 
<head>
<title>Item BIF</title>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
<mso:MasterPageDescription msdt:dt="string">Displays the default result item template.</mso:MasterPageDescription>
<mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
<mso:TargetControlType msdt:dt="string">;#SearchResults;#</mso:TargetControlType>
<mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
<mso:ManagedPropertyMapping msdt:dt="string">'Title':'Title','Path':'Path','Description':'Description','EditorOWSUSER':'EditorOWSUSER','LastModifiedTime':'LastModifiedTime','CollapsingStatus':'CollapsingStatus','DocId':'DocId','HitHighlightedSummary':'HitHighlightedSummary','HitHighlightedProperties':'HitHighlightedProperties','FileExtension':'FileExtension','ViewsLifeTime':'ViewsLifeTime','ParentLink':'ParentLink','FileType':'FileType','IsContainer':'IsContainer','SecondaryFileExtension':'SecondaryFileExtension','DisplayAuthor':'DisplayAuthor','CMPBIFURL2':'CMPBIFURL2'</mso:ManagedPropertyMapping>
<mso:_dlc_DocId msdt:dt="string">X3CVW7PXYF6P-3-222</mso:_dlc_DocId>
<mso:_dlc_DocIdItemGuid msdt:dt="string">3ed12157-ea19-4591-b9cd-7a826aef35dc</mso:_dlc_DocIdItemGuid>
<mso:_dlc_DocIdUrl msdt:dt="string">http://srvrname:2013/sites/CMP/_layouts/15/DocIdRedir.aspx?ID=X3CVW7PXYF6P-3-222, X3CVW7PXYF6P-3-222</mso:_dlc_DocIdUrl>
</mso:CustomDocumentProperties>
</xml><![endif]-->
</head>
<body>
    <script>
        $includeLanguageScript(this.url,"~sitecollection/_catalogs/masterpage/Display Templates/Search/BIFJScript.js");
    </script>
    <div id="Item_BIF2">
<!--#_ 
        if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
            var id = ctx.ClientControl.get_nextUniqueId();
            var itemId = id + Srch.U.Ids.item;
var hoverId = id + Srch.U.Ids.hover;
var hoverUrl = "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Default_HoverPanel.js";
            $setResultItem(itemId, ctx.CurrentItem);
if(ctx.CurrentItem.IsContainer){
ctx.CurrentItem.csr_Icon = Srch.U.getFolderIconUrl();
ctx.currentItem_ShowHoverPanelCallback = Srch.U.getShowHoverPanelCallback(itemId, hoverId, hoverUrl);
            ctx.currentItem_HideHoverPanelCallback = Srch.U.getHideHoverPanelCallback();
_#-->
         <!--#_
           var QStringResults= null;
ctx.OnPostRender = [];
ctx.OnPostRender.push(function(){ 
QStringResults= getQuString();
 _#-->  
        <div id="_#= $htmlEncode(QStringResults) =#_" name="bifItemqstring" 
                data-displaytemplate="DefaultItem" class="ms-srch-item" 
                >
                <h5 style="color:ghostwhite;background-color:black">
                    <a href="_#= ctx.CurrentItem.Path =#_"> _#= ctx.CurrentItem.Path =#_</a>
                </h5>
            </div>
            <div id="_#= $htmlEncode(itemId) =#_" name="bifItem" 
                data-displaytemplate="DefaultItem" class="ms-srch-item" 
                onmouseover="_#= ctx.currentItem_ShowHoverPanelCallback =#_" 
                onmouseout="_#= ctx.currentItem_HideHoverPanelCallback =#_">
                <h1 style="color:ghostwhite;background-color:black">
                    <a href="_#= ctx.CurrentItem.Path =#_"> _#= ctx.CurrentItem.Path =#_</a>
                </h1>
                <h4 style="color:ghostwhite;background-color:black">
                    <a href="_#= ctx.CurrentItem.Description =#_"> _#= ctx.CurrentItem.Description =#_</a>
                </h4>
                <h4 style="color:ghostwhite;background-color:black">
                    <a href="_#= ctx.CurrentItem.LastModifiedTime =#_"> _#= ctx.CurrentItem.LastModifiedTime =#_</a>
                </h4>
                <h3 style="color:floralwhite;background-color:green">
                    var mybifurl1= document.getElementById($htmlEncode(QStringResults));
                <a href="http://srvrname:2013/sites/CMP/_layouts/15/BIFAddInputRef/bifpage1.aspx?bif1=_#= $htmlEncode(QStringResults) =#_"> Add Input Reference </a>
                </h3>
              </div>
        <div>
        </div>
                <div id="_#= $htmlEncode(hoverId) =#_" class="ms-srch-hover-outerContainer"></div>
<!--#_ 
_#-->
    </div>
</body>
</html>
when i run the page , i a getting the query string value as   undefined! though the custom javascript is getting called.

i am able to get the  results  by implementing the below:
<h4 style="background-color:black">
                    <a onclick="javascript:mycalltojs(_#=
ctx.CurrentItem.Path=#_) > click here </a>
                </h4>
hope this helps  anyone

Similar Messages

  • Sorry, something went wrong - Open Office File from Search Results Page with Office Web Apps

    Hi,
    I'm getting "Sorry, something went wrong" error when I'm trying to open any office document from inside Search Results Page with Office Web Apps, the same error is appearing in the document preview as well.
    The error in SharePoint logs says that the file cannot be found.
    Please note that this error is coming only when the "Filename" of the document is not written in English (in my case its written with Arabic characters).
    If I try to open it from the document library, its opening properly with no errors.
    The only difference between two URLs (document URL in Search Results and in Document Library) is the value for "sourcedoc" attribute;
    In the case of Search Results page, the filename in "sourcedoc" attribute is kept as is with Arabic characters.
    While in the Document Library, the filename in "sourcedoc" attribute is converted into different characters (something like: "B9%D9%85%D9%8").
    Anybody have an idea on how to overcome this issue, implement a workaround or modify the "sourcedoc" behavior?
    Thanks in Advance.
    Hamza AlSughier

    Dear Wendy,
    Thanks for your efforts, I already tried your last suggestion before, but this didn't solve my problem.
    Actually my end users are accessing this portal using ADFS and HTTPS.
    Finally I got this solved, I have done below to get my overall solution working perfectly:
    - First I have configured Windows Authentication and ADFS Authentication on the same zone which is the default zone.
    - The issue when opening office documents with Arabic file name has disappeared as a result of first change.
    - Then I have faced an issue where we are not able to crawl content under Default zone, however we have to do so, after too many efforts, I found that its related to the Load-balancer/proxy, I have made the crawler server
    to crawl himself (http://CrawlServerName:PortNumber).
    - Also a change on Alternate Access Mapping was needed, I have set one of the extended zones (which is running Windows Authentication only) as Internal URL for the Default Zone, and this is was the URL I used for Crawling.
    I have configured Server Name Mappings to make sure we got proper URLs in Search Results.
    - Then we faced another issue, which is Authentication selection on login page (How to bypass this page, and authenticate using ADFS auto), I used this solution (Set Custom Sign In Page):
    http://0ut0ftheb0x.wordpress.com/2014/01/04/skip-the-authentication-selection-page-at-_logindefault-aspx-in-a-mixed-authentication-environment/.
    - I faced one more issue as a result of above workaround; Sign Out functionality wasn't working well; users get logged in automatically whenever I click on Sign Out. I solved this by modifying the "Sign Out" Control under _layouts;
    I made it to redirect users to ADFS Sign Out Page instead of SharePoint Sign Out Page (I know its not recommended, but I don't have any other option).
    Hamza AlSughier

  • Search - Query String in the search result

    Hello,
     I have configured search in share point .
    When I search for item , I got the following url in the search result:
              /Lists/TopMenuList/DispForm.aspx?ID=31
    Now I have created a page in sharepoint called "Details.aspx"
    I need when user serach in Item , The search result display this page as the following
                /pages/Details.aspx?ID={ID}
    Thanks
    ASk

    Hi There,
    Please use the below article to change to change the default search url:
    http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/specify-search-settings-for-a-site-collection-or-a-site-HA104020835.aspx 
    Look at the 3rd step mentioned in this article under "Specify search settings for a site collection"
    Thanks,
    Gopinath Devadass - Technology Consultant (SharePoint) http://GopinathOnline.com

  • Search Results Clear On Refinement with custom Display Template

    I am working with a custom search display template. I did minor presentation changes in the template. I am showing a checkbox against each search item and there is some logic behind it.
    For this I am using Item_Default Template.
    ctx.OnPostRender = [];
    ctx.OnPostRender.push(function(){
    $('input[name=checkbox]').change(function(){
    //My Logic
    With this is in place, on page load it shows initial results just fine and my checkbox logic also works fine.
    However, whenever user hits a refinement value the results clear out and no longer display. I know the results are there because when I do reload of the page refined results appears but again when you click on refinement value results disappear.
    With some digging on the forums I found that use "AddPostRenderCallback(ctx,function(){" instead of "ctx.OnPostRender.push", I tried this as well but it didn't help.
    Whenever I remove "ctx.OnPostRender.push(function(){" code from my template, refinement panel starts working properly again. So there has to be something related to this "ctx.OnPostRender.push". I cant just
    remove it because I have to write my JS logic as well for that this function is must.
    Please give me some pointers.
    Thanks
    Sarvesh
    Regards Sarvesh Shinde SharePoint Developer, India

    i am able to get the  results  by implementing the below:
    <h4 style="background-color:black">
                        <a onclick="javascript:mycalltojs(_#=
    ctx.CurrentItem.Path=#_) > click here </a>
                    </h4>
    hope this helps  anyone

  • Search result Page throw Error for anonymous User

    We have claim base WebApplication in SharePoint 2013. Every thing is working fine and user can login site without any problem. Only search result page not working..its given "Sorry, something went wrong "
    From ULS Log I found below exception
    CoreResultsWebPart::OnInit: Exception initializing: System.InvalidOperationException: The security token request cannot be completed.    
     at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForServiceContext(Uri contextUri)    
     at Microsoft.SharePoint.SPChannelFactoryOperations.InternalCreateChannelActingAsLoggedOnUser[TChannel](ChannelFactory`1 factory, EndpointAddress address, Uri via)    
     at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.GetChannel(Uri address, Int32 timeoutInMilliseconds)    
     at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoSpLoadBalancedUriWsOp[T](WebServiceBackedOperation`1 webServiceCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName)    
     at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String operationName, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, WebServiceBackedOperation`1 webServiceCall)    
     at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String operationName, WebServiceBackedOperation`1 webServiceCall)    
     at Microsoft.Office.Server.Search.Query.ConsumerScopeCache.Refresh(IEnumerable`1 sharedScopes)    
     at Microsoft.Office.Server.Search.Query.ConsumerScopeCache.EnsureFresh()    
     at Microsoft.Office.Server.Search.Query.ConsumerScopeCache.TryGetScope(Int32 id, ScopeInformation& scope)    
     at Microsoft.Office.Server.Search.Query.ScopeCache.TryGetScope(Guid siteGuid, Int32 id, ScopeInformation& scope)    
     at Microsoft.Office.Server.Search.WebControls.SearchCommon.GetScopeNameByScopeID(Guid siteGuid, Int32 scopeID)    
     at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()    
     at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e)
    We are using Arabic Language Pack SharePoint 2013 on Windows server 2012 with SQL Server 2012.
     anonymous access already given form Central Admin and Sitecollection level 
    Quick response will be highly Appreciated.

    Its need to be set  impersonate="true"
    <authentication mode="Forms">
        </authentication>
        <identity impersonate="true"
    />
    to resolve custom solution which need impersonate="false"
    Run command in evaluated privilege...

  • Search Result Page Error

    Hi All,
       We have a trouble in SharePoint search result. we have custom page where we have search result webpart in it. Here, the site is anonymous and extended for it.
       The search webpart and pagination is working fine for authenticate users. When anonymous users search the result shows and we we click on the next page we are getting sorry something went wrong. Below are the exceptions we are getting
    Entering monitored scope (Request (POST:http:0/en/_vti_bin/client.svc/ProcessQuery)). Parent No  
    12/04/2014 10:56:19.60  w3wp.exe (0x5914)                        0x4C98 SharePoint Foundation          Logging Correlation Data       xmnv Medium  
    Name=Request (POST:http://80/en/_vti_bin/client.svc/ProcessQuery) e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:19.60  w3wp.exe (0x5914)                        0x4C98 SharePoint Foundation          Authentication Authorization   agb9s Medium   Non-OAuth
    request. IsAuthenticated=False, UserIdentityName=, ClaimsCount=0 e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.00  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Asp Runtime                
       aj1kl High     [Forced due to logging gap, cached @ 12/04/2014 10:56:19.60, Original Level: Verbose] SPRequestModule.PreRequestExecuteAppHandler e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.00  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Monitoring                
        aeap2 High     [Forced due to logging gap, Original Level: Verbose] Set diagnostics context correlationid {0}, trace level {1}, isDevdashboardenabled {2} e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.00  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          CSOM                  
            agw10 Medium   Begin CSOM Request ManagedThreadId=111, NativeThreadId=16640 e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.00  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Logging Correlation Data       xmnv Medium  
    Site=/ e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.02  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          CSOM                  
            ai3c0 Medium   Do not Check SPBasePermissions.UseRemoteAPIs permission. Site.ClientObjectModelRequiresUseRemoteAPIsPermission=False, IisSettings.ClientObjectModelRequiresUseRemoteAPIsPermission=True e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.02  w3wp.exe (0x5914)                        0x4100 SharePoint Portal Server       Microfeeds                  
      aizmk High     serviceHost_RequestExecuting e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.05  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          General                
           xxpk Medium   Unable to open Lookup list '{d7966e0d-e36c-40c2-a2fe-adea5b11239b}'.[Error was 0x81020026] e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.05  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          General                
           xxpk Medium   Unable to open Lookup list '{030c1db3-ae0c-4049-81f4-f8fccb68d7b2}'.[Error was 0x81020026] e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.07  w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Database                
          fa42 Monitorable A large block of literal text was sent to sql (length 44546).  This can result in blocking in sql and excessive memory use on the front end.  Verify that no binary parameters are being passed as literals, and
    consider breaking up batches into smaller components.  If this request is for a SharePoint list or list item, you may be able to resolve this by reducing the number of fields. Call stack:    at Microsoft.SharePoint.Utilities.SqlSession.OnPostExecuteCommand(SqlCommand
    command, SqlQueryData monitoringData)     at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringData, Boolean retryForDeadLock)     at Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean
    retryfordeadlock)     at Microsoft.SharePoint.SPSqlC... e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.07* w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Database                  
        fa42 Monitorable ...lient.ExecuteQuery(Boolean retryfordeadlock)     at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName,
    String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback,
    Boolean& pbMaximalView)     at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags,
    ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallbac... e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.07* w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Database                  
        fa42 Monitorable ...k, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)     at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient
    pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback,
    ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)     at Microsoft.SharePoint.SPListItemCollection.EnsureListItemsData()     at Microsoft.SharePoint.SPListItemCollection.get_Count()    
    at Microsoft.SharePoint.SPList.GetItemById(Str... e571d29c-2ca9-405a-40e9-cd516fdce52e
    12/04/2014 10:56:20.07* w3wp.exe (0x5914)                        0x4100 SharePoint Foundation          Database                  
        fa42 Monitorable
    Please help me out
    Thanks in advance 

    Hi Moorthy,
    can you please enable below setting to get search result for anonymous access.
    To get rid of it please do the following.
    Under the SharePoint Site go to Site Settings.  Search Administration -> Search and offline availability -> Indexing ASPX Page Content, Enable the option "Always index all
    Web Parts on this site"
    Under Search Service Application, do a Full Crawl for the content source to resolve this issue.
    see below link for more details
    http://blogs.msdn.com/b/sowmyancs/archive/2010/07/16/sharepoint-2010-search-not-showing-any-results-for-anonymous-users.aspx
    Hope this will help you.
    Regards
    Soni K

  • Adding Fields to People Search Results Page

    Hi
    Working in SharePoint Online, I've been able to add a few fields to the People Search results page successfully:
    Organization
    Office Locator
    Office Location
    Work Phone
    Mobile Phone
    Home Phone
    Work Email
    All of the above fields are working and display on the People search results page.
    I tried to add these and they simply do not display.  There is no error:
    University Email
    Assistant
    Calendar/Scheduling
    I set them up the same way.  I created the Property in the User Profile area.  I then populated the data for each user.  I then added the property as a Managed property (search schema) linked to the Crawled property from the People category.
    Made sure that they were query able, retrievable, searchable, etc.  Then I edited the People Search code and then I waited over the weekend for the search to pick them up.  I came into work this morning and they still do not display.  Here is
    my code, just in case I missed something.  Thanks.
    <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
    <head>
    <title>UIF People Item with Work Phone</title>
    <!--[if gte mso 9]><xml>
    <mso:CustomDocumentProperties>
    <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
    <mso:MasterPageDescription msdt:dt="string">Displays a result tailored for a person.</mso:MasterPageDescription>
    <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
    <mso:TargetControlType msdt:dt="string">;#SearchResults;#</mso:TargetControlType>
    <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
    <mso:CrawlerXSLFile msdt:dt="string"></mso:CrawlerXSLFile>
    <mso:ManagedPropertyMapping msdt:dt="string">'AboutMe':'AboutMe','AccountName':'AccountName','BaseOfficeLocation':'BaseOfficeLocation','Department':'Department','HitHighlightedProperties':'HitHighlightedProperties','Interests':'Interests','JobTitle':'JobTitle','Organization':'Organization','LastModifiedTime':'LastModifiedTime','Memberships':'Memberships','PastProjects':'PastProjects','Path':'Path','PictureURL':'PictureURL','PreferredName':'PreferredName','Responsibilities':'Responsibilities','Schools':'Schools','ServiceApplicationID':'ServiceApplicationID','SipAddress':'SipAddress','Skills':'Skills','UserProfile_GUID':'UserProfile_GUID','WorkEmail':'WorkEmail','UniversityEmail':'UniversityEmail','OfficeNumber':'OfficeNumber','OfficeLocator':'OfficeLocator','WorkPhone':'WorkPhone','MobilePhone':'MobilePhone','HomePhone':'HomePhone','Assistant':'Assistant','CalendarScheduling':'CalendarScheduling','WorkId':'WorkId','YomiDisplayName':'YomiDisplayName'</mso:ManagedPropertyMapping>
    <mso:HtmlDesignStatusAndPreview msdt:dt="string">https://uif.sharepoint.com/search/_catalogs/masterpage/Display Templates/Search/UIF_Item_Person.html, Conversion successful.</mso:HtmlDesignStatusAndPreview>
    <mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded>
    <mso:HtmlDesignPreviewUrl msdt:dt="string"></mso:HtmlDesignPreviewUrl>
    </mso:CustomDocumentProperties>
    </xml><![endif]-->
    </head>
    <body>
    <div id="Item_Person">
    <!--#_
    if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
    var id = ctx.ClientControl.get_nextUniqueId();
    var itemId = id + Srch.U.Ids.item;
    var hoverId = id + Srch.U.Ids.hover;
    $setResultItem(itemId, ctx.CurrentItem);
    var container_id = id + "_peopleContainer";
    var hhProps = Srch.U.createXMLDocument("<root>" + ctx.CurrentItem.HitHighlightedProperties + "</root>");
    var encodedPath = $urlHtmlEncode(ctx.CurrentItem.Path);
    var has_pn = !$isEmptyString(ctx.CurrentItem.PreferredName);
    var has_sip = !$isEmptyString(ctx.CurrentItem.SipAddress);
    var has_email = !$isEmptyString(ctx.CurrentItem.WorkEmail);
    var has_universityemail = !$isEmptyString(ctx.CurrentItem.UniversityEmail);
    var has_onumber = !$isEmptyString(ctx.CurrentItem.OfficeNumber);
    var has_bolocation = !$isEmptyString(ctx.CurrentItem.BaseOfficeLocation);
    var has_olocator = !$isEmptyString(ctx.CurrentItem.OfficeLocator);
    var has_wphone = !$isEmptyString(ctx.CurrentItem.WorkPhone);
    var has_mphone = !$isEmptyString(ctx.CurrentItem.MobilePhone);
    var has_hphone = !$isEmptyString(ctx.CurrentItem.HomePhone);
    var has_assistant = !$isEmptyString(ctx.CurrentItem.Assistant);
    var has_calendarscheduling = !$isEmptyString(ctx.CurrentItem.CalendarScheduling);
    var has_jt = !$isEmptyString(ctx.CurrentItem.JobTitle);
    var has_dp = !$isEmptyString(ctx.CurrentItem.Department);
    var has_org = !$isEmptyString(ctx.CurrentItem.Organization);
    var has_abme = !$isEmptyString(ctx.CurrentItem.AboutMe);
    var has_resp = !$isEmptyString(ctx.CurrentItem.Responsibilities);
    var has_pp = !$isEmptyString(ctx.CurrentItem.PastProjects);
    var has_ski = !$isEmptyString(ctx.CurrentItem.Skills);
    var has_sch = !$isEmptyString(ctx.CurrentItem.Schools);
    var has_int = !$isEmptyString(ctx.CurrentItem.Interests);
    var has_vlm = !$isEmptyString(ctx.CurrentItem.ProfileViewsLastMonth);
    var has_vlw = !$isEmptyString(ctx.CurrentItem.ProfileViewsLastWeek);
    var has_query = !$isEmptyString(ctx.CurrentItem.ProfileQueriesFoundYou);
    var isSelfSrch = (has_vlm == true || has_vlw == true || has_query == true);
    var delimiter = "";
    var userPersonaId = $htmlEncode(id) + "_peopleUserPersona";
    var uSip = ctx.CurrentItem.SipAddress;
    var uEmail = ctx.CurrentItem.WorkEmail;
    var uName = ctx.CurrentItem.PreferredName;
    var uPicUrl = ctx.CurrentItem.PictureURL;
    var hoverUrl = "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Person_HoverPanel.js";
    _#-->
    <div id="_#= $htmlEncode(container_id) =#_" class="ms-srch-people-outerContainer ms-srch-resultHover">
    <div id="_#= $htmlEncode(itemId) =#_" name="Item" class="ms-srch-people-item" onmouseover="EnsureScriptParams('SearchUI.js', 'HP.Init', event, '_#=$scriptEncode(itemId) =#_', '_#=$scriptEncode(hoverId) =#_', '_#=$scriptEncode(hoverUrl) =#_');" onmouseout="EnsureScriptParams('SearchUI.js', 'HP.Hide');">
    <div id="_#= $htmlEncode(hoverId) =#_" class="ms-srch-hover-outerContainer"></div>
    <div id="UserPersonaContainer">
    <div id="UserPersona">
    <div id="_#= userPersonaId =#_"></div>
    </div>
    </div>
    <div id="UserInfoContainer">
    <div id="ContactInfo">
    <div id="NameField">
    <!--#_
    var encodedName = (has_pn == true) ? $htmlEncode(ctx.CurrentItem.PreferredName) : $htmlEncode(ctx.CurrentItem.YomiDisplayName);
    var displayName = Srch.U.getSingleHHXMLNodeValue(hhProps, "preferredname");
    if ($isEmptyString(displayName)) { displayName = encodedName }
    _#-->
    <div id="NameValue" class="ms-srch-ellipsis ms-textLarge">
    <a clicktype="Result" id="NameFieldLink" href="_#= encodedPath =#_" title="_#= encodedName =#_">_#= displayName =#_</a>
    </div>
    </div>
    <!--#_
    if(has_jt == true) {
    _#-->
    <div id="JobTitleField">
    <!--#_
    var encodedJtitle = $htmlEncode(ctx.CurrentItem.JobTitle);
    var displayJtitle = Srch.U.getSingleHHXMLNodeValue(hhProps, "jobtitle");
    if ($isEmptyString(displayJtitle)) { displayJtitle = encodedJtitle }
    _#-->
    <div id="JobTitleValue" class="ms-srch-ellipsis" title="_#= encodedJtitle =#_"> _#= displayJtitle =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_dp == true) {
    _#-->
    <div id="DepartmentField">
    <!--#_
    var encodedDept = $htmlEncode(ctx.CurrentItem.Department);
    var displayDept = Srch.U.getSingleHHXMLNodeValue(hhProps, "department");
    if ($isEmptyString(displayDept)) { displayDept = encodedDept }
    _#-->
    <div id="DepartmentValue" class="ms-srch-ellipsis" title="_#= encodedDept =#_"> <b>_#= displayDept =#_</b> </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_org == true) {
    _#-->
    <div id="Organization">
    <!--#_
    var encodedorg = $htmlEncode(ctx.CurrentItem.Organization);
    var displayorg = Srch.U.getSingleHHXMLNodeValue(hhProps, "Organization");
    if ($isEmptyString(displayorg)) { displayorg = encodedorg }
    _#-->
    <div id="OrganizationValue" class="ms-srch-ellipsis" title="_#= encodedorg =#_"> _#= displayorg =#_ </div>
    </div>
    <!--#_
    _#-->
    <hr>
    <!--#_
    if(has_olocator == true) {
    _#-->
    <div id="OfficeLocator">
    <!--#_
    var encodedolocator = $htmlEncode(ctx.CurrentItem.OfficeLocator);
    var displayolocator = Srch.U.getSingleHHXMLNodeValue(hhProps, "OfficeLocator");
    if ($isEmptyString(displayolocator)) { displayolocator = encodedolocator }
    _#-->
    <div id="OfficeLocatorValue" class="ms-srch-ellipsis" title="_#= encodedolocator =#_"> <b>Office Locator:</b> <a clicktype="Result" id="NameFieldLink" href="_#= ctx.CurrentItem.OfficeLocator =#_">_#= ctx.CurrentItem.OfficeNumber =#_</a></div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_bolocation == true) {
    _#-->
    <div id="OfficeBaseLocation">
    <!--#_
    var encodedbolocation = $htmlEncode(ctx.CurrentItem.BaseOfficeLocation);
    var displaybolocation = Srch.U.getSingleHHXMLNodeValue(hhProps, "BaseOfficeLocation");
    if ($isEmptyString(displaybolocation)) { displaybolocation = encodedbolocation }
    _#-->
    <div id="BaseOfficeLocationValue" class="ms-srch-ellipsis" title="_#= encodedbolocation =#_"> <b>Office Location:</b> _#= displaybolocation =#_ </div>
    </div>
    <hr>
    <!--#_
    _#-->
    <!--#_
    if(has_wphone == true) {
    _#-->
    <div id="WorkPhone">
    <!--#_
    var encodedwphone = $htmlEncode(ctx.CurrentItem.WorkPhone);
    var displaywphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "WorkPhone");
    if ($isEmptyString(displaywphone)) { displaywphone = encodedwphone }
    _#-->
    <div id="WorkPhoneValue" class="ms-srch-ellipsis" title="_#= encodedwphone =#_"> <b>Office Phone:</b> _#= displaywphone =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_mphone == true) {
    _#-->
    <div id="MobilePhone">
    <!--#_
    var encodedmphone = $htmlEncode(ctx.CurrentItem.MobilePhone);
    var displaymphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "MobilePhone");
    if ($isEmptyString(displaymphone)) { displaymphone = encodedmphone }
    _#-->
    <div id="MobilePhoneValue" class="ms-srch-ellipsis" title="_#= encodedmphone =#_"> <b>Mobile Phone:</b> _#= displaymphone =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_hphone == true) {
    _#-->
    <div id="HomePhone">
    <!--#_
    var encodedhphone = $htmlEncode(ctx.CurrentItem.HomePhone);
    var displayhphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "HomePhone");
    if ($isEmptyString(displayhphone)) { displayhphone = encodedhphone }
    _#-->
    <div id="HomePhoneValue" class="ms-srch-ellipsis" title="_#= encodedhphone =#_"> <b>Home Phone:</b> _#= displayhphone =#_ </div>
    </div>
    <!--#_
    _#-->
    <hr>
    <!--#_
    if(has_email == true) {
    _#-->
    <div id="WorkEmail">
    <!--#_
    var encodedemail = $htmlEncode(ctx.CurrentItem.WorkEmail);
    var displayemail = Srch.U.getSingleHHXMLNodeValue(hhProps, "WorkEmail");
    if ($isEmptyString(displayemail)) { displayemail = encodedemail }
    _#-->
    <div id="WorkEmailValue" class="ms-srch-ellipsis" title="_#= encodedemail =#_"> <b>Foundation Email:</b> _#= displayemail =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_universityemail == true) {
    _#-->
    <div id="UniversityEmail">
    <!--#_
    var encodeduniversityemail = $htmlEncode(ctx.CurrentItem.UniversityEmail);
    var displayuniversityemail = Srch.U.getSingleHHXMLNodeValue(hhProps, "UniversityEmail");
    if ($isEmptyString(displayuniversityemail)) { displayuniversityemail = encodeduniversityemail }
    _#-->
    <div id="UniversityEmailValue" class="ms-srch-ellipsis" title="_#= encodeduniversityemail =#_"> <b>University Email:</b> _#= displayuniversityemail =#_ </div>
    </div>
    <!--#_
    _#-->
    <hr>
    <!--#_
    if(has_assistant == true) {
    _#-->
    <div id="Assistant">
    <!--#_
    var encodedassistant = $htmlEncode(ctx.CurrentItem.Assistant);
    var displayassistant = Srch.U.getSingleHHXMLNodeValue(hhProps, "Assistant");
    if ($isEmptyString(displayassistant)) { displayassistant = encodedassistant }
    _#-->
    <div id="AssistantValue" class="ms-srch-ellipsis" title="_#= encodedassistant =#_"> <b>Assistant:</b> _#= displayassistant =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_calendarscheduling == true) {
    _#-->
    <div id="CalendarScheduling">
    <!--#_
    var encodedcalendarscheduling = $htmlEncode(ctx.CurrentItem.CalendarScheduling);
    var displaycalendarscheduling = Srch.U.getSingleHHXMLNodeValue(hhProps, "CalendarScheduling");
    if ($isEmptyString(displaycalendarscheduling)) { displaycalendarscheduling = encodedcalendarscheduling }
    _#-->
    <div id="CalendarSchedulingValue" class="ms-srch-ellipsis" title="_#= encodedcalendarscheduling =#_"> <b>Calendar/Scheduling:</b> _#= displaycalendarscheduling =#_ </div>
    </div>
    <!--#_
    _#-->
    <hr>
    </div>
    <!--#_
    if(has_resp == true || has_ski == true || has_pp == true || has_int == true || has_sch == true) {
    _#-->
    <div id="MoreInfoShort">
    <!--#_
    if(has_resp == true) {
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "responsibilities", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Responsibilities, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="ResponsibilitiesValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Responsibilities) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    } else if(has_ski == true) {
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "skills", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Skills, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="SkillsValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Skills) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    } else if(has_pp == true) {
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "pastprojects", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.PastProjects, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="PastProjectsValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_PastProjects) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    } else if(has_int == true) {
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "interests", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Interests, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="InterestsValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Interests) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    } else if(has_sch == true){
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "schools", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Schools, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="SchoolsValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Schools) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    _#-->
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_abme == true || has_ski == true || has_pp == true || has_int == true) {
    _#-->
    <div id="MoreInfoLong">
    <!--#_
    if(has_abme == true) {
    var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getSingleHHXMLNodeValue(hhProps, "aboutme"), 125);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(ctx.CurrentItem.AboutMe, 125)) }
    if (!Srch.U.e(encodedVal)) {
    _#-->
    _#= encodedVal =#_
    <!--#_
    _#-->
    <!--#_
    } else if(has_ski == true && has_resp == true) {
    var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getMultipleHHXMLNodeValues(hhProps, "skills", 3, delimiter), 125);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Skills, 3, delimiter), 125)) }
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Skills) =#_ </span>
    _#= encodedVal =#_
    <!--#_
    _#-->
    <!--#_
    } else if(has_pp == true && (has_ski == true || has_resp == true)) {
    var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getMultipleHHXMLNodeValues(hhProps, "pastprojects", 3, delimiter), 125);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.PastProjects, 3, delimiter), 125)) }
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_PastProjects) =#_ </span>
    _#= encodedVal =#_
    <!--#_
    _#-->
    <!--#_
    } else if(has_int == true && (has_pp == true || has_ski == true || has_resp == true)) {
    var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getMultipleHHXMLNodeValues(hhProps, "interests", 3, delimiter), 125);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Interests, 3, delimiter), 125)) }
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Interests) =#_ </span>
    _#= encodedVal =#_
    <!--#_
    _#-->
    <!--#_
    _#-->
    </div>
    <!--#_
    _#-->
    <!--#_
    if(isSelfSrch == true) {
    _#-->
    <hr class="ms-srch-people-item-separator" />
    <div id="SelfSearchInfo">
    <div id="Heading">
    <a id="EditProfileLink" href="_#= $urlHtmlEncode(ctx.CurrentItem.EditProfileUrl) =#_"> _#= $htmlEncode(Srch.Res.item_People_EditProfileLink) =#_ </a>
    </div>
    <div id="Frequency">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_SelfSearchFrequency) =#_ </span>
    <ul id="FrequencyCard">
    <li id="MonthlyViews">
    <!--#_
    var encodedVal = (ctx.CurrentItem.ProfileViewsLastMonth == 1) ? $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsMonths_Singular, ctx.CurrentItem.ProfileViewsLastMonth)) :
    $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsMonths_Plural, ctx.CurrentItem.ProfileViewsLastMonth));
    _#-->
    _#= encodedVal =#_
    </li>
    <li id="DailyViews">
    <!--#_
    var encodedVal = (ctx.CurrentItem.ProfileViewsLastWeek == 1) ? $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsWeeks_Singular, ctx.CurrentItem.ProfileViewsLastWeek)) :
    $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsWeeks_Plural, ctx.CurrentItem.ProfileViewsLastWeek));
    _#-->
    _#= encodedVal =#_
    </li>
    </ul>
    </div>
    <!--#_
    if(has_query == true) {
    _#-->
    <div id="Keywords">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_SelfSearchKeywords) =#_ </span>
    <!--#_
    var encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.ProfileQueriesFoundYou, 5, delimiter), 84));
    if (!Srch.U.e(encodedVal)) {
    _#-->
    _#= encodedVal =#_
    <!--#_
    _#-->
    </div>
    <!--#_
    _#-->
    <!--#_
    if(!Srch.U.n(ctx.CurrentItem.LastModifiedTime))
    var lastModifiedTime = ctx.CurrentItem.LastModifiedTime;
    var encodedLastModifiedTimeId = $htmlEncode(id + "_lastModifiedTime");
    AddPostRenderCallback(ctx, function()
    Srch.U.renderFriendlyTimeIntervalString(lastModifiedTime, encodedLastModifiedTimeId);
    _#-->
    <div id="LastModifiedTime">
    <span class="ms-textSmall">_#= $htmlEncode(Srch.Res.item_People_LastModified) =#_</span>
    <span id="_#= encodedLastModifiedTimeId =#_" class="ms-textSmall ms-srch-ellipsis"></span>
    </div>
    <!--#_
    _#-->
    </div>
    <!--#_
    _#-->
    </div>
    </div>
    </div>
    <!--#_
    AddPostRenderCallback(ctx, function(){
    EnsureScriptFunc("clienttemplates.js", "RenderUserFieldWorker", function() {
    var getUserPersona = function() {
    var renderCtx = new ContextInfo();
    renderCtx.Templates = {};
    renderCtx.Templates["Fields"] = {};
    var fieldSchemaData = { "PictureOnly":"1", "PictureSize": "Size_72px"};
    var listSchema = {"EffectivePresenceEnabled": "1", "PresenceAlt": Srch.Res.item_People_NoPresenceAvailable};
    var userData = {"title": uName, "email": uEmail, "picture": uPicUrl, "sip": uSip};
    var personaControlElement = document.getElementById(userPersonaId);
    if (!Srch.U.n(personaControlElement))
    personaControlElement.innerHTML = RenderUserFieldWorker(renderCtx, fieldSchemaData, userData, listSchema);
    if(typeof(ctx.EnqueueImnRequest) == "undefined") { ctx.EnqueueImnRequest = false; }
    if (ctx.EnqueueImnRequest == false) {
    ctx.ClientControl.add_oneTimeResultRendered(function(){ if (typeof(ProcessImn) != "undefined") { ProcessImn(); } });
    ctx.EnqueueImnRequest = true;
    getUserPersona();
    _#-->
    <!--#_
    _#-->
    </div>
    </body>
    </html>

    Hi,
    According to your post, my understanding is that you have an issue about adding fields in people search results page.
    Per my knowledge, there is no issue in your steps, and the issue may be related to the search crawl in SharePoint online.
    For SharePoint server on-premise, we can start the search full crawl, however, for SharePoint online, we could not start the search full crawl manually.
    You can wait for some time to complete the search full crawl in SharePoint online, then check whether it works.
    As this is the forum for SharePoint server on-premise, I’m not familiar with the SharePoint online search crawl, for this issue, I recommend you can post a new question in the forum for Office 365/SharePoint online.
    http://community.office365.com/en-us/forums/154.aspx
    More experts will assist you, then you will get more information relation to SharePoint Online.
    Thank you for your understanding and support.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • If Condition in Keyword Query Language (SharePoint 2013 Search Results)

    Hi All,
    Can we have an "If" condition in Query text box in SharePoint 2013 Search results page. For example, i want to hide all list items whose
    status is "HideItem" from appearing in search results?
    I am trying this: {?{searchTerms} (contentclass:STS_ListItem -ListItemStatus:"HideItem")}
    But, this hides all items like aspx pages, pdf's, docs and displays only list items. 
    Similarly, hide pages of some name like: AllItems.aspx, ViewDetails.aspx, AllAssets.aspx 
    {?{searchTerms} (contentclass:STS_ListItem_850 -filename:"AllItems.aspx")} 
    Any help would be great. Thanks in advance.

    Thanks Steve. I found this solution after a bit of struggle :).
    Also, date comparision is not working as expected. 
    {?{searchTerms} NOT(contentclass:STS_ListItem AND ListItemStatus:"HideItem" AND
    PublishDate<{Today})} is not working and throwing syntax error.
    I don't see any solid reference to KQL syntax except this msdn link.
    Can you please suggest any good material on KQL syntax ?
    Thank you once again.

  • The way SharePoint open office documents will differ if the user try to open them from the document library directly, or if users try to open the document from the search result page.

    I have a document library where I have uploaded an excel sheet to it. Now If I click on the excel sheet directly from the document library page , I will get the following error ““The webpage cannot be displayed””. While if I do a search and I open the excel
    sheet from the search result page , it will open the excel sheet using the excel services inside the browser !!.
    So can anyone advice on this ?
    Also if I have a PowerPoint document , and I try to open it from the document library I will get the following error “The webpage cannot be displayed” , and the URL will be prefix with the following “ms-powerpoint:ofv|u|”. while if i do a search and i open
    the PowerPoint from the search result page i will be prompted to either open or save the document ? So why SharePoint is reacting totally different when trying to open document library items from the document library Or from the search result page?

    Hi,
    The behavior in the document library could be probably because of the Documents handling setting. Please try setting it to default behavior (Open in browser) as i hear from you that the default behavior is to open from browser.
    Thanks, Suneetha
    Currently I have set the following;-
    1. On the library advance setting :- I define  “Open in the client application”
    2. On the web application setting:- I define stricked for Browser File Handling
    And I have noted if I delete the browser cache and I access the document , then I will be prompted with the download dialog. but if I re-click on the same document I will be redirected to the
    The webpage cannot be displayed
    And the ms-powerpoint:ofv|u| will be added to the beginning of the URL. So could this be a caching problem ?

  • 11.5.9/OAF 5.7 : how to add new fields in iProc "search results" page

    We need to add new fields into iProc "search results" page - "Personalize Self-Service Defn" is et, we can enter the personalization screens (from both the "master" link at top/right page level or from the link above the region) - anyway cannot find how to add new fields. Do we have to go to AK developer and/or XML files or is it feasable from OAF (as it is with 11510) ? TIA.

    It depends on what fields you want to add.
    1. If Oracle has included the fields, just render them via personalizations
    2. If they are brand new fields:
    a) you will need to extend the VO (I do not know the exact name).
    b) change the query to get your extra db columns if necesary
    c) add transient attributes to the VO and map them to b).
    d) Then you need to add the items via personalization and map them to the attributes you created in c)
    Check on metalink for the lates version of OAF Dev Guide and Personalization guide.
    Thanks
    Sandeep

  • How to configure search results web part to display results only after a query is generated from user?

    Hi All,
    I am crawling documents from a file server. I created a new content source and crawled the documents. All documents are crawled successfully.
    Then I went to my enterprise search center site collection and created a new result source. I have added the query to use above content source.
    After that, on a page I am trying to configure the search results web part to display documents using this result source. Now the problem is:
    It displays all the documents that are crawled without searching for anything. I mean first it should not display any results. If a user searches for something , then according to that search it should display results.
    Any idea how to do this in the web part? I am using SharePoint 2013 on premise enterprise edition. No code. Totally OOTB.

    Hi Mohan,
    What did you use for the Query text in the result source?
    I could reproduce this issue when I used Query text like: {searchTerms} Path:”http://sps2k13sp/sites/First/Shared%20Documents”
    Then I changed the Query to
    {?{searchTerms}
    Path:"http://sps2k13sp/sites/First/Shared%20Documents"}
    , then Search result web part didn’t return results without searching.
    So , check your result source, and use the Query like the above(adding "{?...}").
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Search/Result page is incorrect, result page is blank

    Hello,
    I am designing a website for my work. Iam not very much familiar with coding and dont know what exactly is missing in the code.
    The search page filters the search criteria and on clicking the submit button, redirects to the result page which should display only the rows containing the search criteria. However, it is displaying blank in the result page with only the column names of the queried table (in the recordset)
    The search page code is :
    <?php require_once('Connections/connect.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $colname_Recordset1 = "-1";
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $totalRows_Recordset1 = $_GET['Class'];
    $colname_Recordset1 = "-1";
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $totalRows_Recordset1 = $_GET['Class'];
    $colname_Recordset1 = "-1";
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = "SELECT * FROM time_table";
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $totalRows_Recordset1 = $_GET['Class'];
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);$colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    $query_Recordset1 = "SELECT distinct `Class` FROM time_table";
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['Rid'])) {
      $loginUsername=$_POST['Rid'];
      $password=$_POST['textfield'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "index_1 - Copy.php";
      $MM_redirectLoginFailed = "login_2.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_connect, $connect);
      $LoginRS__query=sprintf("SELECT reg_no, password FROM login_table WHERE reg_no=%s AND password=%s",
        GetSQLValueString($loginUsername, "int"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $connect) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
              if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;               
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>TIME TABLE</title>
    <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body onsubmit= "registerEvents()">
                                             <form name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
    </form>
                                             <img class="header-image" src="images/logowhite.jpg"  style="float: left" />                    
      <header>
                  <h1><a href="/">CHRIST PRE-UNIVERSITY<span>E-SCHOOL</span></a></h1>
            <h2>EXCELLENCE IS ALL THAT MATTERS</h2>
        </header>
        <div id="body">
            <form name="form2" method="get" action="time.php">
              <p align="center">
                <strong>
                <label for="Rid">
                   <br>
                </label>
                <label for="Rid"><br>
                </label>
                <label for="sid">Class</label>
                <select name="sid" id="sid">
                  <?php
    do { 
    ?>
                  <option value="<?php echo $row_Recordset1['Class']?>"<?php if (!(strcmp($row_Recordset1['Class'], ucwords($row_Recordset1['Class'])))) {echo "selected=\"selected\"";} ?>><?php echo $row_Recordset1['Class']?></option>
                  <?php
    } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
      $rows = mysql_num_rows($Recordset1);
      if($rows > 0) {
          mysql_data_seek($Recordset1, 0);
                $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    ?>
                </select>
                <label for="Rid"><br>
                </label>
                </strong></p>
              <p align="center">
                <input name="Submit" type="submit" class="formbutton" id="Submit" value="Submit" >
              </p>
            </form>
            <section id="content">
                  <article></article>
            </section>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>
    The result page code is:
    <?php require_once('Connections/connect.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    }if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    if (isset($_GET['totalRows_Recordset1'])) {
      $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
    } else {
      $all_Recordset1 = mysql_query($query_Recordset1);
      $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>TIME TABLE FOR CLASS</title>
    <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body bgcolor="#CCFF99">
                        <div>
            <img src="images/logowhite.jpg" width="274" height="103" class="header-image"  style="float: left" />                    
    </div>
      <header>
        <h1 align="left"><a href="/"> SCHOOL TIME-TABLE FOR <span> THE CLASS </span></a></h1>
    </header>
      </div>
    <div align="center">
    </div>
        <p align="center"> </p>
    <p align="center"> </p>
        <div align="center">
    <p align="center"> </p>
    <table border="5" cellpadding="15" cellspacing="15">
      <tr>
        <td>Class</td>
        <td>Day</td>
        <td>1st</td>
        <td>2nd</td>
        <td>3rd</td>
        <td>4th</td>
        <td>Room No</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_Recordset1['Class']; ?></td>
          <td><?php echo $row_Recordset1['Day']; ?></td>
          <td><?php echo $row_Recordset1['1st']; ?></td>
          <td><?php echo $row_Recordset1['2nd']; ?></td>
          <td><?php echo $row_Recordset1['3rd']; ?></td>
          <td><?php echo $row_Recordset1['4th']; ?></td>
          <td><?php echo $row_Recordset1['Room No']; ?></td>
        </tr>
        <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
    </table>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>
    Please help me out.
    Thanks

    Thanks for your help,
    I have created both the pages again, one is a search.php another is result.php
    search.php is only used for accepting a text field which is the input of the search in database table on click of the button, and the result of the search is to be displayed in a dynamic table in result.php.
    The result field again uses a GET variable named 'Class Name', from the form field in search.php. But again, my result Page displays blank except the column names of the table. Please advice.
    search.php
    <?php require_once('Connections/connect.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body>
                        <div>
            <img src="images/logowhite.jpg" width="274" height="103" class="header-image"  style="float: left" />                    
    </div>
      <header>
        <h1 align="left"><a href="/"> TIME TABLE FOR<span> CLASS                           </span></a></h1>
    </header>
      </div>
    <div align="center">
        </div>
        <form name="form1" method="get" action="result.php">
          <p><label>Class Name</label>
          <input name="Class Name" type="text" value="" size="15" maxlength="20">
           </p>
          <p>
            <input type="submit" name="bid" id="bid" value="Search">
          </p>
        </form>
        <p align="center"> </p>
    </body>
    </html>
    result.php
    <?php require_once('Connections/connect.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class Name'])) {
      $colname_Recordset1 = $_GET['Class Name'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` LIKE %s ORDER BY `Class` ASC", GetSQLValueString("%" . $colname_Recordset1 . "%", "text"));
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    if (isset($_GET['totalRows_Recordset1'])) {
      $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
    } else {
      $all_Recordset1 = mysql_query($query_Recordset1);
      $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
    ?>
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body>
                        <div>
            <img src="images/logowhite.jpg" width="274" height="103" class="header-image"  style="float: left" />                    
    </div>
      <header>
        <h1 align="left"><a href="/"> TIME TABLE SEARCH RESULT FOR<span> CLASS </span></a></h1>
    </header>
      </div>
    <div align="center">
    <table border="5">
      <tr>
        <td>Class</td>
        <td>Day</td>
        <td>1st</td>
        <td>2nd</td>
        <td>3rd</td>
        <td>4th</td>
        <td>Room No</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_Recordset1['Class']; ?></td>
          <td><?php echo $row_Recordset1['Day']; ?></td>
          <td><?php echo $row_Recordset1['1st']; ?></td>
          <td><?php echo $row_Recordset1['2nd']; ?></td>
          <td><?php echo $row_Recordset1['3rd']; ?></td>
          <td><?php echo $row_Recordset1['4th']; ?></td>
          <td><?php echo $row_Recordset1['Room No']; ?></td>
        </tr>
        <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
    </table>
    <p align="center"> </p>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>
    </body>
    </html>
    I followed these steps from adobe help.
    Thanks.

  • Search Results web part - Custom Query using "Value with a parameter from URL" inconsistent

    I have encountered what I think may be a bug, but I am hoping that there is something that I am missing.
    Within my search site, I have created a new search results page where I want to customize the "Search Results" web part query.  I can add in any number of property and keyword filters (using the "Build Your Query" dialog) without
    issue... until I add a filter that uses the QueryString property (the builder dialog calls this "Value with a parameter from URL").
    If I use {QueryString.MyParameterX} for filtering, it works beautifully in the query builder dialog.  I see the expected results in the search results preview pane, but as soon as I apply the changes things become inconsistent. 
    If I close/reopen my browser and navigate to my page at http://myaddress/search/Pages/testresults.aspx?MyParameterX=test I see results.  If I then refresh the page, I get a "Nothing here matches your search" message.  I can then go to
    the same address but change one character to an uppercase character and get results.  Refreshing that same page again returns "Nothing here matches your search".  I can only get search results one time per uniquely cased URL without having
    to close/reopen my browser.  This behavior was seen on both Firefox and IE.
    Finally, I found that if I instead navigate to http://myaddress/search/testresults?MyParameterX=test, it always returns results.  This, unfortunately isn't the best solution for me... but it is a solution.
    Any insight that anyone can provide is greatly appreciated!  I would really like to be able to depend on this working in all logical cases (especially since the search center of other sites is set using the path all the way down to /Pages).
    Thanks!

    Hi, have you been able to solve this issue? I'm getting the same issue and I cant solve it (required CU is installed).
    Fabio

  • Add Horizontal Line in People Search Results Page

    Hi everyone
    I have a modified people search results page (SharePoint Online) where I have added a few fields to the results page.  I would like to better organize the fields by placing a horizontal line in there somewhere.
    For instance, I would like to add a light gray horizontal line where I drew the red lines on this image:
    Here is a copy of my current people search results code:
    <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
    <head>
    <title>UIF People Item with Work Phone</title>
    <!--[if gte mso 9]><xml>
    <mso:CustomDocumentProperties>
    <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
    <mso:MasterPageDescription msdt:dt="string">Displays a result tailored for a person.</mso:MasterPageDescription>
    <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
    <mso:TargetControlType msdt:dt="string">;#SearchResults;#</mso:TargetControlType>
    <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
    <mso:CrawlerXSLFile msdt:dt="string"></mso:CrawlerXSLFile>
    <mso:ManagedPropertyMapping msdt:dt="string">'AboutMe':'AboutMe','AccountName':'AccountName','BaseOfficeLocation':'BaseOfficeLocation','Department':'Department','HitHighlightedProperties':'HitHighlightedProperties','Interests':'Interests','JobTitle':'JobTitle','Organization':'Organization','LastModifiedTime':'LastModifiedTime','Memberships':'Memberships','PastProjects':'PastProjects','Path':'Path','PictureURL':'PictureURL','PreferredName':'PreferredName','Responsibilities':'Responsibilities','Schools':'Schools','ServiceApplicationID':'ServiceApplicationID','SipAddress':'SipAddress','Skills':'Skills','UserProfile_GUID':'UserProfile_GUID','WorkEmail':'WorkEmail','OfficeNumber':'OfficeNumber','OfficeLocator':'OfficeLocator','WorkPhone':'WorkPhone','MobilePhone':'MobilePhone','HomePhone':'HomePhone','WorkId':'WorkId','YomiDisplayName':'YomiDisplayName'</mso:ManagedPropertyMapping>
    <mso:HtmlDesignStatusAndPreview msdt:dt="string">https://uif.sharepoint.com/search/_catalogs/masterpage/Display%20Templates/Search/UIF_Item_Person.html, Conversion successful.</mso:HtmlDesignStatusAndPreview>
    <mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded>
    <mso:HtmlDesignPreviewUrl msdt:dt="string"></mso:HtmlDesignPreviewUrl>
    </mso:CustomDocumentProperties>
    </xml><![endif]-->
    </head>
    <body>
    <div id="Item_Person">
    <!--#_
    if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
    var id = ctx.ClientControl.get_nextUniqueId();
    var itemId = id + Srch.U.Ids.item;
    var hoverId = id + Srch.U.Ids.hover;
    $setResultItem(itemId, ctx.CurrentItem);
    var container_id = id + "_peopleContainer";
    var hhProps = Srch.U.createXMLDocument("<root>" + ctx.CurrentItem.HitHighlightedProperties + "</root>");
    var encodedPath = $urlHtmlEncode(ctx.CurrentItem.Path);
    var has_pn = !$isEmptyString(ctx.CurrentItem.PreferredName);
    var has_sip = !$isEmptyString(ctx.CurrentItem.SipAddress);
    var has_email = !$isEmptyString(ctx.CurrentItem.WorkEmail);
    var has_onumber = !$isEmptyString(ctx.CurrentItem.OfficeNumber);
    var has_bolocation = !$isEmptyString(ctx.CurrentItem.BaseOfficeLocation);
    var has_olocator = !$isEmptyString(ctx.CurrentItem.OfficeLocator);
    var has_wphone = !$isEmptyString(ctx.CurrentItem.WorkPhone);
    var has_mphone = !$isEmptyString(ctx.CurrentItem.MobilePhone);
    var has_hphone = !$isEmptyString(ctx.CurrentItem.HomePhone);
    var has_jt = !$isEmptyString(ctx.CurrentItem.JobTitle);
    var has_dp = !$isEmptyString(ctx.CurrentItem.Department);
    var has_org = !$isEmptyString(ctx.CurrentItem.Organization);
    var has_abme = !$isEmptyString(ctx.CurrentItem.AboutMe);
    var has_resp = !$isEmptyString(ctx.CurrentItem.Responsibilities);
    var has_pp = !$isEmptyString(ctx.CurrentItem.PastProjects);
    var has_ski = !$isEmptyString(ctx.CurrentItem.Skills);
    var has_sch = !$isEmptyString(ctx.CurrentItem.Schools);
    var has_int = !$isEmptyString(ctx.CurrentItem.Interests);
    var has_vlm = !$isEmptyString(ctx.CurrentItem.ProfileViewsLastMonth);
    var has_vlw = !$isEmptyString(ctx.CurrentItem.ProfileViewsLastWeek);
    var has_query = !$isEmptyString(ctx.CurrentItem.ProfileQueriesFoundYou);
    var isSelfSrch = (has_vlm == true || has_vlw == true || has_query == true);
    var delimiter = "";
    var userPersonaId = $htmlEncode(id) + "_peopleUserPersona";
    var uSip = ctx.CurrentItem.SipAddress;
    var uEmail = ctx.CurrentItem.WorkEmail;
    var uName = ctx.CurrentItem.PreferredName;
    var uPicUrl = ctx.CurrentItem.PictureURL;
    var hoverUrl = "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Person_HoverPanel.js";
    _#-->
    <div id="_#= $htmlEncode(container_id) =#_" class="ms-srch-people-outerContainer ms-srch-resultHover">
    <div id="_#= $htmlEncode(itemId) =#_" name="Item" class="ms-srch-people-item" onmouseover="EnsureScriptParams('SearchUI.js', 'HP.Init', event, '_#=$scriptEncode(itemId) =#_', '_#=$scriptEncode(hoverId) =#_', '_#=$scriptEncode(hoverUrl) =#_');" onmouseout="EnsureScriptParams('SearchUI.js', 'HP.Hide');">
    <div id="_#= $htmlEncode(hoverId) =#_" class="ms-srch-hover-outerContainer"></div>
    <div id="UserPersonaContainer">
    <div id="UserPersona">
    <div id="_#= userPersonaId =#_"></div>
    </div>
    </div>
    <div id="UserInfoContainer">
    <div id="ContactInfo">
    <div id="NameField">
    <!--#_
    var encodedName = (has_pn == true) ? $htmlEncode(ctx.CurrentItem.PreferredName) : $htmlEncode(ctx.CurrentItem.YomiDisplayName);
    var displayName = Srch.U.getSingleHHXMLNodeValue(hhProps, "preferredname");
    if ($isEmptyString(displayName)) { displayName = encodedName }
    _#-->
    <div id="NameValue" class="ms-srch-ellipsis ms-textLarge">
    <a clicktype="Result" id="NameFieldLink" href="_#= encodedPath =#_" title="_#= encodedName =#_">_#= displayName =#_</a>
    </div>
    </div>
    <!--#_
    if(has_jt == true) {
    _#-->
    <div id="JobTitleField">
    <!--#_
    var encodedJtitle = $htmlEncode(ctx.CurrentItem.JobTitle);
    var displayJtitle = Srch.U.getSingleHHXMLNodeValue(hhProps, "jobtitle");
    if ($isEmptyString(displayJtitle)) { displayJtitle = encodedJtitle }
    _#-->
    <div id="JobTitleValue" class="ms-srch-ellipsis" title="_#= encodedJtitle =#_"> _#= displayJtitle =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_dp == true) {
    _#-->
    <div id="DepartmentField">
    <!--#_
    var encodedDept = $htmlEncode(ctx.CurrentItem.Department);
    var displayDept = Srch.U.getSingleHHXMLNodeValue(hhProps, "department");
    if ($isEmptyString(displayDept)) { displayDept = encodedDept }
    _#-->
    <div id="DepartmentValue" class="ms-srch-ellipsis" title="_#= encodedDept =#_"> _#= displayDept =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_org == true) {
    _#-->
    <div id="Organization">
    <!--#_
    var encodedorg = $htmlEncode(ctx.CurrentItem.Organization);
    var displayorg = Srch.U.getSingleHHXMLNodeValue(hhProps, "Organization");
    if ($isEmptyString(displayorg)) { displayorg = encodedorg }
    _#-->
    <div id="OrganizationValue" class="ms-srch-ellipsis" title="_#= encodedorg =#_"> _#= displayorg =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_olocator == true) {
    _#-->
    <div id="OfficeLocator">
    <!--#_
    var encodedolocator = $htmlEncode(ctx.CurrentItem.OfficeLocator);
    var displayolocator = Srch.U.getSingleHHXMLNodeValue(hhProps, "OfficeLocator");
    if ($isEmptyString(displayolocator)) { displayolocator = encodedolocator }
    _#-->
    <div id="OfficeLocatorValue" class="ms-srch-ellipsis" title="_#= encodedolocator =#_"> <b>Office Locator:</b> <a clicktype="Result" id="NameFieldLink" href="_#= ctx.CurrentItem.OfficeLocator =#_">_#= ctx.CurrentItem.OfficeNumber =#_</a></div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_bolocation == true) {
    _#-->
    <div id="OfficeBaseLocation">
    <!--#_
    var encodedbolocation = $htmlEncode(ctx.CurrentItem.BaseOfficeLocation);
    var displaybolocation = Srch.U.getSingleHHXMLNodeValue(hhProps, "BaseOfficeLocation");
    if ($isEmptyString(displaybolocation)) { displaybolocation = encodedbolocation }
    _#-->
    <div id="BaseOfficeLocationValue" class="ms-srch-ellipsis" title="_#= encodedbolocation =#_"> <b>Office Location:</b> _#= displaybolocation =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_wphone == true) {
    _#-->
    <div id="WorkPhone">
    <!--#_
    var encodedwphone = $htmlEncode(ctx.CurrentItem.WorkPhone);
    var displaywphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "WorkPhone");
    if ($isEmptyString(displaywphone)) { displaywphone = encodedwphone }
    _#-->
    <div id="WorkPhoneValue" class="ms-srch-ellipsis" title="_#= encodedwphone =#_"> <b>Office Phone:</b> _#= displaywphone =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_mphone == true) {
    _#-->
    <div id="MobilePhone">
    <!--#_
    var encodedmphone = $htmlEncode(ctx.CurrentItem.MobilePhone);
    var displaymphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "MobilePhone");
    if ($isEmptyString(displaymphone)) { displaymphone = encodedmphone }
    _#-->
    <div id="MobilePhoneValue" class="ms-srch-ellipsis" title="_#= encodedmphone =#_"> <b>Mobile Phone:</b> _#= displaymphone =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_hphone == true) {
    _#-->
    <div id="HomePhone">
    <!--#_
    var encodedhphone = $htmlEncode(ctx.CurrentItem.HomePhone);
    var displayhphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "HomePhone");
    if ($isEmptyString(displayhphone)) { displayhphone = encodedhphone }
    _#-->
    <div id="HomePhoneValue" class="ms-srch-ellipsis" title="_#= encodedhphone =#_"> <b>Home Phone:</b> _#= displayhphone =#_ </div>
    </div>
    <!--#_
    _#-->
    </div>
    <!--#_
    if(has_resp == true || has_ski == true || has_pp == true || has_int == true || has_sch == true) {
    _#-->
    <div id="MoreInfoShort">
    <!--#_
    if(has_resp == true) {
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "responsibilities", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Responsibilities, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="ResponsibilitiesValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Responsibilities) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    } else if(has_ski == true) {
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "skills", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Skills, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="SkillsValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Skills) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    } else if(has_pp == true) {
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "pastprojects", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.PastProjects, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="PastProjectsValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_PastProjects) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    } else if(has_int == true) {
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "interests", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Interests, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="InterestsValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Interests) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    } else if(has_sch == true){
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "schools", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Schools, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="SchoolsValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Schools) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    _#-->
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_abme == true || has_ski == true || has_pp == true || has_int == true) {
    _#-->
    <div id="MoreInfoLong">
    <!--#_
    if(has_abme == true) {
    var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getSingleHHXMLNodeValue(hhProps, "aboutme"), 125);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(ctx.CurrentItem.AboutMe, 125)) }
    if (!Srch.U.e(encodedVal)) {
    _#-->
    _#= encodedVal =#_
    <!--#_
    _#-->
    <!--#_
    } else if(has_ski == true && has_resp == true) {
    var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getMultipleHHXMLNodeValues(hhProps, "skills", 3, delimiter), 125);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Skills, 3, delimiter), 125)) }
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Skills) =#_ </span>
    _#= encodedVal =#_
    <!--#_
    _#-->
    <!--#_
    } else if(has_pp == true && (has_ski == true || has_resp == true)) {
    var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getMultipleHHXMLNodeValues(hhProps, "pastprojects", 3, delimiter), 125);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.PastProjects, 3, delimiter), 125)) }
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_PastProjects) =#_ </span>
    _#= encodedVal =#_
    <!--#_
    _#-->
    <!--#_
    } else if(has_int == true && (has_pp == true || has_ski == true || has_resp == true)) {
    var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getMultipleHHXMLNodeValues(hhProps, "interests", 3, delimiter), 125);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Interests, 3, delimiter), 125)) }
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Interests) =#_ </span>
    _#= encodedVal =#_
    <!--#_
    _#-->
    <!--#_
    _#-->
    </div>
    <!--#_
    _#-->
    <!--#_
    if(isSelfSrch == true) {
    _#-->
    <hr class="ms-srch-people-item-separator" />
    <div id="SelfSearchInfo">
    <div id="Heading">
    <a id="EditProfileLink" href="_#= $urlHtmlEncode(ctx.CurrentItem.EditProfileUrl) =#_"> _#= $htmlEncode(Srch.Res.item_People_EditProfileLink) =#_ </a>
    </div>
    <div id="Frequency">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_SelfSearchFrequency) =#_ </span>
    <ul id="FrequencyCard">
    <li id="MonthlyViews">
    <!--#_
    var encodedVal = (ctx.CurrentItem.ProfileViewsLastMonth == 1) ? $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsMonths_Singular, ctx.CurrentItem.ProfileViewsLastMonth)) :
    $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsMonths_Plural, ctx.CurrentItem.ProfileViewsLastMonth));
    _#-->
    _#= encodedVal =#_
    </li>
    <li id="DailyViews">
    <!--#_
    var encodedVal = (ctx.CurrentItem.ProfileViewsLastWeek == 1) ? $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsWeeks_Singular, ctx.CurrentItem.ProfileViewsLastWeek)) :
    $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsWeeks_Plural, ctx.CurrentItem.ProfileViewsLastWeek));
    _#-->
    _#= encodedVal =#_
    </li>
    </ul>
    </div>
    <!--#_
    if(has_query == true) {
    _#-->
    <div id="Keywords">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_SelfSearchKeywords) =#_ </span>
    <!--#_
    var encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.ProfileQueriesFoundYou, 5, delimiter), 84));
    if (!Srch.U.e(encodedVal)) {
    _#-->
    _#= encodedVal =#_
    <!--#_
    _#-->
    </div>
    <!--#_
    _#-->
    <!--#_
    if(!Srch.U.n(ctx.CurrentItem.LastModifiedTime))
    var lastModifiedTime = ctx.CurrentItem.LastModifiedTime;
    var encodedLastModifiedTimeId = $htmlEncode(id + "_lastModifiedTime");
    AddPostRenderCallback(ctx, function()
    Srch.U.renderFriendlyTimeIntervalString(lastModifiedTime, encodedLastModifiedTimeId);
    _#-->
    <div id="LastModifiedTime">
    <span class="ms-textSmall">_#= $htmlEncode(Srch.Res.item_People_LastModified) =#_</span>
    <span id="_#= encodedLastModifiedTimeId =#_" class="ms-textSmall ms-srch-ellipsis"></span>
    </div>
    <!--#_
    _#-->
    </div>
    <!--#_
    _#-->
    </div>
    </div>
    </div>
    <!--#_
    AddPostRenderCallback(ctx, function(){
    EnsureScriptFunc("clienttemplates.js", "RenderUserFieldWorker", function() {
    var getUserPersona = function() {
    var renderCtx = new ContextInfo();
    renderCtx.Templates = {};
    renderCtx.Templates["Fields"] = {};
    var fieldSchemaData = { "PictureOnly":"1", "PictureSize": "Size_72px"};
    var listSchema = {"EffectivePresenceEnabled": "1", "PresenceAlt": Srch.Res.item_People_NoPresenceAvailable};
    var userData = {"title": uName, "email": uEmail, "picture": uPicUrl, "sip": uSip};
    var personaControlElement = document.getElementById(userPersonaId);
    if (!Srch.U.n(personaControlElement))
    personaControlElement.innerHTML = RenderUserFieldWorker(renderCtx, fieldSchemaData, userData, listSchema);
    if(typeof(ctx.EnqueueImnRequest) == "undefined") { ctx.EnqueueImnRequest = false; }
    if (ctx.EnqueueImnRequest == false) {
    ctx.ClientControl.add_oneTimeResultRendered(function(){ if (typeof(ProcessImn) != "undefined") { ProcessImn(); } });
    ctx.EnqueueImnRequest = true;
    getUserPersona();
    _#-->
    <!--#_
    _#-->
    </div>
    </body>
    </html>
    I'm not a developer, so please keep that in mind. I do appreciate any help. Thanks!

    Hi,
    According to your post, my understanding is that you want to add Horizontal Line in People Search Results Page.
    I recommend that you can use the
    HTML <hr> Tag in the display template file.
    You can add the code below to the html page under the <div id="NameField"></div>
    <div>
    <div> Office:_#= ctx.CurrentItem.OfficeNumber =#_ </div>
    <div> Department:_#= ctx.CurrentItem.Department =#_ </div>
    <hr>
    <div> Organization: _#= ctx.CurrentItem.Organization =#_ </div>
    <div> Organization:<img id="PicPreview" src="_#= ctx.CurrentItem.Organization =#_"/> </div>
    <hr>
    <div> OfficeLocator:<a clicktype="Result" id="NameFieldLink" href="_#= ctx.CurrentItem.OfficeLocator =#_">_#= ctx.CurrentItem.OfficeNumber =#_</a> </div>
    </div>
    The result is as below:
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • My "What's New" procedure doesn't show the result Search result page

    Hi,
    I needed a "What's New" report for a content area. The advanced search screen has the option to query with the create date, but you can save the search with something like #sysdate-7. So I created the following procedure:
    create or replace procedure whatsnew
    (p_caid in number default 0
    ,p_folder_id in number default 1
    ,p_days in number default 7
    ) is
    a_attribute_id portal30.wwsbr_type.array;
    a_attribute_name portal30.wwsbr_type.array;
    a_attribute_caid portal30.wwsbr_type.array;
    a_attribute_data_type portal30.wwsbr_type.array;
    a_attribute_operator portal30.wwsbr_type.array;
    a_attribute_value portal30.wwsbr_type.array;
    begin
    a_attribute_id(1) := '10';
    a_attribute_name(1) := 'createdate';
    a_attribute_caid(1) := '0';
    a_attribute_data_type(1) := 'date';
    a_attribute_operator(1) := portal30.wwsbr_search_api.greater_than;
    a_attribute_value(1) := to_char(sysdate-p_days);
    portal30.wwsbr_search_api.submit_search
    (p_search_terms => null
    ,p_caid => p_caid
    ,p_current_caid => p_caid
    ,p_folder_id => p_folder_id
    ,p_folder_caid => p_caid
    ,p_include_child_folders => portal30.wwsbr_search_api.yes
    ,p_attribute_id => a_attribute_id
    ,p_attribute_name => a_attribute_name
    ,p_attribute_caid => a_attribute_caid
    ,p_attribute_data_type => a_attribute_data_type
    ,p_attribute_operator => a_attribute_operator
    ,p_attribute_value => a_attribute_value
    end;
    Now you can call this from a dynamic page component (have it displayed as portlet), or include it as an URL item in the content area (/pls/portal30/portal30.whatsnew?p_caid=33&p_folder_id=1&p_days=7).
    This work fine and show the search result. Now I've customized the Search Result Page, but it seems that wwsbr_search_api is navigating to a standard (fixed layout) search result screen (square item/folder links in stead of tabs) and not to my customized Search Result Page. If I click the submit button in the result screen then it navigates to my customized Search Result Page.
    So why doesn't wwsbr_search_api navigate to the customized Search Result Page, or am I doing something wrong ?
    Regards,
    Willem-Pieter van der Lugt
    Oracle Consulting NL

    Hi,
    I just saw topic http://technet.oracle.com:89/ubb/Forum82/HTML/000617.html with the answer pointing to bug 1869531.
    regards,
    Willem-Pieter van der Lugt

Maybe you are looking for

  • T420 Wearing System Board Insulation in Battery Compartment

    From many insertions and removals of batteries, the insulation on the system board of my T420 has begun to wear under the battery (you can see it under the alignment tongue in the following photo).  The wear is a bit more pronounced than visible in t

  • Dont install the Nvidia System Utility!!

    Today i had the great idea to install nvidia's system utility to tweak my ram settings in windows. After that i had a system freeze, no prob normally, but after the restart of my pc, my usb mouse dont work.....i think what ??? ok reboot straight in b

  • Crystal Report + Web Services Security Help!

    Hello all, I am trying to design a Crystal Report (using CR XI 2 and/or CR 2008) and using a web service as a data source.  I've developed the web service in .NET and have control over the IIS directory it is hosted on.  I've set the authentication f

  • Processing records

    Hi, My question is not specifically about Oracle, but how to design/implement a solution against a particular use case. The use case is as follow. A server engine populates data into an Oracle 9 database continuously and asynchronously. This data is

  • Integer and java.lang.Integer?

    hi I'm using DefaultTableModel method getValueAt which takes 2 integers as parameters i have the vector colnumbers which has integers in it. Im trying to get these integers back out again to use in the getValue at method but the compilercomplains tha