Tag Info

New answers tagged

0

This is not programmatically, but also as option: 1.In Central Administration, click Manage Service Applications. 2.Click the User Profile Service Application. 3.Click Configure Personalization Site under 'My Site Settings' 4.Click New Link. 5.Fill in an owner because that field is required. Leaving the Audience field blank means ...


0

Found how to resolve this matter : SPField field = myList.Fields["MultilineColumn"]; SPSecurity.RunWithElevatedPrivileges(delegate() { oWeb.AllowUnsafeUpdates = true; (field as SPFieldMultiLineText).RichText = true; field.Update(); oWeb.AllowUnsafeUpdates = false; }); //Then add html to the multiline column.


1

Using JavaScript you can get ID using var list; ExecuteOrDelayUntilScriptLoaded(Start, "sp.js"); function Start() { var currentcontext = new SP.ClientContext.get_current(); list = currentcontext.get_web().get_lists().getByTitle('ListTitle'); currentcontext.load(list, 'Id'); currentcontext.executeQueryAsync(Function.createDelegate(this, ...


1

I think that depends a lot on how your project is structured and your deployment process. In scenarios like this, I use feature activation code to provision my document library with a GUID generated by the Visual Studio tool. Then in my code I reference this GUID where necessary. Then once the feature is packaged, deployed, and activated, it is consistent ...


0

you can use this script to make you take to the home page of the site <div style="width: 100%; text-align: left;"> <INPUT TYPE="button" VALUE="Cancel to Homepage" CLASS="ms-ButtonHeightWidth" style="width:120px; background-color:transparent" onclick="parent.location='http://Sitename/Pages/Home.aspx'" title="Homepage" /> </div> and ...


0

Try This: using (SPWeb web = SPContext.Current.Web)//site.OpenWeb()) { SPList list = web.Lists["ListName"]; --------------- -------------- } Better we should not give the URL as hard code, if we change the managed path in the other environment then it will give problem.


1

It depends whether the specified list item belongs to List or Documents library: for Documents library: var absItemUrl = item.get_item('EncodedAbsUrl'); for List you could return url of display form page Example function getListItemUrl(listTitle,itemId,success,error) { var ctx = SP.ClientContext.get_current(); var web = ctx.get_web(); var ...


0

their is a solution but that required the subsite on existing url. Following are the steps which will help us in redirecting any level of site in SharePoint in a pretty neat manner. We will try to redirect http://mosssps/sites/Team/default.aspx to http://mosssps We will open the site in Web Folder view Download default.aspx page of the site which we want ...


3

In order to return list url you could utilize List.RootFolder.ServerRelativeUrl property. Some recommendations From performance perspective prefer server side filtering over client side one, the example below demonstrates how to query lists filtered by BaseTemplate: /_api/Web/Lists?filter=BaseTemplate eq '101' Example $.ajax({ url: ...



Top 50 recent answers are included