sharepoint-2007

SharePoint Custom JS file Best Practice

╄→гoц情女王★ 提交于 2021-02-06 04:26:10
问题 I made a custom master page. I also made a custom CSS file, which I uploaded to "Style Library". I link to this CSS file by: <SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/coe/mainCOE.css%>" runat="server"/> Now I want to make a custom JS file, and link to it in the custom master page. 1. Where should I upload the JS file, make a folder like the "Style Library"? 2. Is there a SharePoint way to link to the JS file, like the one above for a CSS file? 回答1: You can

Sharepoint choice field

只愿长相守 提交于 2021-01-28 05:10:24
问题 I need a choice field (in a site column) to reference a list I am importing into sharepoint. This list will very infrequently be updated to add additional choices. How would I create this column? Programmatically? Well see it is a lookup per say... just trying to figure out how to code it... I'm assuming I need to import the list first as a new content type. Then create a lookup column (with multiple) for the content type?!? 回答1: Here's some code that will add a lookup field to an exsisting

SharePoint site as R directory

岁酱吖の 提交于 2020-06-29 05:07:24
问题 I have figured out a way to load files from a SharePoint site into R but is there a way to make the site itself a default R directory? I tried the shortcut and changing properties to the link but when I open R that doesn't work 回答1: Probably there's no way, because Sharepoint folders are managed by Windows Explorer's shell extension. They doesn't exist in local file system, so R cannot see them. 回答2: I figured out a way around it. You can't use the link for the intranet site, but if you use

SP 2007 - Webpart cannot be displayed

你。 提交于 2020-01-16 21:58:51
问题 Error: "A Webpart on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe" Trying to find the details of this error in source-code but not quite sure where the exact problem is located. refer to This Thread for previous fixes performed. Any pointers on a good location to start? DLL: TCBOE.ChartPart.dll Namespace: TCBOE.Chartpart FeatureReceiver.vb Private Shared Sub AddOrRemoveChartHandlerToWebConfig(ByVal web As SPWebApplication, ByVal remove

how to show current user's inbox in sharepoint 2007

£可爱£侵袭症+ 提交于 2020-01-16 04:30:26
问题 I found this web part for Exchange 2003, but in exchange 2007 even after user login, web part shows exchange 2007 owa login page (instead of current user inbox). How I can show current user's exchange 2007 inbox in moss 2007? Any Idea? 回答1: The solution is to create a wrapper webpart around the out of the box OWA webpart and have that access the inbox by using the currently logged in user's emailaddress. Here's the code P.S. (note that the address of the webaccess is set in the appsettings

CAML “In” Operator Equivalent For SharePoint Services 3 (SharePoint 2007)

浪子不回头ぞ 提交于 2020-01-15 12:40:08
问题 Today I came across the need to write a CAML query that uses WHERE [Field] IN [Values]. I wanted to query a List where the list item's Title was contained by a collection of strings. After receiving several errors running my query, I realized the In operator was new to SharePoint 2010 but I'm still in SharePoint 2007. As a result, the only option is to use multiple Or operators. Additionally an Or operator can only operate on 2 values at a time so this requires nested Or operators. How can

jquery SPGetCurrentUser() to get the current logged in username in sharepoint 2007

眉间皱痕 提交于 2020-01-15 07:43:36
问题 I would like to use jquery to get the current logged in username and pass the user information to the connectible webpart. This is what I have written in CEWP. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function() { var thisUserAccount = $().SPServices.SPGetCurrentUser({ fieldName: "Name", debug: false }); alert(thisUserAccount); } ); </script> but nothing is hapening. I dont

Create Feature to Upload Site Template File (.stp) in MOSS

别来无恙 提交于 2020-01-15 06:09:10
问题 Following on from this question, I have created a feature to upload an site template file as part of an automated build of a SharePoint site. However, while the feature deploys the .stp file correctly to the hive, and the solution appears in the CAS | Operations | Solution Management page, the site template does not appear in the site template gallery as expected. I have given the contents of the feature.xml and elements.xml files below; can anyone spot where I am going wrong? feature.xml <

What is a proper way to store site-level global variables in a SharePoint site?

旧巷老猫 提交于 2020-01-09 11:12:23
问题 One thing that has driven me nuts about SharePoint2007 is the apparent inability to have defineable settings that apply specifically to a site or site collection itself, and not the content. I mean, you have some pre-defined settings like the Site Logo, the Site Name, and various other things, but there doesn't appear to be anywhere to add new kinds of settings. The application I am working on needs to be able to create multiple kinds of "project site collections" that all follow a basic

Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) in SharePoint

强颜欢笑 提交于 2020-01-06 15:12:12
问题 After googling for many hours for a solution for the above Sharepoint exception, I have come to SO for help on this one... I believe the cause of me getting the above exception is because of the following code: try { using (SPSite site = new SPSite(siteId, spUserToken)) { using (SPWeb web = site.OpenWeb(webId)) { createNewSite(web); } } } createNewSite(web) changes the name and URL of "web" using AllowUnsafeUpdates, so when it comes out of the method it has been changed. My few months worth