sharepoint-2007

How to create a Global connectionstring to SQL Server Database for my SharePoint site

那年仲夏 提交于 2019-12-08 01:54:26
问题 This is my connection string inside my web.config of my SharePoint site. Its sitting just below the closing SharePoint tag. <connectionStrings> <add name="SAMRASConnectionString" connectionString="Data Source=JOHANDEVVM; Initial Catalog=samrasDB; User ID=Johan; Password=password; Trusted_Connection=True" providerName="System.Data.SqlClient" /> </connectionStrings> Where must i place it in order to get a Global Connectionstring. Reason be: When i go to my IIS site Properties -> ASP.NET tab ->

Sharepoint MsAccess synchronization

徘徊边缘 提交于 2019-12-08 01:32:33
问题 HI! Does anyone have any idea how to synchronize MS Access data to SharePoint portal. I would like to link both of this together and trigger a workflow upon receiving a new data entry. Hope you could advice on it. Thanks! 回答1: In Access you can have so called "linked tables". You can have access linked tables with a Sharepoint installation. In Sharepoint this linked table manifests itself as a regular list, so you can have a workflow trigger on each new item created. There is a nice tutorial

How to loop through from a root web and all its subsites

丶灬走出姿态 提交于 2019-12-08 01:22:30
问题 I came across a issue that I need to solve. I want to loop through a root web and all its subsites, and want to set some properties 回答1: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.SharePoint; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { using (SPSite oSPsite = new SPSite("http://sharepointdev:2021")) { using (SPWeb oSPWeb = oSPsite.OpenWeb()) { foreach (SPList list in oSPWeb.Lists) { if ( list

0x81020014One or more field types are not installed properly. Go to the list settings page to delete these fields

心已入冬 提交于 2019-12-07 23:33:32
问题 In sharepoint when trying to update a list I am getting the error: 0x81020014One or more field types are not installed properly. Go to the list settings page to delete these fields. The Caml that is being created is: <Batch PreCalc='TRUE' OnError='Continue'> <Method ID='1' Cmd='Update'> <Field Name='ID'>4</Field> <Field Name='Flagged'>False</Field> </Method> </Batch> When I run the Caml from U2U it works fine and the field updates. When I debug my code in VS I get the error above. The code

Why is SharePoint dispalying my HTML and CSS content improperly?

两盒软妹~` 提交于 2019-12-07 12:40:25
问题 I am trying to add content to a SharePoint content editor web part, but when I do, it displays as if it's ignoring parts of my CSS. It displays fine in Firefox 3.6 and IE 8 when it's a stand-alone page, but goes all off when the same code is placed in the Content Editor web part: Click here to view Often, things that are broken in SharePoint when viewed through IE will appear correctly when the same SharePoint page is viewed in FF; this time the menu was laid out correctly, but the text was

Properly implement a webpart with postback?

别等时光非礼了梦想. 提交于 2019-12-07 04:39:16
问题 What I'm trying to do is to create a webpart that has a textbox where you can set the value of a literal (h2) on the webpart and a "save" button that posts back and then sets the literal accordingly. This works with one huge caveat; when the page loads after the postback the literal has not been changed. However if I log what is actually set in the literal it has the new value. Also if I reload the page again (F5) it displays correctly. At first I figured it must be ViewState, so I disabled

Determine which edition of SharePoint is Installed?

别来无恙 提交于 2019-12-07 04:26:41
问题 What is the most reliable way to determine which version of SharePoint is installed. Whether it is WSS or MOSS. If MOSS, whether it is standard or enterprise. I want to programmatically detect the exact SharePoint version installed.. PS: I already have posted this question at SharePoint.SE but could not find a convincing answer. 回答1: You could try to use SPFarm.Local.BuildVersion or SPWebService.ContentService.Farm.BuildVersion (from this previous question) and to build a lookup table based

Automatically copy list data from one list to another list after 1 month

强颜欢笑 提交于 2019-12-07 04:20:44
问题 I have list that having data stores dynamically once the infopath form has been submitted. I want to archive this data after 30 days of creation date of any data. can you please suggest how would i do this. see i can do this by workflow but how can i set the condition that once 30 days complete after creation of any list it will automatically copy into other list. 回答1: First I would want to question WHY you want to move it to another list? Why not simply setup a view on your main list showing

How to open URL in SSRS report in webpart to new window

微笑、不失礼 提交于 2019-12-07 03:58:41
问题 I have created a report that I will embed in Sharepoint 2007 via a webpart using a report viewer. This works well and looks rather nice, however in the report I have a text field whose action is "Go To URL". When I click on the link within the webpart the link goes to the URL but it opens the URL within the webpart. Kind of ugly. There doesnt seem to be any additional capabilities/properties of the text box in the report other than setting the URL. How can I make the link/webpart open the URL

SharePoint SiteDefinitions

孤人 提交于 2019-12-07 03:52:18
问题 I have created a simple site definition based on the publishing portal. Every time I want to use the template to create a site-collection I get the following error-message: The template you have chosen is invalid or cannot be found. I do not use any custom feature, just the default features with the publishing portal site-def. Any hints? There is a error log but it just gives me the information above: Applying template "PalfingerPlatformsOrderRoot#0" to web at URL "http://datsa0004:8080