Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all 11571 articles
Browse latest View live

How to get checked out file changes

$
0
0

Hi,

I have an item "Item1" with version 0.1, 0.2.
I have checked-out the item "Item1" and edited few properties and saved the changes, but did not check-in the item.
I need to get the saved property values that is not checked-in in ItemAdding event.

Is it possible to get the changes that are not checked-in?

Thanks in advance,
dhijit


Call WebServices in WebPart using JQuery

$
0
0

Hi Experts, 

I need to create webmethod in webpart and want to call using Jquery help me guys...........


Regards DILDAR-SharePoint Developer

Feature setting Masterpage & CSS doesn't work when included in SiteTemplate - but does work when activated manually

$
0
0

Hi,

I'm experiencing a strange behaviour recently. I wrote a feature with an EventReceiver that sets the masterpage and alternate css file for the current spweb it is activated for. When I activate that feature manually it works like expected. But if I include the same feature in a SiteTemplate and it is called during site-creation, it doesn't work. I debugged it and stepped through it. As far as I can tell everything looks right. It sets the masterpage and css file like it should and throws no error. But when the site loads in the end, it suddenly still uses the v4.master and no alternateCSS. How can that be?

If I deactivate the feature then manually and activate it again, it works...

Here's the feature:

		const string masterPage = MyOfficeProcess.master";
        const string searchMasterPage = "MyMinimal.master";
        const string alternateCss = "MyOfficeAlternateProcess.css";

        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            SPWeb web = (SPWeb)properties.Feature.Parent;

            using (SPWeb topLevelSite = web.Site.RootWeb)
            {
                string relativePath = topLevelSite.ServerRelativeUrl;
                if (!relativePath.EndsWith("/"))
                {
                    relativePath += "/";
                }

                if (web.WebTemplate == "SRCHCENTERLITE" || web.WebTemplate == "SRCHCEN" || web.WebTemplate == "SRCHCENTERFAST")
                {
                    web.CustomMasterUrl = relativePath + "_catalogs/masterpage/" + searchMasterPage;
                }
                else
                {
                    web.MasterUrl = relativePath + "_catalogs/masterpage/" + masterPage;
                    web.CustomMasterUrl = relativePath + "_catalogs/masterpage/" + masterPage;
                }

                web.AlternateCssUrl = relativePath + "Style Library/My/" + alternateCss;
                web.UIVersion = 4;
                web.Update();
            }
        }

Document icons not visible in sharepoint 2010

$
0
0

Hi

I am working on sharepoint 2010. I have a site in which document icons are missing. Example: When going into View All Items -> Pages , the pages should be having "IE" icon to be displayed. Similarly for word , css files . All the icons are showing as "X". I have checked the DOCICON.XML file to be correct (compared to file present in other server).

When trying to access the image directly eg: http:localhost:99/_layouts/images/ichtm.gif , i am able to access the image without issue.

When looking at the properties of the image, i could get the url as http:localhost:99/_layouts/images.

Please help me to resolve this issue.

Thanks in advance

Usha

Can't resolve references

$
0
0

I am having all sorts of issues with trying to build and deploy SharePoint 2010  projects.

We have a build server and a PowerShell script building and installing the same code base onto our Dev servers.(where it is working)

Other developers on my team are not reporting any issues.

We are using VS 2012 and SharePoint 2010.

I cant build my solution, I get errors like:

Error 83 The type or namespace name 'Bxxxxxxxxxxxs' could not be found (are you missing a using directive or an assembly reference?) C:\Dev\GRSUS\OE Phase II\Dev\Noel\src\OE\OE.Utilities\clsSiteCreation.cs 5 7 OE.Utilities.

and

Error 246 Metadata file 'C:\Dev\GRSUS\OE Phase II\Dev\Noel\src\OE\Bxxxxxxxxxxxs.OE.Web.Mvp.AdminWebParts\bin\Debug\Bxxxxxxxxxxxs.OE.Web.Mvp.AdminWebParts.dll' could not be found C:\Dev\GRSUS\OE Phase II\Dev\Noel\src\OE\OE.AdminWebPartsTest\CSC OE.AdminWebPartsTest

Sometimes I can get it to build if I go to the GAC and uninstall all of our custom dlls, but sometimes this does not work.

Even if it does build, some of my projects will deploy but some of them won't. The projects that will not deploy show the same types of errors as above. Like it cant find the correct dll to reference.

if I look at the output I see weird warnings like:


12>C:\windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3275: The primary reference "C:\Dev\GRSUS\OE Phase II\Dev\Noel\src\OE\Bxxxxxxxxxxxs.OE.Services\bin\Debug\Bxxxxxxxxxxxxs.OE.Services.dll" could not be resolved because it has an indirect dependency on the assembly "Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" which was built against the ".NETFramework,Version=v4.0,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v3.5".

This is troubling because SharePoint is 3.5 .Net and all of our projects are targeted at 3.5, but for some reason it thinks that some of our projects are built against the 4.0 or 4.5 framework.

The targets file above also looks suspect because it is in the 4.0 framework folder location(this might be OK because maybe it is backwards compatible)

2>C:\Dev\GRSUS\OE Phase II\Dev\Noel\src\OE\OE.Utilities\clsSiteCreation.cs(5,7,5,20): error CS0246: The type or namespace name 'BXXXXXXxxxxxxs' could not be found (are you missing a using directive or an assembly reference?)

 Help!! I have tried recycling app pools and cleaning my C Drive of all code and output, and getting code from source control, but I am stuck.

Thanks Noel


Thanks Noel

IE8 Can't Parse Search.asmx results

$
0
0

Hello,

I'm using the search.asmx service in 2010 to pull back people. The query itself is fine, but when I go to parse the data in IE8 I get an error "object doesn't support this property or method".

Firefox it works fine, any alternatives ? I've also tried $.parseXML and it doesn't throw any errors, but the data doesn't parse.

It appears to break on the 2nd line (var x = ...) Any thoughts?

$(xData.responseText).find("QueryResult").each(function () {
							var x = $("<xml>" + $(this).text() + "</xml>");
							var title = '';
							var acctName = '';
							x.find("Document").each(function () {
								$(this).find("Property").each(function() {
									if ($("Name", $(this)).text() == "Title") {
										title = $("Value", $(this)).text();
									}
									if ($("Name", $(this)).text() == "AccountName") {
										acctName = $("Value", $(this)).text();
									}								
								});
								r.push({ label: title, value: acctName});
							});
.
.
.
.

Calling all SharePoint 2010 users! May TechNet Gurus announced!

$
0
0

The results for May's TechNet Guru competition have been posted!

http://blogs.technet.com/b/wikininjas/archive/2014/01/16/technet-guru-awards-december-2013.aspx

Congratulations to all our new Gurus for May!

We will be interviewing some of the winners and highlighting their achievements, as the month unfolds.

 

Post your JUNE contributions here:

http://social.technet.microsoft.com/wiki/contents/articles/24692.technet-guru-contributions-for-june-2014.aspx

Read all about June's competition, hopefully in a stickied post, at the top of this forum.

 

Below is a summary of the medal winners for May. The last column being a few of the comments from the judges.

Unfortunately, runners up and their judge feedback comments had to be trimmed from THIS post, to fit into the forum's 60,000 character limit, however the full version is available on TechNet Wiki.

Some articles only just missed out, so we may be returning to discuss those too, in future blogs.
 

Guru Award BizTalk Technical Guru - May 2014  

Gold Award Winner

Peter LindgrenBizTalk 2010: Call SSO from OrchestrationTGN: "I bet a few people will love you for this, I often see this question at the forums, and you answered it well. Good work!"
Mandi Ohlinger: "Great topic and great explanation. It also makes SSO seem less scary :)"
Sandro Pereira: "Very useful sample, well explained with all the necessary code "

Silver Award Winner

boatsellerBizTalk: Using an Orchestration Sync or AsyncSandro Pereira: "Good sample provide by boatseller and well explained."
TGN: "Hey, great work man! This is a well done article and I love it!"

Bronze Award Winner

Steef-Jan WiggersExposing data through BizTalk Service Hybrid ConnectionsSandro Pereira: "Nice article with a good overview about BizTalk Service Hybrid Connections and how you can configure them."
TGN: "Good article, well explained and good pictures. Again Steef-Jan, you know what you're doing!"
Mandi Ohlinger: "Nice set-up overview. "

Guru Award Forefront Identity Manager Technical Guru - May 2014  

Gold Award Winner

Sheldon.JaquayForefront Identity Manager - RCDC - Regular ExpressionAM: "Great contribution! Option C is clever, and the other examples are also a useful reference. Thanks for sharing your work with the community."
Ed Price: "Nice short article. Great topic, and great blend of code, color, and images!"
Søren Granfeldt: "Nice with a little focus on RegEx with FIM and good help for people wanting to have the portal be just a little more company specific"
GO: "Thanks for the article, but the images weren't clear enough."

Silver Award Winner

Scott EastinInstalling Oracle MA for FIM R2 on Windows 2012GO: "EX-CE-LL-EN-T article!"
AM: "Very nice article with clear step-by-step instructions - thanks for putting this together. "
Ed Price: "I love the sections with numbered bullets at the end. They're very clear and easy to read!"

Guru Award Microsoft Azure Technical Guru - May 2014  

Gold Award Winner

João SousaMicrosoft Azure - Remote Debbuging How To?GO: "Clever. Well Explained and written. Thanks! You absolutely deserve the GOLD medal."
Ed Price: "Fantastic topic and great use of images!"

Silver Award Winner

Alex MangThe Move to the New Azure SQL Database TiersEd Price: "Great depth and descriptions! Very timely topic! Lots of collaboration on this article from community members!"
GO: "great article but images are missing"

Bronze Award Winner

Alex MangSeparating Insights Data In Visual Studio Online Application Insights For Production And Staging Cloud ServicesEd Price: "Good descriptions and clarity!"
GO: "great article but images are missing"

Guru Award Microsoft Visio Technical Guru - May 2014  

Gold Award Winner

Mr XHow to export your Orchestrator Runbooks to Visio and Word

Ed Price: "A basic tip, but very helpful. Good job!"
GO: "Thanks for that!"
SR: "Nice "How To" article explaining the basic steps."
AH: "This article is to the point takes a simple tasks and describes it accurately.

Guru Award SharePoint 2010 / 2013 Technical Guru - May 2014  

Gold Award Winner

Dan ChristianBuild a loop workflow using SharePoint 2010Jinchun Chen: "Excellent article. Personally speaking, the biggest challenge is SharePoint Designer workflow is “while-loop”. Many customers had the same scene as this article set. I am sure they are like this article. "
Benoît Jester: "An AWESOME, huge, detailed article by Dan. Did I mention the videos? Thanks Dan!"
GO: "Great article Dan! Thanks!"
Margriet Bruggeman: "Detailed explanation which I admire, but wouldn't be using a vs workflow be more logical in this case?"

Silver Award Winner

Geetanjali AroraExport User Profile Properties using CSOMBenoît Jester: "Great article on this new SharePoint 2013 development capability. I appreciate the code explanations."
GO: "This is a great article. Love the way how you explain it."
Margriet Bruggeman: "I will use this piece of code in the future!"
Jinchun Chen: "Nice. How about customized properties? It would be nice more, if a CSOM script version can be attached. "

Bronze Award Winner

Inderjeet SinghUnable to restore site collection issueGO: "Simple. Good Written. Clear and Clever. Great article."
Margriet Bruggeman: "Quite handy reference for this particular problem"
Benoît Jester: "Good explanation on the site collection deletion process."

Guru Award Small Basic Technical Guru - May 2014  

Gold Award Winner

Philip ConrodProgramming Home Projects with Microsoft Small Basic: Chapter 1: Writing Programs Using Small BasicRZ: "Very systematic introduction."
Ed Price: "Good overview article that covers all the basics!"
Michiel Van Hoorn: "Nice introduction into the history of Basic. Needs to be updated to reflect current support for Windows version (Windows NT? LOL )"

Silver Award Winner

Philip ConrodProgramming Home Projects with Microsoft Small Basic: Chapter 6: Flash Card Math Quiz ProjectMichiel Van Hoorn: "This article (or book chapter) is excellent material to learn how to envision, design and build your program. The actual example program is also very usable."
Ed Price: "I love how this tutorial keeps building on itself as it goes!"

Bronze Award Winner

Nonki TakahashiSmall Basic: VariableRZ: "Very nice explanation of the concept of variables!"
Michiel Van Hoorn: "Clear explanation and not frills"
Ed Price: "Great article with fantastic formatting!"

Guru Award SQL BI and Power BI Technical Guru - May 2014  

Gold Award Winner

Durval RamosSSIS - Event Handling with "OnError" ou "OnTaskFailed"Ed Price: "The images are very helpful! Could use a grammar pass. Great descriptions!"
GO: "This article has everything. A conclusion, reference, see also, other languages section. everybody should write actually like this."
NN: "An interesting topic and article but unfortunately a bit hard to understand due to grammar problems"
PT: "This is a good article on a useful topic. Please have your article reviewed and edited for proper language."

Silver Award Winner

S KamathExpansion of Time dimension in Analysis ServicePT: "Your article is concise and to the point, and contains useful information. It would be good to conclude with a short summary and perhaps compare this technique to others, discussing best practices."
Ed Price: "Good details on Time Dimension. The images help us understand as we go."
GO: "I like this one, but something is missing. Do not know what, but I had a blast reading the other two's. Does not mean that this one is bad, but there is something missing, maybe my knowledge..."
NN: "Good article, but seems to be missing conclusion. It will also benefit from adding See Also section"

Bronze Award Winner

Sherry LiSSAS – Ignore unrelated dimension or notNN: "Good and interesting article based on the blog"
GO: "Wonderful article!"
PT: "This is an important topic and contains helpful information but this is a simple topic that can be explained in fewer words. I found this article to be overly detailed and hard to read. I suggest having it reviewed and edited for proper language."
Ed Price: "Good descriptions. Could be shorter. Good use of images!"

Guru Award SQL Server General and Database Engine Technical Guru - May 2014  

Gold Award Winner

ShankyCurious Case Of Logging In Online and Offline Index Rebuild In Full Recovery ModelJinchun Chen: "Good article. Thank you!"
GO: "One of the best Wiki Articles ever! Thanks buddy!"
DRC: "-- This is a great article which provides in-depth information on internals of Online & Offline rebuild index and Transaction logging. -- The following statement need to be re-written for more clarity. “The less logging can be attributed to the fact that no information about page allocation is logged information about de-allocation is logged please see below figure 13. Also if you compare amount of record returned in this case we had output containing just 64 rows while offline index rebuild had ____ rows.” -- Overall, a great article, thoroughly enjoyed reading it."
NN: "Very interesting article, another great contribution by Shanky"
Ed Price: "Thorough descriptions and great solution! Good article!"

Silver Award Winner

Uwe RickenSQL Server: Be aware of the correct data type for predicates in queriesEd Price: "Incredibly well formatted! Great breakdown of sections!"
GO: "Whoo, this is a wonderful article!"
DRC: "-- This article explains the Query execution behaviour when the Query is not optimally written which could cause increased execution time. Great article. -- This topic is clearly explained and documented using a simple example and sample output which is easy is understand. -- Simple, very well written and great article to read. "
NN: "Very good, easy to understand article and important information to know to all SQL Server developers"

Guru Award System Center Technical Guru - May 2014  

Gold Award Winner

Mr XCentral Management of DSRM password on Domain Controllers using OrchestratorEd Price: "The images really carry you through this article. Great execution!"
GO: "Great article. I like your article Mr X! Thanks for your passion!"
Kevin Holman: "Nice to see real world examples of Orchestrator in action solving problems that all customers have. This was very simple, but provides an excellent solution."

Silver Award Winner

W P ChomakSystem Center Operations Manager 2012 R2 - Customizing E-Mail NotificationsAB: "Easy reading info that can help many"
Ed Price: "Short and sweet. An incredibly valuable topic and needed addition to the Wiki!"
GO: "Clever and well written. Thanks"

Bronze Award Winner

Christoffer SSystem Center Configuration Manager 2012 R2 - Install applications in a task sequence based on AD-GroupsEd Price: "Good mix of code, images, and information. Could use more in-depth descriptions. Great article!"
GO: "Clear and simple! Thank you!"

Guru Award Transact-SQL Technical Guru - May 2014  

Gold Award Winner

Naomi NT-SQL: Random Equal DistributionJinchun Chen: "Nice."
JS: "The crucial thing about such a procedure is to check the data before the randomization and afterwards. You might encounter situations where "John Smith" and "John Meyers" might have exchanged their First names which is technically correct, but logically and obviously wrong. So make sure that there is one additional check afterwards that makes sure that eventual privicy concerns will not survive the random process. Normally this would not happen, but I have already checked this is one of my older blog entries, where we exactly had that problem obfuscating data to make that operational and live data will not be recognized afterwards. http://blogs.msdn.com/b/jenss/archive/2009/04/08/when-is-random-random-enough.aspx In addition to this some attributes are sticky to each other like gender and First Name. You also have to make sure that your distribution might change statistically in relation to other attributes."
Richard Mueller: "Very instructive. Perhaps the See Also section should have more links."
Ed Price: "Great formatting and topic! Could benefit from more descriptions. Great article!"
GO: "Naomi, your article is nice. Simple to understand the 'problem' and execute the 'solution""
Manoj Pandey: "Nice article with a different way to resolve a given problem. I think this can also be done by using NTILE() function. I've added the code in comments section."

Silver Award Winner

Rogge HExtending SYS.Geometry to Utilize Temporal DataGO: "Great article, I enjoyed reading it. Thank you"
Manoj Pandey: "I like the idea, but it took me some more time to understand the overall logic as I'm new to Geo datatypes, Thanks."
JS: "For me not using this sort of things regularly, I don't see the problem and the benefit. I have no doubt that this is a brilliant explanations how to cope with a problem, but for me this is missing yet the red line. More pictures would be helpful describing the problem and outlining the results produced."
Richard Mueller: "Needs more explanation, and perhaps an example. There should be links to relevant references."
Ed Price: "Good job on the opening descriptions! Could benefit from breaking up and explaining the code more. Images and references would be helpful. Good article!"

Bronze Award Winner

Hasham NiazDataCleanUp() Function Implementation in MS SQL ServerJinchun Chen: "Good."
JS: "-Does actually not work for Case senstive areas where I want to remoce certain Upper/lower case characters. This might be not interesting for some people, but is extremely important and relevant to other people. The limitation is that I can´t pass multiple values to be removed from the string, right ? Could this be implemented as well as many people wash out their data from unused / unimportant control characters. "I have tested it on a table which has got more than 11 Million rows and it executed fine returning the correct results. Since this is a scalar function you will notice decrease in performance." Once you want to maintain the old data and keep the new cleaned up one seperately, you could suggest something like persisting the data in a computed column which could be indexed and then help improving the performance. This would not be the case for any adhoc queries though."
Richard Mueller: "Very clever and also very useful. There should be links to references, for example to explain the PATINDEX function."
Ed Price: "Great job on this article! Very clear and well executed! See JS's comments for some thoughts about what's possible. Great article!"
Manoj Pandey: "A good utility Function that I can use and tweak for my future needs, Thanks."

Gold Award Winner

Jaliya UdagedaraCalling WCF Service from a Stored Procedure in Microsoft SQL Server 2012GO: "Gold Winner. For sure!"
Ed Price: "Amazing article! The depth, images, and code formatting make this fantastic!"
NN: "Great article, thorough explanations, great interaction in the comments - very useful tutorial"
Søren Granfeldt: "Nice work."

Silver Award Winner

João SousaASP.NET MVC 5 - Bootstrap 3.0 in 3 StepsGO: "Thanks for that great article"
Ed Price: "Great formatting! Good use of images!"
NN: "Nice introduction to Bootstrap in ASP.MVC project"
Søren Granfeldt: "Just a little more technical explanation would be nice"

Bronze Award Winner

Critical_stopUsing 64-bit shortcuts from a 32-bit applicationNN: "Good and short article, right to the point"
Søren Granfeldt: "Mixing and matching 32/64 bit always seems to give people a hassle. This will help those having issues."
GO: "good one!"
Ed Price: "Good article. Short and sweet."

Guru Award Wiki and Portals Technical Guru - May 2014  

Gold Award Winner

XAML guyTechNet Guru Competition: Judge System ExplanationGO: "No one could do it beter than you Pete! Thanks!"
Richard Mueller: "Excellent explanation of the judging system. Perhaps could use a See Also section."
Ed Price: "Good quote from Shanky in the comments, "Awesome....Kudos to your for your beautiful work" -- Great job!"
NN: "Very good article. It may also benefit from See Also section"

Silver Award Winner

Payman BiukaghazadehTechNet Wiki Persian CouncilGO: "Go Persion GOOO!"
Richard Mueller: "The Persian Council is an excellent idea. The link to "How to Write an Article" should be in a See Also section, along with other articles."
NN: "Great article, missing a link to other portals and councils pages"
Ed Price: "Thank you to Payman and the Persian community for jumping in! The Wiki is warm!"

Bronze Award Winner

Durval RamosWiki: Best Practices for building TechNet Wiki PortalsEd Price: "Fantastic job from Durval on helping us standardize the portals!"
NN: "Good article, but unfortunately a bit hard to read and understand due to bad grammar. "
Richard Mueller: "Excellent and important topic. Grammar still needs work. I like the links and See Also."

Guru Award Windows Phone and Windows Store Apps Technical Guru - May 2014  

Gold Award Winner

Sara SilvaAuthentication using Facebook, Google and Microsoft account in WP8.0 App (MVVM)Ed Price: "Great article! Great code formatting and good use of code comments for descriptions of what your code's doing! Could be improved by breaking out the code with more descriptions in the article (in addition to the code comments). Very in-depth article! "
Peter Laker: "An excellent article, pulling together all the bits you need to make this happen"

Silver Award Winner

SubramanyamRaju.BWindowsPhone Facebook Integration:How to post message/image to FaceBook Fan Page(C#-XAML)Ed Price: "Good topic! Code blocks would help with the formatting. Good job on this article!"
Peter Laker: "Love this, very useful to many I'm sure, thanks!"

Bronze Award Winner

Saad MahmoodCreating a custom control in Expression Blend with Custom Properties (WindowsPhone& Store)Ed Price: "This has a good mix of descriptions and clarity! The images help a lot!"
Peter Laker: "A nice introduction to our beloved Blend. Great work!"

Guru Award Windows Presentation Foundation (WPF) Technical Guru - May 2014  

Gold Award Winner

Magnus (MM8)WPF/MVVM: Merging Cells In a ListViewKJ: "Ah the collectionViewSource -- never used it myself but this looks like a good reference article if I ever needed to..."
GO: "Thank you!"
Ed Price: "Great formatting and good descriptions. Short and sweet! Another fantastic entry from Magnus!"
Peter Laker: "Thank you again Magnus"

Guru Award Windows Server Technical Guru - May 2014  

Gold Award Winner

Mr XHow to implement User Activity Recording for AD-Integrated Critical Servers by combining the use of Group Policy, Powershell and OrchestratorPhilippe Levesque: "Really good information and detailed step."
JH: "brilliant, love how it combines different technologies to achieve a solution, clearly written and well illustrated."
JM: "Another excellent article, thanks again for your many great contributions"
Richard Mueller: "Very creative solution. Great to have such detailed steps and images."
GO: "I like the conclusion. Thanks"

Silver Award Winner

Mr XHow Domain Controllers are located in WindowsGO: "Super article Mr X! Merci!"
JM: "Yet again, excellent article."
Richard Mueller: "Good documentation. An explanation of how the priorities and weights are determined would help. A See Also section would also help."
Philippe Levesque: "Good "In deep" information. Good to know to help diagnose computer problem in AD's site."
JH: "another good article, great diagrams. Some repetition but it does help clarify a complex issue. "

Bronze Award Winner

Mahdi TehraniDetailed Concepts:Secure Channel ExplainedJH: "great article. This fills an important gap in this content space. Editing is a little rough, but diagrams and explanations are clear."
JM: "This is a very good article, however you need to provide more detail in the section on how to fix a broken Channel."
Richard Mueller: "Excellent topic. Grammar needs work. Good images. Could use a See Also section."
Philippe Levesque: "Really good explanation of the secure's channel, I like the debugging step included ! "
GO: "Thanks for this, not everybody know about secure channel."

As mentioned above, runners up and their judge feedback were removed from this forum post, to fit into the forum's 60,000 character limit.

 

A great big thank you to EVERYONE who contributed an article to last month's competition.

Hopefully we will see you ALL again in this month's listings?

As mentioned above, runners up and comments were removed from this post, to fit into the forum's 60,000 character limit.

You will find the complete post, comments and feedback on the main post.

Please join the discussion, add a comment, or suggest future categories.

If you have not yet contributed an article for this month, and you think you can write a more useful, clever, or better produced wiki article than the winners above, here's your chance! :D

More about the TechNet Guru Awards:



#PEJL

Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over to the one and onlyTechNet Wiki, for future generations to benefit from! You'll never get archived again!

If you are a member of any user groups, please make sure you list them in the Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.

Editing of records pops up blank blue box

$
0
0

For some reason, with some views, when I try to edit a record, it pops up a box after I check the left check box and click "edit" at the top of the screen, but the popup is a blank, small blue box.  

Any ideas?


paging in listviewbyquery web part

$
0
0

hi,

 can anyone pls let me know how to implement paging in a  listviewview byquery web part,

i  am having this web part with more than 1000s of documents which populates from the doc lib and the users need paging to be implemented.

i checked the below link, but thats  not working:

http://social.msdn.microsoft.com/Forums/sharepoint/en-US/6173ec6e-1e56-4555-b32a-6654184a8ab4/paging-with-listviewbyquery-in-a-web-part?forum=sharepointdevelopmentlegacy

if anyone has done this in the past, pls help me how to do this, any sample code/ links are appreciated!

how to change workflow completed for items with programming

$
0
0

In SharePoint 2010, i created an info path form and submitted it to SharePoint.

With Microsoft SharePoint designer i created a workflow for this form.

At this workflow I implemented removing permission from some group and getting contribute access to 2 person.

Now after 3 month, there are 450 item in form library.
And i want to add another person to (2 persons) that have contribute access now.
So, i changed workflow in SharePoint designer.

It is correct for new items that created after this time. but i want this new workflow set to old item that before 3 month created!

how can I do that?

Create Sharepoint group and assign permission, Sharepoint online

$
0
0
Using c# i would like to create a sharepoint group and assign a permission to that group. According to this: http://msdn.microsoft.com/en-us/library/fp179912.aspx i am able to create roles, add a user to a sharepoint group etc., but i doesnt explain how to create a sharepoint group. I am using sharepoint online, o365. 

Can anybody help me?

Create new view powershell OrderBy Sort

$
0
0

Hello everybody.

I am creating a whole structute of spaces with PowerShell.

When I create a new view with powershell I use this code.

$viewFields = New-Object System.Collections.Specialized.StringCollection
$viewFields.Add("Type")
$viewFields.Add("Name")
$viewFields.Add("Modified")
$viewFields.Add("Modified By")
$query = "<OrderBy><FieldRef Name='Last Updated' Ascending='false' /></OrderBy>"
$view = $list.Views.Add("WebPartView", $viewFields, $query, 3, $false, $false)
$view.TabularView = $false
$view.Update()

Which is correct and working fine.
The question is about the Sort opcion. When I apply the sorting through the query, it is being stored there. I can check the item on PowerShell and the query is stored in the $view.Query property.
And after that, when I go to edit the view, there is no sorting applied (it is somehow inside the view, on the query level) so if someday I would like to change that sorting, it would not be possible.

How can I apply the sorting option with powershell, using the normal system (the one that later could be modified by editing the view) and not the query style?

Thanks all.

The time has come! Step up SharePoint 2010 Gurus! Your community needs heroes like you!

$
0
0

TechNet Gurus... we salute you!

You're awesome, and we know it!

Your knowledge uploads and nifty info nuggets are our life blood at TechNet Wiki.

Every awesome article that gets an award is just the start. We are building up the most sensational collection of gifts of knowledge from eminent community heavy weights and young guns alike. And we plan to promote you and your work wherever we can.

Reputations are being forged.

History is being made.

Generations will know your name.

Your children, grandchildren and great-grandchildren will marvel at your technical prowess.

And now, my mighty code warriors, cool consultants and platform specialists, now your chance is here again.

A new month of possibilities. Another chance to prove YOU are the ONE!

The mighty TechNet Guru medal winner for June!

Take up your mouse and keyboard!

Unleash your mighty words of wisdom and bask in the glory that we bestow upon you!

GO GO Gurus! Give, give, give!

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

HOW TO WIN

1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

Winning this award in your favoured technology will help us learn the active members in each community.

Feel free to ask any questions below.

More about TechNet Guru Awards

Submit now : http://social.technet.microsoft.com/wiki/contents/articles/24692.technet-guru-contributions-for-june-2014.aspx

Thanks in advance!
Pete Laker


#PEJL

Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over to the one and onlyTechNet Wiki, for future generations to benefit from! You'll never get archived again!

If you are a member of any user groups, please make sure you list them in the Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.


File cannot be opened because there are problem with the files

$
0
0

Hi

My program reads the data from file uploaded into SharePoint 2010 and massage with the list information. It finally creates a new document and prompt the end user to save it. When user opens the saved document it consecutively prompts with the below two message -

-

How to turn off this warning messages? When I re-save this document with different name and open it again (any number of times) then the above messages stops prompting. I want these messages should not appear even in first time as well. I tried to add these document on trusted location and also removed the protection settings but it does not help. Is there any setting requires to suppress these warning messages? 

Any help will be greatly appreciated.

Best Regards,

Imran

 

 


items and workflows

$
0
0

Hi everyone,

i'm using sharepoint online, When an item in the list change - I need to stop all the workflows that access with it.

how can i do this? how should i know which list access with which workflow?


url's item

$
0
0
I use sharepoint online, if i have an item - how should i know what is his url?

Number of Docs Set To Display on Screen: How To Show Total Docs Also

$
0
0
Currently have 30 docs displaying in a content type folder.  Some folders have 300 docs but the display counter shows 1-30, 31-60etc.  Is there a way of displaying "1-30 of 300" (number of docs in the folder).  Just curious as this has been requested.  THANKS!

Get site url without random string

$
0
0

Hello,

I'm working on a webpart and i want to get the siteurl without the random string like https://example-26ab31c1969c36.sharepoint.com.

Is this possible to get the full url with javascript (csom/rest) ?

Upload Attachmnt Issue

$
0
0
Hi All,

I am facing an issue with uploading file, When I try to upload attachment from server with the below code the attachment uploaded successfully, but when I try to upload outside the server, it is throwing the exception "Can't find the path".

                string strFileName = txtPath.Text;                
                FileStream stream = new FileStream(txtPath.Text, FileMode.Open, FileAccess.Read); // Exception thrown here
                byte[] byteArray = new byte[stream.Length];
                stream.Read(byteArray, 0, Convert.ToInt32(stream.Length));
                stream.Close();
                requestItem.Attachments.Add(strFileName, byteArray);
    
Please help me on this issue.

Regards,
Kumar.

Call ps1 file from C#

$
0
0

Hello All,

I am having a power shell script file which needs to be called from web service. While executing power shell commands from file , its showing following error :

The term 'New-SPAuthenticationProvider' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

C# code is as below :

private static void RunPowershellScript(string scriptFile, string scriptParameters)
        {
            RunspaceConfiguration runspaceConfiguration = RunspaceConfiguration.Create();
            Runspace runspace = RunspaceFactory.CreateRunspace(runspaceConfiguration);
            runspace.Open();
            RunspaceInvoke scriptInvoker = new RunspaceInvoke(runspace);
            Pipeline pipeline = runspace.CreatePipeline();
            Command scriptCommand = new Command(scriptFile);
            Collection<CommandParameter> commandParameters = new Collection<CommandParameter>();
            foreach (string scriptParameter in scriptParameters.Split(' '))
            {
                CommandParameter commandParm = new CommandParameter(null, scriptParameter);
                commandParameters.Add(commandParm);
                scriptCommand.Parameters.Add(commandParm);
            }
            pipeline.Commands.AddScript("Add-PSSnapin Microsoft.Sharepoint.Powershell");
            pipeline.Commands.Add(scriptCommand);
            Collection<PSObject> psObjects;
            psObjects = pipeline.Invoke();
        }

What might be the issue.

Your help is appreciated.

Thanks in advance.

Viewing all 11571 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>