Skip to main content

SharePoint 2013 CTX variable and its function part 3

This is my third post of "SharePoint 2013 CTX variable and its function" series 

Other Utility Functions

  • Srch.U.isTableTypeof(resultTable, tableTypeName): Indicates whether the given table matches tableTypeName.
  • Srch.U.isSubstrateTable(resultTable): true if the table is a substrate table; false otherwise
  • Srch.U.isSPFSKU():true if the host is a SharePoint Foundation; false otherwise.
  • Srch.U.isSameHost(url, hostname): Indicates whether the given URL contains the same hostname.
  • Srch.U.isRTL():Indicates whether the document has the RTL attribute.
  • Srch.U.isProtocolAllowed(value): true if the URL uses a supported protocol; otherwise, false.
  • Srch.U.isPrimitive: Indicates whether the given object is a function, complex project.
  • Srch.U.getSingleHHXMLNodeValue(xmlDoc, nodeName): Gets a single hit-highlighted XML node.
  • Srch.U.isPageInMSdMOde():Indicates whether the current page is in MDS(minimal Download Strategy mode) mode.
  • Srch.U.isPageInEditMode():Indicates whether the current page is in edit mode.
  • Srch.U.isIntentTable(resultTable):Indicates whether the specified table is an intent table. true if the table is an intent table; false otherwise.
  • intent lock are : Used to establish a lock hierarchy. 
  • The types of intent locks are: intent shared (IS), intent exclusive (IX), and shared with intent exclusive (SIX).
  • Srch.U.isFirstRankedBlock(resultTable): Indicates whether the first result in the result table is ranked.
  • Srch.U.isFirstPromotedBlock(resultTable):Indicates whether the first result in the result table is promoted.
  • Srch.U.isEnterKey(keyCode): Indicates whether the specified key code is the Enter button’s code or not. true if the key code is not null and equal to the ‘\r’ or ‘\n’ character; false otherwise.
  • Srch.U.isDefaultSiteSearchPage():Indicates whether the current page is the default site search page (osssearchresults.aspx).true if the page is the default site search page; false otherwise. 
  • Srch.U.includeScript(templateLink, relativeLink) : Registers the script.
  • $includeScript(this.url, "~sitecollection/_catalogs/masterpage/tests/script1.js");
    Or Srch.U.includeScript(this.url, "~sitecollection/_catalogs/masterpage/tests/script1.js");
  • Srch.U.includeCSS(templateLink, relativeLink): Registers the CSS.
  • $includeCSS (this.url, "~sitecollection/_catalogs/masterpage/tests/test.css");
    Srch.U.includeCSS (this.url, "~sitecollection/_catalogs/masterpage/tests/test1.css");
  • Srch.U.hideElement(element):Hides the given DOM element by setting its display attribute to hidden.
  • Srch.U.showElement (element):Visible the given DOM element.
  • Srch.U.getWorkspace(fallback) : Gets the default workspace (s4-workspace) element.The default workspace. If no default workspace is available, the fallback element will be returned.
  • Srch.U.getUnEncodedMultiValuedResults :Gets a trimmed string that is un-encoded containing multi-valued results.
  • Srch.U.getTrimmedProcessedHHXMLString(value, cutOff): Trims the hit-highlighted string; adds an ellipsis at the end if required.The truncated result if the given string is longer than the cut off value; otherwise the same string will be returned.
  • Srch.U.getTableProperty(parent, propName): Gets the given property value from a property bag.
  • Srch.U.getTableOfType(tableCollection, tableTypeName): Gets the first table of the given type in a result table collection.

Comments

Popular posts from this blog

SharePoint RPC Protocols Examples Using OWSSVR.DLL

What is SharePoint RPC Protocols? Part 1 This reference includes information about the methods and usage of SharePoint Foundation Remote Procedure Call (RPC) protocol. This protocol can be used in Win32-based applications or in ASPX applications to make HTTP POST requests to the server. Methods in this protocol that do not modify the contents of the database can also be used in URL protocol to make HTTP GET requests. Definition taken from http://msdn.microsoft.com/en-us/library/ms448359.aspx You will find the OWSSVR.DLL in SharePoint 2010 Server Physical Path: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI and MOSS C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI OWSSVR.DLL List of commands DialogView  Display ExportList GetProjSchema GetUsageBlob HitCounter RenderView To read more about the OWSSVR.DLL command Please read the URL Protocol from Microsoft Blog having a URL http://msdn.microsoft.com/en...

SharePoint 2013 Search Database Part 1

SharePoint 2013 Search architecture drastically change, as earlier in FS4SP 2010 we have 2 search applications “FASTContentSSA” and “FASTQuerySSA” and 7 total database in use. Following are the List of DB (FS4SP) FASTContentSSA Search Service Application DB Search Service Application Crawl Store DB Search Service Application Property Store DB FASTQuerySSA Search Service Application DB Search Service Application Crawl Store DB Search Service Application Property Store DB FASTSearchAdminDatabase : Fast Search Admin Database  In SharePoint 2013 search has only 1 Search Service application and 4 database in use. No property store database need any more, now the properties are directly stored inside the index component and all the index directly indexed to the physical system where FS4SP data comes from database as well as from the File system now data directly stored and indexed/ retried from the Physical disk because of this performance increase and search experien...

STS CryptographicException Error : Key set does not exist

Common mistakes Both SharePoint Site and SSO Site NOT running on the same application pool. Application pool identity user doesn’t have permission to access the certification.  Solution to this problem Set the same identity pool to  : 2. Be sure to grant rights to the certificate for the App Pool running the web service Start -> Run -> MMC File -> Add/Remove Snapin Add the Certificates Snap In Select Computer Account, then hit next Select Local Computer (the default), then click Finish On the left panel from Console Root, navigate to Certificates (Local Computer) -> Personal -> Certificates You're certificate will most likely be here. Right click on your certificate -> All Tasks -> Manage Private Keys Set you're private key settings here. Add app pool account Reset iis