sharepoint-2007

How to get site collection url using javascript? [closed]

送分小仙女□ 提交于 2019-12-11 08:18:51
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am stuck up in a requirement where i need to get the site collection url to pass in a function. Please help? 回答1: You can use the L_Menu_BaseUrl variable, it is set automatically by some of SharePoint's default

how to add a color to a line in sharepoint 2007 list that has a specific text?

廉价感情. 提交于 2019-12-11 08:09:53
问题 I would like to know how to add a color to a line in sharepoint 2007 list if in one field there is a specific text contained ? for example : I have a list that have three fields: list1 1.id 2.name 3.full description now i want to show only the first and the second field to the user. list1 id name 1 abc 2 edv second thing, i want to give a color (let say red) to a row that contains in the hidden field - "full description", a text with the word for example 'color'. I found a javascript code

Scope of a feature activated Custom Sharepoint-Timer Job

有些话、适合烂在心里 提交于 2019-12-11 07:32:45
问题 So I'm developing a custom timer job for sharepoint using the SPJobDefinition. This job is activated through a feature receiver. As I understand it the SPJobDefinition runs on the web-application. if the feature scope is site or web based, is there any way code-wise to determine which site the feature is activated through in the Customer Job? To get a clearer picture of what I'm trying to achieve, the job itself is a custom "Alert Me" notification job. What I'd like to do, is be able to

Programmatically Add Site Template (.stp) to SharePoint

岁酱吖の 提交于 2019-12-11 06:05:50
问题 I would like to programmatically add a custom site template (.stp file) to a MOSS team site collection as part of my build process. Can anyone point me towards the best way to do this? Thanks, MagicAndi. 回答1: A way of doing this with a feature would be to use the File element. STP files live in /_catalogs/wt so this type of feature will upload the file. Update: More details in Create Feature to Upload Site Template File (.stp) in MOSS but for completeness here is the elements.xml: <Elements

Custom E-Mail Event for Sharepoint Upon InfoPath Form Submit

泪湿孤枕 提交于 2019-12-11 06:04:33
问题 A customer wants an e-mail notification sent to a select group of people when a new InfoPath form is submitted to a particular Document Library on their SharePoint 2007 setup. Easy, right? Use a custom set of rules for an e-mail submission in InfoPath, plop in the addresses, use a fancy equation to construct a useful e-mail subject line... and done. Worked like a charm. Problem solved in just a few minutes... However, the customer doesn't want the whole form e-mailed out or even attached to

Programmatically access a SharePoint document library?

北慕城南 提交于 2019-12-11 06:01:51
问题 How would I programmatically access a SharePoint document library from another machine? I want to recursively scan all the folders and generate a list of files with a certain custom property. 回答1: You'll need to use the List Data Retrieval web service. Example code using the service can be found on the Query method page. 回答2: Vinny is correct. I just wanted to elaborate a little on the next version of SharePoint, SharePoint 2010. There are several client based models for access that

ows_PermMask in SharePoint WebServices

五迷三道 提交于 2019-12-11 05:38:50
问题 Lists.GetListItems form the Lists Web Service returns a ows_PermMask attribute (16 character hexadecimal) for each list item. Anyone know how this attribute maps to the user's permissions or where the meaning of this attribute is documented? 回答1: This site should offer you a little more detail: http://mdasblog.wordpress.com/2009/02/03/permmask-in-sharepoint-dvwps/ It is just a built in field containing the permissions required: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint

How to get all sites and sub-sites in SharePoint and access an image library/list?

穿精又带淫゛_ 提交于 2019-12-11 05:04:08
问题 How to get all sites and sub-sites in SharePoint and access an image library/list? I am looking forward to achieve this via the SharePoint object model. Inside each site or subsite I want to access an image library/list, After getting to this list, how do I set the option of 'Required Content Approval for Selected Items' from 'Yes' to 'No'? 回答1: Use the SPFarm object to get all web applications then use SPWebApplication to get all sitecollection and then use SPSite to get all Webs. You have

Issue with SQL Stored procedure

对着背影说爱祢 提交于 2019-12-11 04:15:03
问题 I could see the below entries in the ULS log 02/08/2010 14:36:46.12 w3wp.exe (0x15F4) 0x18A0 CMS Publishing 8x0a High AppDomainUnloadListener.RegisterSelf() entered lock(this=15368010) 02/08/2010 14:37:25.59 w3wp.exe (0x15F4) 0x1744 Windows SharePoint Services Database 880i High System.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.proc_GetDatabaseInformation'. 02/08/2010 14:37:32.53 w3wp.exe (0x15F4) 0x1744 Windows SharePoint Services Database 98rs High An error occured

401 IIS Error for SearchAdmin.asmx

痴心易碎 提交于 2019-12-11 02:09:26
问题 I have a three server SharePoint 2007 MOSS environment where my IIS logs continue to get pounded with 401.1 and 401.2. These logs are filling up so much that they consume my HDD. I can tell from the IP that these errors are from POST requests from one of my front end web server. Here is the sequence of logs that repeat forever. (The xxx IP's are all the same) 2011-02-10 23:25:42 W3SVC951338967 xxx.xx.xxx.xx POST /SharedServices1/Search/SearchAdmin.asmx - 56738 MyDomain\SQLSAServiceAccount xxx