![]() |
SPSFAQ SharePoint Server Frequently Asked Questions |
|
Customising SharePoint
SPSFAQ030168 - Can you give me an example of how to get one Web Part to talk to another? - 0 Comments - stephencummins - Thu, Jun 6th, 2002 - Customisation Here is a quick/simple sample displaying how to have a link in one web part load the content in a second: The first web part contains 2 links and the second loads those sites as content. The two important things that I learned in this exercise is that you can't utilize the ddsc object if your web part code is coming from an external source(must be embedded content) and that you must load the content in an iframe since a relocation command like self.location brings you out of sharepoint. Many thanks to the example provided by the Bruggemans.
<!-- web part 1 --> <html> <body> <table> <tr> <td> <a href="javascript: loadcontent('http://www.weather.com')">Weather</a> </td> </tr> <tr> <td> <a href="javascript: loadcontent('http://microsoft.com')">Microsoft</a> </td> </tr> </table> </body> <script language="javascript"> function loadcontent(path) { parent.DDSC.RaiseEvent("urn:test:links","loadcontent",path); } </script> </html> <!-- web part 2 --> <html> <body> <iframe id="main"> </iframe> </body> <script language="javascript"> DDSC.RegisterForEvent("urn:test:links","loadcontent",gopath); function gopath(path) { document.all.main.src = path; } </script> </html> -george SPSFAQ030167 - Can I use an event sink to notify me of changes in SharePoint? - 0 Comments - stephencummins - Tue, Jun 4th, 2002 - Customisation This is a question about SharePoint and the Exchange Workflow designer, since both are built on the Web Storage system, they can be integrated, but here's an important fact to consider.
Did you know that Microsoft does not support Event Sinks in Sharepoint? I've heard that Event sinks might effect dramatically indexing & search and might harm Sharepoint's build in event sink pkmevents (PKM.PKMDocEventSink) processes. Pasi Heinonen SPSFAQ030166 - Where is the global system schema? Morten - 0 Comments - stephencummins - Sun, Jun 2nd, 2002 - Customisation http://server/public/##SchemaUri##/microsoft/TahoeV1
The schema uri part is replaced by NON_IPM_SUBTREE, Enter this url in Exchange explorer and you will find the global system schema. Nikander Bruggeman Margriet Bruggeman SPSFAQ030165 - When I run a SQLSearch Query I receive only the first 100 Documents. Can I get more using ADO? Giuseppe - 0 Comments - stephencummins - Sun, Jun 2nd, 2002 - Customisation You can, using the following code:
strURL = "http://myserver/myworkspace" objConnection.Provider = "Exoledb.DataSource" objConnection.Open strURL strSQL = "SELECT ""DAV:href"" " strSQL = strSQL & "FROM scope('deep traversal of """ & strURL & """') " strSQL = strSQL & "WHERE ""DAV:ishidden"" = False " strSQL = strSQL & "AND ""DAV:isfolder"" = False " With objRecordSet .Source = strSQL .ActiveConnection = objConnection .PageSize = 100 .CacheSize = .PageSize .Open .AbsolutePage = 1 End With Siegfried SPSFAQ030164 - I'm doing a search webpart (special personal webpart) and I want to search by words in the docs content... Can anyone help me? Salva. - 0 Comments - stephencummins - Mon, May 27th, 2002 - Customisation SELECT "DAV:href"
FROM SCOPE ('DEEP TRAVERSAL OF "http://MyServer/MyWorkspace/documents" ') WHERE FREETEXT ("urn:schemas.microsoft.com:fulltextqueryinfo:contents", 'test') You could also use the shortcut 'Contents' instead of the long property name or leave it out altogether. Nikander Bruggeman Margriet Bruggeman SPSFAQ030163 - Just wondering if anyone is aware of how the format of the subscription notification emails can be modified? Jeff A. Brown - 0 Comments - stephencummins - Mon, May 27th, 2002 - Customisation There are two files present (approval.xsl & results.xsl) under http://<server>/<workspace>/system/Subscriptions/Templates.
Approval.xsl refers to the e-mail sent out for document approval, and the other refers to the e-mail sent out for subscription notification. Copy them to your local PC and modify them. I believe by default, you just can't drag'n drop them back to the original location. So what I suggest is the following: 1. Go to your SPS server and create a share where you can copy the XSL files to. 2. Copy your file(s) to that share. 3. On the server, map to the Web store like so: subst m: \\.\backofficestorage This will create an M: drive for you, and allow you to copy the files from your share directly to the required folder. Joe Dannaoui SPSFAQ030158 - Can I use XML and can talk to sharepoint ? Can I publish the content through XML? Manisha - 0 Comments - stephencummins - Sun, May 19th, 2002 - Customisation You can use ServerXMLHTTP to fire WebDAV commands and send them to SPS. To help you on the way we've included a piece of our code. Check out the SDK for more info.
Set objDoc = Server.CreateObject("Microsoft.XMLDOM") Set objResponse = Server.CreateObject("Microsoft.XMLDOM") Set objPi = objDoc.CreateProcessingInstruction ("xml", "version=""1.0""") objDoc.AppendChild objPi Set objRootNode = objDoc.CreateNode (1, "searchrequest", "DAV:") Set objDoc.DocumentElement = objRootNode Set objSqlNode = objDoc.CreateNode(1, "sql", "DAV:") objRootNode.AppendChild objSqlNode Set objQueryNode = objDoc.CreateTextNode(strQuery) objSqlNode.AppendChild objQueryNode Set objXmlHttp = Server.CreateObject ("MSXML2.ServerXMLHTTP") objXmlHttp.Open "SEARCH", strUrl, False, "myserver\Administrator", "mypassword" objXmlHttp.SetRequestHeader "Translate", "f" objXmlHttp.SetRequestHeader "Content-Type", "text/xml" objXmlHttp.SetRequestHeader "Depth", "0" objXmlHttp.Send objDoc Set objResponse = objXmlHttp.ResponseXML strResult = objResponse.XML Nikander Bruggeman Margriet Bruggeman SPSFAQ030157 - In the folder /Portal/resources, I find out some files with the extentions .freg and .pdef. Would are they? - 0 Comments - stephencummins - Sun, May 19th, 2002 - Customisation pdef files are property definitions. As you probably know document profiles consist of document properties. These properties have to be described as well. What kind of datatype they have, whether they are multi valued and so on. Property definitions are used for this.
freg files are form registrations. Every item or folder in the document store is web accessible. A form registration determines what HTML or ASP page to call when this happens. Nikander Bruggeman Margriet Bruggeman Page 16 of 24 - Jump to: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||