adil
How to monitor deployed farm solutions in sharepoint farm those causing high cpu usage
Query Suggestion in custom search webpart
Create External Content Type - SharePoint 2010
Hi,
I was trying create an external content type a in SharePoint 2010 but the SQL server connection that I want to use is MySQL (local host). However I kept getting the named pipe error, even though it is already enabled. I was just wondering is it because my SharePoint Server is running on a different server from MySQL(local host)?
Difference between Using the Object Model vs. Using Solutions while creating event receiver solution for SP2010
I am having requirement create an event receiver for SharePoint 2010 Lists. I was working with choosing the correct approach.
While reading I came across Using the Object Model vs. Using Solutions.
I am confused in using Object Model and using Solutions.
I am not getting clear idea to differentiate between Object Model and Solution.
If any one have gone through such requirement or having some articles then please shareTrancating a drop down field
Downloading all versions of a file from a document library via Client Object Model
Hi,
I'm trying to download all versions of a document from a SharePoint 2010 document library via the client object model. Downloading the current version works fine but iterating through the versions fails.
clientContext.Load(listItem); clientContext.Load(listItem.File); clientContext.Load(listItem.File.Versions); clientContext.ExecuteQuery();When I try to call OpenBinaryDirect using the url of a version (even the current one) i.e. http://localhost/_vti_history/512/LibraryName/File123.docx (which works in the browser) a get this exception:
// this works:
// FileInformation fInfo = File.OpenBinaryDirect(clientContext, listItem["FileRef"].ToString());
foreach (FileVersion version in listItem.File.Versions) {
// this does not: FileInformation fInfo = File.OpenBinaryDirect(clientContext, version.Url); StreamToFile(fInfo.Stream, fileName); }
Specified argument was out of the range of valid values.
Parameter name: serverRelativeUrl
Any ideas?
CQWP with Assigned To [Me] filter
Hi,
I want to use additional filter in CQWP to filter task list. I have used "QueryOverride" but it throws error
"There is a problem with the query that this Web Part is issuing. Check the configuration of this Web Part and try again."
<property name="QueryOverride" type="string"><![CDATA[<Where><Or><Eq><FieldRef Name="AssignedTo"/><Value Type="Integer"><UserID/></Value></Eq><Membership Type="CurrentUserGroups"><FieldRef Name="AssignedTo"/></Membership></Or></Where>]]></property>
My requirement is to display logged-in user's task list.
Thanks
Satyam MCITP, MCPD
How can we get user profile details on people picker selection
Hi Team,
I have a requirement, where I have outofthe box new item form.
Here I have two fields i.e. User(People Picker) and Email.
As soon as I select user from people picker, it should read the user profile and bind email value to Email Field.
Could you please help me what event I have to override or how to achieve this functionality.
Your help is much appreciated!!!
Thanks,
Krishna
Krishnasandeep
Hide subtasks from the Gantt in Project Web App
Hi everyone,
I would like to hide all the subtasks into the Gantt Chart. Or even if it is possible, to hide tasks following their level.
I m using Project Server 2013 and Sharepoint 2013.
Thank you.
SharePoint Dataform and List view web part disappears from Site Pages
I have Created Data Form web part in SharePoint Designer 2013 and it was working fine. But when i check out the page and check in again it disappears from the page.
Same happens with the List View web part also.
This happens very frequently when i edit the page in SharePoint designer.
Even after appending "?contents=1" to the URL i don't see my web part (refer following image).
Is there anything i need to consider while creating/editing the web part in SharePoint designer OR is it something wrong with my SharePoint Designer ?
Does anyone have any idea how to fix this?
Thanks in advance..
Truncating a drop down field
SharePoint 2010 - Document set shared columns
Hi,
I have a document set. I have associated 3 document content types (2 word and 1 excel) to this document set. This document set has some columns which I want to be shared with the associated document content types.
Above document set is associated to a document library.
From a custom list workflow, I want to automatically create an item in the document library which will have 3 documents in it (2 word and 1 excel). These documents will have some data from the shared columns.
I have been able to generate the documents but I don't see any tutorial to pass the data from the document set columns to the documents inside the document set. I don't see any option to add quick parts in the documents inside the document set.
In simple words - My requirement is to generate multiple documents (word and excel) whenever an item is created in a custom list. These documents will have some data from the custom list columns.
Is this possible? If yes, can somebody advise how to do this?
Regards,
Himanshu Goyal
Can solution packages (.wsp) used in SharePoint 2010 be deployed to SharePoint 2013?
We are building SharePoint 2013 farm and need to migrate SharePoint 2010 custom features to 2013 farm.
We also want to get the SharePoint 2013 feature enhancements in the content migrated from 2010 farm. To achieve this, we need to take the "SP 2013 mode" (15 hive) when migrating the 2010 content, in which case the custom features in 2010 will be lost and have to be re-applied to 2013 farm.
The question is -
Can SP 2010 solution packages (.wsp) be deployed to SP 2013?
Do the custom features have to be re-coded from scratch in SP 2013?
Of course these features may/will break in SP2013, and fixes will be applied based on issues identified through testing.
Appreciate any advise!
how to retrieve selected column from a view of list using jsom in SharePoint 2013
get the show columns from the view of list using jsom in shaepoint 2013
Read contents of Excel file uploaded in a document library and store those contents in SP list using javascript
I have an excel file uploaded in document library.Whenever that excel file is overwritten I want the contents of excel to be stored in SharePoint List.Preferred option I am looking for is JavaScript.
Please suggest me a solution using js or other solutions
Thanks in advance !!
broken permission inheritance exceed limit
first, I know that the situation in my client does not follow the best practice(
): they have more then 20,000 security scopes in a single document library. And a not so well developed custom library view page takes long time to open(almost 1 minute). what follows is a long running T-SQL query I caught with profiler:
exec sp_executesql N'DECLARE @DocParentIdForRF uniqueidentifier SELECT TOP 1 @DocParentIdForRF = Docs.Id FROM Docs WHERE Docs.SiteId = @SITEID AND Docs.DirName = @FDN AND Docs.LeafName = @FLN; SELECT ScopeId, Acl, AnonymousPermMask FROM Perms WITH (INDEX=Perms_Url) WHERE SiteId=@SITEID AND DelTransId = 0x AND ScopeId IN (SELECT tp_ScopeId FROM Lists WITH (NOLOCK) WHERE tp_WebId=@L9 AND tp_ID = @L2 UNION SELECT t1.ScopeId FROM UserData INNER JOIN Docs AS t1 WITH(NOLOCK) ON (UserData.[tp_ID]=t1.[DoclibRowId]) AND (UserData.[tp_RowOrdinal] = 0) AND (t1.SiteId=UserData.tp_SiteId) AND (t1.SiteId = @SITEID) AND (t1.ParentId = UserData.tp_ParentId) AND (t1.Id = UserData.tp_DocId) AND (UserData.tp_ListId = @L2) LEFT OUTER LOOP JOIN AllUserData AS t2 WITH(NOLOCK,INDEX=AllUserData_PK) ON (UserData.[tp_Editor]=t2.[tp_ID]) AND (UserData.[tp_RowOrdinal] = 0) AND (t2.[tp_RowOrdinal] = 0) AND ( (t2.tp_Level = 1) ) AND (t2.[tp_IsCurrentVersion] = CONVERT(bit,1) ) AND (t2.[tp_CalculatedVersion] = 0 ) AND (t2.[tp_DeleteTransactionId] = 0x ) AND (t2.tp_ListId = @L3) AND (UserData.tp_ListId = @L2) LEFT OUTER LOOP JOIN AllUserData AS t3 WITH(NOLOCK,INDEX=AllUserData_PK) ON (UserData.[tp_CheckoutUserId]=t3.[tp_ID]) AND (UserData.[tp_RowOrdinal] = 0) AND (t3.[tp_RowOrdinal] = 0) AND ( (t3.tp_Level = 1) ) AND (t3.[tp_IsCurrentVersion] = CONVERT(bit,1) ) AND (t3.[tp_CalculatedVersion] = 0 ) AND (t3.[tp_DeleteTransactionId] = 0x ) AND (t3.tp_ListId = @L3) AND (UserData.tp_ListId = @L2) LEFT OUTER LOOP JOIN AllUserData AS t4 WITH(NOLOCK,INDEX=AllUserData_PK) ON (UserData.[int1]=t4.[tp_ID]) AND (UserData.[tp_RowOrdinal] = 0) AND (t4.[tp_RowOrdinal] = 0) AND ( (t4.tp_Level = 1) ) AND (t4.[tp_IsCurrentVersion] = CONVERT(bit,1) ) AND (t4.[tp_CalculatedVersion] = 0 ) AND (t4.[tp_DeleteTransactionId] = 0x ) AND (t4.tp_ListId = @L4) AND (UserData.tp_ListId = @L2) LEFT OUTER LOOP JOIN AllUserData AS t6 WITH(NOLOCK,INDEX=AllUserData_PK) ON (UserData.[int3]=t6.[tp_ID]) AND (UserData.[tp_RowOrdinal] = 0) AND (t6.[tp_RowOrdinal] = 0) AND ( (t6.tp_Level = 1) ) AND (t6.[tp_IsCurrentVersion] = CONVERT(bit,1) ) AND (t6.[tp_CalculatedVersion] = 0 ) AND (t6.[tp_DeleteTransactionId] = 0x ) AND (t6.tp_ListId = @L4) AND (UserData.tp_ListId = @L2) LEFT OUTER LOOP JOIN AllUserData AS t7 WITH(NOLOCK,INDEX=AllUserData_PK) ON (UserData.[int4]=t7.[tp_ID]) AND (UserData.[tp_RowOrdinal] = 0) AND (t7.[tp_RowOrdinal] = 0) AND ( (t7.tp_Level = 1) ) AND (t7.[tp_IsCurrentVersion] = CONVERT(bit,1) ) AND (t7.[tp_CalculatedVersion] = 0 ) AND (t7.[tp_DeleteTransactionId] = 0x ) AND (t7.tp_ListId = @L4) AND (UserData.tp_ListId = @L2) LEFT OUTER LOOP JOIN AllUserData AS t8 WITH(NOLOCK,INDEX=AllUserData_PK) ON (UserData.[int5]=t8.[tp_ID]) AND (UserData.[tp_RowOrdinal] = 0) AND (t8.[tp_RowOrdinal] = 0) AND ( (t8.tp_Level = 1) ) AND (t8.[tp_IsCurrentVersion] = CONVERT(bit,1) ) AND (t8.[tp_CalculatedVersion] = 0 ) AND (t8.[tp_DeleteTransactionId] = 0x ) AND (t8.tp_ListId = @L4) AND (UserData.tp_ListId = @L2) LEFT OUTER LOOP JOIN AllUserData AS t9 WITH(NOLOCK,INDEX=AllUserData_PK) ON (UserData.[int6]=t9.[tp_ID]) AND (UserData.[tp_RowOrdinal] = 0) AND (t9.[tp_RowOrdinal] = 0) AND ( (t9.tp_Level = 1) ) AND (t9.[tp_IsCurrentVersion] = CONVERT(bit,1) ) AND (t9.[tp_CalculatedVersion] = 0 ) AND (t9.[tp_DeleteTransactionId] = 0x ) AND (t9.tp_ListId = @L3) AND (UserData.tp_ListId = @L2) LEFT OUTER LOOP JOIN AllUserData AS t11 WITH(NOLOCK,INDEX=AllUserData_PK) ON (UserData.[tp_Author]=t11.[tp_ID]) AND (UserData.[tp_RowOrdinal] = 0) AND (t11.[tp_RowOrdinal] = 0) AND ( (t11.tp_Level = 1) ) AND (t11.[tp_IsCurrentVersion] = CONVERT(bit,1) ) AND (t11.[tp_CalculatedVersion] = 0 ) AND (t11.[tp_DeleteTransactionId] = 0x ) AND (t11.tp_ListId = @L3) AND (UserData.tp_ListId = @L2) LEFT OUTER LOOP JOIN AllUserData AS t12 WITH(NOLOCK,INDEX=AllUserData_PK) ON (t1.[LTCheckoutUserId]=t12.[tp_ID]) AND (t12.[tp_RowOrdinal] = 0) AND ( (t12.tp_Level = 1) ) AND (t12.[tp_IsCurrentVersion] = CONVERT(bit,1) ) AND (t12.[tp_CalculatedVersion] = 0 ) AND (t12.[tp_DeleteTransactionId] = 0x ) AND (t12.tp_ListId = @L3) WHERE ( (UserData.tp_Level = 1 OR UserData.tp_Level =255) AND ( UserData.tp_Level= 255 AND UserData.tp_CheckoutUserId = @IU OR ( UserData.tp_Level = 2 AND UserData.tp_DraftOwnerId IS NOT NULL OR UserData.tp_Level = 1 AND UserData.tp_DraftOwnerId IS NULL ) AND ( UserData.tp_CheckoutUserId IS NULL OR UserData.tp_CheckoutUserId <> @IU))) AND (UserData.tp_SiteId=@SITEID AND (UserData.tp_ParentId=@DocParentIdForRF)) AND (UserData.tp_RowOrdinal=0) AND (t1.SiteId=@SITEID AND (t1.ParentId=@DocParentIdForRF))) OPTION (MAXDOP 1)',N'@LFFP uniqueidentifier,@SITEID uniqueidentifier,@L2 uniqueidentifier,@L3 uniqueidentifier,@L4 uniqueidentifier,@FDN nvarchar(4000),@FLN nvarchar(4000),@IU int,@RequestGuid uniqueidentifier,@L9 uniqueidentifier',@LFFP='00000000-0000-0000-0000-000000000000',@SITEID='5F781AF7-ECAC-4610-9455-D31197DAEB1A',@L2='ECC5AFEB-D187-4EE8-A944-522AD7EE2E70',@L3='3A177C8F-4A48-470E-BE16-68EEE47B5080',@L4='B4049485-6A59-478D-A819-82EB99F1252F',@FDN=N'dc/kms/ProjectDoc',@FLN=N'人力资源管理',@IU=17,@RequestGuid='587989E5-D215-422D-A23D-F787AF1CFE5D',@L9='AF661FD8-3D5F-4D5E-9DE8-FBC1678176FE'
Although the duration in profiler for this query is around 600, it runs many times when the custom page opens.
And the Excecution Plan show that a cluster index seek operation on Perms table runs more than 20,000 times (the number of security scopes).
And the execution time in query analyzer is more than 300:
But, if I make some simple change to the SQL query I caught by simply remove theWITH (INDEX=Perms_Url) .The Execute plan will change, no operation will run more then 20,000 times and the execution time will be around 30, that is, 10 times faster.
The question is, where is this complex query generated from SharePoint and can I control to remove the index hint as in my test?
The SharePoint buildversion is 14.0.6112.5000Sharepoint powerpivot excel show different data by different user
It's works when user visit the webpage with preset url e.g. report1.aspx?userDept=IT , the excel webpart will only show the releated date to the user. But It is not a good solution , because the user still can view all the data by open the excel on SharePoint.
How can I filter the data based on the logged users , and the user cannot review the data which not related to them.
Is it available to do a real time query in excel? Or any solution , work around can be fulfill this requirement?
If it is impossible , any official link supported?
Scheduled PowerShell Wont Write to Text File (SharePoint 2010)
Hi All,
My PowerShell script runs fine from the PS shell and shows the web applications details for the SharePoint Farm.
But It doesn't work from Task Scheduler, either from the scheduled time or just from the Task Scheduler list and right-clicking and selected Run. It creates the log file from Task Scheduler However, doesn’t write back the web application details in the log file.
Note: It writes the 'Hello' string using Write-OutPut in the text log file.
Here is the PowerShell Log Output:
Here is PowerShell Script:
In Task Scheduler, I have the "Actions" set to Start a program, PowerShell.exe.
Has anyone come across this issue and let me know what I am missing?
I really appreciate your help. Thank you.
Cheers, Badal Ratra MCTS
SharePoint 2013 vlabs
Trying to make the "SEARCH BOX" function in a OOTB document library webpart larger
Trying to find out if there is a way to make the search bar which is included in the document library webpart bigger, limited to what I can do at work - we don't have access to sharepoint designer...
I tried this:
<div class="ms-InlineSearch-DivBaseline" id="inplaceSearchDiv_WPQ2"><div class="ms-InlineSearch-Outline-Baseline ms-InlineSearch-Outline-Empty" id="inplaceSearchDiv_WPQ2_lsparent"><input title="Type something and hit enter to search all of the IT Help & Support Guides" class="ms-helperText ms-textExtraLarge ms-InlineSearch-SearchBox-Baseline ms-InlineSearch-SearchBox-EmptyUnfocused" id="inplaceSearchDiv_WPQ2_lsinput" type="text" maxlength="2048" value="" ms-InlineSearch-SearchBox.style.minHeight="100px"><span class="ms-inlineSearch-searchImgSpanBase ms-inlineSearch-searchImgSpanStandard" id="inplaceSearchDiv_WPQ2_lsimgspan"><img title="Search" class="ms-inlineSearch-searchImg" id="inplaceSearchDiv_WPQ2_lsimg" src="/_layouts/15/images/spcommon.png?rev=23"></span></div><style> #inplaceSearchDiv_WPQ2_lsparent { /* Search Box */ margin: 30px; top: 21.59px; height: 60px; right: -17px; line-height: 60px; } </style>
It works when added to script editor, but once saved, the box goes back to norma
Simply from pulling off parts from expecting elements. Maybe messy , have very limited experience with this,
Can anyone advise?
Cheers