![]() |
SPSFAQ SharePoint Server Frequently Asked Questions |
|
Customising SharePoint
SPSFAQ030132 - How to force to download dialog box to come up in Sharepoint? Shimano - 0 Comments - stephencummins - Fri, Mar 8th, 2002 - Customisation You can launch Office documents using OLE via JavaScript. The documentation can be found at the links below:
http://www.whirlywiryweb.com/q%2Fofficedocs.asp and full details of the OLE object classes can be found at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/off2000/htm l/olmscProgrammaticIdentifiers.asp One tip would be to use the "generic" ProgID such as Word.Application instead of a specific identifier such as Word.Application.9 then you can used it with different Office versions. NOTE: Unfortunately the ActiveX described are part of the Office installation and are not trusted, so you cannot use this approach on Untrusted sites, which makes it difficult to use on other then Trusted Intranet sites etc. Freddy Bang SPSFAQ030131 - Is there a webpart that can be customized to show the news files for a particular folder? - 0 Comments - stephencummins - Fri, Mar 8th, 2002 - Customisation Have a look at the advanced settings of your News webpart. There is a textbox called "Webpart specific store" at the bottom of this page. The first entry specifies the path to the displayed folder.
To get a 'new' news webpart export the existing one and reimport it to the according dashboard and change the first entry. The folder path is the URL to the folder without your server and workspace names, e.g., the path to the original news folder would be: '/portal content/news' Daniel SPSFAQ030130 - Can PKMCDO be used in ASP? If so must the computer have something installed? Crystal DeLeer - 0 Comments - stephencummins - Fri, Mar 1st, 2002 - Customisation PKMCDO is available on the SharePoint Portal Server, as well as on every machine where the SharePoint Portal Server client or PKMCDO is installed. That said, I recall some issues in using PKMCDO in an ASP, simply as underlying is the MSDAIPP.DSO provider, which is initially been written to serve a single client. The problems were related to the caching of security
credentials, such that for a subsequent request by a different user potentially the wrong credentials were used. I also recall that there are solutions to this, but my memory doesn't serve me well enough to help you here any further - pointers would be greatly appreciated as I see this question coming up every now and than. For your original problem though I would start checking your schema and your items. The schema can be found in http://<server>/<workspace>/system/schema. The normal schema lookup rules apply, they can be found in the Exchange SDK. You must have a property definition for your content class - otherwise you will never find the property on your item. Depending on the type of search (DEEP versus SHALLOW) you also need to set the indexing properties on the property definitions right. That kind of information can be found in the SharePoint Portal Server SDK, but probably best is to take a look with tools such as the Exchange Explorer (download the Exchange SDK tools separately) or Plex (on the CD in the support/tools directory). Finally check your item and see which properties are defined there. I have built these kind of solutions using WebDAV, so be reassured that it is possible. Jan Cirpka SPSFAQ030129 - How do I allign a web part so it goes in the footer aligned to the right? Hal - 0 Comments - stephencummins - Wed, Feb 13th, 2002 - Customisation Edit dbview_ie.xsl: find your section you want to change, ie footersection, and change the line: <table
id="FooterSection" cellpadding="0px" cellspacing="0px" width="50%" border="0" align="right"> Hal SPSFAQ030128 - Does anybody have an idea how to enable users to minimize web parts? Joerg - 0 Comments - stephencummins - Wed, Feb 13th, 2002 - Customisation If you look at the code, minimize is essentially "div.style.visibility = 'hidden';". With a little bit of effort, you can write your own client-side code as part of a webpart to minimize.
Dan SPSFAQ030127 - Where can I find a list of the commands and variables that can be passed to SharePoint eg cmd=NewDB? Tim - 0 Comments - stephencummins - Thu, Feb 7th, 2002 - Customisation Use the WSS Explorer to check out the contents of
portal\resources. Check out the .freg items (form registration) and look at the following properties: - urn:schemas-microsoft-com:office:forms#cmd - urn:schemas-microsoft-com:office:forms#executeurl This should clear up which commands are available and why certain pages are called in certain circumstances. Kind regards, Nikander Bruggeman Margriet Bruggeman SPSFAQ030126a - How can I change the total files search result? João Maia - 0 Comments - stephencummins - Thu, Feb 7th, 2002 - Customisation This setting is maintained in the regietry for each workspace at:
HKLM\Software\Microsoft\Search\1.0\Applications\SharePoint Portal Server\Catalogs\<workspace name>\MaxResultRows Steve This value is in Hexadecimal, so for anyone wondering how you can find the hex value of a decimal number, use the Scientific Calculator in Windows, the convention is to add 0x before the result, so if you type in 500, then click the hex radio button, the result is 1F4. 0x + 1F4 = 0x1F4 SPSFAQ030126 - How would I alter the News/Announcements Web Parts to only display items newer than 30 days based on the creation date of the document? - 0 Comments - stephencummins - Fri, Feb 1st, 2002 - Customisation Add this code to the Web Part:
Dim Mydate Dim CurrentDate CurrentDate = FormatDateTime(Date-30,0) Targetdate = Year(CurrentDate) & "-" & Month(CurrentDate) & "-" & Day(CurrentDate) Dim hq Set hq = New CHttpQuery If Err.Number <> 0 Then SaveCurrentErrorContext "Init () - Error instantiating CHttpQuery object." : Exit Function hq.IsAsync = g_fUseAsyncMode If Err.Number <> 0 Then SaveCurrentErrorContext "Init () - Error setting the query to be async." : Exit Function hq.StartSearchQuery "SELECT " & vbCRLF & _ " ""DAV:href"", " & vbCRLF & _ " ""DAV:displayname"", " & vbCRLF & _ " ""DAV:getlastmodified"", " & vbCRLF & _ " ""urn:schemas-microsoft- com:office:office#Description"", " & vbCRLF & _ " ""urn:schemas-microsoft- com:publishing:ShortcutTarget"", " & vbCRLF & _ " ""urn:schemas-microsoft- com:office:office#Title"" " & vbCRLF & _ "FROM " & vbCRLF & _ " SCOPE('DEEP TRAVERSAL OF ""/" & GetWorkspaceName() & strFolderPath & """')" & vbCRLF & _ "WHERE ""DAV:getlastmodified"" > '" & Targetdate & "' AND ""DAV:isfolder"" = FALSE" & vbCRLF & _ strOrderByFragment, 0, cRecordsToDisplay - 1, - 1, True Page 20 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 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||