Tag Info

Hot answers tagged

3

The SharePoint WebPart has its roots back from the 2003 version where it inherited directly from Control because ASP.NET had no concept of a web part and SharePoint as in many other cases implemented a lot of the functionallity which was moved into ASP.NET 2.0 in order to allow SharePoint to become a real ASP.NET application in 2007. After ASP.NET 2.0 ...


2

I've had this requirement before, and each time I stray away from InfoPath and tell my users the only reasonable way is to use customized SharePoint list forms, edit/display/new. But in InfoPath, you would have to write code-behind in the InfoPath form, making it administrative approved. In the code, you would, upon submission of a document attachment, use ...


2

You can use the SP.ListOperation.Selection class getSelectedItems() method to get the selected list items. You will get the IDs of the selected list items based on which you can do the further processing. Here is a good post. You might also want to consider going through this post.


2

Image Web Part doesn't allow specifying usemap attribute, so I'd recommend using Script Editor webpart instead and deal with code. It's not difficult at all. E.g. simplest code for an image tag looks like this: <img src="http://site.com/path/to/your/image.png" /> In your case you should also add usemap attribute: <img ...


2

Edit the page and edit the web part. On the right hand side of the page edit the current view and deselect modified and modified by checkboxes. Save view, save web part, save page and publish (if applicable).


2

One of the challenges when working with Sandboxed Solutions is how to provision Web Parts instances to pages. If you have done this before in a Farm Solution you know, that in order to add a Web Part to a page programmatically in SharePoint you have to retrieve the instance of the SPLimitedWebPartManager class and use it to add the instance of a Web Part to ...


1

What I would do is take a look at the OfficeDev Patterns and Practices project on Github. There are plenty of examples for writing CSOM for SharePoint Online. All examples are using the new App Model with plenty of helper classes available to do what you need. The projects in particular that you will want are the Provisioning.Pages and ...


1

first off, its a sharepoint app part. Secondly i understand you gave control but where? have you given control though the app part? first edit the app part by going to properties -> now select the permission on the left side to show you the permissions for the application part. You should see several dropdowns, I presume the app part is only trying to ...


1

You can go to the webpart gallery and check whether webparts are there first. If not, then you have to make sure you run as admin the PowerShell as well as try including the user as farm admin. There can be errors sometimes which occur only when activating the feature but not when installing the solution. So try running the script for just to add the ...


1

Go to Edit web part. Then click Edit the current view. Then Uncheck the modified and modified by. This will hide your columns.


1

Exposing the data sources directly through JavaScript is not recommended. You can customize the form using InfoPath or a Visual Webpart and replace the new item form with the visual webpart.


1

SP.ListOperation.Selection Class provides static methods for selecting lists or list items. SP.ListOperation.Selection.getSelectedItems() method returns the list of items being selected. Selected list item contains the following properties: id - list item id fsObjType - file system object type The following example demonstrates how to retrieve selected ...


1

Not sure if this is possible with an image web part but if you used a content editor webpart then you could create a good old fashioned image map. http://sharepointadmin.wordpress.com/2010/04/02/cewpimagemap/


1

Yes you have two options for this. Using a customized page layout - This will contain the moto at some place. When you need, you can change the page layout and publish it. Create a custom webpart that will show the moto, which is a text taken from a property bag value. In that case, you do not need to do anything with the webpart. You just have to change ...


1

You can accomplish that using jquery. The idea is on page load to see if a field exists. This field should exist in view1 and not in view2. Let's name it Field1. If Field1 exists, hide the webart Add for ajax to the page or the master page or in a script editor. Next install firefox+firebug. Open the infopath form in browser, rightclick on the webpart ...


1

DataFormWebPart.ViewFlags property gets or sets the type of content to be displayed by the DataFormWebPart. The DataFormWebPart.ViewFlags property return type is SPViewFlags enumeration that describes the view type of a Web Part: [System.Flags] [SubsetCallableType] public enum SPViewFlags : long { None = 0L, Html = 1L, ClientModified = 2L, ...


1

SharePoint 2010 and 2013 scroll within a div called s4-workspace not within the parent window. Based on looking at your script coming from 2003, I think this might need a major re-work... Here are some examples of other questions that have dealt with scrolling issues that have a lot of good background on how scrolling works in modern installations (since ...


1

I've done something similar with Nintex, allowing for the form to receive attachments, then using workflow tools, extract the base 64 encoded attachment and load it into a document library with a web service operation, then update the form xml to remove the attachment. Perhaps though with a form rule, once the field is assigned that determines the name, you ...


1

I've used a technique like this in the past to handle the execution of jQuery after webparts ajax load or ajax refresh, http://stackoverflow.com/a/7062485/318776. Basically after the ajax call/postback is complete, it will execute your code. <script type="text/javascript"> Sys.Application.add_init(function () { ...


1

The options are right in front of you. "Restrict by App" - At the moment you have it set to 'Current Site' which is actually 'Current Web'. You would need to remove this restriction to access the full index. Switch to Advanced Mode, ensure we are looking at Local SharePoint Results source and remove the query in the box. Add the following: ...



Only top voted, non community-wiki answers of a minimum length are eligible